00:00
ismaelga has joined #crystal-lang
00:03
havenwood has quit []
00:21
<
a5i >
>> a = "hello world"; a.index("l", 3)
00:27
ismaelga has quit [Remote host closed the connection]
00:46
Cassyblanca has joined #crystal-lang
00:49
<
crystal-gh >
crystal/master 890aa44 Ary Borenszweig: Fixed: new concurrent sleep didn't work with float
00:49
<
crystal-gh >
crystal/master fd365f8 Ary Borenszweig: Fixed: Number#step didn't allow type change. And don't create an unnecessary number union
00:49
<
crystal-gh >
crystal/master 2adc0dd Ary Borenszweig: Use CC environment variable if available. Fixes #525
00:50
<
a5i >
Parsgin JSON same was as ruby?
00:51
Cassyblanca has left #crystal-lang [#crystal-lang]
00:52
ponga has joined #crystal-lang
00:53
ponga has quit [Client Quit]
00:55
havenwood has joined #crystal-lang
00:56
<
a5i >
>> a = {foo: 1, :bar => 2, "baz" => 3, {1.0 => 2} => 4} a[foo]
00:56
<
DeBot >
a5i: Syntax error in eval:3: unexpected token: a
00:56
<
a5i >
>> a = {foo: 1, :bar => 2, "baz" => 3, {1.0 => 2} => 4}; a[foo]
00:56
<
DeBot >
a5i: Error in line 3: undefined local variable or method 'foo'
00:56
<
a5i >
>> a = {foo: 1, :bar => 2, "baz" => 3, {1.0 => 2} => 4}; a["foo"]
00:56
<
DeBot >
a5i: MissingKey: Missing hash value: foo
00:56
<
a5i >
>> a = {foo: 1, :bar => 2, "baz" => 3, {1.0 => 2} => 4}; a["baz"]
00:58
<
travis-ci >
manastech/crystal#2209 (master - 2adc0dd : Ary Borenszweig): The build passed.
01:00
<
a5i >
the keys are fake
01:04
weskinner_work has joined #crystal-lang
01:04
ponga has joined #crystal-lang
01:07
ponga has quit [Client Quit]
01:09
weskinner_work has quit [Ping timeout: 264 seconds]
01:18
<
a5i >
This literally makes no sense, It's not a Nil yet it is a nil.. any thoughts @ jhass?
01:37
k2b6s9j has joined #crystal-lang
01:40
k2b6s9j has quit [Client Quit]
01:57
havenwood has quit []
02:01
aemadrid has joined #crystal-lang
02:01
aemadrid has quit [Client Quit]
02:05
havenwood has joined #crystal-lang
02:07
ponga has joined #crystal-lang
02:18
ponga has quit [Remote host closed the connection]
02:36
k2b6s9j has joined #crystal-lang
03:05
ponga has joined #crystal-lang
04:16
JuryBatenko has joined #crystal-lang
05:13
a5i has quit [Quit: Connection closed for inactivity]
05:29
ponga has quit [Quit: Leaving...]
05:30
colorisco has joined #crystal-lang
06:47
k2b6s9j has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
07:04
Ven has joined #crystal-lang
08:14
JuryBatenko has quit [Quit: Computer has gone to sleep.]
08:16
ponga has joined #crystal-lang
08:19
havenwood has quit [Remote host closed the connection]
08:29
ponga has quit [Remote host closed the connection]
08:30
ponga has joined #crystal-lang
08:39
ponga has quit [Ping timeout: 272 seconds]
08:50
leafybasil has quit [Remote host closed the connection]
08:55
ponga has joined #crystal-lang
09:04
ponga has quit [Remote host closed the connection]
09:05
ponga has joined #crystal-lang
09:08
leafybasil has joined #crystal-lang
09:14
ponga has quit [Ping timeout: 264 seconds]
09:55
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
09:59
ponga has joined #crystal-lang
10:23
leafybas_ has joined #crystal-lang
10:27
leafybasil has quit [Ping timeout: 250 seconds]
10:39
Ven has joined #crystal-lang
10:43
canhtak has joined #crystal-lang
10:55
a5i has joined #crystal-lang
11:12
canhtak has quit [Quit: canhtak]
11:24
leafybas_ has quit [Remote host closed the connection]
11:25
leafybasil has joined #crystal-lang
11:33
canhtak has joined #crystal-lang
11:39
ponga has quit [Remote host closed the connection]
11:39
ponga has joined #crystal-lang
12:04
JuryBatenko has joined #crystal-lang
12:22
ismaelga has joined #crystal-lang
12:22
ismaelga has quit [Client Quit]
13:18
colorisco2 has joined #crystal-lang
13:19
colorisco has quit [Read error: Connection reset by peer]
13:22
colorisco2 has quit [Ping timeout: 244 seconds]
13:31
canhtak has quit [Quit: canhtak]
13:32
canhtak has joined #crystal-lang
13:35
colorisco has joined #crystal-lang
13:38
havenwood has joined #crystal-lang
13:54
bcardiff has joined #crystal-lang
13:58
canhtak has quit [Quit: canhtak]
13:59
canhtak has joined #crystal-lang
14:13
canhtak has quit [Ping timeout: 256 seconds]
14:16
weskinner_work has joined #crystal-lang
14:17
canhtak has joined #crystal-lang
14:21
canhtak has quit [Ping timeout: 246 seconds]
14:23
canhtak has joined #crystal-lang
14:55
asterite has joined #crystal-lang
15:01
asterite has quit [Ping timeout: 246 seconds]
15:29
canhtak has quit [Quit: canhtak]
15:41
canhtak has joined #crystal-lang
15:50
canhtak has quit [Quit: canhtak]
15:56
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
16:04
ponga has quit [Remote host closed the connection]
16:20
<
a5i >
How do I use colorize with Crystal?
16:29
<
bcardiff >
you beat me :-P I was going to suggest
16:29
<
bcardiff >
with_color.green.surround(io) do
16:29
<
bcardiff >
io << "Hulk"
16:32
canhtak has joined #crystal-lang
16:45
leafybas_ has joined #crystal-lang
16:46
leafybas_ has quit [Remote host closed the connection]
16:48
asterite has joined #crystal-lang
16:48
<
asterite >
bcardiff: it's simpler than that
16:48
<
asterite >
>> require "colorize"; puts "hello".colorize.red
16:48
<
DeBot >
asterite: [31mhello
16:49
<
asterite >
>> require "colorize"; with_color.green.surround(STDOUT) { STDOUT.puts "hello" }
16:49
<
DeBot >
asterite: [32mhello
16:49
leafybasil has quit [Ping timeout: 252 seconds]
16:50
<
crystal-gh >
crystal/master af236e8 Ary Borenszweig: Attach the GC finalizer after an object was fully initialized, not before it
16:50
<
crystal-gh >
crystal/master 784d459 Ary Borenszweig: Fixed: C unions to_s/inspect was broken. Fixes #527
16:50
<
colorisco >
does crystal have something like to roda or hobbit?
16:51
<
colorisco >
microframework for web api?
16:52
<
asterite >
colorisco: Crystal is too young, there are no frameworks for it yet
16:52
<
asterite >
(read: very incomplete)
16:53
<
a5i >
asterite: you should rename it Quartz
16:53
<
a5i >
or some other specific crystal
16:53
<
jhass >
no, the other guy should rename
16:54
<
asterite >
a5i: you mean frank?
16:54
<
a5i >
asterite: yeah
16:55
<
colorisco >
hobit has 4 files
16:55
<
asterite >
But how many lines in those 4 files? :-)
16:55
<
colorisco >
its not difficult write similar lib for guys like you
16:56
shama has joined #crystal-lang
16:57
<
asterite >
colorisco: you are right, but it takes time. Also, even if we have a minimalist web framework, you would still need view templates (we have something very small convering that), DB, and other things, I guess
16:57
<
a5i >
jhass: That's the lib, Im talking about renmaing Frank, not Crystak
16:57
<
asterite >
a5i: what's wrong with frank?
16:58
<
a5i >
Idk, It's a generic first name and I think it deserves a better name :P
16:58
<
a5i >
thats just my opinion
16:58
<
colorisco >
asterite, is possible work with postgre?
16:58
<
asterite >
a5i: but you do know why we chose that name, right? (well, waj chose it)
16:59
<
asterite >
colorisco: no bindings for postgres yet
16:59
<
a5i >
asterite: Yeah from Sinatra you put his first name, then again this is just my opinon
17:00
canhtak has quit [Quit: canhtak]
17:00
<
travis-ci >
manastech/crystal#2210 (master - 784d459 : Ary Borenszweig): The build was broken.
17:20
mah has joined #crystal-lang
17:20
asterite has quit [Ping timeout: 246 seconds]
17:29
mah has quit [Quit: Page closed]
18:02
ic5y has joined #crystal-lang
18:08
jua_ has joined #crystal-lang
18:13
k2b6s9j has joined #crystal-lang
18:20
ponga has joined #crystal-lang
18:27
ponga has quit [Ping timeout: 240 seconds]
18:28
k2b6s9j has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
18:43
<
ic5y >
anyone tried to build crystal for win?
18:47
<
jhass >
we have a guy here working on porting it to windows
18:48
<
ic5y >
i found the branch, just got some linker error, and dont know how to solve it
18:49
<
jhass >
then you'll have to stick around until wanderer returns ;)
18:49
<
ic5y >
okay, i try to solve it until he returns
19:05
ic5y has quit [Quit: Page closed]
19:13
havenwood has quit []
19:29
markhend has joined #crystal-lang
19:34
<
markhend >
num % (num+x) seems to work but not same expression w/o a space after '%'. e.g. num%(num+x).
19:34
<
markhend >
Is this a known issue?
19:38
<
jhass >
no, first time I hear it, feel free to open an issue :)
19:41
k2b6s9j has joined #crystal-lang
19:50
<
a5i >
Think I'm gonna start some crystal tutorials
20:03
asterite has joined #crystal-lang
20:03
<
asterite >
jhass: Maybe you know this... why Enumerable#select without a block returns an Enumerator?
20:04
<
jhass >
consistency
20:04
<
jhass >
I think all of them do
20:04
<
asterite >
But [1, 2, 3].each, [1, 2, 3].select and [1, 2, 3].map are just the same?
20:05
<
jhass >
yeah, looks like it
20:05
<
asterite >
Weird... I don't think we'll do that in Crystal
20:05
<
jhass >
I wouldn't have an issue with not returning an Enumerator for these
20:05
<
jhass >
oh, actually
20:05
<
jhass >
it's for .select.with_index
20:05
<
jhass >
and the like
20:06
<
a5i >
I like how you can make Ruby as verbose as you like
20:06
<
a5i >
accepting little things from other languages
20:07
<
jhass >
asterite: ^
20:07
<
asterite >
jhass: I see... I wonder how that works
20:10
<
asterite >
In crystal you can do
20:10
<
asterite >
>> require "iterator"; [10, 20, 30].iterator.with_index.map { |tuple| "Value: #{tuple[0]}, Index: #{tuple[1]}" }.to_a
20:10
<
DeBot >
asterite: ["Value: 10, Index: 0", "Value: 20, Index: 1", "Value: 30, Index: 2"]
20:10
<
asterite >
I think I'll rename "iterator" to "each" and make iterator always required
20:10
<
asterite >
so you can do: [1, 2, 3].each_with_index.map { ... }
20:10
<
asterite >
And, unlike ruby, once you go into an iterator, that will always be lazy until you enumerate it with each, or call to_a, sum, etc.
20:11
<
asterite >
I meant [1, 2, 3].each.with_index.map, but I guess [1, 2, 3].each_with_index will also be avaialble
20:16
k2b6s9j has quit [Ping timeout: 264 seconds]
20:25
colorisco has quit [Ping timeout: 246 seconds]
20:33
havenwood has joined #crystal-lang
20:39
JuryBatenko has quit [Quit: Computer has gone to sleep.]
20:47
bcardiff has quit [Quit: Leaving.]
20:57
leafybasil has joined #crystal-lang
21:27
havenwood has quit [Ping timeout: 250 seconds]
21:49
havenwood has joined #crystal-lang
21:54
asterite has quit [Ping timeout: 246 seconds]
22:01
saml has quit [Quit: Leaving]
22:07
k2b6s9j has joined #crystal-lang
22:12
jua_ has quit [Quit: Vision[0.9.7-H-20140108]: i've been blurred!]
22:18
k2b6s9j has quit [Remote host closed the connection]
22:24
weskinner_work has quit [Ping timeout: 256 seconds]
22:30
markhend has quit [Ping timeout: 246 seconds]
22:37
canhtak has joined #crystal-lang
22:45
bcardiff has joined #crystal-lang
22:46
bcardiff has quit [Client Quit]
22:55
bcardiff has joined #crystal-lang
23:12
ponga has joined #crystal-lang
23:16
canhtak has quit [Quit: canhtak]
23:34
bcardiff has quit [Quit: Leaving.]
23:40
ponga has quit [Remote host closed the connection]
23:48
ponga has joined #crystal-lang
23:53
a5i has quit [Quit: Connection closed for inactivity]
23:57
weskinner_work has joined #crystal-lang