jhass changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.9.0 | 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
trapped has joined #crystal-lang
McDougal has joined #crystal-lang
blue_deref has joined #crystal-lang
trapped has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
NeverDie has quit [Quit: http://radiux.io/ -> Manhattan Project]
NeverDie has joined #crystal-lang
McDougal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
Cidan is now known as zz_Cidan
McDougal has joined #crystal-lang
<crystal-gh> [crystal] spalladino pushed 1 new commit to master: http://git.io/vlvL0
<crystal-gh> crystal/master b7cd5d2 Santiago Palladino: Rename concucrrent_spec.cr to concurrent_spec.cr...
NeverDie_ has joined #crystal-lang
NeverDie has quit [Ping timeout: 250 seconds]
<travis-ci> manastech/crystal#b7cd5d2 (master - Rename concucrrent_spec.cr to concurrent_spec.cr): The build passed. https://travis-ci.org/manastech/crystal/builds/88256020
zz_Cidan is now known as Cidan
McDougal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kulelu88 has quit [Quit: Leaving]
McDougal has joined #crystal-lang
Cidan is now known as zz_Cidan
zz_Cidan is now known as Cidan
adler has joined #crystal-lang
NeverDie_ is now known as NeverDie
rosylilly has joined #crystal-lang
rosylilly has quit [Ping timeout: 260 seconds]
rosylilly has joined #crystal-lang
leafybasil has quit [Remote host closed the connection]
rosylilly has quit [Remote host closed the connection]
rosylilly has joined #crystal-lang
rosylilly has quit [Remote host closed the connection]
rosylilly has joined #crystal-lang
McDougal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rosylilly has quit [Ping timeout: 265 seconds]
A124 has quit [Read error: Connection reset by peer]
A124 has joined #crystal-lang
n1ftyn8_ has quit [Read error: Connection reset by peer]
mroth has quit [Read error: Connection reset by peer]
n1ftyn8_ has joined #crystal-lang
mroth has joined #crystal-lang
pawnbox has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 2 new commits to master: http://git.io/vlvXb
<crystal-gh> crystal/master 6b54708 Ary Borenszweig: Renamed `Slice#each_reverse` to `Slice#reverse_each` for consistency. Don't use `-=` inside call
<crystal-gh> crystal/master b3b1223 Ary Borenszweig: Updated Changelog
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
Cidan is now known as zz_Cidan
<travis-ci> manastech/crystal#b3b1223 (master - Updated Changelog): The build passed. https://travis-ci.org/manastech/crystal/builds/88264729
zz_Cidan is now known as Cidan
McDougal has joined #crystal-lang
rosylilly has joined #crystal-lang
pawnbox has quit [Ping timeout: 240 seconds]
pawnbox has joined #crystal-lang
pawnbox has quit [Client Quit]
pawnbox has joined #crystal-lang
shama has quit [Read error: Connection reset by peer]
McDougal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
shama has joined #crystal-lang
Cidan is now known as zz_Cidan
pawnbox has quit [Read error: Connection reset by peer]
pawnbox has joined #crystal-lang
zz_Cidan is now known as Cidan
Cidan is now known as zz_Cidan
zz_Cidan is now known as Cidan
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
leafybasil has joined #crystal-lang
leafybasil has quit [Ping timeout: 250 seconds]
adler has quit [Remote host closed the connection]
pawnbox has quit [Ping timeout: 272 seconds]
pawnbox has joined #crystal-lang
adler has joined #crystal-lang
adler has quit [Ping timeout: 256 seconds]
McDougal has joined #crystal-lang
adler has joined #crystal-lang
McDougal has quit [Client Quit]
pawnbox has quit [Ping timeout: 240 seconds]
McDougal has joined #crystal-lang
pawnbox has joined #crystal-lang
leafybasil has joined #crystal-lang
leafybasil has quit [Ping timeout: 240 seconds]
rosylilly has quit [Remote host closed the connection]
Cidan is now known as zz_Cidan
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
zz_Cidan is now known as Cidan
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
McDougal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pawnbox has quit [Read error: Connection reset by peer]
Cidan is now known as zz_Cidan
zz_Cidan is now known as Cidan
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 250 seconds]
pawnbox has joined #crystal-lang
rosylilly has joined #crystal-lang
Cidan is now known as zz_Cidan
pawnbox has quit [Read error: Connection reset by peer]
pawnbox has joined #crystal-lang
blue_deref has quit [Quit: bbn]
alsm has joined #crystal-lang
McDougal has joined #crystal-lang
McDougal has quit [Client Quit]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
alsm has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
McDougal has joined #crystal-lang
McDougal has quit [Client Quit]
SergXIIIth has joined #crystal-lang
McDougal has joined #crystal-lang
pawnbox has quit [Read error: Connection reset by peer]
leafybasil has joined #crystal-lang
pawnbox has joined #crystal-lang
<SergXIIIth> Hello. I try example from http://crystal-lang.org/docs/syntax_and_semantics/c_bindings/fun.html. And got an error main_module:(.text+0x8eb): undefined reference to `cos'. How to run example?
<adler> Which example are you running?
leafybasil has quit [Ping timeout: 250 seconds]
<SergXIIIth> lib C
<SergXIIIth> # In C: double cos(double x)
<SergXIIIth> end
<SergXIIIth> C.cos(1.5) #=> 0.0707372
<SergXIIIth> fun cos(value : Float64) : Float64
<SergXIIIth> I think I should some how declare what cos in math.h. Is not it?
pawnbox has quit [Ping timeout: 268 seconds]
<noumar> SergXIIIth: works fine for me.
<noumar> did you compile Crystal or use binary?
pawnbox has joined #crystal-lang
<SergXIIIth> use bin, via apt-get
BlaXpirit has joined #crystal-lang
<SergXIIIth> linked details - Error: execution of command failed with code: 1: `cc -o "/home/msa/prj/vid/sev/.crystal/crystal-run-sev.tmp" "${@}" -rdynamic -lmath -levent -lrt -lpcl -lpcre -lgc -lpthread -ldl`
<noumar> it seem's to be linking math, by -lmath
<noumar> are you running it with e.g. "crystal ex.cr"?
<SergXIIIth> Yep, I try link math, since origin example not work. Yes, run via "crystal src/sev.cr". Change to origin example and got - "main_module:(.text+0x8eb): undefined reference to `cos'
<SergXIIIth> collect2: error: ld returned 1 exit status
<SergXIIIth> Error: execution of command failed with code: 1: `cc -o "/home/msa/prj/vid/sev/.crystal/crystal-run-sev.tmp" "${@}" -rdynamic -levent -lrt -lpcl -lpcre -lgc -lpthread -ldl`"
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
<SergXIIIth> I found work around "@[Link("m")]
<SergXIIIth> lib C
<SergXIIIth> ". Look like it Ubuntu specific - https://github.com/stevengj/libctl/issues/1
<noumar> indeed. I get the same on 15.04.
pawnbox has quit [Ping timeout: 246 seconds]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 244 seconds]
pawnbox has joined #crystal-lang
<noumar> SergXIIIth: looking at the source code you should just use "Math" module and then Math.cos
<noumar> that links in "m" on Linux
pawnbox has quit [Read error: Connection reset by peer]
leafybasil has joined #crystal-lang
pawnbox has joined #crystal-lang
leafybasil has quit [Remote host closed the connection]
pawnbox has quit [Read error: Connection reset by peer]
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
noumar has quit [Quit: Page closed]
pawnbox has joined #crystal-lang
trapped has joined #crystal-lang
noumar has joined #crystal-lang
leafybasil has joined #crystal-lang
McDougal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
trapped has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
adler has quit [Remote host closed the connection]
trapped has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
rosylilly has quit [Remote host closed the connection]
pawnbox has quit [Read error: Connection reset by peer]
McDougal has joined #crystal-lang
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
tatey_ has joined #crystal-lang
pawnbox has quit [Read error: Connection reset by peer]
trapped has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pawnbox has joined #crystal-lang
emancu has joined #crystal-lang
tatey_ has quit [Quit: Textual IRC Client: www.textualapp.com]
jhass changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.9.1 | 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
pawnbox_ has joined #crystal-lang
pawnbox has quit [Ping timeout: 250 seconds]
trapped has joined #crystal-lang
jtarchie has joined #crystal-lang
pawnbox_ has quit [Ping timeout: 240 seconds]
pawnbox has joined #crystal-lang
McDougal has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pawnbox has quit [Ping timeout: 265 seconds]
pawnbox has joined #crystal-lang
xdougx has joined #crystal-lang
<xdougx> hello :)
<xdougx> someone already worked with solr with crystal?
pawnbox_ has joined #crystal-lang
pawnbox has quit [Ping timeout: 265 seconds]
trapped has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
BlaXpirit has quit [Read error: Connection reset by peer]
BlaXpirit has joined #crystal-lang
jokke has quit [Ping timeout: 240 seconds]
BlaXpirit has quit [Quit: Konversation]
jokke has joined #crystal-lang
jtarchie has quit [Quit: Connection closed for inactivity]
<crystal-gh> [crystal] will opened pull request #1840: Build all files in ./src when there are no arguments (master...buildall) http://git.io/vltCV
kgadek has joined #crystal-lang
zz_Cidan is now known as Cidan
greengriminal has joined #crystal-lang
BlaXpirit has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 1 new commit to master: http://git.io/vltFy
<crystal-gh> crystal/master 0f4e586 Ary Borenszweig: Format all source code
<travis-ci> manastech/crystal#0f4e586 (master - Format all source code): The build passed. https://travis-ci.org/manastech/crystal/builds/88375943
noumar has quit [Ping timeout: 246 seconds]
leafybas_ has joined #crystal-lang
leafybasil has quit [Ping timeout: 256 seconds]
leafybas_ has quit [Ping timeout: 252 seconds]
NeverDie has quit [Quit: http://radiux.io/ -> Manhattan Project]
hangyas has joined #crystal-lang
adler has joined #crystal-lang
<xdougx> my i ask a question about crystal application folder structure?
<hangyas> hi, I get this error when trying to use HTTP:Client#new or HTTP:Client#get : https://gist.github.com/hangyas/952321510b4c19c91474
<hangyas> however it works fine with a clean project, so I'm not sure if it's a bug in the std lib, but I have no idea what to do
pawnbox_ has quit [Remote host closed the connection]
<jhass> hangyas: can it be that you pass nil for the ssl flag?
<hangyas> well, i don't do anything with ssl flags
<hangyas> should i?
McDougal has joined #crystal-lang
<jhass> it would be great to have a way to reproduce ...
<hangyas> well, it looks like, if i don't require some of my other code it will work
<hangyas> but that code doesn't even use http
McDougal has quit [Remote host closed the connection]
leafybasil has joined #crystal-lang
gamemanj has joined #crystal-lang
hangyas_ has joined #crystal-lang
hangyas has quit [Ping timeout: 250 seconds]
adler has quit [Remote host closed the connection]
<hangyas_> ok, it looks like i shouldn't make class named File
NeverDie has joined #crystal-lang
trapped has joined #crystal-lang
gamemanj has quit [Remote host closed the connection]
trapped has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<crystal-gh> [crystal] asterite pushed 1 new commit to master: http://git.io/vlm4A
<crystal-gh> crystal/master e9b4800 Ary Borenszweig: Fixed #1842: retain value of expression assigned to `_`
tdc has joined #crystal-lang
kgadek has quit [Quit: gone sleep]
<travis-ci> manastech/crystal#e9b4800 (master - Fixed #1842: retain value of expression assigned to `_`): The build passed. https://travis-ci.org/manastech/crystal/builds/88404239
<DeBot> https://github.com/manastech/crystal/issues/1842 (Assertion failed: (isa(Val) && "cast() argument of incompatible type!)
blue_deref has joined #crystal-lang
<jhass> hangyas_: not at the toplevel, no
<jhass> you reopn the stdlib class
xdougx has quit []
walkingtoast has joined #crystal-lang
<[spoiler]> I have a question about #1839. Suppose `Generic` was some library, why wouldn't it be acceotable for the library *user* to do `a << Generic(Int32).new(1)` instead of `a << Generic.new(1)`? Or am I kinda missing the point
<DeBot> https://github.com/manastech/crystal/issues/1839 (Troubles with generics when they are too general)
<[spoiler]> No I think I am missing the point...
<BlaXpirit> [spoiler], i don't get it. it's supposed to be possible to do Generic.new(1)
<BlaXpirit> that works well
<[spoiler]> BlaXpirit: oh drat, yeah it's complaining about line 10
<[spoiler]> Ok yeah I see now, that *should* be possible. I think the complaint was that one shouldn't need to write `a = [] of Generic(String) | Generic(Int32)`
<[spoiler]> Bleh had a brain fart I guess
walkingtoast has quit [Quit: Leaving...]
fowlduck has joined #crystal-lang
hangyas_ has quit [Quit: hangyas_]
sdogruyol has joined #crystal-lang
<crystal-gh> [crystal] jhass pushed 2 new commits to master: http://git.io/vlYgw
<crystal-gh> crystal/master 3acd6b9 Jonne Haß: TCPServer: close(2) may reset errno, ensure raising the correct error
<crystal-gh> crystal/master 488f14c Jonne Haß: Don't hardcode server ports in specs...
<[spoiler]> Is there a specific reason why we can't do `sizeof(var)` but can do `sizeof(typeof(var))`? I know they're not identical, but the typeof step could be intermediate, or is it on purpose like this, so people don't accidentally use `sizeof` instead of #size or #length?
<BlaXpirit> dunno
<jhass> well, actually needing that construct is very rare
<jhass> and every shortcut you add makes something less coherent and harder to explain
<[spoiler]> I know, I was just curious :P
<[spoiler]> jhass: ok, I'm sold on that last one :)
<travis-ci> manastech/crystal#488f14c (master - Don't hardcode server ports in specs): The build passed. https://travis-ci.org/manastech/crystal/builds/88424279
<jhass> also it's hard to find the right balance between special cases and intuitive behavior. Removing special cases is hard, adding them is comparably easy. So it's often better to start out with the less intuitive and more explicit behavior (and yes, those are actually orthogonal properties, just not always), identify the common patterns and judge whether making them shorter is worth it
leafybasil has quit [Read error: Connection reset by peer]
leafybasil has joined #crystal-lang
fowlduck has quit [Remote host closed the connection]
<[spoiler]> Hmm. Is there a tool to get the memory "layout" (with or without alignment, doesn't matter) of a class? Again, I'm just curious :P
<jhass> crystal tool hierarchy shows the sizes of instance vars, not sure if the order is significant there, but I'd even assume so
<sdogruyol> jhass: isnt it a bit verbose?
<jhass> send a PR if you have a great idea for formatting it differently
<sdogruyol> jhass: wish i had an idea for that :P
fowlduck has joined #crystal-lang
sdogruyol has quit [Remote host closed the connection]
A124 has quit [Quit: '']
A124 has joined #crystal-lang
NeverDie has quit [Ping timeout: 268 seconds]
NeverDie has joined #crystal-lang
NeverDie has quit [Max SendQ exceeded]
NeverDie has joined #crystal-lang
greengriminal has quit [Quit: Leaving]
fowlduck has quit [Remote host closed the connection]
shama has quit [Quit: (╯°□°)╯︵ɐɯɐɥs]
BlaXpirit has quit [Quit: Konversation]
BlaXpirit|m has joined #crystal-lang
A124 has quit [Quit: '']
A124 has joined #crystal-lang
tdc has quit [Ping timeout: 256 seconds]