00:06
kyrylo has quit [Quit: Konversation terminated!]
00:06
kyrylo has joined #crystal-lang
00:07
fowlduck has quit [Remote host closed the connection]
00:19
NeverDie has joined #crystal-lang
00:33
<
waterlink >
waj: I will look into it. Might be it even worth switching to `manastech/crystal-mysql` and contribute to it.
00:38
kyrylo has quit [Ping timeout: 244 seconds]
00:38
kyrylo_ has joined #crystal-lang
00:38
kyrylo_ is now known as kyrylo
00:38
kyrylo is now known as kyrylo_
00:43
kyrylo_ is now known as kyrylo
00:45
kyrylo is now known as kyryloga
00:47
kyryloga is now known as kyrylo
01:00
waterlink has quit [Quit: leaving]
01:04
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
01:17
fowlduck has joined #crystal-lang
01:21
fowlduck has quit [Ping timeout: 246 seconds]
01:24
<
crystal-gh >
crystal/master 3e43626 Ary Borenszweig: Fixed #1323: use "...:Module" for modules in error messages
01:38
CraigBuchek has joined #crystal-lang
01:45
<
crystal-gh >
[crystal] 5t111111 opened pull request #1343: Fix the link for Homebrew tap (gh-pages...fix-brew-tap-link)
http://git.io/vGzja
02:00
ssvb has quit [Ping timeout: 244 seconds]
02:08
<
crystal-gh >
[crystal] asterite closed pull request #1343: Fix the link for Homebrew tap (gh-pages...fix-brew-tap-link)
http://git.io/vGzja
02:11
waj has quit [Remote host closed the connection]
02:11
kyrylo has quit [Ping timeout: 244 seconds]
02:20
qard has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
02:28
<
crystal-gh >
crystal/master 2ac5552 Ary Borenszweig: Simplified the two abstract `read` and `write` IO methods: now they just require a slice, not a slice and a count. This make more sense because slices can be sliced.
02:37
NeverDie has joined #crystal-lang
02:40
NeverDie has quit [Max SendQ exceeded]
02:41
NeverDie has joined #crystal-lang
02:43
NeverDie has quit [Read error: Connection reset by peer]
02:49
waj has joined #crystal-lang
02:52
sailorswift has joined #crystal-lang
02:54
waj has quit [Ping timeout: 268 seconds]
02:59
waj has joined #crystal-lang
03:03
fowlduck has joined #crystal-lang
03:19
fowlduck has quit [Remote host closed the connection]
03:24
fowlduck has joined #crystal-lang
03:31
ylluminate has quit [Quit: Leaving.]
03:56
sailorsw_ has joined #crystal-lang
03:57
NeverDie has joined #crystal-lang
04:00
sailorswift has quit [Ping timeout: 264 seconds]
04:02
NeverDie has quit [Ping timeout: 252 seconds]
04:05
waj has quit [Read error: Connection reset by peer]
04:05
waj_ has joined #crystal-lang
04:19
waj_ has quit [Read error: Connection reset by peer]
04:19
waj has joined #crystal-lang
04:20
NeverDie has joined #crystal-lang
04:21
NeverDie has quit [Read error: Connection reset by peer]
04:28
CraigBuchek has quit [Quit: Leaving.]
04:46
NeverDie has joined #crystal-lang
04:47
waj has quit [Read error: Connection reset by peer]
04:47
waj_ has joined #crystal-lang
04:52
NeverDie has quit [Ping timeout: 264 seconds]
04:54
NeverDie has joined #crystal-lang
04:57
NeverDie has quit [Read error: Connection reset by peer]
05:04
NeverDie has joined #crystal-lang
05:05
ytti has joined #crystal-lang
05:17
<
crystal-gh >
[crystal] veelenga opened pull request #1344: Changed --no-build to --no-codegen in docs (gh-pages...fix-docs-help)
http://git.io/vGgzY
05:18
waj_ has quit [Remote host closed the connection]
05:53
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
05:57
fowlduck has quit [Remote host closed the connection]
06:09
BlaXpirit has joined #crystal-lang
06:10
ylluminate has joined #crystal-lang
06:10
emancu has joined #crystal-lang
06:15
emancu has quit [Client Quit]
06:42
ssvb has joined #crystal-lang
07:04
<
crystal-gh >
[crystal] jhass closed pull request #1335: Add rake to Gemfile, add set -e to travis-build.sh (gh-pages...docs_rebuild_fixes)
http://git.io/vGRay
07:04
Ven has joined #crystal-lang
07:06
<
crystal-gh >
[crystal] jhass closed pull request #1344: Changed --no-build to --no-codegen in docs (gh-pages...fix-docs-help)
http://git.io/vGgzY
07:28
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
07:41
fowlduck has joined #crystal-lang
07:46
fowlduck has quit [Ping timeout: 250 seconds]
08:33
leafybasil has quit [Remote host closed the connection]
08:33
Ven has joined #crystal-lang
08:53
kyrylo has joined #crystal-lang
08:56
Ven has quit [Read error: Connection reset by peer]
09:03
Ven has joined #crystal-lang
09:04
lokulin has quit [Ping timeout: 250 seconds]
09:10
lokulin has joined #crystal-lang
09:18
sailorswift has joined #crystal-lang
09:28
leafybasil has joined #crystal-lang
09:49
tatey_ has joined #crystal-lang
09:59
willl has quit [Quit: Connection closed for inactivity]
10:01
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
10:04
sailorswift has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
10:13
jokke has quit [Quit: WeeChat 1.2]
10:40
blassin has joined #crystal-lang
10:41
<
blassin >
anyone developing on Mac OS here?
10:41
<
blassin >
I've installed libreadline, but homebrew says there's a system lib that shadows it
10:41
<
blassin >
what's the proper way to build Crystal with access to the right lib?
10:42
<
blassin >
the compiler doesn't use CFLAGS, does it?
10:59
<
jhass >
blassin: actually it does, it just invokes cc (or ENV["CC"] if you set it) as linker
11:01
<
blassin >
I changed the readline.dylib link to point to libreadline, and not libedit, but the crystal binary still links to it ....
11:01
<
blassin >
/usr/lib/libedit.3.dylib (compatibility version 2.0.0, current version 3.0.0)
11:01
<
blassin >
(output of otool -L)
11:02
<
blassin >
where does it says specifically on the src to use libedit?
11:02
<
blassin >
the only mention of libedit I see is the Vagrantfile
11:08
<
dzv >
i think there is an open issue about this type of problem on github.
11:10
<
jhass >
blassin: iirc it's one of the default flags llvm-config outputs
11:11
<
blassin >
jhass: yeah, found it
11:11
<
blassin >
-lz -lpthread -lffi -ledit -lcurses -lm
11:11
<
blassin >
for llvm-config --system-libs
11:12
<
jhass >
is linking against both really an issue? I never really looked what libedit is tbh
11:13
<
crystal-gh >
crystal/master fad7dfc Ary Borenszweig: Fixed #1340: bug with splat argument
11:18
tatey_ has quit [Read error: Connection reset by peer]
11:18
tatey__ has joined #crystal-lang
11:22
<
blassin >
jhass: I'm getting SIGSEGVs
11:22
<
blassin >
just wanna rule libedit out
11:22
<
blassin >
and it's not linking to both, it's only linking to libedit
11:22
<
jhass >
what kind? checked with gdb/valgrind?
11:22
<
blassin >
my theory is libedit does not match libreadline's API
11:22
<
blassin >
I'll try gdb
11:22
<
blassin >
I just patched llvm-config to return -lreadline instead of -ledit, crystal still links to ledit
11:23
<
jhass >
mmh, might be embedded and need a recompile of the compiler
11:24
<
jhass >
there's no single mention of the word edit in the codebase, so...
11:26
<
crystal-gh >
crystal/master fd79767 Ary Borenszweig: Fixed #1337: automatically use virtual type when taking proc pointer
11:32
blassin has quit [Quit: Page closed]
11:33
blassin has joined #crystal-lang
11:34
BlaXpirit has quit [Quit: Konversation]
11:39
Ven has joined #crystal-lang
11:48
BlaXpirit has joined #crystal-lang
11:59
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
12:14
blassin has quit [Quit: Page closed]
12:15
blassin has joined #crystal-lang
12:37
waj_ has joined #crystal-lang
12:41
havenwood has joined #crystal-lang
12:43
waj__ has joined #crystal-lang
12:44
waj_ has quit [Read error: Connection reset by peer]
12:44
<
trapped >
i'm getting `Bug: trying to upcast TCPSocket <- TCPSocket+`
12:46
waj__ has quit [Remote host closed the connection]
12:46
<
trapped >
jhass: i tried to clone and use the tip compiler but it still crashes
12:46
<
trapped >
Crystal 0.7.6 [fd79767] (Tue Sep 1 12:07:03 UTC 2015)
12:46
ssvb has quit [Ping timeout: 268 seconds]
12:47
<
trapped >
might be but then i have no idea why i have a TCPSocket+ instead of a TCPSocket
12:48
<
jhass >
let's see if I can get it reduced
12:48
<
jhass >
because there are subclasses of it somewhere
12:48
<
jhass >
it's the same type, the + is actually a compiler internal
12:49
<
trapped >
what does the + exactly mean? that it's a derived object?
12:49
<
jhass >
that it's a parent class
12:50
<
jhass >
(that there are subclasses, in other words)
12:50
<
jhass >
it's a bit weird, I'll try to reduce the code and report it
12:50
<
jhass >
which file do you run in your repo?
12:51
<
trapped >
src/maild.cr generates main
12:51
<
jhass >
so you have the pop3 require commented locally?
12:51
<
trapped >
not really
12:51
<
trapped >
considering * can select 0 files as well i doubt it's requiring anything
12:52
<
jhass >
well, the directory is not in the repo
12:52
<
trapped >
it's an empty directory
12:52
<
jhass >
if I comment it I get some not matching overload issue
12:52
<
jhass >
yes, git doesn't commit directories, only files
12:52
<
jhass >
directories are implicitly created due to files residing in them
12:53
<
jhass >
are you sure you tried the head compiler?
12:53
<
trapped >
Crystal 0.7.6 [fd79767] (Tue Sep 1 12:07:03 UTC 2015)
12:53
<
jhass >
the current release gives me your upcast bug, but the head compiler gives me the overload issue
12:54
<
jhass >
are you sure you ran it through the bin/crystal script in the repo?
12:54
<
jhass >
~/path/to/crystal/bin/crystal src/maild.cr
12:55
<
trapped >
actually you're right
12:55
<
trapped >
i aliased the command but make was ignoring the alias
12:56
<
trapped >
i'm getting that too now
12:57
<
jhass >
still haven't given up on defining methods I see :P
12:58
<
trapped >
i tried using procs but then {{yield}} doubts ensued and i started having no idea what i was doing
12:58
Ven has joined #crystal-lang
12:58
<
jhass >
anyway, you need to better restrict on Proc
12:59
ssvb has joined #crystal-lang
13:00
<
trapped >
hmm Bug: unsupported restriction: TCPSocket+ vs. TCPSocket+
13:00
<
jhass >
mmh, yeah, something's broken
13:07
waj_ has joined #crystal-lang
13:08
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
13:14
tatey__ has quit []
13:15
Dreamer3 has quit [Remote host closed the connection]
13:19
waj_ has quit [Remote host closed the connection]
13:26
Ven has joined #crystal-lang
13:40
<
trapped >
jhass: great
13:40
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
13:55
<
crystal-gh >
crystal/master 21bcb1c Ary Borenszweig: Fixed #1347: missing virtual type handling in aliases to procs
13:57
Ven has joined #crystal-lang
14:15
ssvb has quit [Ping timeout: 244 seconds]
14:18
waj_ has joined #crystal-lang
14:19
ssvb has joined #crystal-lang
14:19
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
14:26
ssvb has quit [Ping timeout: 256 seconds]
14:27
Ven has joined #crystal-lang
14:29
Ven has quit [Client Quit]
14:40
Ven has joined #crystal-lang
14:45
NeverDie has joined #crystal-lang
14:47
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
14:50
Ven has joined #crystal-lang
14:54
Ven has quit [Client Quit]
15:07
glenab has joined #crystal-lang
15:33
dyulax has quit [Ping timeout: 260 seconds]
16:13
leafybasil has quit [Remote host closed the connection]
16:14
kulelu88 has joined #crystal-lang
16:17
kulelu88 has left #crystal-lang [#crystal-lang]
16:19
dyulax has joined #crystal-lang
16:26
<
blassin >
is it possible to do "plugins" in Crystal?
16:26
<
blassin >
example: a program that outputs either via curses or SDL
16:26
<
blassin >
can a program enumerate installed libs and pick one?
16:27
<
jhass >
not really, you have to link against everything you support
16:27
<
blassin >
what if I have a hash of all supported constants, and require each of them and rescue errors?
16:27
<
jhass >
at build time you could though I guess
16:28
ponga has joined #crystal-lang
16:28
<
jhass >
you'll still have to link
16:28
<
blassin >
jhass: what do you mean by that?
16:28
leafybasil has joined #crystal-lang
16:28
<
jhass >
blassin: against the dynamic library if you build the binary
16:29
<
blassin >
but wouldn't requiring the constant already do that?
16:29
<
jhass >
constants have nothing to do with that
16:29
<
blassin >
if I require the CursesInterface, and it requires curses, that's it, right?
16:30
<
jhass >
crystal evaluates if there are any
*possible* calls to functions defined in a lib section to determine whether to link against the library it maps out
16:30
<
blassin >
this is all at build time, having the deps in would just give more runtime options to the program
16:31
<
jhass >
if you can scope those out via ifdef or other compile time measures like macros, then probably yes
16:31
<
jhass >
that's what I meant with build time
16:32
<
ponga >
gud that API button has finally appeared on crystal-lang.org !
16:37
<
ponga >
i need to read 0.7.4 and 0.7.5 note
16:37
dyulax has quit [Read error: Connection reset by peer]
16:37
dyulax has joined #crystal-lang
16:42
fowlduck has joined #crystal-lang
16:46
fowlduck has quit [Ping timeout: 240 seconds]
16:46
ssvb has joined #crystal-lang
16:46
blassin has quit [Quit: Page closed]
16:57
dyulax has quit [Read error: Connection reset by peer]
16:57
Excureo has joined #crystal-lang
17:00
dyulax has joined #crystal-lang
17:04
waterlink has joined #crystal-lang
17:29
qard has joined #crystal-lang
17:34
willl has joined #crystal-lang
17:50
havenwood has joined #crystal-lang
17:50
dyulax has quit [Read error: Connection reset by peer]
17:51
dyulax has joined #crystal-lang
17:52
blue_deref has joined #crystal-lang
17:54
ponga has quit [Quit: Leaving...]
17:59
havenwood has quit [Ping timeout: 255 seconds]
18:04
havenwood has joined #crystal-lang
18:17
<
jhass >
try LIBRARY_PATH="/opt/crystal/embedded/lib" or whatever the path was
18:19
dyulax has quit [Read error: Connection reset by peer]
18:20
<
trapped >
it worked
18:20
<
trapped >
but now it crashes on a nil assertion on startup
18:20
<
trapped >
i guess it's my fault though
18:23
dyulax has joined #crystal-lang
18:26
<
trapped >
it seems that `caller[0][/::(\w+)#(\w+)</i, 1]` on top level crashes (`caller = ["__crystal_main +24654 [0]", "main +32 [0]", "__libc_start_main +245 [0]", "_start +41 [0]", " +41 [0]"]`)
18:27
fowlduck has joined #crystal-lang
18:28
<
trapped >
using `[regex,group]?` instead works fine
18:31
fowlduck has quit [Ping timeout: 244 seconds]
18:38
havenwood has quit [Ping timeout: 244 seconds]
18:39
havenwood has joined #crystal-lang
18:44
<
Kilo`byte >
whats the most simply environment a crystal program needs to run
18:44
<
Kilo`byte >
like, what libc functions are actually needed
18:44
<
jhass >
depends on the program
18:44
<
jhass >
compile one and play with nm
18:45
<
Kilo`byte >
like, i know c++ (ofc way more low-level) pretty much only needs the new and delete operator defined
18:46
<
Kilo`byte >
which you can pretty much map directly to malloc and free
18:47
<
jhass >
I got a true implementation that also can act as false down to 6K stripped
18:47
<
jhass >
still needed to link libc for some reason
18:47
<
jhass >
but I guess only for it's _start
18:48
<
jhass >
though a stub _start from the net didn't work
18:48
<
Kilo`byte >
what i am thinking about is using crystal on some embedded system (ARM) which does not have any OS
18:48
<
Kilo`byte >
i wonder if i can get away without and c code
18:49
<
jhass >
well, a real program without GC gonna be trikcy
18:49
<
Kilo`byte >
well, if i implement all memory related function the gc needs i should be fine
18:50
<
crystal-gh >
crystal/master f873923 Ary Borenszweig: Fixed #1233: break skips ensure blocks
18:50
<
Kilo`byte >
heck, with a small wrapper in c one could possibly write an OS in crystal (not that i'd say thats a good idea, crystal is kinda too high-level for that)
18:51
<
jhass >
did you see syscall.cr?
18:54
<
Kilo`byte >
jhass: well, thats still usermode :P
18:54
<
jhass >
sure, fully aware
19:02
havenwood has quit [Ping timeout: 264 seconds]
19:04
<
Kilo`byte >
osdev would actually be a reason to have a compiler option for disabling the GC
19:04
<
Kilo`byte >
ofc the standard lib wouldn't work then anymore
19:04
<
Kilo`byte >
(well, it'd be littered with memleaks)
19:09
glenab has quit [Remote host closed the connection]
19:17
waj has joined #crystal-lang
19:18
dyulax has quit [Quit: This computer has gone to sleep]
19:23
dyulax has joined #crystal-lang
19:28
fowlduck has joined #crystal-lang
19:33
fowlduck has quit [Ping timeout: 256 seconds]
19:34
pleiosaur has quit [*.net *.split]
19:34
jbye has quit [*.net *.split]
19:34
ashleyis has quit [*.net *.split]
19:34
pleiosaur has joined #crystal-lang
19:34
jbye has joined #crystal-lang
19:35
ashleyis has joined #crystal-lang
19:36
<
crystal-gh >
[crystal] asterite closed pull request #1304: Fix #1253 and disallow illegal bodies on HTTP Response (master...master)
http://git.io/vGIo0
19:47
pleiosaur has quit [*.net *.split]
19:47
jbye has quit [*.net *.split]
19:51
<
trapped >
it seems that TCPSocket.puts only appends \n and not \r
19:52
<
trapped >
how can i change its behaviour to append \r too? extending the class and overriding the puts method?
19:52
pleiosaur has joined #crystal-lang
19:52
jbye has joined #crystal-lang
19:52
<
jhass >
or just call it with "\r\n", it won't append if already there
20:04
glenab has joined #crystal-lang
20:07
fowlduck has joined #crystal-lang
20:15
dyulax has quit [Read error: Connection reset by peer]
20:16
dyulax has joined #crystal-lang
20:22
blue_deref has quit [Quit: Taking myself out of hear.]
20:22
glenab has quit [Remote host closed the connection]
20:29
dyulax has quit [Quit: This computer has gone to sleep]
20:39
fowlduck has quit [Quit: Leaving...]
20:39
dyulax has joined #crystal-lang
20:47
glenab has joined #crystal-lang
20:49
willl has quit [Quit: Connection closed for inactivity]
21:01
havenwood has joined #crystal-lang
21:07
havenwood has quit [Ping timeout: 272 seconds]
21:23
dyulax has quit [Quit: This computer has gone to sleep]
21:49
havenwood has joined #crystal-lang
22:13
dyulax has joined #crystal-lang
22:20
fowlduck has joined #crystal-lang
22:28
<
waj >
and I still couldn't finish to migrate the debug info to 3.6 :(
22:28
<
waj >
but now I'm using the DIBuilder, so it should be more portable between versions
22:29
<
waj >
jhass: I'm debugging #1311 and I found that it get stuck inside the `caller` loop
22:30
<
waj >
more precisely, `Unwind.step` seems to always return a positive number in that case
22:30
<
waj >
I wonder if it's just some bad definition of the lib
22:32
dylanmei has joined #crystal-lang
22:42
glenab has quit [Remote host closed the connection]
22:42
kyrylo has quit [Quit: Konversation terminated!]
22:43
glenab has joined #crystal-lang
22:43
kyrylo has joined #crystal-lang
22:43
BlaXpirit has quit [Quit: Konversation]
22:58
fowlduck has quit [Remote host closed the connection]
22:58
havenwood has quit [Ping timeout: 272 seconds]
22:59
fowlduck has joined #crystal-lang
23:02
waj has quit [Remote host closed the connection]
23:04
fowlduck has quit [Ping timeout: 246 seconds]
23:05
blue_deref has joined #crystal-lang
23:05
trapped has quit [Ping timeout: 264 seconds]
23:12
fowlduck has joined #crystal-lang
23:21
dylanmei has quit [Quit: ZZZzzz…]
23:25
tatey_ has joined #crystal-lang
23:28
glenab has quit [Remote host closed the connection]
23:28
glenab has joined #crystal-lang
23:29
<
crystal-gh >
crystal/master 26c7f58 Jonne Haß: spawn: print exception class and backtrace to stderr
23:29
<
crystal-gh >
crystal/master e6ea6a8 Ary Borenszweig: Merge pull request #1288 from jhass/spawn_exception...
23:31
glenab has quit [Client Quit]
23:53
fowlduck has quit [Remote host closed the connection]
23:58
fowlduck has joined #crystal-lang