jhass changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.15.0 | 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
<travis-ci> crystal-lang/crystal#0737f76 (master - Reorganize code.): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/120511297
elia has quit [Quit: Computer has gone to sleep.]
anthony_1 has quit [Ping timeout: 244 seconds]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 268 seconds]
Philpax has quit [Ping timeout: 244 seconds]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 244 seconds]
x0f_ has joined #crystal-lang
x0f has quit [Ping timeout: 276 seconds]
A124 has quit [Read error: Connection reset by peer]
A124 has joined #crystal-lang
<crystal-gh> [crystal] waj pushed 1 new commit to master: https://git.io/vVBQb
<crystal-gh> crystal/master 1ecc607 Juan Wajnerman: Avoid usage of `LibC.waitpid` during codegen because it leads to race conditions. Should fix #2303.
<crystal-gh> [crystal] waj pushed 1 new commit to master: https://git.io/vVB7M
<crystal-gh> crystal/master ce8940e Juan Wajnerman: Print better info, including backtrace, when an exception fails to raise (aka "Could not raise")
<travis-ci> crystal-lang/crystal#1ecc607 (master - Avoid usage of `LibC.waitpid` during codegen because it leads to race conditions. Should fix #2303.): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/120526448
<travis-ci> crystal-lang/crystal#ce8940e (master - Print better info, including backtrace, when an exception fails to raise (aka "Could not raise")): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/120527877
Philpax has joined #crystal-lang
matp has quit [Remote host closed the connection]
matp has joined #crystal-lang
anthony__ has joined #crystal-lang
Philpax has quit [Ping timeout: 260 seconds]
Philpax has joined #crystal-lang
pawnbox has joined #crystal-lang
anthony__ has quit [Ping timeout: 276 seconds]
x0f_ has quit [Ping timeout: 276 seconds]
x0f has joined #crystal-lang
x0f has quit [Ping timeout: 246 seconds]
x0f has joined #crystal-lang
umurgdk has joined #crystal-lang
umurgdk has quit [Ping timeout: 248 seconds]
bcardiff has joined #crystal-lang
bcardiff has quit [Quit: bcardiff]
pawnbox has quit [Remote host closed the connection]
Philpax has quit [Ping timeout: 260 seconds]
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]
pawnbox has joined #crystal-lang
umurgdk has joined #crystal-lang
umurgdk has quit [Ping timeout: 244 seconds]
pawnbox has quit [Remote host closed the connection]
x0f has quit [Ping timeout: 248 seconds]
pawnbox has joined #crystal-lang
x0f has joined #crystal-lang
umurgdk has joined #crystal-lang
trapped has joined #crystal-lang
umurgdk has quit [Remote host closed the connection]
mark2 has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
elia has joined #crystal-lang
endou has quit [Read error: Connection reset by peer]
endou has joined #crystal-lang
Papierkorb has quit [Ping timeout: 276 seconds]
Cyrus has quit [Ping timeout: 250 seconds]
edjsu has quit [Ping timeout: 268 seconds]
swav has quit [Ping timeout: 250 seconds]
edjsu has joined #crystal-lang
petercommand has quit [Ping timeout: 250 seconds]
Papierkorb has joined #crystal-lang
petercommand has joined #crystal-lang
swav has joined #crystal-lang
Cyrus has joined #crystal-lang
Cyrus is now known as Guest78435
swav has quit [Ping timeout: 268 seconds]
swav has joined #crystal-lang
elia has quit [Quit: Computer has gone to sleep.]
umurgdk has joined #crystal-lang
umurgdk has quit [Remote host closed the connection]
umurgdk has joined #crystal-lang
rvchangue has quit [Ping timeout: 244 seconds]
elia has joined #crystal-lang
globalkeith has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
rvchangue has joined #crystal-lang
zeno_ has joined #crystal-lang
<zeno_> Does Crystal have Tail call optimization?
pawnbox has joined #crystal-lang
<RX14> I think if you compile with --relese it does
<RX14> --release
<RX14> well I guess that works
<RX14> or maybe not
<RX14> yep
<RX14> it works with --release
<BlaXpirit> RX14, yep
<RX14> but not without
<BlaXpirit> on carc.in the limit is somewhere under a million https://carc.in/#/r/w0d
<BlaXpirit> and locally with --release it keeps working on much higher numbers
<RX14> according to asterite on github compiling with --release nables tail call optimisations on llvm
<RX14> but that's weird
<RX14> because tail call should be on always
<RX14> because it's a matter of crashing or not
<RX14> instead of performance
<zeno_> Got stack overflow here https://play.crystal-lang.org/#/r/w0e, it looks strange
<RX14> hmmn
<RX14> that one gives me an error even with --release
<zeno_> I used --release flag here, but nothing happened
<RX14> ok, I have no clue really
<jhass> well, keep in mind that carc.in is on 32bit host, so much smaller stack
<RX14> what
<zeno_> I build this on my own computer, use --release flag but still stack overflow.
Philpax has joined #crystal-lang
<RX14> well, i think tail call recursion should be a langauge feature
<zeno_> Yeah, so I'm confused.
umurgdk has quit [Remote host closed the connection]
soveran has joined #crystal-lang
globalkeith has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
umurgdk has joined #crystal-lang
globalkeith has joined #crystal-lang
umurgdk has quit [Ping timeout: 250 seconds]
umurgdk has joined #crystal-lang
umurgdk has quit [Remote host closed the connection]
splattael has joined #crystal-lang
<crystal-gh> [crystal] splattael opened pull request #2410: Re-set port zero after listening (master...http-server/re-set-port-zero) https://git.io/vVRHV
umurgdk has joined #crystal-lang
zeno_ has quit [Quit: 离开]
alsm has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
globalkeith has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
kfpratt has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
ql6wlld has joined #crystal-lang
kfpratt has quit []
kfpratt has joined #crystal-lang
umurgdk has quit [Remote host closed the connection]
umurgdk has joined #crystal-lang
zeno_ has joined #crystal-lang
zeno_ has quit [Client Quit]
pawnbox has quit [Remote host closed the connection]
Philpax has quit [Ping timeout: 268 seconds]
pawnbox_ has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/vV0WI
<crystal-gh> crystal/master 8c587bf Ary Borenszweig: Compiler: fixed type lookup for macro defs. Fixes #2395
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]
globalkeith has joined #crystal-lang
pawnbox has joined #crystal-lang
tony___ has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
umurgdk has quit [Remote host closed the connection]
sw has joined #crystal-lang
<sw> hi guys, may someone help me with a little problem with linking ext libs?
<sw> i have a project whose root dir contains a `foreign/` directory containing a C lib (libnfd.so)
<sw> and I have a nfd.cr containing bindings for this lib
<sw> I've been using `@[Link(ldflags: "-L./foreign -lnfd `pkg-config --libs gtk+-3.0`")]` to make the linker find said lib, as it's not in a standard path
<sw> but since I've upgraded to crystal 0.14 the linker cannot resolve -lnfd anymore
<sw> is there a better way to specify the directory for the linker to search in when using ext libs in non-standard paths?
<sw> (i've temporarily solved this by using `crystal build --link-flags -l$(PWD)/foreign` in the Makefile)
<sw> -L$(PWD)/foreign *
umurgdk has joined #crystal-lang
Rinkana has joined #crystal-lang
umurgdk has quit [Remote host closed the connection]
pawnbox_ has joined #crystal-lang
pawnbox has quit [Read error: No route to host]
alsm has quit [Ping timeout: 244 seconds]
sw has quit [Quit: Page closed]
soveran has quit [Remote host closed the connection]
elia has quit [Quit: Computer has gone to sleep.]
mark2 has quit [Remote host closed the connection]
<asterite> BigInt is a struct and the last instruction is currently a load... not sure how llvm figures out when to do tail call optimization, but that might be one reason it doesn't in that case (I tried changing BigInt to a class and it does tail call)
<asterite> In any case, I wouldn't rely on tail call being available in the language
<crystal-gh> [crystal] asterite pushed 2 new commits to master: https://git.io/vV09r
<crystal-gh> crystal/master dc2dae9 Ary Borenszweig: Formatter: some fixes. Related to comment in #2411
<crystal-gh> crystal/master 6bb9885 Ary Borenszweig: Added String#insert. Fixes #2409
globalkeith has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<travis-ci> crystal-lang/crystal#6bb9885 (master - Added String#insert. Fixes #2409): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/120666490
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 276 seconds]
elia has joined #crystal-lang
elia has quit [Quit: Computer has gone to sleep.]
pawnbox_ has quit [Remote host closed the connection]
globalkeith has joined #crystal-lang
soveran has joined #crystal-lang
soveran has joined #crystal-lang
ylluminate has joined #crystal-lang
<travis-ci> Seachaos/crystal#3cd0abe (master - Added present? and blank?): The build has errored. https://travis-ci.org/Seachaos/crystal/builds/120692320
Ven has joined #crystal-lang
<crystal-gh> [crystal] Seachaos opened pull request #2413: Added present? and blank? (master...feature/present) https://git.io/vVEGn
Ven has quit [Client Quit]
mgarciaisaia has joined #crystal-lang
mgarciaisaia has left #crystal-lang [#crystal-lang]
<crystal-gh> [crystal] Seachaos closed pull request #2413: Added present? and blank? (master...feature/present) https://git.io/vVEGn
AckZ has quit []
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 250 seconds]
splattael has quit [Quit: Connection closed for inactivity]
mgarciaisaia1 has joined #crystal-lang
mgarciaisaia1 has left #crystal-lang [#crystal-lang]
elia has joined #crystal-lang
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 264 seconds]
marcosdsanchez has quit [Ping timeout: 244 seconds]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 244 seconds]
ql6wlld has quit [Quit: WeeChat 1.4]
Rinkana has quit [Ping timeout: 250 seconds]
umurgdk has joined #crystal-lang
pawnbox has joined #crystal-lang
globalkeith has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
umurgdk has quit [Ping timeout: 260 seconds]
pawnbox has quit [Ping timeout: 244 seconds]
umurgdk has joined #crystal-lang
trapped has quit [Read error: Connection reset by peer]
trapped has joined #crystal-lang
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 250 seconds]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 264 seconds]
mgarciaisaia has joined #crystal-lang
elia has quit [Quit: Computer has gone to sleep.]
elia has joined #crystal-lang
willl has joined #crystal-lang
soveran has quit [Remote host closed the connection]
mgarciaisaia has left #crystal-lang [#crystal-lang]
ozra has joined #crystal-lang
mgarciaisaia1 has joined #crystal-lang
pawnbox has joined #crystal-lang
soveran has joined #crystal-lang
soveran has joined #crystal-lang
Philpax has joined #crystal-lang
pawnbox has quit [Ping timeout: 244 seconds]
globalkeith has joined #crystal-lang
globalkeith has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
umurgdk has quit [Remote host closed the connection]
trapped has quit [Read error: Connection reset by peer]
zz_Cidan has quit [Ping timeout: 240 seconds]
Philpax has quit [Ping timeout: 244 seconds]
soveran has quit [Remote host closed the connection]
ozra_ has joined #crystal-lang
umurgdk has joined #crystal-lang
ozra has quit [Ping timeout: 268 seconds]
tony___ has quit [Ping timeout: 276 seconds]
umurgdk has quit [Ping timeout: 244 seconds]
mgarciaisaia1 has left #crystal-lang [#crystal-lang]