00:07
Philpax has joined #crystal-lang
00:09
pawnbox has joined #crystal-lang
00:10
greengriminal has joined #crystal-lang
00:14
pawnbox has quit [Ping timeout: 244 seconds]
00:26
pawnbox has joined #crystal-lang
00:30
pawnbox has quit [Ping timeout: 252 seconds]
00:37
greengriminal has quit [Quit: This computer has gone to sleep]
00:49
pilne has joined #crystal-lang
00:54
Oliphaunte has joined #crystal-lang
01:06
snsei has joined #crystal-lang
01:08
snsei has quit [Remote host closed the connection]
01:08
snsei has joined #crystal-lang
01:09
greengriminal has joined #crystal-lang
01:10
Oliphaunte has quit [Remote host closed the connection]
01:23
greengriminal has quit [Quit: Leaving]
01:24
soveran has joined #crystal-lang
01:28
soveran has quit [Ping timeout: 244 seconds]
01:31
qard has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
01:51
Oliphaunte has joined #crystal-lang
01:53
pawnbox has joined #crystal-lang
01:55
Oliphaunte has quit [Remote host closed the connection]
01:57
pilne has quit [Quit: Quitting!]
01:57
pawnbox has quit [Ping timeout: 246 seconds]
02:24
pochito has joined #crystal-lang
02:27
qard has joined #crystal-lang
02:35
Oliphaunte has joined #crystal-lang
02:45
Oliphaunte has quit [Remote host closed the connection]
02:50
pawnbox has joined #crystal-lang
02:53
Oliphaunte has joined #crystal-lang
02:54
pawnbox has quit [Ping timeout: 264 seconds]
03:04
wmoxam_ is now known as wmoxam
03:04
wmoxam has quit [Changing host]
03:04
wmoxam has joined #crystal-lang
03:06
pawnbox has joined #crystal-lang
03:10
pawnbox has quit [Ping timeout: 260 seconds]
03:13
Cidan has quit [Ping timeout: 246 seconds]
03:24
<
adam12 >
Davy_CC: need another end?
03:25
soveran has joined #crystal-lang
03:31
soveran has quit [Ping timeout: 276 seconds]
03:41
pawnbox has joined #crystal-lang
03:46
pawnbox has quit [Ping timeout: 264 seconds]
03:48
willl has quit [Quit: Connection closed for inactivity]
03:50
elomatreb has joined #crystal-lang
03:54
Oliphaunte has quit [Remote host closed the connection]
04:06
zz_Cidan has joined #crystal-lang
04:06
zz_Cidan is now known as Cidan
04:06
Cidan has quit [Changing host]
04:06
Cidan has joined #crystal-lang
04:19
sandelius has joined #crystal-lang
04:49
snsei has quit [Remote host closed the connection]
04:50
pawnbox has joined #crystal-lang
04:51
snsei has joined #crystal-lang
04:53
pawnbox has quit [Remote host closed the connection]
04:53
pawnbox has joined #crystal-lang
04:56
snsei has quit [Ping timeout: 244 seconds]
05:01
pawnbox has quit [Remote host closed the connection]
05:01
pawnbox has joined #crystal-lang
05:02
pochito has quit [Ping timeout: 276 seconds]
05:13
bjz has joined #crystal-lang
05:15
bjz_ has joined #crystal-lang
05:18
bjz has quit [Ping timeout: 272 seconds]
05:22
pawnbox has quit [Ping timeout: 260 seconds]
05:26
soveran has joined #crystal-lang
05:28
pawnbox has joined #crystal-lang
05:31
soveran has quit [Ping timeout: 244 seconds]
05:39
bjz_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
05:43
jsaak has joined #crystal-lang
05:46
soveran has joined #crystal-lang
05:52
snsei has joined #crystal-lang
05:57
snsei has quit [Ping timeout: 260 seconds]
05:58
pawnbox has quit [Remote host closed the connection]
05:59
pawnbox has joined #crystal-lang
06:50
pawnbox has quit [Remote host closed the connection]
07:09
matp has quit [Ping timeout: 258 seconds]
07:09
snsei has joined #crystal-lang
07:15
snsei has quit [Ping timeout: 276 seconds]
07:17
Philpax has quit [Ping timeout: 240 seconds]
07:29
sandelius has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
07:37
qard has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
07:48
dom96 has quit [Changing host]
07:48
dom96 has joined #crystal-lang
07:48
ponga has joined #crystal-lang
07:50
<
jhass >
Davy_CC: a case needs an when or else
07:50
<
jhass >
case end is invalid
08:05
matp has joined #crystal-lang
08:10
sandelius has joined #crystal-lang
08:12
pawnbox has joined #crystal-lang
08:21
pawnbox has quit [Remote host closed the connection]
08:21
pawnbox has joined #crystal-lang
08:23
bjz has joined #crystal-lang
08:41
Philpax has joined #crystal-lang
08:53
pawnbox has quit [Remote host closed the connection]
08:53
pawnbox has joined #crystal-lang
08:57
Philpax has quit [Read error: Connection reset by peer]
08:57
Philpax has joined #crystal-lang
09:03
trapped has joined #crystal-lang
09:12
Philpax has quit [Read error: Connection reset by peer]
09:12
Philpax has joined #crystal-lang
09:28
<
crystal-gh >
[crystal] splattael opened pull request #2897: Docker: Preinstall `make` in docker image (master...dockerfile-make)
https://git.io/vo1CU
09:33
zodiak has quit [Ping timeout: 258 seconds]
09:36
matp has quit [Remote host closed the connection]
09:40
matp has joined #crystal-lang
10:02
Philpax has quit [Read error: Connection reset by peer]
10:02
Philpax has joined #crystal-lang
10:08
soveran has quit [Remote host closed the connection]
10:10
pawnbox has quit [Remote host closed the connection]
10:11
pawnbox has joined #crystal-lang
10:21
pawnbox has quit [Remote host closed the connection]
10:29
pawnbox has joined #crystal-lang
10:30
Philpax has quit [Read error: Connection reset by peer]
10:30
Philpax has joined #crystal-lang
10:34
benoist has joined #crystal-lang
10:36
<
benoist >
hi :). For the zeromq binding I'm trying to setup travis, however the package has to be build from source and the library files are placed in a subdir of the home directory. How can I link to those files when running the specs?
10:37
<
benoist >
I've tried a lot of things but no success so far
10:37
<
jhass >
benoist: easiest is to export LIBRARY_PATH to include that
10:37
<
benoist >
Ah ok, I think I exported it to LD_LIBRARY_PATH
10:38
<
jhass >
LD_LIBRARY_PATH is for the runtime linker, LIBRARY_PATH for ld
10:38
<
jhass >
confusingly ;)
10:39
<
benoist >
well there you go :)
10:40
<
jhass >
--link-flags "-L/path/to/lib" should work too btw
10:41
<
benoist >
ah damn I was so close then, I forgot the -L
10:42
<
jhass >
we miss to respect LDFLAGS, we should
10:43
soveran has joined #crystal-lang
10:43
<
benoist >
It worked! Thanks a lot as always :)
10:44
soveran has quit [Remote host closed the connection]
10:45
Philpax has quit [Read error: Connection reset by peer]
10:45
Philpax has joined #crystal-lang
10:52
benoist has quit [Quit: Page closed]
10:52
steenuil has joined #crystal-lang
10:57
pawnbox has quit [Remote host closed the connection]
10:58
pawnbox has joined #crystal-lang
11:01
Philpax has quit [Read error: Connection reset by peer]
11:02
Philpax has joined #crystal-lang
11:04
trapped has quit [Read error: Connection reset by peer]
11:04
trapped has joined #crystal-lang
11:12
snsei has joined #crystal-lang
11:16
snsei has quit [Ping timeout: 250 seconds]
11:35
trapped has quit [Read error: Connection reset by peer]
11:35
trapped has joined #crystal-lang
11:39
qard has joined #crystal-lang
11:44
soveran has joined #crystal-lang
11:51
soveran has quit [Ping timeout: 276 seconds]
11:58
trapped_ has joined #crystal-lang
11:58
trapped has quit [Read error: Connection reset by peer]
12:13
bjz_ has joined #crystal-lang
12:13
bjz has quit [Ping timeout: 244 seconds]
12:16
trapped has joined #crystal-lang
12:18
trapped_ has quit [Ping timeout: 244 seconds]
12:20
<
crystal-gh >
[crystal] MakeNowJust opened pull request #2898: Add missing PartialOrder#<=> (master...fix/partial_order-ufo)
https://git.io/vo1iH
12:21
trapped_ has joined #crystal-lang
12:23
trapped has quit [Ping timeout: 240 seconds]
12:34
soveran has joined #crystal-lang
12:39
trapped_ has quit [Ping timeout: 260 seconds]
12:41
bjz_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
12:42
bjz has joined #crystal-lang
12:42
pawnbox has quit [Remote host closed the connection]
12:43
pawnbox has joined #crystal-lang
12:48
trapped has joined #crystal-lang
12:49
<
FromGitter >
<taylorfinnell> hello, how can i get the encoding of a string?
12:50
<
jhass >
@taylorfinnell it's UTF-8
12:50
<
FromGitter >
<taylorfinnell> perfect ty
12:56
pawnbox has quit [Remote host closed the connection]
12:56
pawnbox has joined #crystal-lang
13:05
<
FromGitter >
<splattael> is there a rule of thumb when I have to use `{% begin %}` and `{% end %}` in macros?
13:09
<
jhass >
@splattael when you need to extend a macro's "scope", just because you use a macro expression, not the whole method gets turned into a macro body
13:10
<
jhass >
so the latter generates the expression foo: @foo, which is not a valid crystal expression
13:10
<
jhass >
where as the former generates the expression {foo: @foo, bar: @bar,}
13:11
<
FromGitter >
<splattael> it's a hash I thought
13:11
<
FromGitter >
<splattael> aah, ok it's now clicking... I think
13:11
<
jhass >
(also you generate a named tuple there)
13:12
<
FromGitter >
<splattael> jhass, true, but it's ok for json ;)
13:12
<
jhass >
def as_json ;)
13:12
<
FromGitter >
<splattael> original code does that :D
13:12
<
FromGitter >
<splattael> thanks!
13:12
snsei has joined #crystal-lang
13:13
<
jhass >
for the general case override to_json(io) though
13:14
<
FromGitter >
<splattael> yes, the original code has that as well... I wanted to simplify the code for my question
13:17
snsei has quit [Ping timeout: 252 seconds]
13:17
snsei has joined #crystal-lang
13:32
pawnbox has quit [Remote host closed the connection]
13:33
pawnbox has joined #crystal-lang
13:52
mgarciaisaia has joined #crystal-lang
13:54
bjz has quit [Max SendQ exceeded]
13:55
bjz has joined #crystal-lang
14:03
<
FromGitter >
<splattael> jhass, playing with macros makes fun! thanks again for your help :-)
14:14
soveran has quit [Remote host closed the connection]
14:17
soveran has joined #crystal-lang
14:17
soveran has quit [Changing host]
14:17
soveran has joined #crystal-lang
14:19
Oliphaunte has joined #crystal-lang
14:22
pawnbox has quit [Remote host closed the connection]
14:23
pawnbox has joined #crystal-lang
14:29
mgarciaisaia has left #crystal-lang [#crystal-lang]
14:36
datanoise has joined #crystal-lang
14:47
Philpax has quit [Ping timeout: 276 seconds]
14:57
<
crystal-gh >
[crystal] MakeNowJust opened pull request #2899: [ci skip] Fix PartialComparable document (master...fix/partial_comparable_doc)
https://git.io/voMJH
14:57
mgarciaisaia has joined #crystal-lang
15:00
mgarciaisaia has left #crystal-lang [#crystal-lang]
15:06
matp has quit [Remote host closed the connection]
15:06
matp has joined #crystal-lang
15:12
soveran has quit [Remote host closed the connection]
15:13
Raimondii has joined #crystal-lang
15:16
Raimondi has quit [Ping timeout: 240 seconds]
15:22
pochito has joined #crystal-lang
15:24
mgarciaisaia has joined #crystal-lang
15:25
mgarciaisaia has left #crystal-lang [#crystal-lang]
15:25
Raimondii is now known as Raimondi
15:27
Oliphaun_ has joined #crystal-lang
15:28
pawnbox has quit [Remote host closed the connection]
15:29
pawnbox has joined #crystal-lang
15:31
Oliphaunte has quit [Ping timeout: 250 seconds]
15:35
Raimondii has joined #crystal-lang
15:36
Raimondi^1 has joined #crystal-lang
15:38
<
FromGitter >
<splattael> is there a way to "fail" during compilation? say, I have macro which needs specific amount of args, how can I fail with like `raise ArgumentError` during compilation?
15:38
Raimondi has quit [Ping timeout: 240 seconds]
15:39
paulcsmith_ has joined #crystal-lang
15:39
<
jhass >
{{raise "nope"}
15:40
Raimondii has quit [Ping timeout: 240 seconds]
15:40
<
FromGitter >
<splattael> ok, I'm blind... thank you!!
15:41
paulcsmith_ has quit [Client Quit]
15:41
<
crystal-gh >
[crystal] ysbaddaden closed pull request #2899: [ci skip] Fix PartialComparable document (master...fix/partial_comparable_doc)
https://git.io/voMJH
15:45
Raimondi^1 is now known as Raimondi
15:45
Raimondi is now known as Raimondii
15:55
Raimondii is now known as Raimondi
15:57
pawnbox has quit [Remote host closed the connection]
15:58
pawnbox has joined #crystal-lang
16:06
pawnbox has quit [Remote host closed the connection]
16:07
pawnbox has joined #crystal-lang
16:07
pawnbox has quit [Remote host closed the connection]
16:13
soveran has joined #crystal-lang
16:13
soveran has quit [Changing host]
16:13
soveran has joined #crystal-lang
16:17
trapped has quit [Read error: Connection reset by peer]
16:18
soveran has quit [Ping timeout: 244 seconds]
16:19
pawnbox has joined #crystal-lang
16:19
snsei has quit [Remote host closed the connection]
16:20
pawnbox has quit [Remote host closed the connection]
16:21
pawnbox has joined #crystal-lang
16:33
pochito has quit [Ping timeout: 246 seconds]
16:33
<
j2k >
Any chance someone has a openid lib for crystal?
16:39
matp has quit [Ping timeout: 244 seconds]
16:45
pawnbox has quit [Remote host closed the connection]
16:45
pawnbox has joined #crystal-lang
16:46
pawnbox has quit [Remote host closed the connection]
16:46
pawnbox has joined #crystal-lang
16:47
paulcsmith_ has joined #crystal-lang
16:50
pochito has joined #crystal-lang
17:02
pochito has quit [Ping timeout: 260 seconds]
17:04
Raimondii has joined #crystal-lang
17:07
Raimondi has quit [Ping timeout: 240 seconds]
17:13
willl has joined #crystal-lang
17:14
soveran has joined #crystal-lang
17:15
Raimondii is now known as Raimondi
17:20
matp has joined #crystal-lang
17:20
soveran has quit [Ping timeout: 276 seconds]
17:25
tomchapin has joined #crystal-lang
17:33
Oliphaun_ has quit [Remote host closed the connection]
17:36
datanois1 has joined #crystal-lang
17:36
datanoise has quit [Ping timeout: 260 seconds]
17:44
pilne has joined #crystal-lang
17:50
matp has quit [Remote host closed the connection]
17:54
matp has joined #crystal-lang
18:06
kfpratt has quit []
18:16
soveran has joined #crystal-lang
18:21
soveran has quit [Ping timeout: 276 seconds]
18:22
Oliphaunte has joined #crystal-lang
18:27
Oliphaunte has quit [Ping timeout: 250 seconds]
18:28
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
18:48
sp4rrow has joined #crystal-lang
18:48
<
sp4rrow >
just curious does Object inherit from Kernal like in Ruby?
18:53
pochito has joined #crystal-lang
18:55
<
jhass >
I think we have no Kernel
19:04
pawnbox has quit [Remote host closed the connection]
19:06
pawnbox has joined #crystal-lang
19:11
Oliphaunte has joined #crystal-lang
19:31
sandelius has joined #crystal-lang
19:39
<
crystal-gh >
crystal/master a27799a Ary Borenszweig: Merge branch 'release/0.18'
19:39
<
RX14 >
jhass, did you look at that segfault?
19:40
paulcsmith_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
19:40
<
jhass >
RX14: yeah you have to use a class
19:40
datanois1 has quit [Quit: WeeChat 1.5]
19:41
<
RX14 >
wouldn't the IO just be a pointer in the struct?
19:42
<
RX14 >
i should have read further down
19:45
<
RX14 >
do we have to use a class or can we create a pointer somehow
19:45
<
jhass >
we could Box.box the IO
19:46
<
jhass >
but that won't be any faster really
19:46
<
RX14 >
yeah I guess
19:48
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
19:48
Raimondii has joined #crystal-lang
19:51
Raimondi has quit [Ping timeout: 240 seconds]
19:51
sp4rrow has joined #crystal-lang
19:51
matp has quit [Remote host closed the connection]
19:53
<
sp4rrow >
how does puts get mixed into the classes then?
19:53
<
RX14 >
sp4rrow, it's a method on the root namespace
19:54
<
RX14 >
it's not in classes
19:54
<
sp4rrow >
cool thanks
19:54
<
sp4rrow >
what else is in there?
19:54
<
sp4rrow >
or how do I find it
19:54
paulcsmith_ has joined #crystal-lang
19:54
<
sp4rrow >
ah thanks
19:55
Raimondii is now known as Raimondi
19:56
<
sp4rrow >
what does redefine main do?
19:56
<
sp4rrow >
I didnt know crystal had a main function
19:56
<
jhass >
an executable needs a main function
19:56
<
jhass >
crystal hides it as good as possible, but it's still there
19:57
<
jhass >
that is a ELF package binary to be a tad more specific
19:57
<
sp4rrow >
interesting is there any other consequences of changing that?
19:57
<
jhass >
changing what?
19:57
<
sp4rrow >
like invalidating at_exit handles or something?
19:57
<
sp4rrow >
redefining main
19:58
<
jhass >
the redefine_main macro is specifically to keep the runtime setup in place
19:58
<
jhass >
if you'd want to get rid of that you'd need to redefine the main function, fun main(...)
19:59
<
sp4rrow >
cool I didnt know these functions existed
19:59
<
jhass >
there's no sane reason to touch that stuff for 99.9% of all applications
20:00
<
crystal-gh >
crystal/master ca6154d Ary Borenszweig: Merge branch 'release/0.18'
20:04
tomchapin has joined #crystal-lang
20:10
pochito has quit [Ping timeout: 244 seconds]
20:16
<
crystal-gh >
crystal/master 6dced6c Ary Borenszweig: Merge branch 'release/0.18'
20:16
<
crystal-gh >
[crystal] asterite closed pull request #1639: add copy overload to IO to copy at most
*limit* bytes (master...copy-with-limit)
https://git.io/voMjp
20:17
soveran has joined #crystal-lang
20:23
soveran has quit [Ping timeout: 276 seconds]
20:27
FromGitter has quit [*.net *.split]
20:27
bjmllr has quit [*.net *.split]
20:27
sebasr has quit [*.net *.split]
20:27
pleiosau1 has quit [*.net *.split]
20:27
xaxes` has quit [*.net *.split]
20:27
emmanueloga has quit [*.net *.split]
20:27
mroth has quit [*.net *.split]
20:27
CompanionCube has quit [*.net *.split]
20:27
CompanionCube has joined #crystal-lang
20:27
pleiosaur has joined #crystal-lang
20:27
CompanionCube has quit [Changing host]
20:27
CompanionCube has joined #crystal-lang
20:27
pilne has left #crystal-lang ["Leaving!"]
20:27
FromGitter has joined #crystal-lang
20:27
bjmllr has joined #crystal-lang
20:28
sebasr has joined #crystal-lang
20:28
xaxes` has joined #crystal-lang
20:30
mroth has joined #crystal-lang
20:31
shadowshell has quit [Ping timeout: 258 seconds]
20:32
iamstef_ has quit [Ping timeout: 258 seconds]
20:33
emmanueloga has joined #crystal-lang
20:38
shadowshell has joined #crystal-lang
20:39
_jungh4ns has quit [K-Lined]
20:39
iamstef_ has joined #crystal-lang
20:44
fedruantine has joined #crystal-lang
20:49
matp has joined #crystal-lang
20:58
willl has quit [Quit: Connection closed for inactivity]
21:02
pawnbox has quit [Remote host closed the connection]
21:18
soveran has joined #crystal-lang
21:20
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
21:23
soveran has quit [Ping timeout: 276 seconds]
21:40
sp4rrow has joined #crystal-lang
21:42
paulcsmith_ has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
21:58
soveran has joined #crystal-lang
22:06
sp4rrow has quit [Quit: The Internet needs a break and I need a cookie]
22:10
Oliphaunte has quit [Remote host closed the connection]
22:10
Oliphaunte has joined #crystal-lang
22:15
fedruantine has quit [Max SendQ exceeded]
22:15
Oliphaunte has quit [Ping timeout: 250 seconds]
22:17
soveran has quit [Remote host closed the connection]
22:28
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
22:29
bjz has joined #crystal-lang
22:29
bjz has quit [Client Quit]
22:45
bjz has joined #crystal-lang
22:51
bjz has quit [Ping timeout: 244 seconds]
23:17
soveran has joined #crystal-lang
23:22
pawnbox has joined #crystal-lang
23:23
acangiano has joined #crystal-lang
23:24
soveran has quit [Ping timeout: 276 seconds]
23:26
pawnbox has quit [Ping timeout: 240 seconds]
23:27
acangiano has quit [Remote host closed the connection]
23:29
fedruantine has joined #crystal-lang
23:47
Philpax has joined #crystal-lang
23:54
pawnbox has joined #crystal-lang
23:59
pawnbox has quit [Ping timeout: 272 seconds]