jhass changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.18.4 | Fund Crystals 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
Philpax has joined #crystal-lang
pawnbox has joined #crystal-lang
greengriminal has joined #crystal-lang
pawnbox has quit [Ping timeout: 244 seconds]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 252 seconds]
greengriminal has quit [Quit: This computer has gone to sleep]
pilne has joined #crystal-lang
Oliphaunte has joined #crystal-lang
snsei has joined #crystal-lang
snsei has quit [Remote host closed the connection]
snsei has joined #crystal-lang
greengriminal has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
greengriminal has quit [Quit: Leaving]
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 244 seconds]
qard has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Oliphaunte has joined #crystal-lang
pawnbox has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
pilne has quit [Quit: Quitting!]
pawnbox has quit [Ping timeout: 246 seconds]
pochito has joined #crystal-lang
qard has joined #crystal-lang
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
Oliphaunte has joined #crystal-lang
pawnbox has quit [Ping timeout: 264 seconds]
wmoxam_ is now known as wmoxam
wmoxam has quit [Changing host]
wmoxam has joined #crystal-lang
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 260 seconds]
Cidan has quit [Ping timeout: 246 seconds]
<Davy_CC> https://play.crystal-lang.org/#/r/12b2 why expecting END here and got unexpecting END ?
<adam12> Davy_CC: need another end?
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 276 seconds]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 264 seconds]
willl has quit [Quit: Connection closed for inactivity]
elomatreb has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
zz_Cidan has joined #crystal-lang
zz_Cidan is now known as Cidan
Cidan has quit [Changing host]
Cidan has joined #crystal-lang
sandelius has joined #crystal-lang
snsei has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
snsei has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
snsei has quit [Ping timeout: 244 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pochito has quit [Ping timeout: 276 seconds]
bjz has joined #crystal-lang
bjz_ has joined #crystal-lang
bjz has quit [Ping timeout: 272 seconds]
pawnbox has quit [Ping timeout: 260 seconds]
soveran has joined #crystal-lang
pawnbox has joined #crystal-lang
soveran has quit [Ping timeout: 244 seconds]
bjz_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jsaak has joined #crystal-lang
soveran has joined #crystal-lang
snsei has joined #crystal-lang
snsei has quit [Ping timeout: 260 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
matp has quit [Ping timeout: 258 seconds]
snsei has joined #crystal-lang
snsei has quit [Ping timeout: 276 seconds]
Philpax has quit [Ping timeout: 240 seconds]
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
qard has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
dom96 has quit [Changing host]
dom96 has joined #crystal-lang
ponga has joined #crystal-lang
<jhass> Davy_CC: a case needs an when or else
<jhass> case end is invalid
matp has joined #crystal-lang
sandelius has joined #crystal-lang
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
bjz has joined #crystal-lang
Philpax has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
Philpax has quit [Read error: Connection reset by peer]
Philpax has joined #crystal-lang
trapped has joined #crystal-lang
Philpax has quit [Read error: Connection reset by peer]
Philpax has joined #crystal-lang
<crystal-gh> [crystal] splattael opened pull request #2897: Docker: Preinstall `make` in docker image (master...dockerfile-make) https://git.io/vo1CU
zodiak has quit [Ping timeout: 258 seconds]
matp has quit [Remote host closed the connection]
matp has joined #crystal-lang
Philpax has quit [Read error: Connection reset by peer]
Philpax has joined #crystal-lang
soveran has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
Philpax has quit [Read error: Connection reset by peer]
Philpax has joined #crystal-lang
benoist has joined #crystal-lang
<benoist> hi :). For the zeromq binding I'm trying to setup travis, however the package has to be build from source and the library files are placed in a subdir of the home directory. How can I link to those files when running the specs?
<benoist> I've tried a lot of things but no success so far
<jhass> benoist: easiest is to export LIBRARY_PATH to include that
<benoist> Ah ok, I think I exported it to LD_LIBRARY_PATH
<jhass> LD_LIBRARY_PATH is for the runtime linker, LIBRARY_PATH for ld
<jhass> confusingly ;)
<benoist> well there you go :)
<jhass> --link-flags "-L/path/to/lib" should work too btw
<benoist> ah damn I was so close then, I forgot the -L
<jhass> :)
<jhass> we miss to respect LDFLAGS, we should
soveran has joined #crystal-lang
<benoist> It worked! Thanks a lot as always :)
<jhass> yw
soveran has quit [Remote host closed the connection]
Philpax has quit [Read error: Connection reset by peer]
Philpax has joined #crystal-lang
benoist has quit [Quit: Page closed]
steenuil has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
Philpax has quit [Read error: Connection reset by peer]
Philpax has joined #crystal-lang
trapped has quit [Read error: Connection reset by peer]
trapped has joined #crystal-lang
snsei has joined #crystal-lang
snsei has quit [Ping timeout: 250 seconds]
trapped has quit [Read error: Connection reset by peer]
trapped has joined #crystal-lang
qard has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 276 seconds]
trapped_ has joined #crystal-lang
trapped has quit [Read error: Connection reset by peer]
bjz_ has joined #crystal-lang
bjz has quit [Ping timeout: 244 seconds]
trapped has joined #crystal-lang
trapped_ has quit [Ping timeout: 244 seconds]
<crystal-gh> [crystal] MakeNowJust opened pull request #2898: Add missing PartialOrder#<=> (master...fix/partial_order-ufo) https://git.io/vo1iH
trapped_ has joined #crystal-lang
trapped has quit [Ping timeout: 240 seconds]
soveran has joined #crystal-lang
trapped_ has quit [Ping timeout: 260 seconds]
bjz_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bjz has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
trapped has joined #crystal-lang
<FromGitter> <taylorfinnell> hello, how can i get the encoding of a string?
<jhass> @taylorfinnell it's UTF-8
<FromGitter> <taylorfinnell> perfect ty
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
<FromGitter> <splattael> is there a rule of thumb when I have to use `{% begin %}` and `{% end %}` in macros?
<FromGitter> <splattael> This works: https://carc.in/#/r/12bi
<FromGitter> <splattael> It breaks w/o `{% begin %}` block: https://carc.in/#/r/12bj
<jhass> @splattael when you need to extend a macro's "scope", just because you use a macro expression, not the whole method gets turned into a macro body
<jhass> so the latter generates the expression foo: @foo, which is not a valid crystal expression
<jhass> where as the former generates the expression {foo: @foo, bar: @bar,}
<FromGitter> <splattael> it's a hash I thought
<jhass> it's not
<FromGitter> <splattael> aah, ok it's now clicking... I think
<jhass> (also you generate a named tuple there)
<FromGitter> <splattael> jhass, true, but it's ok for json ;)
<jhass> def as_json ;)
<FromGitter> <splattael> original code does that :D
<FromGitter> <splattael> thanks!
snsei has joined #crystal-lang
<jhass> for the general case override to_json(io) though
<FromGitter> <splattael> yes, the original code has that as well... I wanted to simplify the code for my question
snsei has quit [Ping timeout: 252 seconds]
snsei has joined #crystal-lang
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
mgarciaisaia has joined #crystal-lang
bjz has quit [Max SendQ exceeded]
bjz has joined #crystal-lang
<FromGitter> <splattael> jhass, playing with macros makes fun! thanks again for your help :-)
<jhass> yw
soveran has quit [Remote host closed the connection]
soveran has joined #crystal-lang
soveran has quit [Changing host]
soveran has joined #crystal-lang
Oliphaunte has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
mgarciaisaia has left #crystal-lang [#crystal-lang]
datanoise has joined #crystal-lang
Philpax has quit [Ping timeout: 276 seconds]
<crystal-gh> [crystal] MakeNowJust opened pull request #2899: [ci skip] Fix PartialComparable document (master...fix/partial_comparable_doc) https://git.io/voMJH
mgarciaisaia has joined #crystal-lang
mgarciaisaia has left #crystal-lang [#crystal-lang]
matp has quit [Remote host closed the connection]
matp has joined #crystal-lang
soveran has quit [Remote host closed the connection]
Raimondii has joined #crystal-lang
Raimondi has quit [Ping timeout: 240 seconds]
pochito has joined #crystal-lang
mgarciaisaia has joined #crystal-lang
mgarciaisaia has left #crystal-lang [#crystal-lang]
Raimondii is now known as Raimondi
Oliphaun_ has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
Oliphaunte has quit [Ping timeout: 250 seconds]
Raimondii has joined #crystal-lang
Raimondi^1 has joined #crystal-lang
<FromGitter> <splattael> is there a way to "fail" during compilation? say, I have macro which needs specific amount of args, how can I fail with like `raise ArgumentError` during compilation?
Raimondi has quit [Ping timeout: 240 seconds]
paulcsmith_ has joined #crystal-lang
<jhass> @splattael http://crystal-lang.org/api/Crystal/Macros.html#raise%28message%29%3ANoReturn-instance-method
<jhass> {{raise "nope"}
<jhass> }
Raimondii has quit [Ping timeout: 240 seconds]
<FromGitter> <splattael> ok, I'm blind... thank you!!
paulcsmith_ has quit [Client Quit]
<crystal-gh> [crystal] ysbaddaden closed pull request #2899: [ci skip] Fix PartialComparable document (master...fix/partial_comparable_doc) https://git.io/voMJH
Raimondi^1 is now known as Raimondi
Raimondi is now known as Raimondii
Raimondii is now known as Raimondi
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
soveran has joined #crystal-lang
soveran has quit [Changing host]
soveran has joined #crystal-lang
trapped has quit [Read error: Connection reset by peer]
soveran has quit [Ping timeout: 244 seconds]
pawnbox has joined #crystal-lang
snsei has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pochito has quit [Ping timeout: 246 seconds]
<j2k> Any chance someone has a openid lib for crystal?
<jhass> http://crystalshards.xyz/?filter=openid doesn't look like it
matp has quit [Ping timeout: 244 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
paulcsmith_ has joined #crystal-lang
pochito has joined #crystal-lang
pochito has quit [Ping timeout: 260 seconds]
Raimondii has joined #crystal-lang
Raimondi has quit [Ping timeout: 240 seconds]
willl has joined #crystal-lang
soveran has joined #crystal-lang
Raimondii is now known as Raimondi
matp has joined #crystal-lang
soveran has quit [Ping timeout: 276 seconds]
tomchapin has joined #crystal-lang
Oliphaun_ has quit [Remote host closed the connection]
datanois1 has joined #crystal-lang
datanoise has quit [Ping timeout: 260 seconds]
pilne has joined #crystal-lang
matp has quit [Remote host closed the connection]
ponga has quit []
matp has joined #crystal-lang
kfpratt has quit []
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 276 seconds]
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Ping timeout: 250 seconds]
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sp4rrow has joined #crystal-lang
<sp4rrow> just curious does Object inherit from Kernal like in Ruby?
pochito has joined #crystal-lang
<jhass> I think we have no Kernel
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
Oliphaunte has joined #crystal-lang
sandelius has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/voMF9
<crystal-gh> crystal/master a27799a Ary Borenszweig: Merge branch 'release/0.18'
<RX14> jhass, did you look at that segfault?
paulcsmith_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<jhass> RX14: yeah you have to use a class
<RX14> why?
datanois1 has quit [Quit: WeeChat 1.5]
<RX14> oh lol
<RX14> wouldn't the IO just be a pointer in the struct?
<RX14> oh
<RX14> i should have read further down
<jhass> :)
<RX14> ok
<RX14> do we have to use a class or can we create a pointer somehow
<jhass> we could Box.box the IO
<jhass> but that won't be any faster really
<RX14> hmmn
<RX14> yeah I guess
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
Raimondii has joined #crystal-lang
Raimondi has quit [Ping timeout: 240 seconds]
sp4rrow has joined #crystal-lang
matp has quit [Remote host closed the connection]
<sp4rrow> how does puts get mixed into the classes then?
<RX14> sp4rrow, it's a method on the root namespace
<RX14> it's not in classes
<sp4rrow> cool thanks
<sp4rrow> what else is in there?
<sp4rrow> or how do I find it
<jhass> ^5
<RX14> heh
paulcsmith_ has joined #crystal-lang
<sp4rrow> ah thanks
Raimondii is now known as Raimondi
<sp4rrow> what does redefine main do?
<sp4rrow> I didnt know crystal had a main function
<jhass> an executable needs a main function
<jhass> crystal hides it as good as possible, but it's still there
<jhass> that is a ELF package binary to be a tad more specific
<sp4rrow> interesting is there any other consequences of changing that?
<jhass> changing what?
<sp4rrow> like invalidating at_exit handles or something?
<sp4rrow> redefining main
<jhass> the redefine_main macro is specifically to keep the runtime setup in place
<sp4rrow> cool
<sp4rrow> thanks
<jhass> if you'd want to get rid of that you'd need to redefine the main function, fun main(...)
<sp4rrow> cool I didnt know these functions existed
<jhass> there's no sane reason to touch that stuff for 99.9% of all applications
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/voMxw
<crystal-gh> crystal/master ca6154d Ary Borenszweig: Merge branch 'release/0.18'
tomchapin has joined #crystal-lang
pochito has quit [Ping timeout: 244 seconds]
<travis-ci> crystal-lang/crystal#a27799a (master - Merge branch 'release/0.18'): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/139857871
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/voMjQ
<crystal-gh> crystal/master 6dced6c Ary Borenszweig: Merge branch 'release/0.18'
<crystal-gh> [crystal] asterite closed pull request #1639: add copy overload to IO to copy at most *limit* bytes (master...copy-with-limit) https://git.io/voMjp
soveran has joined #crystal-lang
<travis-ci> crystal-lang/crystal#04b25ae (release/0.18 - Fixed #2493: correct size of recursive types): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/139857894
soveran has quit [Ping timeout: 276 seconds]
FromGitter has quit [*.net *.split]
bjmllr has quit [*.net *.split]
sebasr has quit [*.net *.split]
pleiosau1 has quit [*.net *.split]
xaxes` has quit [*.net *.split]
emmanueloga has quit [*.net *.split]
mroth has quit [*.net *.split]
CompanionCube has quit [*.net *.split]
CompanionCube has joined #crystal-lang
pleiosaur has joined #crystal-lang
CompanionCube has quit [Changing host]
CompanionCube has joined #crystal-lang
pilne has left #crystal-lang ["Leaving!"]
FromGitter has joined #crystal-lang
bjmllr has joined #crystal-lang
sebasr has joined #crystal-lang
xaxes` has joined #crystal-lang
mroth has joined #crystal-lang
shadowshell has quit [Ping timeout: 258 seconds]
iamstef_ has quit [Ping timeout: 258 seconds]
emmanueloga has joined #crystal-lang
shadowshell has joined #crystal-lang
_jungh4ns has quit [K-Lined]
iamstef_ has joined #crystal-lang
fedruantine has joined #crystal-lang
sandelius has quit [Quit: Textual IRC Client: www.textualapp.com]
matp has joined #crystal-lang
<travis-ci> crystal-lang/crystal#5ece32c (release/0.18 - Analyze visibility modifier expression before error. Fixes #2838): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/139863224
willl has quit [Quit: Connection closed for inactivity]
pawnbox has quit [Remote host closed the connection]
soveran has joined #crystal-lang
<travis-ci> crystal-lang/crystal#6dced6c (master - Merge branch 'release/0.18'): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/139866888
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
soveran has quit [Ping timeout: 276 seconds]
<travis-ci> crystal-lang/crystal#5fa22e6 (release/0.18 - add copy overload to IO to copy at most *limit* bytes): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/139866930
sp4rrow has joined #crystal-lang
paulcsmith_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
soveran has joined #crystal-lang
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
Oliphaunte has quit [Remote host closed the connection]
Oliphaunte has joined #crystal-lang
fedruantine has quit [Max SendQ exceeded]
Oliphaunte has quit [Ping timeout: 250 seconds]
soveran has quit [Remote host closed the connection]
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bjz has joined #crystal-lang
bjz has quit [Client Quit]
bjz has joined #crystal-lang
bjz has quit [Ping timeout: 244 seconds]
soveran has joined #crystal-lang
pawnbox has joined #crystal-lang
acangiano has joined #crystal-lang
soveran has quit [Ping timeout: 276 seconds]
pawnbox has quit [Ping timeout: 240 seconds]
acangiano has quit [Remote host closed the connection]
fedruantine has joined #crystal-lang
Philpax has joined #crystal-lang
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 272 seconds]