00:48
datanoise has joined #crystal-lang
01:03
<
travis-ci >
manastech/crystal#2512 (master - 4e60e2e : Ary Borenszweig): The build passed.
01:22
unshadow has quit [Ping timeout: 245 seconds]
01:24
unshadow has joined #crystal-lang
01:30
waj has joined #crystal-lang
01:31
bcardiff has joined #crystal-lang
01:33
havenwood has joined #crystal-lang
01:34
bcardiff has quit [Client Quit]
01:38
<
crystal-gh >
crystal/master e4f01b8 Ary Borenszweig: Flush on newline in write_btye
02:22
datanoise has quit [Ping timeout: 256 seconds]
02:36
bcardiff has joined #crystal-lang
02:40
bcardiff has quit [Client Quit]
02:43
bcardiff has joined #crystal-lang
02:43
<
travis-ci >
manastech/crystal#2517 (master - 487b6e1 : Ary Borenszweig): The build passed.
02:48
datanoise has joined #crystal-lang
02:49
<
travis-ci >
manastech/crystal#2519 (master - e4f01b8 : Ary Borenszweig): The build passed.
02:56
bcardiff has quit [Quit: Leaving.]
02:58
datanoise has quit [Ping timeout: 256 seconds]
03:11
<
travis-ci >
manastech/crystal#2518 (master - 6417eec : Ary Borenszweig): The build passed.
03:17
havenwood has quit [Ping timeout: 265 seconds]
03:36
<
crystal-gh >
crystal/master a889171 Juan Wajnerman: Push PCL context during GC
03:48
<
travis-ci >
manastech/crystal#2520 (master - a889171 : Juan Wajnerman): The build passed.
03:54
waj has quit [Quit: waj]
04:14
waj has joined #crystal-lang
04:51
havenwood has joined #crystal-lang
05:59
riceandbeans has joined #crystal-lang
05:59
<
riceandbeans >
does crystal supporting sockets?
05:59
<
riceandbeans >
if I wanted to be crazy, could I write an IRC client in crystal?
06:11
<
strcmp1 >
yes it supports sockets.
06:14
waj has quit [Quit: waj]
06:22
<
riceandbeans >
so how about an irc client
06:23
<
riceandbeans >
ho's with me?
06:50
riceandbeans has quit [Quit: Page closed]
07:00
BlaXpirit has joined #crystal-lang
07:10
ponga has joined #crystal-lang
07:55
wmoxam has quit [Ping timeout: 250 seconds]
07:56
pleiosaur has quit [Remote host closed the connection]
07:57
asbradbury has quit [Ping timeout: 256 seconds]
07:59
asbradbury has joined #crystal-lang
08:04
asbradbury has quit [Ping timeout: 250 seconds]
08:04
wmoxam has joined #crystal-lang
08:04
asbradbury has joined #crystal-lang
08:25
strcmp1 has quit [Ping timeout: 265 seconds]
08:29
strcmp1 has joined #crystal-lang
08:33
Codcore has joined #crystal-lang
09:35
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
10:02
pleiosaur has joined #crystal-lang
10:06
datanoise has joined #crystal-lang
10:11
datanoise has quit [Ping timeout: 272 seconds]
10:41
fowlduck has quit [Remote host closed the connection]
10:48
BlaXpirit has quit [Quit: Quit Konversation]
10:50
BlaXpirit has joined #crystal-lang
11:15
Ven has joined #crystal-lang
11:42
fowlduck has joined #crystal-lang
11:47
fowlduck has quit [Ping timeout: 264 seconds]
11:55
datanoise has joined #crystal-lang
11:58
<
unshadow >
>> require "SecureRandom"
11:58
<
DeBot >
unshadow: Error in line 4: while requiring "SecureRandom": can't find file 'SecureRandom' relative to '.' -
http://carc.in/#/r/46e
11:59
<
unshadow >
>> require "securerandom"
11:59
<
DeBot >
unshadow: Error in line 4: while requiring "securerandom": can't find file 'securerandom' relative to '.' -
http://carc.in/#/r/46f
11:59
<
unshadow >
>> require "secure-random"
11:59
<
DeBot >
unshadow: Error in line 4: while requiring "secure-random": can't find file 'secure-random' relative to '.' -
http://carc.in/#/r/46g
11:59
<
unshadow >
>> require "secure_random"
11:59
datanoise has quit [Ping timeout: 265 seconds]
12:06
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
12:24
Ven has joined #crystal-lang
12:29
dhruv__ has joined #crystal-lang
12:30
<
dhruv__ >
how do I block until a fiber is finished?
12:31
<
dhruv__ >
I need something like Thread.waitFor in java
12:32
<
strcmp1 >
what do you mean by 'block until finished' ? a fiber doesn't run in parallel you pass control between two codepaths.
12:39
<
dhruv__ >
when I do spawn do puts "hello" end, the program exits without printing hello
12:40
<
dhruv__ >
I need it to wait for the fiber to print hello before exiting the program
12:41
<
strcmp1 >
read the link from jhass, but the answer below that :)
12:43
fowlduck has joined #crystal-lang
12:47
fowlduck has quit [Ping timeout: 244 seconds]
12:49
dhruv__ has quit [Quit: Leaving]
12:53
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
12:53
Ven has joined #crystal-lang
12:54
<
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
12:55
<
unshadow >
strcmp1: I really liked the way asterite explained the spawn macro, so I thought maybe he could use that :)
12:57
<
strcmp1 >
yeah his explanation is less noisy than the SO one but thats what you get for leaving irc :P
12:58
<
unshadow >
jhass: you need to add some kind of karma calculator to the bot, this way rude people can be tracked XD
12:58
<
unshadow >
!karam -1 dhruv__
12:59
<
jhass >
mmh, I actually have a karma bot...
12:59
<
jhass >
but pull requests welcome ;P
13:03
datanoise has joined #crystal-lang
13:14
<
unshadow >
What's faster (lighter_ to save cookies, inside an array as Strings or Bytes ?
13:15
<
unshadow >
I mean faster to search through later
13:16
<
jhass >
what do you mean by search through?
13:19
<
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
13:19
<
jhass >
Set inclusion is O(1)
13:19
<
jhass >
since it's just a Hash where you don't have access to the values
13:21
<
unshadow >
@@cookie_jar = Set.new ; @@cookie_jer << value ; @@cookie_jar.include?(cookie)
13:21
<
unshadow >
Like that ?
13:21
<
unshadow >
cool, thanks :)
13:21
<
unshadow >
!karma +1 jhass
13:22
<
jhass >
it's not here and it would be jhass++ :P
13:23
<
jhass >
though I should make it parse nick +1, +1 nick and nick (ty|thank) too
13:26
<
strcmp1 >
(ty|thank|thx|danke|gracias)*
14:04
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
14:19
Codcore has quit [Ping timeout: 246 seconds]
14:21
Ven has joined #crystal-lang
14:27
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
14:32
fowlduck has joined #crystal-lang
14:36
fowlduck has quit [Ping timeout: 256 seconds]
14:50
<
crystal-gh >
[crystal] asterite closed pull request #832: Little faster base64 encode (master...faster_encode)
http://git.io/vLoAO
14:51
<
unshadow >
is there a way to purge and repull dpes ?
14:55
waj has joined #crystal-lang
15:02
<
travis-ci >
manastech/crystal#2521 (master - 1738c3a : Ary Borenszweig): The build passed.
15:47
NeverDie has joined #crystal-lang
16:19
ponga has joined #crystal-lang
16:20
fowlduck has joined #crystal-lang
16:24
datanoise has quit [Ping timeout: 255 seconds]
16:25
fowlduck has quit [Ping timeout: 265 seconds]
16:41
veelenga has joined #crystal-lang
17:21
datanoise has joined #crystal-lang
17:21
fowlduck has joined #crystal-lang
17:26
fowlduck has quit [Ping timeout: 265 seconds]
17:26
datanoise has quit [Ping timeout: 252 seconds]
17:34
daneb has joined #crystal-lang
17:38
daneb has quit [Remote host closed the connection]
17:42
strcmp1 has quit [Ping timeout: 276 seconds]
17:44
daneb has joined #crystal-lang
17:48
datanoise has joined #crystal-lang
18:35
daneb has quit [Remote host closed the connection]
18:36
daneb has joined #crystal-lang
18:39
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
18:46
<
thor77 >
uh, crystal stole its string-fmt-syntax from elixir :O
18:48
daneb has quit [Remote host closed the connection]
18:50
benjreinhart has joined #crystal-lang
18:53
benjreinhart has quit [Client Quit]
18:56
daneb has joined #crystal-lang
18:59
<
crystal-gh >
[crystal] daneb closed pull request #831: Documenting of benchmark (master...db_benchmark_doc)
http://git.io/vLrLk
19:07
asterite has joined #crystal-lang
19:07
<
asterite >
thor77: is that a joke? :)
19:09
<
thor77 >
maybe, just noticed it
19:10
<
asterite >
what is it, the %d and %f?
19:10
fowlduck has joined #crystal-lang
19:11
<
thor77 >
no i meant "#{1+1}" works in crystal as well as in elixir
19:11
<
thor77 >
(maybe str-fmt was the wrong word)
19:11
<
asterite >
Ah. That comes from Ruby. Elixir copied it from Ruby, like us
19:11
<
thor77 >
uh never used ruby
19:12
<
crystal-gh >
[crystal] daneb opened pull request #833: Basic benchmark documentation (master...db_benchmark)
http://git.io/vL1k4
19:12
<
asterite >
Jose valim, the creator of Elixir, is also a great Ruby programmer. He made devise
19:14
datanoise has quit [Ping timeout: 244 seconds]
19:14
fowlduck has quit [Ping timeout: 265 seconds]
19:21
<
daneb >
elixir is amazing ;) didn't know he wrote "devise".
19:26
<
daneb >
think most people get a kick out of it, as it reduces the "steep" functional programming learning curve...
19:28
<
daneb >
asterite, did you create crystal out of a need or a hobby?
19:44
daneb has quit [Remote host closed the connection]
19:44
daneb has joined #crystal-lang
19:47
daneb has quit [Remote host closed the connection]
19:53
daneb has joined #crystal-lang
19:54
daneb has quit [Remote host closed the connection]
20:06
BlaXpirit_ has joined #crystal-lang
20:06
BlaXpirit has quit [Killed (hobana.freenode.net (Nickname regained by services))]
20:06
BlaXpirit_ is now known as BlaXpirit
20:10
ponga has quit [Quit: Connection closed for inactivity]
20:10
fowlduck has joined #crystal-lang
20:14
waj has quit [*.net *.split]
20:14
lokulin has quit [*.net *.split]
20:14
ytti has quit [*.net *.split]
20:15
fowlduck has quit [Ping timeout: 256 seconds]
20:20
waj has joined #crystal-lang
20:21
datanoise has joined #crystal-lang
20:22
lokulin_ has joined #crystal-lang
20:24
ytti has joined #crystal-lang
20:28
Codcore has joined #crystal-lang
20:29
jtarchie has quit [*.net *.split]
20:29
genixefr has quit [*.net *.split]
20:31
flaviu has quit [Read error: Connection reset by peer]
20:32
<
Codcore >
is it somehting like string=<<END lines, lines END in crystal?
20:32
<
Codcore >
i mean HEREDOC syntax?
20:35
<
jhass >
yeah, I think the - is mandatory
20:37
<
Codcore >
jhass, you did good as always ;) Thanks!
20:38
genixefr has joined #crystal-lang
20:38
unshadow_ has joined #crystal-lang
20:38
badeball_ has joined #crystal-lang
20:40
jtarchie has joined #crystal-lang
20:48
unshadow has quit [*.net *.split]
20:48
emmanueloga has quit [*.net *.split]
20:48
n1ftyn8 has quit [*.net *.split]
20:48
badeball has quit [*.net *.split]
20:48
kgadek has quit [*.net *.split]
20:48
hplar has quit [*.net *.split]
20:49
hplar has joined #crystal-lang
20:52
BlaXpirit_ has joined #crystal-lang
20:52
BlaXpirit has quit [Killed (verne.freenode.net (Nickname regained by services))]
20:52
BlaXpirit_ is now known as BlaXpirit
20:53
badeball has joined #crystal-lang
20:55
n1ftyn8 has joined #crystal-lang
20:55
datanoise has quit [Ping timeout: 272 seconds]
20:58
endou__________ has joined #crystal-lang
20:59
jtarchie has quit [*.net *.split]
20:59
badeball_ has quit [*.net *.split]
20:59
havenwood has quit [*.net *.split]
20:59
endou_________ has quit [*.net *.split]
21:01
zz_Cidan has quit [Ping timeout: 244 seconds]
21:01
unshadow_ has quit [Ping timeout: 244 seconds]
21:02
zz_Cidan has joined #crystal-lang
21:02
zz_Cidan is now known as Cidan
21:02
Cidan has quit [Changing host]
21:02
Cidan has joined #crystal-lang
21:06
waj has quit [Ping timeout: 246 seconds]
21:09
unshadow has joined #crystal-lang
21:09
waj has joined #crystal-lang
21:12
emmanueloga has joined #crystal-lang
21:17
asterite has quit [Quit: Page closed]
21:20
dom96 has quit [Ping timeout: 264 seconds]
21:22
dom96 has joined #crystal-lang
21:31
waj has quit [Quit: waj]
21:34
[epitron] has joined #crystal-lang
21:38
epitron has quit [Ping timeout: 255 seconds]
21:48
qb has quit [Ping timeout: 246 seconds]
21:48
qo has joined #crystal-lang
21:48
Codcore has quit [Ping timeout: 246 seconds]
21:49
qo is now known as qb
21:52
datanoise has joined #crystal-lang
21:52
hplar has quit [Ping timeout: 246 seconds]
21:59
fowlduck has joined #crystal-lang
22:04
fowlduck has quit [Ping timeout: 264 seconds]
22:14
datanoise has quit [Ping timeout: 276 seconds]
22:17
NeverDie has joined #crystal-lang
22:20
kgadek has joined #crystal-lang
22:24
waj has joined #crystal-lang
22:36
waj has quit [Quit: waj]
22:56
[epitron] has joined #crystal-lang
22:56
[epitron] has quit [Changing host]
22:57
[epitron] is now known as epitron
23:00
waj has joined #crystal-lang
23:05
waj has quit [Client Quit]
23:06
veelenga has quit [Ping timeout: 246 seconds]
23:06
BlaXpirit has quit [Quit: Quit Konversation]
23:15
fowlduck has joined #crystal-lang
23:20
fowlduck has quit [Ping timeout: 246 seconds]
23:20
datanoise has joined #crystal-lang
23:21
strcmp1 has joined #crystal-lang
23:23
waj has joined #crystal-lang
23:24
waj has quit [Client Quit]
23:44
wmoxam has quit [Remote host closed the connection]
23:50
hplar has joined #crystal-lang
23:55
wmoxam has joined #crystal-lang