jhass changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.7.3 | 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
datanoise has joined #crystal-lang
<travis-ci> manastech/crystal#2512 (master - 4e60e2e : Ary Borenszweig): The build passed.
unshadow has quit [Ping timeout: 245 seconds]
unshadow has joined #crystal-lang
waj has joined #crystal-lang
bcardiff has joined #crystal-lang
havenwood has joined #crystal-lang
bcardiff has quit [Client Quit]
<crystal-gh> [crystal] asterite pushed 1 new commit to master: http://git.io/vLify
<crystal-gh> crystal/master e4f01b8 Ary Borenszweig: Flush on newline in write_btye
datanoise has quit [Ping timeout: 256 seconds]
bcardiff has joined #crystal-lang
bcardiff has quit [Client Quit]
bcardiff has joined #crystal-lang
<travis-ci> manastech/crystal#2517 (master - 487b6e1 : Ary Borenszweig): The build passed.
datanoise has joined #crystal-lang
<travis-ci> manastech/crystal#2519 (master - e4f01b8 : Ary Borenszweig): The build passed.
bcardiff has quit [Quit: Leaving.]
datanoise has quit [Ping timeout: 256 seconds]
<travis-ci> manastech/crystal#2518 (master - 6417eec : Ary Borenszweig): The build passed.
havenwood has quit [Ping timeout: 265 seconds]
<crystal-gh> [crystal] waj pushed 1 new commit to master: http://git.io/vLis5
<crystal-gh> crystal/master a889171 Juan Wajnerman: Push PCL context during GC
<travis-ci> manastech/crystal#2520 (master - a889171 : Juan Wajnerman): The build passed.
waj has quit [Quit: waj]
waj has joined #crystal-lang
havenwood has joined #crystal-lang
riceandbeans has joined #crystal-lang
<riceandbeans> yo
<riceandbeans> does crystal supporting sockets?
<riceandbeans> if I wanted to be crazy, could I write an IRC client in crystal?
<strcmp1> yes it supports sockets.
waj has quit [Quit: waj]
<riceandbeans> so how about an irc client
<riceandbeans> ho's with me?
riceandbeans has quit [Quit: Page closed]
BlaXpirit has joined #crystal-lang
ponga has joined #crystal-lang
wmoxam has quit [Ping timeout: 250 seconds]
pleiosaur has quit [Remote host closed the connection]
asbradbury has quit [Ping timeout: 256 seconds]
asbradbury has joined #crystal-lang
asbradbury has quit [Ping timeout: 250 seconds]
wmoxam has joined #crystal-lang
asbradbury has joined #crystal-lang
strcmp1 has quit [Ping timeout: 265 seconds]
strcmp1 has joined #crystal-lang
Codcore has joined #crystal-lang
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
pleiosaur has joined #crystal-lang
datanoise has joined #crystal-lang
datanoise has quit [Ping timeout: 272 seconds]
fowlduck has quit [Remote host closed the connection]
BlaXpirit has quit [Quit: Quit Konversation]
BlaXpirit has joined #crystal-lang
Ven has joined #crystal-lang
fowlduck has joined #crystal-lang
fowlduck has quit [Ping timeout: 264 seconds]
datanoise has joined #crystal-lang
<unshadow> >> require "SecureRandom"
<DeBot> unshadow: Error in line 4: while requiring "SecureRandom": can't find file 'SecureRandom' relative to '.' - http://carc.in/#/r/46e
<unshadow> >> require "securerandom"
<DeBot> unshadow: Error in line 4: while requiring "securerandom": can't find file 'securerandom' relative to '.' - http://carc.in/#/r/46f
<unshadow> >> require "secure-random"
<DeBot> unshadow: Error in line 4: while requiring "secure-random": can't find file 'secure-random' relative to '.' - http://carc.in/#/r/46g
<unshadow> >> require "secure_random"
<DeBot> unshadow: # => nil - http://carc.in/#/r/46h
datanoise has quit [Ping timeout: 265 seconds]
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ven has joined #crystal-lang
dhruv__ has joined #crystal-lang
<dhruv__> how do I block until a fiber is finished?
<dhruv__> I need something like Thread.waitFor in java
<strcmp1> what do you mean by 'block until finished' ? a fiber doesn't run in parallel you pass control between two codepaths.
<jhass> dhruv__: something like this? http://stackoverflow.com/a/30854065/2199687
<dhruv__> when I do spawn do puts "hello" end, the program exits without printing hello
<dhruv__> I need it to wait for the fiber to print hello before exiting the program
<strcmp1> read the link from jhass, but the answer below that :)
fowlduck has joined #crystal-lang
fowlduck has quit [Ping timeout: 244 seconds]
dhruv__ has quit [Quit: Leaving]
<jhass> uh, bye
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<unshadow> dhruv__ take a look at this: https://github.com/manastech/crystal/issues/802
<strcmp1> he left.
<unshadow> Oh :(
Ven has joined #crystal-lang
<strcmp1> the answer on SO explained the exact same solution though so i guess he didn't understand it, didn't like it, or just rude :P
<unshadow> strcmp1: I really liked the way asterite explained the spawn macro, so I thought maybe he could use that :)
<strcmp1> yeah his explanation is less noisy than the SO one but thats what you get for leaving irc :P
<unshadow> jhass: you need to add some kind of karma calculator to the bot, this way rude people can be tracked XD
<unshadow> !karam -1 dhruv__
<jhass> mmh, I actually have a karma bot...
<jhass> but pull requests welcome ;P
datanoise has joined #crystal-lang
<unshadow> What's faster (lighter_ to save cookies, inside an array as Strings or Bytes ?
<unshadow> I mean faster to search through later
<jhass> a hash?
<jhass> what do you mean by search through?
<unshadow> Lets say I have clients connecting, uppon auth I give them a cookie, (value = Base64.urlsafe_encode64(SecureRandom.random_bytes(128))) , then , I'll add the authnticated cookie to the cookie-jar @@cookie_jar << value, later, I'll want to check if the cookie is inside the jar
<jhass> a Set
<jhass> Set inclusion is O(1)
<jhass> since it's just a Hash where you don't have access to the values
<unshadow> @@cookie_jar = Set.new ; @@cookie_jer << value ; @@cookie_jar.include?(cookie)
<unshadow> Like that ?
<jhass> yeah
<unshadow> cool, thanks :)
<unshadow> !karma +1 jhass
<jhass> it's not here and it would be jhass++ :P
<unshadow> hahaha
<jhass> though I should make it parse nick +1, +1 nick and nick (ty|thank) too
<strcmp1> (ty|thank|thx|danke|gracias)*
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Codcore has quit [Ping timeout: 246 seconds]
Ven has joined #crystal-lang
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fowlduck has joined #crystal-lang
fowlduck has quit [Ping timeout: 256 seconds]
<crystal-gh> [crystal] asterite closed pull request #832: Little faster base64 encode (master...faster_encode) http://git.io/vLoAO
<unshadow> is there a way to purge and repull dpes ?
waj has joined #crystal-lang
<travis-ci> manastech/crystal#2521 (master - 1738c3a : Ary Borenszweig): The build passed.
NeverDie has joined #crystal-lang
ponga has quit []
ponga has joined #crystal-lang
fowlduck has joined #crystal-lang
datanoise has quit [Ping timeout: 255 seconds]
fowlduck has quit [Ping timeout: 265 seconds]
veelenga has joined #crystal-lang
datanoise has joined #crystal-lang
fowlduck has joined #crystal-lang
fowlduck has quit [Ping timeout: 265 seconds]
datanoise has quit [Ping timeout: 252 seconds]
daneb has joined #crystal-lang
daneb has quit [Remote host closed the connection]
strcmp1 has quit [Ping timeout: 276 seconds]
daneb has joined #crystal-lang
datanoise has joined #crystal-lang
daneb has quit [Remote host closed the connection]
daneb has joined #crystal-lang
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
<thor77> uh, crystal stole its string-fmt-syntax from elixir :O
daneb has quit [Remote host closed the connection]
benjreinhart has joined #crystal-lang
benjreinhart has quit [Client Quit]
daneb has joined #crystal-lang
<crystal-gh> [crystal] daneb closed pull request #831: Documenting of benchmark (master...db_benchmark_doc) http://git.io/vLrLk
asterite has joined #crystal-lang
<asterite> thor77: is that a joke? :)
<thor77> maybe, just noticed it
<asterite> what is it, the %d and %f?
fowlduck has joined #crystal-lang
<asterite> I found this, but looks like a library: https://github.com/parroty/exprintf
<thor77> no i meant "#{1+1}" works in crystal as well as in elixir
<thor77> (maybe str-fmt was the wrong word)
<asterite> Ah. That comes from Ruby. Elixir copied it from Ruby, like us
<thor77> uh never used ruby
<crystal-gh> [crystal] daneb opened pull request #833: Basic benchmark documentation (master...db_benchmark) http://git.io/vL1k4
<asterite> Jose valim, the creator of Elixir, is also a great Ruby programmer. He made devise
datanoise has quit [Ping timeout: 244 seconds]
fowlduck has quit [Ping timeout: 265 seconds]
<daneb> elixir is amazing ;) didn't know he wrote "devise".
<daneb> think most people get a kick out of it, as it reduces the "steep" functional programming learning curve...
<daneb> asterite, did you create crystal out of a need or a hobby?
daneb has quit [Remote host closed the connection]
daneb has joined #crystal-lang
daneb has quit [Remote host closed the connection]
daneb has joined #crystal-lang
daneb has quit [Remote host closed the connection]
BlaXpirit_ has joined #crystal-lang
BlaXpirit has quit [Killed (hobana.freenode.net (Nickname regained by services))]
BlaXpirit_ is now known as BlaXpirit
ponga has quit [Quit: Connection closed for inactivity]
fowlduck has joined #crystal-lang
waj has quit [*.net *.split]
lokulin has quit [*.net *.split]
ytti has quit [*.net *.split]
fowlduck has quit [Ping timeout: 256 seconds]
waj has joined #crystal-lang
datanoise has joined #crystal-lang
lokulin_ has joined #crystal-lang
ytti has joined #crystal-lang
Codcore has joined #crystal-lang
jtarchie has quit [*.net *.split]
genixefr has quit [*.net *.split]
flaviu has quit [Read error: Connection reset by peer]
<Codcore> is it somehting like string=<<END lines, lines END in crystal?
<Codcore> i mean HEREDOC syntax?
<jhass> yeah, I think the - is mandatory
<Codcore> jhass, you did good as always ;) Thanks!
genixefr has joined #crystal-lang
unshadow_ has joined #crystal-lang
badeball_ has joined #crystal-lang
jtarchie has joined #crystal-lang
unshadow has quit [*.net *.split]
emmanueloga has quit [*.net *.split]
n1ftyn8 has quit [*.net *.split]
badeball has quit [*.net *.split]
kgadek has quit [*.net *.split]
hplar has quit [*.net *.split]
hplar has joined #crystal-lang
BlaXpirit_ has joined #crystal-lang
BlaXpirit has quit [Killed (verne.freenode.net (Nickname regained by services))]
BlaXpirit_ is now known as BlaXpirit
badeball has joined #crystal-lang
n1ftyn8 has joined #crystal-lang
datanoise has quit [Ping timeout: 272 seconds]
endou__________ has joined #crystal-lang
jtarchie has quit [*.net *.split]
badeball_ has quit [*.net *.split]
havenwood has quit [*.net *.split]
endou_________ has quit [*.net *.split]
zz_Cidan has quit [Ping timeout: 244 seconds]
unshadow_ has quit [Ping timeout: 244 seconds]
zz_Cidan has joined #crystal-lang
zz_Cidan is now known as Cidan
Cidan has quit [Changing host]
Cidan has joined #crystal-lang
waj has quit [Ping timeout: 246 seconds]
unshadow has joined #crystal-lang
waj has joined #crystal-lang
emmanueloga has joined #crystal-lang
asterite has quit [Quit: Page closed]
dom96 has quit [Ping timeout: 264 seconds]
dom96 has joined #crystal-lang
waj has quit [Quit: waj]
[epitron] has joined #crystal-lang
epitron has quit [Ping timeout: 255 seconds]
qb has quit [Ping timeout: 246 seconds]
qo has joined #crystal-lang
Codcore has quit [Ping timeout: 246 seconds]
qo is now known as qb
datanoise has joined #crystal-lang
hplar has quit [Ping timeout: 246 seconds]
fowlduck has joined #crystal-lang
fowlduck has quit [Ping timeout: 264 seconds]
datanoise has quit [Ping timeout: 276 seconds]
NeverDie has joined #crystal-lang
kgadek has joined #crystal-lang
waj has joined #crystal-lang
waj has quit [Quit: waj]
[epitron] has joined #crystal-lang
[epitron] has quit [Changing host]
[epitron] is now known as epitron
waj has joined #crystal-lang
waj has quit [Client Quit]
veelenga has quit [Ping timeout: 246 seconds]
BlaXpirit has quit [Quit: Quit Konversation]
fowlduck has joined #crystal-lang
fowlduck has quit [Ping timeout: 246 seconds]
datanoise has joined #crystal-lang
strcmp1 has joined #crystal-lang
waj has joined #crystal-lang
waj has quit [Client Quit]
wmoxam has quit [Remote host closed the connection]
hplar has joined #crystal-lang
wmoxam has joined #crystal-lang