jhass changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.7.6 | Fund Crystals development: http://is.gd/X7PRtI | Paste > 3 lines of text to https://gist.github.com | GH: https://github.com/manastech/crystal | Docs: http://crystal-lang.org/docs/ | API: http://crystal-lang.org/api/ | Logs: http://irclog.whitequark.org/crystal-lang
kyrylo has quit [Quit: Konversation terminated!]
kyrylo has joined #crystal-lang
fowlduck has quit [Remote host closed the connection]
NeverDie has joined #crystal-lang
<waterlink> waj: I will look into it. Might be it even worth switching to `manastech/crystal-mysql` and contribute to it.
kyrylo has quit [Ping timeout: 244 seconds]
kyrylo_ has joined #crystal-lang
kyrylo_ is now known as kyrylo
kyrylo is now known as kyrylo_
kyrylo_ is now known as kyrylo
kyrylo is now known as kyryloga
kyryloga is now known as kyrylo
waterlink has quit [Quit: leaving]
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
fowlduck has joined #crystal-lang
fowlduck has quit [Ping timeout: 246 seconds]
<crystal-gh> [crystal] asterite pushed 1 new commit to master: http://git.io/vGzA9
<crystal-gh> crystal/master 3e43626 Ary Borenszweig: Fixed #1323: use "...:Module" for modules in error messages
CraigBuchek has joined #crystal-lang
<travis-ci> manastech/crystal#3e43626 (master - Fixed #1323: use "...:Module" for modules in error messages): The build has errored. https://travis-ci.org/manastech/crystal/builds/78150097
<crystal-gh> [crystal] 5t111111 opened pull request #1343: Fix the link for Homebrew tap (gh-pages...fix-brew-tap-link) http://git.io/vGzja
ssvb has quit [Ping timeout: 244 seconds]
<crystal-gh> [crystal] asterite closed pull request #1343: Fix the link for Homebrew tap (gh-pages...fix-brew-tap-link) http://git.io/vGzja
waj has quit [Remote host closed the connection]
kyrylo has quit [Ping timeout: 244 seconds]
qard has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<crystal-gh> [crystal] asterite pushed 1 new commit to master: http://git.io/vGgkX
<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.
NeverDie has joined #crystal-lang
NeverDie has quit [Max SendQ exceeded]
NeverDie has joined #crystal-lang
NeverDie has quit [Read error: Connection reset by peer]
waj has joined #crystal-lang
sailorswift has joined #crystal-lang
waj has quit [Ping timeout: 268 seconds]
waj has joined #crystal-lang
fowlduck has joined #crystal-lang
fowlduck has quit [Remote host closed the connection]
fowlduck has joined #crystal-lang
ylluminate has quit [Quit: Leaving.]
sailorsw_ has joined #crystal-lang
NeverDie has joined #crystal-lang
sailorswift has quit [Ping timeout: 264 seconds]
NeverDie has quit [Ping timeout: 252 seconds]
waj has quit [Read error: Connection reset by peer]
waj_ has joined #crystal-lang
waj_ has quit [Read error: Connection reset by peer]
waj has joined #crystal-lang
NeverDie has joined #crystal-lang
NeverDie has quit [Read error: Connection reset by peer]
CraigBuchek has quit [Quit: Leaving.]
NeverDie has joined #crystal-lang
waj has quit [Read error: Connection reset by peer]
waj_ has joined #crystal-lang
NeverDie has quit [Ping timeout: 264 seconds]
NeverDie has joined #crystal-lang
NeverDie has quit [Read error: Connection reset by peer]
NeverDie has joined #crystal-lang
ytti has joined #crystal-lang
<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
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
waj_ has quit [Remote host closed the connection]
sailorsw_ has quit [Quit: Textual IRC Client: www.textualapp.com]
NeverDie has quit [Quit: I'm off to sleep. ZZZzzz…]
fowlduck has quit [Remote host closed the connection]
BlaXpirit has joined #crystal-lang
ylluminate has joined #crystal-lang
emancu has joined #crystal-lang
emancu has quit [Client Quit]
ssvb has joined #crystal-lang
<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
Ven has joined #crystal-lang
<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
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
fowlduck has joined #crystal-lang
fowlduck has quit [Ping timeout: 250 seconds]
tatey_ has quit []
leafybasil has quit [Remote host closed the connection]
Ven has joined #crystal-lang
kyrylo has joined #crystal-lang
Ven has quit [Read error: Connection reset by peer]
Ven has joined #crystal-lang
lokulin has quit [Ping timeout: 250 seconds]
lokulin has joined #crystal-lang
sailorswift has joined #crystal-lang
leafybasil has joined #crystal-lang
tatey_ has joined #crystal-lang
willl has quit [Quit: Connection closed for inactivity]
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
sailorswift has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
jokke has quit [Quit: WeeChat 1.2]
blassin has joined #crystal-lang
<blassin> hey!
<blassin> anyone developing on Mac OS here?
<blassin> I've installed libreadline, but homebrew says there's a system lib that shadows it
<blassin> what's the proper way to build Crystal with access to the right lib?
<blassin> the compiler doesn't use CFLAGS, does it?
<jhass> blassin: actually it does, it just invokes cc (or ENV["CC"] if you set it) as linker
<blassin> hmm
<blassin> I changed the readline.dylib link to point to libreadline, and not libedit, but the crystal binary still links to it ....
<blassin> /usr/lib/libedit.3.dylib (compatibility version 2.0.0, current version 3.0.0)
<blassin> (output of otool -L)
<blassin> where does it says specifically on the src to use libedit?
<blassin> the only mention of libedit I see is the Vagrantfile
<dzv> i think there is an open issue about this type of problem on github.
<jhass> blassin: iirc it's one of the default flags llvm-config outputs
<blassin> jhass: yeah, found it
<blassin> -lz -lpthread -lffi -ledit -lcurses -lm
<blassin> for llvm-config --system-libs
<jhass> is linking against both really an issue? I never really looked what libedit is tbh
<crystal-gh> [crystal] asterite pushed 1 new commit to master: http://git.io/vG2ho
<crystal-gh> crystal/master fad7dfc Ary Borenszweig: Fixed #1340: bug with splat argument
tatey_ has quit [Read error: Connection reset by peer]
tatey__ has joined #crystal-lang
<blassin> jhass: I'm getting SIGSEGVs
<blassin> just wanna rule libedit out
<blassin> and it's not linking to both, it's only linking to libedit
<jhass> what kind? checked with gdb/valgrind?
<blassin> my theory is libedit does not match libreadline's API
<blassin> I'll try gdb
<blassin> I just patched llvm-config to return -lreadline instead of -ledit, crystal still links to ledit
<travis-ci> manastech/crystal#fad7dfc (master - Fixed #1340: bug with splat argument): The build passed. https://travis-ci.org/manastech/crystal/builds/78202951
<jhass> huh
<jhass> mmh, might be embedded and need a recompile of the compiler
<jhass> there's no single mention of the word edit in the codebase, so...
<crystal-gh> [crystal] asterite pushed 1 new commit to master: http://git.io/vGafK
<crystal-gh> crystal/master fd79767 Ary Borenszweig: Fixed #1337: automatically use virtual type when taking proc pointer
blassin has quit [Quit: Page closed]
blassin has joined #crystal-lang
BlaXpirit has quit [Quit: Konversation]
<travis-ci> manastech/crystal#fd79767 (master - Fixed #1337: automatically use virtual type when taking proc pointer): The build passed. https://travis-ci.org/manastech/crystal/builds/78204626
Ven has joined #crystal-lang
BlaXpirit has joined #crystal-lang
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
blassin has quit [Quit: Page closed]
blassin has joined #crystal-lang
waj_ has joined #crystal-lang
<dzv> am i doing something wrong here or are keyword args broken in certain cases? http://carc.in/#/r/dgs
havenwood has joined #crystal-lang
waj__ has joined #crystal-lang
waj_ has quit [Read error: Connection reset by peer]
<trapped> i'm getting `Bug: trying to upcast TCPSocket <- TCPSocket+`
waj__ has quit [Remote host closed the connection]
<trapped> jhass: i tried to clone and use the tip compiler but it still crashes
<trapped> Crystal 0.7.6 [fd79767] (Tue Sep 1 12:07:03 UTC 2015)
ssvb has quit [Ping timeout: 268 seconds]
<trapped> might be but then i have no idea why i have a TCPSocket+ instead of a TCPSocket
<jhass> let's see if I can get it reduced
<jhass> because there are subclasses of it somewhere
<jhass> it's the same type, the + is actually a compiler internal
<trapped> what does the + exactly mean? that it's a derived object?
<jhass> that it's a parent class
<jhass> (that there are subclasses, in other words)
<trapped> i see
<jhass> it's a bit weird, I'll try to reduce the code and report it
<jhass> which file do you run in your repo?
<trapped> src/maild.cr generates main
<jhass> so you have the pop3 require commented locally?
<trapped> not really
<trapped> considering * can select 0 files as well i doubt it's requiring anything
<jhass> well, the directory is not in the repo
<trapped> it's an empty directory
<jhass> if I comment it I get some not matching overload issue
<jhass> yes, git doesn't commit directories, only files
<jhass> directories are implicitly created due to files residing in them
<jhass> are you sure you tried the head compiler?
<trapped> yes
<trapped> Crystal 0.7.6 [fd79767] (Tue Sep 1 12:07:03 UTC 2015)
<jhass> the current release gives me your upcast bug, but the head compiler gives me the overload issue
<jhass> are you sure you ran it through the bin/crystal script in the repo?
<trapped> yes
<jhass> ~/path/to/crystal/bin/crystal src/maild.cr
<trapped> actually you're right
<trapped> i aliased the command but make was ignoring the alias
<trapped> i'm getting that too now
<jhass> still haven't given up on defining methods I see :P
<trapped> i tried using procs but then {{yield}} doubts ensued and i started having no idea what i was doing
Ven has joined #crystal-lang
<jhass> anyway, you need to better restrict on Proc
ssvb has joined #crystal-lang
<trapped> hmm Bug: unsupported restriction: TCPSocket+ vs. TCPSocket+
<jhass> mmh, yeah, something's broken
waj_ has joined #crystal-lang
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tatey__ has quit []
Dreamer3 has quit [Remote host closed the connection]
waj_ has quit [Remote host closed the connection]
Ven has joined #crystal-lang
<jhass> trapped: http://carc.in/#/r/dh5 is as much as I can reduce it I think, going to open an issue now
<trapped> jhass: great
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<crystal-gh> [crystal] asterite pushed 1 new commit to master: http://git.io/vGVej
<crystal-gh> crystal/master 21bcb1c Ary Borenszweig: Fixed #1347: missing virtual type handling in aliases to procs
Ven has joined #crystal-lang
<travis-ci> manastech/crystal#21bcb1c (master - Fixed #1347: missing virtual type handling in aliases to procs): The build passed. https://travis-ci.org/manastech/crystal/builds/78227593
ssvb has quit [Ping timeout: 244 seconds]
waj_ has joined #crystal-lang
ssvb has joined #crystal-lang
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ssvb has quit [Ping timeout: 256 seconds]
Ven has joined #crystal-lang
Ven has quit [Client Quit]
Ven has joined #crystal-lang
NeverDie has joined #crystal-lang
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Ven has joined #crystal-lang
Ven has quit [Client Quit]
glenab has joined #crystal-lang
waj_ has quit []
dyulax has quit [Ping timeout: 260 seconds]
havenwood has quit [Quit: Textual IRC Client: www.textualapp.com]
leafybasil has quit [Remote host closed the connection]
kulelu88 has joined #crystal-lang
kulelu88 has left #crystal-lang [#crystal-lang]
dyulax has joined #crystal-lang
<blassin> is it possible to do "plugins" in Crystal?
<blassin> example: a program that outputs either via curses or SDL
<blassin> can a program enumerate installed libs and pick one?
<jhass> not really, you have to link against everything you support
<blassin> what if I have a hash of all supported constants, and require each of them and rescue errors?
<jhass> at build time you could though I guess
ponga has joined #crystal-lang
<jhass> you'll still have to link
<ponga> hi jhass
<blassin> jhass: what do you mean by that?
<jhass> hi
leafybasil has joined #crystal-lang
<jhass> blassin: against the dynamic library if you build the binary
<blassin> but wouldn't requiring the constant already do that?
<jhass> constants have nothing to do with that
<blassin> if I require the CursesInterface, and it requires curses, that's it, right?
<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
<blassin> this is all at build time, having the deps in would just give more runtime options to the program
<jhass> if you can scope those out via ifdef or other compile time measures like macros, then probably yes
<jhass> that's what I meant with build time
<blassin> ok
<ponga> gud that API button has finally appeared on crystal-lang.org !
<ponga> i need to read 0.7.4 and 0.7.5 note
dyulax has quit [Read error: Connection reset by peer]
dyulax has joined #crystal-lang
fowlduck has joined #crystal-lang
fowlduck has quit [Ping timeout: 240 seconds]
ssvb has joined #crystal-lang
blassin has quit [Quit: Page closed]
dyulax has quit [Read error: Connection reset by peer]
Excureo has joined #crystal-lang
dyulax has joined #crystal-lang
waterlink has joined #crystal-lang
qard has joined #crystal-lang
willl has joined #crystal-lang
havenwood has joined #crystal-lang
dyulax has quit [Read error: Connection reset by peer]
dyulax has joined #crystal-lang
blue_deref has joined #crystal-lang
ponga has quit [Quit: Leaving...]
havenwood has quit [Ping timeout: 255 seconds]
havenwood has joined #crystal-lang
<trapped> jhass: with updated tip compiler (on last commit as of right now) i get this https://gist.github.com/trapped/3d1fde2da5c648a7e4f4
<jhass> huh
<jhass> try LIBRARY_PATH="/opt/crystal/embedded/lib" or whatever the path was
dyulax has quit [Read error: Connection reset by peer]
<trapped> it worked
<trapped> but now it crashes on a nil assertion on startup
<trapped> i guess it's my fault though
dyulax has joined #crystal-lang
<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]"]`)
fowlduck has joined #crystal-lang
<trapped> using `[regex,group]?` instead works fine
fowlduck has quit [Ping timeout: 244 seconds]
havenwood has quit [Ping timeout: 244 seconds]
havenwood has joined #crystal-lang
<Kilo`byte> whats the most simply environment a crystal program needs to run
<Kilo`byte> like, what libc functions are actually needed
<jhass> depends on the program
<jhass> compile one and play with nm
<Kilo`byte> like, i know c++ (ofc way more low-level) pretty much only needs the new and delete operator defined
<Kilo`byte> which you can pretty much map directly to malloc and free
<jhass> I got a true implementation that also can act as false down to 6K stripped
<jhass> still needed to link libc for some reason
<jhass> but I guess only for it's _start
<jhass> though a stub _start from the net didn't work
<Kilo`byte> what i am thinking about is using crystal on some embedded system (ARM) which does not have any OS
<Kilo`byte> i wonder if i can get away without and c code
<jhass> well, a real program without GC gonna be trikcy
<Kilo`byte> *any
<Kilo`byte> well, if i implement all memory related function the gc needs i should be fine
<crystal-gh> [crystal] asterite pushed 1 new commit to master: http://git.io/vGr3A
<crystal-gh> crystal/master f873923 Ary Borenszweig: Fixed #1233: break skips ensure blocks
<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)
<jhass> did you see syscall.cr?
<Kilo`byte> nope
<Kilo`byte> jhass: well, thats still usermode :P
<jhass> sure, fully aware
havenwood has quit [Ping timeout: 264 seconds]
<Kilo`byte> osdev would actually be a reason to have a compiler option for disabling the GC
<Kilo`byte> ofc the standard lib wouldn't work then anymore
<Kilo`byte> (well, it'd be littered with memleaks)
<travis-ci> manastech/crystal#f873923 (master - Fixed #1233: break skips ensure blocks): The build has errored. https://travis-ci.org/manastech/crystal/builds/78276450
glenab has quit [Remote host closed the connection]
waj has joined #crystal-lang
dyulax has quit [Quit: This computer has gone to sleep]
dyulax has joined #crystal-lang
fowlduck has joined #crystal-lang
fowlduck has quit [Ping timeout: 256 seconds]
pleiosaur has quit [*.net *.split]
jbye has quit [*.net *.split]
ashleyis has quit [*.net *.split]
pleiosaur has joined #crystal-lang
jbye has joined #crystal-lang
ashleyis has joined #crystal-lang
<crystal-gh> [crystal] asterite closed pull request #1304: Fix #1253 and disallow illegal bodies on HTTP Response (master...master) http://git.io/vGIo0
pleiosaur has quit [*.net *.split]
jbye has quit [*.net *.split]
<trapped> it seems that TCPSocket.puts only appends \n and not \r
<trapped> how can i change its behaviour to append \r too? extending the class and overriding the puts method?
<jhass> I guess
pleiosaur has joined #crystal-lang
jbye has joined #crystal-lang
<jhass> or just call it with "\r\n", it won't append if already there
glenab has joined #crystal-lang
fowlduck has joined #crystal-lang
dyulax has quit [Read error: Connection reset by peer]
dyulax has joined #crystal-lang
blue_deref has quit [Quit: Taking myself out of hear.]
glenab has quit [Remote host closed the connection]
dyulax has quit [Quit: This computer has gone to sleep]
fowlduck has quit [Quit: Leaving...]
dyulax has joined #crystal-lang
glenab has joined #crystal-lang
willl has quit [Quit: Connection closed for inactivity]
havenwood has joined #crystal-lang
havenwood has quit [Ping timeout: 272 seconds]
dyulax has quit [Quit: This computer has gone to sleep]
havenwood has joined #crystal-lang
dyulax has joined #crystal-lang
fowlduck has joined #crystal-lang
<waj> and I still couldn't finish to migrate the debug info to 3.6 :(
<waj> but now I'm using the DIBuilder, so it should be more portable between versions
<waj> jhass: I'm debugging #1311 and I found that it get stuck inside the `caller` loop
<waj> more precisely, `Unwind.step` seems to always return a positive number in that case
<waj> I wonder if it's just some bad definition of the lib
dylanmei has joined #crystal-lang
glenab has quit [Remote host closed the connection]
kyrylo has quit [Quit: Konversation terminated!]
glenab has joined #crystal-lang
kyrylo has joined #crystal-lang
BlaXpirit has quit [Quit: Konversation]
fowlduck has quit [Remote host closed the connection]
havenwood has quit [Ping timeout: 272 seconds]
fowlduck has joined #crystal-lang
waj has quit [Remote host closed the connection]
fowlduck has quit [Ping timeout: 246 seconds]
blue_deref has joined #crystal-lang
trapped has quit [Ping timeout: 264 seconds]
fowlduck has joined #crystal-lang
dylanmei has quit [Quit: ZZZzzz…]
tatey_ has joined #crystal-lang
glenab has quit [Remote host closed the connection]
glenab has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 2 new commits to master: http://git.io/vGodk
<crystal-gh> crystal/master 26c7f58 Jonne Haß: spawn: print exception class and backtrace to stderr
<crystal-gh> crystal/master e6ea6a8 Ary Borenszweig: Merge pull request #1288 from jhass/spawn_exception...
glenab has quit [Client Quit]
<travis-ci> manastech/crystal#e6ea6a8 (master - Merge pull request #1288 from jhass/spawn_exception): The build passed. https://travis-ci.org/manastech/crystal/builds/78320388
fowlduck has quit [Remote host closed the connection]
fowlduck has joined #crystal-lang