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
asterite has joined #crystal-lang
ismaelga has joined #crystal-lang
asterite1 has joined #crystal-lang
asterite has quit [Ping timeout: 255 seconds]
asterite1 has quit [Ping timeout: 245 seconds]
havenwood has quit [Remote host closed the connection]
ismaelga has quit [Remote host closed the connection]
waj has joined #crystal-lang
weskinner_work has joined #crystal-lang
weskinner_work has quit [Ping timeout: 245 seconds]
waj1 has joined #crystal-lang
waj has quit [Ping timeout: 250 seconds]
ismaelga has joined #crystal-lang
waj1 has quit [Quit: Leaving.]
waj has joined #crystal-lang
waj has quit [Client Quit]
<crystal-gh> [crystal] asterite pushed 2 new commits to master: http://git.io/pljG
<crystal-gh> crystal/master 9bb98c1 Ary Borenszweig: Added Hash#delete_if (naive implementation)
<crystal-gh> crystal/master 7006f1d Ary Borenszweig: Fixed #466: Compiler confused about variable's scope inside macros
<crystal-gh> [crystal] asterite pushed 1 new commit to master: http://git.io/p8vw
<crystal-gh> crystal/master 85a0476 Ary Borenszweig: Improved `caller` performance
<travis-ci> manastech/crystal#2096 (master - 7006f1d : Ary Borenszweig): The build passed.
shama has quit [Quit: (╯°□°)╯︵ɐɯɐɥs]
<travis-ci> manastech/crystal#2097 (master - 85a0476 : Ary Borenszweig): The build passed.
havenwood has joined #crystal-lang
bcardiff has joined #crystal-lang
weskinner_mac has joined #crystal-lang
weskinner_mac has quit [Quit: weskinner_mac]
<shadeslayer> does Crystal have a way of doing inotify watches?
<shadeslayer> I'm tempted to write something :3
weskinner_work has joined #crystal-lang
weskinner_work has quit [Ping timeout: 245 seconds]
waj has joined #crystal-lang
weskinner_mac has joined #crystal-lang
weskinner_mac has quit [Client Quit]
waj has quit [Quit: Leaving.]
weskinner_mac has joined #crystal-lang
weskinner_mac has quit [Quit: weskinner_mac]
weskinner_work has joined #crystal-lang
weskinner_work has quit [Ping timeout: 246 seconds]
ismaelga has quit [Ping timeout: 264 seconds]
bcardiff has quit [Quit: Leaving.]
weskinner_work has joined #crystal-lang
havenwood has quit []
weskinner_work has quit [Ping timeout: 265 seconds]
Ven has joined #crystal-lang
Ven has quit [Client Quit]
Ven has joined #crystal-lang
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ven has joined #crystal-lang
Ven has quit [Ping timeout: 272 seconds]
Ven has joined #crystal-lang
weskinner_work has joined #crystal-lang
weskinner_work has quit [Ping timeout: 245 seconds]
leafybasil has quit [Remote host closed the connection]
leafybasil has joined #crystal-lang
waj has joined #crystal-lang
shadeslayer has quit [Ping timeout: 252 seconds]
shadeslayer has joined #crystal-lang
weskinner_work has joined #crystal-lang
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
weskinner_work has quit [Ping timeout: 244 seconds]
Ven has joined #crystal-lang
waj has quit [Quit: Leaving.]
weskinner_mac has joined #crystal-lang
weskinner_mac has quit [Quit: weskinner_mac]
ponga has quit [Quit: Leaving...]
ponga has joined #crystal-lang
weskinner_work has joined #crystal-lang
weskinner_work has quit [Ping timeout: 246 seconds]
waj has joined #crystal-lang
AnxiousGarlic has joined #crystal-lang
AnxiousGarlic has quit [Excess Flood]
<crystal-gh> [crystal] asterite pushed 1 new commit to master: http://git.io/pBg7
<crystal-gh> crystal/master 85a5424 Ary Borenszweig: Fixed Array#dup wrong parameter
bcardiff has joined #crystal-lang
<travis-ci> manastech/crystal#2099 (evented - 88a2c3e : Ary Borenszweig): The build passed.
weskinner_work has joined #crystal-lang
bcardiff1 has joined #crystal-lang
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bcardiff has quit [Ping timeout: 250 seconds]
asterite has joined #crystal-lang
havenwood has joined #crystal-lang
Ven has joined #crystal-lang
asterite has quit [Quit: Leaving.]
<weskinner_work> jhass: just got done reading / comprehending irc/connection.cr and irc/workers.cr :)
<jhass> heh :P
<jhass> yeah, the connect method is way too long
<weskinner_work> I guess you could break the sasl stuff, signal setup, and message handlers into separate private methods
<jhass> yeah, that's the mid-term plan
<jhass> maybe I can also extract a class or two
asterite has joined #crystal-lang
<weskinner_work> about to dive into the thread/ classes :). Never done any multithreaded programming so should be a good learning experience.
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<jhass> yeah, I'm rather surprised I implemented the Queue apparently right from memory :P
shama has joined #crystal-lang
Ven has joined #crystal-lang
<asterite> weskinner_work: you can also try the evented branch and use spawn and channels instead of threads… but it depends on what you want to do
<weskinner_work> thanks asterite! I'm just studying jhass' DeBot code for learning but if I decide to write anything I'll check that out
<weskinner_work> is "spawn" supposed to be like a go func?
<weskinner_work> goroutine, I mean
<asterite> Yes
<asterite> Well, like go's `go`
<weskinner_work> cool
bcardiff has joined #crystal-lang
bcardiff1 has quit [Ping timeout: 246 seconds]
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bcardiff1 has joined #crystal-lang
bcardiff has quit [Ping timeout: 246 seconds]
Ven has joined #crystal-lang
weskinner_work has quit [Ping timeout: 250 seconds]
ismael__ has joined #crystal-lang
leafybasil has quit [Remote host closed the connection]
weskinner_work has joined #crystal-lang
bcardiff has joined #crystal-lang
bcardiff1 has quit [Ping timeout: 245 seconds]
ismael__ has left #crystal-lang [#crystal-lang]
weskinner_work has quit [Ping timeout: 256 seconds]
weskinner_work has joined #crystal-lang
waj1 has joined #crystal-lang
waj has quit [Ping timeout: 244 seconds]
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
waj has joined #crystal-lang
waj1 has quit [Ping timeout: 250 seconds]
asterite1 has joined #crystal-lang
asterite has quit [Ping timeout: 264 seconds]
bcardiff1 has joined #crystal-lang
bcardiff has quit [Ping timeout: 264 seconds]
shama has quit [Quit: (╯°□°)╯︵ɐɯɐɥs]
<ytti> regexp question
<ytti> how hard would it be to support arbitrary atom in regexp constructor
<ytti> we've accustomed regexp atom being character, but it's not always best atom to have
<ytti> one practical use-case that I know, is in BGP protocol AS_PATH matching
<ytti> which is array of integers, essentially
<ytti> it is never interesting to match part of the integer, it is, for this use-case, atom
<ytti> AS_PATH could be '65000 65000 65123'
<ytti> if i want to match one or more 65000
<ytti> i can simply say '65000+' if ASN is atom
<ytti> purely from algorithm POV, i don't think it is very relevant what is chosen to be atom, so it could be almost arbitrary definition
<ytti> but perhaps, as everyone is using PCRE or whatnot, coding support would mean producing all new library?
bcardiff has joined #crystal-lang
bcardiff1 has quit [Ping timeout: 255 seconds]
bcardiff has quit [Quit: Leaving.]
waj1 has joined #crystal-lang
waj has quit [Ping timeout: 252 seconds]
shama has joined #crystal-lang
asterite has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 1 new commit to master: http://git.io/puzB
<crystal-gh> crystal/master 85aa51f Ary Borenszweig: Added Array#select! and Array#reject!
asterite1 has quit [Ping timeout: 272 seconds]
<crystal-gh> [crystal] waj pushed 1 new commit to master: http://git.io/puaG
<crystal-gh> crystal/master 77cb8fc Juan Wajnerman: Merge branch 'evented'
<crystal-gh> [crystal] waj pushed 1 new commit to master: http://git.io/puad
<crystal-gh> crystal/master a66773b Juan Wajnerman: Removed some old stuff from travis.yml
<jhass> oO
<jhass> that far already? :P
<weskinner_work> damn!
leafybasil has joined #crystal-lang
<crystal-gh> [crystal] waj pushed 1 new commit to master: http://git.io/puXa
<crystal-gh> crystal/master 41ec648 Juan Wajnerman: Fix memory leaks with non detached (joined) threads
<asterite> We actually want to merge to push that forward and to force us to fix things if they don't work
<asterite> :)
<asterite> But specs already pass, so that's at least something
<asterite> samples/concurrent/primes.cr is fun :)
<travis-ci> manastech/crystal#2100 (master - 85aa51f : Ary Borenszweig): The build passed.
<travis-ci> manastech/crystal#2101 (master - 77cb8fc : Juan Wajnerman): The build passed.
Liothen has quit [Ping timeout: 252 seconds]
asterite1 has joined #crystal-lang
asterite has quit [Read error: Connection reset by peer]
Liothen has joined #crystal-lang
<travis-ci> manastech/crystal#2102 (master - a66773b : Juan Wajnerman): The build passed.
<weskinner_work> asterite: not seeing samples/concurrent/primtes.cr
<weskinner_work> primes.cr**
<travis-ci> manastech/crystal#2103 (master - 41ec648 : Juan Wajnerman): The build passed.
<asterite1> Mmm… it seems it's in my machine only :(
<jhass> there's channel_primes.cr
<crystal-gh> [crystal] Exilor opened pull request #470: Set#each should return self, not the internal hash (master...patch-1) http://git.io/puNH
<crystal-gh> [crystal] asterite closed pull request #470: Set#each should return self, not the internal hash (master...patch-1) http://git.io/puNH
<asterite1> weskinner_work: try samples/channel_primes.cr
<weskinner_work> reading it now :)
<crystal-gh> [crystal] waj pushed 1 new commit to master: http://git.io/puAr
<crystal-gh> crystal/master 3d1a164 Juan Wajnerman: Fix memory leak in SSL when the socket is not explicitly closed
<weskinner_work> I like the way this looks :D
<weskinner_work> this approach does seem a bit odd to me:
<weskinner_work> 30 ch1 = Channel(Int32).new
<weskinner_work> 31 run_filter(ch, ch1, prime)
<weskinner_work> 32 ch = ch1
<weskinner_work> why not just keep two channels around instead of creating a new one on every iteration?
<asterite1> Because this way it creates channels filtered by other channels and so on
<asterite1> It took me a lot of time to understand that example
waj has joined #crystal-lang
<weskinner_work> hmmm
waj1 has quit [Ping timeout: 255 seconds]
<travis-ci> manastech/crystal#2105 (master - 4da8068 : Ary Borenszweig): The build passed.
<travis-ci> manastech/crystal#2106 (master - 3d1a164 : Juan Wajnerman): The build passed.
<weskinner_work> ahh ok I see it's creating a lot of filters
<weskinner_work> was just thinking one generator and one filter
<weskinner_work> a filter for each prime
weskinner_work has quit [Ping timeout: 264 seconds]
<crystal-gh> [crystal] Exilor opened pull request #471: Added SimpleHash#to_s (master...patch-2) http://git.io/pzqE
waj has quit [Quit: Leaving.]
asterite1 has quit [Quit: Leaving.]
ponga has quit [Quit: Leaving...]
ponga has joined #crystal-lang
asterite has joined #crystal-lang
asterite1 has joined #crystal-lang
asterite has quit [Ping timeout: 265 seconds]
asterite has joined #crystal-lang
bcardiff has joined #crystal-lang
asterite1 has quit [Ping timeout: 264 seconds]
asterite1 has joined #crystal-lang
asterite1 has quit [Client Quit]
asterite has quit [Ping timeout: 244 seconds]