RX14 changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.27.1 | Fund Crystal's development: http://is.gd/X7PRtI | GH: https://github.com/crystal-lang/crystal | Docs: http://crystal-lang.org/docs/ | API: http://crystal-lang.org/api/ | Gitter: https://gitter.im/crystal-lang/crystal
<FromGitter> <bew> @dscottboggs_gitlab yeah it print the macro expansion at the moment of the debug macro method
<FromGitter> <bew> You can put it in a loop, it's fun to see the expanded macro grow :p
<FromGitter> <dscottboggs_gitlab> interesting! what about `crystal tool expand`? that was my preferred method but I think in the most recent update it broke...
<FromGitter> <bew> Broke?
<FromGitter> <bew> Shouldn't have
<FromGitter> <dscottboggs_gitlab> whenever I run it, I always get *no expansion found*
<FromGitter> <bew> You need to call it on a macro call
<FromGitter> <bew> To see the expanded code
<FromGitter> <dscottboggs_gitlab> yu;
trashhalo[m] has quit [Remote host closed the connection]
<FromGitter> <dscottboggs_gitlab> hang on I'll work up a minimal example if I can
<FromGitter> <bew> E.g on a getter call
<FromGitter> <bew> It's 1:30 am here, need to sleep, i'll see tomorrow if you don't get an answer!
<FromGitter> <dscottboggs_gitlab> ok no rush bro get some sleep!!
<FromGitter> <bew> ;)
<FromGitter> <dscottboggs_gitlab> holy shit I just discovered the `$_`yesterday and it's the best thing since sliced bread
<FromGitter> <Blacksmoke16> hm?
<FromGitter> <dscottboggs_gitlab> `mkdir -p /some/long/path/to/a/dir/ && cd $_`
<FromGitter> <dscottboggs_gitlab> lands you in newly created dir
<FromGitter> <Blacksmoke16> ah nice
trashhalo[m] has joined #crystal-lang
laaron has quit [Remote host closed the connection]
laaron has joined #crystal-lang
lucasb has quit [Quit: Connection closed for inactivity]
<FromGitter> <dscottboggs_gitlab> @bew sorry I couldn't get a minimal example I'll come back to it tomorrow after work
johndescs has quit [Ping timeout: 252 seconds]
johndescs has joined #crystal-lang
laaron- has joined #crystal-lang
laaron has quit [Quit: ZNC 1.7.1 - https://znc.in]
laaron- has quit [Remote host closed the connection]
laaron has joined #crystal-lang
chemist69 has quit [Ping timeout: 252 seconds]
chemist69 has joined #crystal-lang
Raimondi has quit [Quit: WeeChat 2.3: ¡Chau!]
<FromGitter> <ryanstout> will it be possible in the future to add tail call optimization to methods?
<FromGitter> <ryanstout> sorry, just found https://github.com/crystal-lang/crystal/issues/5143 I'm assuming thats still the state?
Raimondi has joined #crystal-lang
fifr has quit [Ping timeout: 268 seconds]
crystal-lang564 has joined #crystal-lang
<FromGitter> <HarrisonB> Is there a way to get everything but the first item in an `ArrayLiteral` (like in a macro)?
dom96 has quit [Ping timeout: 252 seconds]
dom96 has joined #crystal-lang
fifr has joined #crystal-lang
laaron has quit [Remote host closed the connection]
laaron has joined #crystal-lang
ashirase has quit [Ping timeout: 246 seconds]
ashirase has joined #crystal-lang
<FromGitter> <vladfaust> @HarrisonB https://carc.in/#/r/6iyt
laaron- has joined #crystal-lang
laaron has quit [Ping timeout: 256 seconds]
sz0 has joined #crystal-lang
lucasb has joined #crystal-lang
duane has joined #crystal-lang
<FromGitter> <HarrisonB> Should have just tried using a range, haha. Thanks @vladfaust !
crystal-lang564 has quit [Quit: Konversation terminated!]
return0e_ has quit [Remote host closed the connection]
<FromGitter> <kinxer> I'm trying to use an Alpine VM to build a static executable from Crystal code, however I've never created a statically-linked binary before. Are there special steps I need to take (besides the `--static` flag, of course) for static linking in general or Crystal in specific?
return0e has joined #crystal-lang
return0e has quit [Remote host closed the connection]
<FromGitter> <j8r> That's literally it @kinxer
<FromGitter> <kinxer> A'ight. I'm having the same issues as here (https://forum.crystal-lang.org/t/building-static-apps-using-libxml-with-official-docker-image/251) but on a fresh Alpine VM (https://app.vagrantup.com/alpine/boxes/alpine64) with only `crystal`, `shards`, `musl-dev`, `zlib-dev`, `libxml2-dev`, and `vim` added... Perhaps I should create a forum post myself.
<FromGitter> <kinxer> Actually, not quite the same issues, but definitely the same kind of "undefined reference" linking (?) issues, just with `libxml2`.
Yxhuvud has quit [Quit: No Ping reply in 180 seconds.]
<FromGitter> <j8r> Ensure to have all this required libs https://github.com/j8r/dockerfiles/blob/master/crystal-alpine/Dockerfile
Yxhuvud has joined #crystal-lang
<FromGitter> <j8r> I forgot, there is a hack to add to your code to prevent segaults
<FromGitter> <kinxer> Thanks, @j8r! This should help a lot.
return0e has joined #crystal-lang
duane has quit [Ping timeout: 246 seconds]
moei has quit [Quit: Leaving...]
lucasb has quit [Quit: Connection closed for inactivity]
<FromGitter> <jwoertink> When you're inside of a macro statement in a method, is there a way to get the argument from that method like in this example?
<FromGitter> <jwoertink> ```def run(x) ⏎ {% raise "X is not allowed to be #{x}" %} ⏎ end``` [https://gitter.im/crystal-lang/crystal?at=5c917d3da21ce51a208b2746]