ChanServ changed the topic of #crystal-lang to: The Crystal programming language | | Crystal 0.21.1 | Fund Crystal's development: | Paste > 3 lines of text to | GH: | Docs: | API: | Logs:
<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?
<FromGitter> <fridgerator> setting / getting an instance variable with and without `@` behaves differently
<FromGitter> <Sija> @fridgerator you need to use ` = 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 `` 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:
<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
<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, 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:
<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 (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: ⏎
<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
<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.
<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:
<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)
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> ?