00:10
c355E3B has quit [Quit: Leaving]
00:14
bcardiff has quit [Quit: Leaving.]
00:16
ponga has quit [Remote host closed the connection]
00:22
donmelton has left #crystal-lang [#crystal-lang]
00:52
donmelton has joined #crystal-lang
01:00
ponga has joined #crystal-lang
01:00
donmelton has joined #crystal-lang
02:12
donmelton has joined #crystal-lang
02:45
markhend has joined #crystal-lang
02:47
markhend has quit [Client Quit]
02:51
donmelton has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
02:53
donmelton has joined #crystal-lang
04:14
ponga has quit [Remote host closed the connection]
04:14
ponga has joined #crystal-lang
04:23
colorisco has quit [Ping timeout: 248 seconds]
04:38
colorisco has joined #crystal-lang
05:48
panga has joined #crystal-lang
05:49
panga is now known as ponga
05:52
orliesau- has joined #crystal-lang
05:53
colorisco has quit [*.net *.split]
05:53
orliesaurus has quit [*.net *.split]
06:00
colorisco has joined #crystal-lang
06:09
colorisco has quit [Ping timeout: 256 seconds]
06:22
colorisco has joined #crystal-lang
06:54
ponga has quit [Quit: Leaving...]
06:54
ponga has joined #crystal-lang
07:06
JBat has joined #crystal-lang
07:30
JBat has quit [Quit: Computer has gone to sleep.]
08:04
DeBot has quit [Remote host closed the connection]
08:04
jhass has quit [Read error: Connection reset by peer]
08:28
jhass has joined #crystal-lang
08:31
jua_ has joined #crystal-lang
08:39
JBat has joined #crystal-lang
08:47
DeBot has joined #crystal-lang
09:00
ponga has quit [Quit: Leaving...]
09:03
canhtak has joined #crystal-lang
09:18
canhtak has quit [Quit: canhtak]
09:31
ponga has joined #crystal-lang
09:32
ponga has quit [Client Quit]
10:01
waterlink has joined #crystal-lang
10:01
<
waterlink >
Just got this, when running on Ubuntu 14.04:
10:01
<
waterlink >
Using compiled compiler at .build/crystal
10:01
<
waterlink >
.crystal/spec/main.o: In function `__crystal_main':
10:01
<
waterlink >
main_module:(.text+0x623): undefined reference to `GC_get_push_other_roots'
10:01
<
waterlink >
main_module:(.text+0x689): undefined reference to `GC_set_push_other_roots'
10:01
<
waterlink >
main_module:(.text+0x68e): undefined reference to `co_thread_init'
10:01
<
waterlink >
.crystal/spec/Fiber.o: In function `*Fiber#initialize<Fiber>:Fiber':
10:01
<
waterlink >
Fiber:(.text+0x163): undefined reference to `co_set_data'
10:01
<
waterlink >
.crystal/spec/Fiber.o: In function `*Fiber#initialize<Fiber, &( -> Void)>:Fiber':
10:01
<
waterlink >
Fiber:(.text+0x331): undefined reference to `co_set_data'
10:01
<
waterlink >
.crystal/spec/Fiber.o: In function `*Fiber::current:Fiber':
10:01
<
waterlink >
Fiber:(.text+0x6cd): undefined reference to `co_get_data'
10:01
<
waterlink >
collect2: error: ld returned 1 exit status
10:01
<
waterlink >
Any clue how to fix it?
10:05
<
waterlink >
I see I have libgc 7.2, need to find a way to upgrade it
10:07
<
jhass >
waterlink: yeah sounds like missing/too old libgc and libpcl
10:10
waterlink has quit [Ping timeout: 248 seconds]
10:33
ponga has joined #crystal-lang
10:38
havenwood has quit [Remote host closed the connection]
10:52
panga has joined #crystal-lang
10:54
ponga has quit [Ping timeout: 265 seconds]
10:58
canhtak has joined #crystal-lang
11:05
JBat has quit [Quit: Computer has gone to sleep.]
11:14
<
panga >
>> arr = []; arr.index
11:14
<
DeBot >
panga: Syntax error in eval:3: for empty arrays use '[] of ElementType'
11:14
<
panga >
>> arr = Array.new; arr.index
11:14
<
DeBot >
panga: Error in line 3: undefined constant T
11:15
* panga
goes off a google journey of finding T
11:17
<
panga >
jhass: do you have a minute to spare
11:18
<
jhass >
panga: you need to specify the type for an empty array literal
11:18
<
jhass >
>> a = [] of String
11:18
<
jhass >
>> a = Array(Sting).new
11:18
<
DeBot >
jhass: Error in line 3: undefined constant Sting (did you mean 'String'?)
11:18
<
jhass >
>> a = Array(String).new
11:18
<
panga >
i leanrt something today
11:18
<
panga >
>> a = Array(String).new; a.index
11:18
<
DeBot >
panga: Error in line 3: 'Array(String)#index' is expected to be invoked with a block, but no block was given
11:19
<
panga >
>> a = Array(String).new; a.index(succ)
11:19
<
DeBot >
panga: Error in line 3: undefined local variable or method 'succ'
11:19
<
panga >
>> a = Array(String).new; a.index(&:succ)
11:19
<
DeBot >
panga: Error in line 3: expected a function type, not Symbol
11:19
<
panga >
>> a = Array(String).new; a.index(:succ)
11:20
<
panga >
jhass: somehow Array(String).new looks more natural than [] of String to me
11:20
<
panga >
i wonder why
11:47
leafybasil has quit [Remote host closed the connection]
12:17
canhtak has quit [Quit: canhtak]
12:28
JBat has joined #crystal-lang
13:03
ismaelga has joined #crystal-lang
13:13
waterlink has joined #crystal-lang
13:34
<
waterlink >
heh, now I get this:
13:34
<
waterlink >
.crystal//home/wimdu/playground/github/waterlink/crystal/crystal/src/ecr/process.cr/main.o: In function `main':
13:34
<
waterlink >
main_module:(.text+0xe66): undefined reference to `co_thread_init'
13:34
<
waterlink >
main_module:(.text+0xf18): undefined reference to `co_set_data'
13:34
<
waterlink >
main_module:(.text+0x1069): undefined reference to `co_set_data'
13:34
<
waterlink >
main_module:(.text+0x1e63): undefined reference to `co_get_data'
13:34
<
waterlink >
what is this library now ?
13:34
<
jhass >
waterlink: libpcl
13:35
<
waterlink >
which version and where to get it ?
13:37
<
waterlink >
Ok, I got the source of my problems, sorry to bother you
13:37
<
jhass >
not at all, yw
13:37
<
waterlink >
I used wrong terminal (where all environment variables are messed up)
13:37
<
jhass >
we don't make that obvious enough yet
13:38
<
jhass >
ah, so you weren't compiling master, just using the package?
13:38
<
waterlink >
No, master
13:39
<
jhass >
I was thinking whether we can find a way to check if all dependencies are available
13:39
havenwood has joined #crystal-lang
13:39
<
jhass >
maybe something like a configure script? mh
13:40
<
waterlink >
Looks like, some wrapper script is required, that will make sure that all stuff is downloaded and all environment variables are set correctly and then just delegates to .build/crystal or bin/crystal
13:40
<
jhass >
I'd keep it at a checker, trying to be smart and setup everything fails IME
13:41
<
waterlink >
or something along the lines of python's virtualenvs, where you just call bin/activate and it sets up the whole environment and marks your shell with the name of environment
13:42
<
waterlink >
For me the problem was not about dependencies, but just about having right LIBRARY_PATH
13:42
<
waterlink >
And actually standard configure script probably is not a bad idea. Since it checks for all dependencies and tell user exactly what is lacking and which versions are required
13:43
<
jhass >
well, the packages do that essentially, but I don't think reusing what the packages ship for compiling head by default is a good idea
13:43
<
jhass >
yeah, that's my thinking
13:43
<
jhass >
or maybe we can plug into automake or something, mh
13:46
<
jhass >
otoh having it build in the compiler wouldn't be to bad too, have it print nice error messages instead of running into linker errors
13:46
<
jhass >
would give it for free to all projects
13:47
c355E3B has joined #crystal-lang
14:22
ismaelga has quit [Remote host closed the connection]
14:27
ismaelga has joined #crystal-lang
14:43
JBat has quit [Ping timeout: 240 seconds]
14:48
<
waterlink >
Does crystal have `block_given?` alternative?
14:49
<
jhass >
in crystal you would define an overload that doesn't take one
14:50
<
ytti >
block_given? may be one of those things ruby shouldn't have either
14:50
<
ytti >
seems like additional complexity for no particular benefit
14:50
<
ytti >
or is there salient benefit to if &block?
14:51
<
jhass >
ytti: return to_enum(__method__) unless block_given?
14:51
<
jhass >
one popular and sane usecase
14:51
<
ytti >
unless &block
14:51
<
ytti >
would that be different?
14:51
<
jhass >
I think it's academically slower
14:51
<
jhass >
I don't find it more readable too personally
14:52
<
ytti >
being slower seems like missed optimization opportunity
14:52
<
ytti >
not justification for littering syntax
14:52
<
jhass >
I capture a block to say that I don't want to call it here, that I want to pass it on or store it
14:52
<
jhass >
if I want to call it here I use yield
14:53
<
jhass >
and capturing the block and then use yield seems silly too
15:10
nsf has joined #crystal-lang
15:32
<
crystal-gh >
[crystal] waterlink opened pull request #530: [spec/expectations] add be_including (master...add_be_including_expectation)
http://git.io/vvt8T
15:33
nsf has left #crystal-lang ["WeeChat 1.1.1"]
15:42
leafybasil has joined #crystal-lang
16:01
ismaelga has quit [Remote host closed the connection]
16:16
c355E3B has quit [Quit: Leaving]
16:28
<
a5i >
>> Pointer(Int32).new(0x108213fc0)
16:28
<
DeBot >
a5i: Error in line 3: no overload matches 'Pointer(Int32):Class#new' with types Int64
16:29
<
a5i >
outdated or part of HEAD ?
16:35
<
jhass >
a5i: your number is bigger than 32 bit
16:36
<
jhass >
what do you want to do?
16:37
<
jhass >
or maybe it's because it's 0.6.1,
*shrug*
16:46
jua_ has quit [Ping timeout: 264 seconds]
16:50
<
a5i >
how can I edit pages here ?
16:52
jua_ has joined #crystal-lang
17:05
<
a5i >
whoops, forgot to post the link
17:15
<
crystal-gh >
[crystal] Ap0ph1s opened pull request #531: Update generics.md (gh-pages...patch-1)
http://git.io/vvtxY
17:16
leafybasil has quit [Remote host closed the connection]
17:22
DerisiveLogic has joined #crystal-lang
17:22
<
DerisiveLogic >
a5i: Oh look.
17:22
<
DerisiveLogic >
Noob spotted.
17:29
<
jhass >
a5i: I think one should ask before submitting someones work elsewhere tbh
17:30
<
a5i >
jhass: ehh, it was posted on reddit publicly so I don't see any wrong in it, also if he does indeed not want it, then it won't be merged
17:31
<
jhass >
that's not how copyright/ownership/attribution works :/
17:32
<
a5i >
then it just won't be merged I guess, if he objects
17:37
<
crystal-gh >
[crystal] jhass opened pull request #532: Add docs heading to Contributing.md (master...patch-1)
http://git.io/vvqUi
17:40
leafybasil has joined #crystal-lang
17:41
<
crystal-gh >
crystal/master eae0acf Jonne Haß: Add docs heading to Contributing.md...
17:41
<
crystal-gh >
crystal/master 5f02f46 Ary Borenszweig: Merge pull request #532 from jhass/patch-1...
17:51
<
travis-ci >
manastech/crystal#2219 (master - 5f02f46 : Ary Borenszweig): The build passed.
18:03
JBat has joined #crystal-lang
18:30
panga has quit [Quit: Leaving...]
18:47
canhtak has joined #crystal-lang
19:33
canhtak has quit [Quit: canhtak]
19:53
<
a5i >
>> l = lambda { "Do or do not" }; puts l.call
19:53
<
DeBot >
a5i: Error in line 3: undefined local variable or method 'lambda'
19:53
<
a5i >
Crystal doesnt have lambdas ? :O
19:54
<
jhass >
>> x = -> { "sure it does" }; puts x.call
19:54
<
DeBot >
jhass: sure it does
20:12
jua_ has quit [Quit: Vision[0.9.7-H-20140108]: i've been blurred!]
20:51
<
a5i >
>> def te(a,b=12); a+b;end; te(3)
20:53
<
a5i >
>> def te(x,y,z); z+y+x;end; te(...[1,2,3])
20:53
<
DeBot >
a5i: Syntax error in eval:3: unterminated call
20:53
<
jhass >
>> def te(x,y,z); z+y+x;end; te(*[1,2,3])
20:53
<
DeBot >
jhass: Syntax error in eval:3: unterminated call
20:53
<
jhass >
>> def te(x,y,z); z+y+x;end; te(*{1,2,3})
20:53
<
DeBot >
jhass: Syntax error in eval:3: unterminated call
20:54
<
jhass >
>> def te(x,y,z); z+y+x; end; te(*{1,2,3})
20:54
<
DeBot >
jhass: Syntax error in eval:3: unterminated call
20:54
<
jhass >
>> def te(x,y,z); z+y+x; end; params = {1,2,3}; te(*params)
20:57
<
JBat >
>> def te(x,y,z); z+y+x; end; te(*(params = {1,2,3}))
20:57
<
DeBot >
JBat: Syntax error in eval:3: unterminated call
21:16
JBat has quit [Quit: Computer has gone to sleep.]
21:33
havenwood has quit []
21:53
<
crystal-gh >
crystal/master 70c4d78 Ary Borenszweig: Fixed a couple of splat parsing errors
21:53
<
crystal-gh >
crystal/master 493328d Ary Borenszweig: Added `String#gsub(Regex, Hash(String, _))` and `String#gsub(Hash(Char, _))`
21:56
<
a5i >
>> ptr = Pointer(Int32).malloc(1); ptr[0-ptr.address]
21:56
<
DeBot >
a5i: Program terminated abnormally with error code: 139
21:59
<
a5i >
does Crystal have postgreSQL support
22:02
<
travis-ci >
manastech/crystal#2221 (master - 70c4d78 : Ary Borenszweig): The build passed.
22:13
<
jhass >
a5i: I still don't follow what you're asking at all
22:14
<
a5i >
jhass: on the issue ?
22:15
<
a5i >
the line right after 10.times will be part of the loop until the end keyword correct ? you said it might be part o Crystal like Ruby
22:16
<
jhass >
you don't understand me at all
22:16
<
jhass >
>> 10.times
22:16
<
DeBot >
jhass: Error in line 3: 'Int32#times' is expected to be invoked with a block, but no block was given
22:16
<
jhass >
now do this in Ruby
22:17
<
jhass >
I'm saying it's likely that we'll get the same behavior ruby shows there
22:18
<
crystal-gh >
crystal/master a4995c0 Alex Fedorov: [spec/expectations] add contain
22:18
<
crystal-gh >
crystal/master 5da8a0e Alex Fedorov: [spec/expectations: contain] Add docs, add support for not only String
22:18
<
crystal-gh >
crystal/master 160a447 Ary Borenszweig: Merge pull request #530 from waterlink/add_be_including_expectation...
22:26
colorisco has quit [Ping timeout: 252 seconds]
22:41
<
crystal-gh >
[crystal] waterlink opened pull request #534: [crystal] add init command (master...crystal_init)
http://git.io/vvm3E
22:48
havenwood has joined #crystal-lang