asterite changed the topic of #crystal-lang to: #crystal-lang The Crystal programming language | http://crystal-lang.org | Crystal 0.6.0 | Paste > 3 lines of text to https://gist.github.com | GH: https://github.com/manastech/crystal - Docs: http://crystal-lang.org/docs/ - API: http://crystal-lang.org/api/ - Logs: http://irclog.whitequark.org/crystal-lang
ismaelga has joined #crystal-lang
ismaelga has quit [Ping timeout: 256 seconds]
waj has quit [Quit: Leaving.]
waj has joined #crystal-lang
waj has quit [Client Quit]
waj has joined #crystal-lang
ismaelga has joined #crystal-lang
waj has quit [Quit: Leaving.]
havenn has joined #crystal-lang
ismaelga has quit [Ping timeout: 250 seconds]
havenwood has quit [Ping timeout: 256 seconds]
ismaelga has joined #crystal-lang
tymat has quit [Remote host closed the connection]
tymat has joined #crystal-lang
havenn has quit []
canhtak has joined #crystal-lang
canhtak has quit [Client Quit]
ismaelga has quit [Remote host closed the connection]
ismaelga has joined #crystal-lang
ismaelga has quit [Ping timeout: 250 seconds]
leafybasil has quit [Remote host closed the connection]
leafybasil has joined #crystal-lang
ismaelga has joined #crystal-lang
ismaelga has quit [Ping timeout: 256 seconds]
waj has joined #crystal-lang
ismaelga has joined #crystal-lang
ismaelga has quit [Ping timeout: 252 seconds]
waj has quit [Quit: Leaving.]
ismaelga has joined #crystal-lang
ismaelga has quit [Ping timeout: 255 seconds]
ismaelga has joined #crystal-lang
zamith has joined #crystal-lang
zamith has quit [Client Quit]
asterite has joined #crystal-lang
bcardiff has joined #crystal-lang
ismaelga has quit [Remote host closed the connection]
ismaelga has joined #crystal-lang
weskinner_work has joined #crystal-lang
asterite has quit [Quit: Leaving.]
havenwood has joined #crystal-lang
waj has joined #crystal-lang
ismaelga has quit [Remote host closed the connection]
ismaelga has joined #crystal-lang
asterite has joined #crystal-lang
<crystal-gh> [crystal] waj pushed 1 new commit to master: http://git.io/AKdD
<crystal-gh> crystal/master fb9939d Juan Wajnerman: Added missing `require "uri"` for http request
shama has joined #crystal-lang
<jhass> asterite: looks like I seriously broke something: http://cloud.aeshna.de/u/mrzyx/screenshots/screenshot_20150222_110528.png :P
<asterite> :(
<asterite> With what code?
<jhass> https://github.com/jhass/github_desktop_notifications it doesn't happen right away
<travis-ci> manastech/crystal#2049 (master - fb9939d : Juan Wajnerman): The build passed.
<jhass> and sometimes there's also a null pointer access in run_poll
<jhass> so nothing easy to reproduce
<jhass> I suspect it's that the GC removes stuff passed to GLib as callback or/and GLib corrupting something when calling the callback
waj has quit [Quit: Leaving.]
waj has joined #crystal-lang
leafybasil has quit [Remote host closed the connection]
<asterite> jhass: Ah, yes, that might be it
<asterite> Maybe there would need to be a way to mark something as a GC root...
<jhass> otoh. if it's a spurious GC, I would expect it to happen far sooner
<jhass> it takes a few dozen iterations though
<jhass> (the scheme is add callback, in the callback add the callback itself to be run in after the poll interval (currently 60 seconds as returned by GHs API)
<crystal-gh> [crystal] ysbaddaden opened pull request #445: Added specific Errno exceptions (Errno::ENOENT, ...) (master...std-errno-classes) http://git.io/A6Vq
<jhass> so it's confusing me a bit
<asterite> So the callback is passed but crystal doesn't retain a reference to it?
<jhass> it does, at least for a while
<jhass> I shall compile with --debug and see if that spits out line numbers yet
<asterite> No, debug doesn't add line numbers
<jhass> :(
<jhass> what does it even do then?
<waj> jhass: if you set the env var GC_DONT_GC=1 you can disable the GC completely
<waj> and figure out if that's the problem
<jhass> thanks
<waj> regarding line numbers… there is a tool in Mac that you can use to find line numbers from addresses: atos
<waj> there might be something similar for linux
<jhass> and that doesn't read it from the debug info but does what?
<waj> the debug info contains the line numbers, but right now that info is not used when raising exceptions
<jhass> looks like the atos equivalent is addr2line
weskinner_work has left #crystal-lang [#crystal-lang]
weskinner_work has joined #crystal-lang
asterite has quit [Quit: Leaving.]
bcardiff has quit [Quit: Leaving.]
<crystal-gh> [crystal] asterite pushed 4 new commits to master: http://git.io/AiKb
<crystal-gh> crystal/master 5720d19 Ary Borenszweig: Fixed some errors related to untyped fun literals and pointers
<crystal-gh> crystal/master ee0811d Ary Borenszweig: Fixed: when inheriting a generic class you couldn't invoke its class methods
<crystal-gh> crystal/master 7dbd2dc Ary Borenszweig: Fixed #442: incorrect "splatting a union (({Int32, Int32} | Nil)) is not yet supported"
ismaelga has quit [Remote host closed the connection]
bcardiff has joined #crystal-lang
<travis-ci> manastech/crystal#2051 (master - 91cf9c4 : Ary Borenszweig): The build passed.
leafybasil has joined #crystal-lang
ismaelga has joined #crystal-lang
bcardiff has quit [Quit: Leaving.]
wanderer has joined #crystal-lang
wanderer has quit [Ping timeout: 246 seconds]
<weskinner_work> does crystal have destructors?
<jhass> weskinner_work: yup, def finalize
<jhass> oh nice, valgrind shows file/line number when compiled with --debug now
<weskinner_work> thank you!
<jhass> http://cloud.aeshna.de/u/mrzyx/screenshots/screenshot_20150224_001930.png not that that tells me much of where it goes through my code... meh
<jhass> meh, null pointer I could handle, but 0xC? wth...
weskinner_work has quit [Ping timeout: 264 seconds]
ismaelga has quit [Remote host closed the connection]
ismaelga has joined #crystal-lang