ChanServ changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.21.1 | Fund Crystal's development: http://is.gd/X7PRtI | Paste > 3 lines of text to https://gist.github.com | GH: https://github.com/crystal-lang/crystal | Docs: http://crystal-lang.org/docs/ | API: http://crystal-lang.org/api/ | Logs: http://irclog.whitequark.org/crystal-lang
<FromGitter> <redcodefinal> @BlaXpirit Actually I like crystal play it's just I miss IRB sometimes. Besides I've had a couple times where `crystal play` refused to give me an error or exception when running code. I've also had a weird issue with it freezing up my entire computer for 40+ seconds but it happens rarely so it's not that big of a deal. Is there any tool that supports breakpoints? This is why I kind of have some hope for icr b
<FromGitter> ... hoping we can get some pry-like commands in there.
<cerulean> we can improve crystal play and should. and debugging
<FromGitter> <redcodefinal> @cerulean Yeah I've been thinking of some feature requests I'd like to make, I think the easiest one would be to add a custom command line args field to the options. It only came to mind because I was testing speed with`benchmark` and it gave me this one `Warning: benchmarking without the '--release' flag won't yield useful results`.
<FromGitter> <redcodefinal> Although I'm pretty sure this would have to turn off the pretty data output sidebar on the right.
Cyrus has joined #crystal-lang
LastWhisper____ has joined #crystal-lang
<FromGitter> <fridgerator> is this a bug, or is this expected behavior? https://play.crystal-lang.org/#/r/1w03
<FromGitter> <fridgerator> setting / getting an instance variable with and without `@` behaves differently
<FromGitter> <Sija> @fridgerator you need to use `self.property = value` notation
<FromGitter> <Sija> otherwise compiler creates local var instead
<FromGitter> <Sija> it’s expected behavior (ruby does the same)
<FromGitter> <fridgerator> hrm, for whatever reason I was thinking self was inferred
<FromGitter> <Sija> (behind the scenes it gets translated to `self.property=(value)` method call
<FromGitter> <Sija> it is, IIRC that’s the only exception
<FromGitter> <phoffer> self is inferred for method calls but not for assignment
LastWhisper____ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<FromGitter> <stereosteve> here is my SI number parsing + formatting library for crystal: https://github.com/stereosteve/crystal-si
<FromGitter> <stereosteve> good first lib to write when learning a language
<FromGitter> <stereosteve> lemme know if you have any tips
Raimondi has quit [Read error: Connection reset by peer]
Raimondi has joined #crystal-lang
txdv has joined #crystal-lang
cerulean has quit [Read error: Connection reset by peer]
gewo has joined #crystal-lang
<FromGitter> <sdogruyol> @stereosteve awesome :tada:
j2k has joined #crystal-lang
mark_66 has joined #crystal-lang
Qchmqs has joined #crystal-lang
bjz has joined #crystal-lang
<FromGitter> <yxhuvud> Hmm. Indexing an array with variable index and content sizes (depending on size of array the entries refer to). I guess that will end up needing to bring out raw Pointers to solve..
<FromGitter> <yxhuvud> ===the challenges of translating c code===
gewo has quit [Ping timeout: 252 seconds]
gloscombe has joined #crystal-lang
<FromGitter> <bew> ahah what are you porting? @yxhuvud
<FromGitter> <yxhuvud> @bew https://github.com/ruby/ruby/blob/trunk/st.
<FromGitter> <bew> bad link?
<FromGitter> <bew> 404
<FromGitter> <yxhuvud> it was missing a c at the end.
<FromGitter> <bew> wow awesome!
<FromGitter> <yxhuvud> not working yet though, even without using variable sized indices.
blufor has joined #crystal-lang
p0p0pr37_ has joined #crystal-lang
p0p0pr37 has quit [Ping timeout: 260 seconds]
p0p0pr37_ is now known as p0p0pr37
j2k has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bjz has quit [Ping timeout: 240 seconds]
bjz_ has joined #crystal-lang
Philpax_ has joined #crystal-lang
Philpax__ has quit [Ping timeout: 255 seconds]
j2k has joined #crystal-lang
gewo has joined #crystal-lang
gewo has quit [Client Quit]
gewo has joined #crystal-lang
j2k has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bjz_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
gewo has quit [Quit: WeeChat 1.5]
bjz has joined #crystal-lang
j2k has joined #crystal-lang
<FromGitter> <bew> great!
<FromGitter> <fridgerator> :thumbsup:
<FromGitter> <eliasjpr> Thats a nice post
<FromGitter> <bew> do you know a TOML lib for crystal?
<FromGitter> <bew> nvm I've found https://github.com/manastech/crystal-toml, but last commit is in 04/2016...
j2k has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
LastWhisper____ has joined #crystal-lang
mark_66 has quit [Remote host closed the connection]
Qchmqs has quit [Read error: Connection reset by peer]
mjago has joined #crystal-lang
<FromGitter> <redcodefinal> @sdogruyol thanks for the post! Didn't know sentry was thing, definitely will be using it in my projects in the future.
mjago has quit [Quit: ERC (IRC client for Emacs 25.1.1)]
<FromGitter> <sdogruyol> @redcodefinal thank you
<FromGitter> <sdogruyol> @jwoertink awesome :tada: https://twitter.com/jeremywoertink/status/854739165061103616
<FromGitter> <redcodefinal> The transition begins ;D
<FromGitter> <sdogruyol> this is really handy
<FromGitter> <sdogruyol> my entire reporting infra could benefit from this :P
sz0 has joined #crystal-lang
<FromGitter> <redcodefinal> Hey does anyone know what the word is on future ARM support? I'd love to switch a project of mine over to Kemal but I'm using GPIO on RPi3.
<FromGitter> <sdogruyol> i've heard that people compiling crystal on rpi3
<FromGitter> <sdogruyol> better ask @ysbaddaden
<RX14> sentry looks pretty efficient not using inotify
<RX14> i have bindings, I should make a generic file watcher shard
<RX14> not sured how it works on osx though
<FromGitter> <redcodefinal> If so I'll write the C bindings for http://www.airspayce.com/mikem/bcm2835/ (bcm2835) there's already a pretty straightforward ruby library that uses it.
xmonader has joined #crystal-lang
xmonader has quit [Ping timeout: 240 seconds]
Raimondii has joined #crystal-lang
greengriminal has joined #crystal-lang
Raimondi has quit [Ping timeout: 268 seconds]
Raimondii is now known as Raimondi
<FromGitter> <bew> @redcodefinal oh yeah that would be awesome!
<FromGitter> <stereosteve> @RX14 if you're okay using a non-crystal watcher project, I've had good experiences with: ⏎ https://github.com/cortesi/modd
<RX14> i use entr myself
<RX14> so i'm good
<FromGitter> <stereosteve> ohh didn't know about that... will check out
xmonader has joined #crystal-lang
gloscombe has quit [Remote host closed the connection]
<FromGitter> <jwoertink> Thanks @sdogruyol :D
<FromGitter> <drosehn> yeah, `entr` is a nice general tool.
<FromGitter> <jwoertink> @stereosteve 1.21 GW!?!!!?? ONE POINT TWENTY ONE GIGAWATTS!??
<FromGitter> <bew> What Oo?
<FromGitter> <jwoertink> lol `SI.parse("1.21 GW") # => {1.21e9, "W"}`
greengriminal has quit [Quit: This computer has gone to sleep]
Cyrus has quit [Quit: WeeChat 1.7]
<FromGitter> <fridgerator> haha
<FromGitter> <fridgerator> thats a great example
Philpax_ has quit [Ping timeout: 258 seconds]
<FromGitter> <stereosteve> Yes! definitly best SI reference in pop culture
<FromGitter> <stereosteve> I wrote the lib just for that line in the readme... it was allll worth it
<FromGitter> <fridgerator> hahaha
Philpax has joined #crystal-lang
<FromGitter> <elorest> Has anyone used a sass compiler written in crystal?
<RX14> i doubt it
<FromGitter> <jwoertink> only one I saw was https://github.com/vonKingsley/crass
<FromGitter> <jwoertink> but when I tried it a while back, it didn't work
<FromGitter> <elorest> also it seems like sentry is becoming the standard replacement for guard but I’ve used this before with pretty good success. https://github.com/f/guardian
<FromGitter> <elorest> I suppose you could always just call CLI SassC to compile sass.
<FromGitter> <elorest> They it gets rid of the ruby dependency.
<FromGitter> <elorest> Does anyone know of a capistrano like alternative?
greengriminal has joined #crystal-lang
<crystal-gh> [crystal] bcardiff pushed 2 new commits to master: https://git.io/vShRC
<crystal-gh> crystal/master f40bcb3 Jonne Haß: Rename WeakRef#target to WeakRef#value...
<crystal-gh> crystal/master 8b0fd63 Jonne Haß: WeakRef: Do not register non heap pointers as diasappearing links...
bjz has joined #crystal-lang
<FromGitter> <fridgerator> I do't, but you could deploy a crystal application with capistrano
vegax87 has joined #crystal-lang
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bjz has joined #crystal-lang
greengriminal has quit [Quit: This computer has gone to sleep]
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
greengriminal has joined #crystal-lang
greengriminal has quit [Quit: Leaving]
xmonader has quit [Ping timeout: 260 seconds]
<crystal-gh> [crystal] MakeNowJust opened pull request #4314: Enum: fixed #4269, work fine with private (master...fix/enum/private) https://git.io/vShS4
vegax87 has left #crystal-lang ["Closing Window"]
<FromGitter> <eliasjpr> Best way to encode and decode strings in crystal?
<FromGitter> <carsonbaker> Encode/decode as what?
<FromGitter> <eliasjpr> Utf 8
<FromGitter> <elorest> @fridgerator yeah that’s what i currently do and it’s fine. I was just thinking that not having to install ruby to develop would be cool. Although to be fair I will probably always have ruby installed...
<FromGitter> <carsonbaker> Elias, can you give more context to what you're trying to do?
<FromGitter> <eliasjpr> puts "\xC3".force_encoding('iso-8859-1').encode('utf-8') #-> Ã
<FromGitter> <eliasjpr> Basically I would like to accomplish the same in crystal
<FromGitter> <eliasjpr> 👆🏻ruby
<FromGitter> <Sija> lol
<FromGitter> <eliasjpr> ?