RX14 changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.19.2 | Fund Crystals development: http://is.gd/X7PRtI | Paste > 3 lines of text to https://gist.github.com | GH: https://github.com/crystal-lang/crystal | Docs: http://crystal-lang.org/docs/ | API: http://crystal-lang.org/api/ | Logs: http://irclog.whitequark.org/crystal-lang
<FromGitter> <piedoom> damn, the gitter desktop app sure sucks. ⏎ guess imma open up hexchat instead :P
bew78 has quit [Read error: No route to host]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 248 seconds]
Oliphaunte has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 250 seconds]
pawnbox has joined #crystal-lang
<crystal-gh> [crystal] jwaldrip opened pull request #3328: Discussion: Crystal Install - Install Crystal Command Line Tools (master...master) https://git.io/vi1CU
pawnbox has quit [Ping timeout: 240 seconds]
matp has quit [Remote host closed the connection]
matp has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 240 seconds]
Oliphaunte has quit [Remote host closed the connection]
pduncan has joined #crystal-lang
Philpax has joined #crystal-lang
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 244 seconds]
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Ping timeout: 264 seconds]
kulelu88 has quit [Quit: Leaving]
soveran has joined #crystal-lang
pawnbox has joined #crystal-lang
x0f has quit [Ping timeout: 250 seconds]
soveran has quit [Ping timeout: 265 seconds]
snsei has joined #crystal-lang
x0f has joined #crystal-lang
snsei has quit [Remote host closed the connection]
snsei has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
snsei has quit [Remote host closed the connection]
phase_ has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
soveran has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Changing host]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Ping timeout: 250 seconds]
bew78 has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Ping timeout: 240 seconds]
mark_66 has joined #crystal-lang
<FromGitter> <helper2424> Hello guys, do you have `slack` chat?
pawnbox has quit [Remote host closed the connection]
bjz has joined #crystal-lang
<BlaXpirit> helper2424, i think some people started an unofficial one, hopefully it died
bew78 has quit [Ping timeout: 244 seconds]
pawnbox has joined #crystal-lang
bjz has quit [Read error: Connection reset by peer]
jamie_ca has quit [Remote host closed the connection]
jamie_ca has joined #crystal-lang
oddmunds has quit [Ping timeout: 244 seconds]
justinmcp_ has quit [Read error: Connection reset by peer]
justinmcp has joined #crystal-lang
oddmunds has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
bew78 has joined #crystal-lang
Philpax has quit [Ping timeout: 244 seconds]
qard has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
<FromGitter> <crisward> I use both, in someways gitter is much more suited to OS projects as the finding and connecting is much easier.
ponga has joined #crystal-lang
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 244 seconds]
<FromGitter> <helper2424> Nice, in `celluoid` we use slack for communications.
<FromGitter> <helper2424> Now, It's habit.
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Ping timeout: 265 seconds]
pawnbox has joined #crystal-lang
unshadow has joined #crystal-lang
bew78 has quit [Ping timeout: 240 seconds]
<unshadow> Is there a HTML::Parser for Crystal ? Looking I can see only the XML parser which .. parses XML (suprise suprise ;) )
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
vifino has quit [Ping timeout: 240 seconds]
unshadow has quit [Ping timeout: 244 seconds]
unshadow has joined #crystal-lang
vifino has joined #crystal-lang
globalkeith has joined #crystal-lang
soveran has quit [Remote host closed the connection]
Philpax has joined #crystal-lang
bjz has joined #crystal-lang
bew78 has joined #crystal-lang
soveran has joined #crystal-lang
Oliphaunte has joined #crystal-lang
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Oliphaunte has quit [Ping timeout: 255 seconds]
bjz has joined #crystal-lang
unshadow has quit [Quit: leaving]
A124 has quit [Ping timeout: 265 seconds]
soveran has quit [Remote host closed the connection]
pawnbox has quit [Remote host closed the connection]
<crystal-gh> [crystal] asterite pushed 2 new commits to master: https://git.io/viMUc
<crystal-gh> crystal/master 1274a2e Ary Borenszweig: Debug: hide irrelevant puts
<crystal-gh> crystal/master a24ed53 Ary Borenszweig: Fixed #3320: ignore NonGenericModuleType in debug info
trapped has joined #crystal-lang
soveran has joined #crystal-lang
bjz has quit [Ping timeout: 248 seconds]
bjz has joined #crystal-lang
Oliphaunte has joined #crystal-lang
<travis-ci> crystal-lang/crystal#1274a2e (master - Debug: hide irrelevant puts): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/161013572
Oliphaunte has quit [Ping timeout: 260 seconds]
Oliphaunte has joined #crystal-lang
Oliphaun_ has joined #crystal-lang
Oliphaunte has quit [Ping timeout: 248 seconds]
pawnbox has joined #crystal-lang
ebraga has joined #crystal-lang
ebraga has quit [Ping timeout: 265 seconds]
<jeromegn> unshadow: xml and html can be parsed just the same
ebraga has joined #crystal-lang
Philpax has quit [Ping timeout: 255 seconds]
<tilpner> Not all html is valid xhtml.
ebraga has quit [Ping timeout: 248 seconds]
<BlaXpirit> tilpner, i hear that libxml can parse actual html, maybe dig around for some options
<asterite> XML.parse_html
<BlaXpirit> uh unshadow ..
<asterite> just didn't say it before because unshadow seems to be gone
<tilpner> Oh, didn't see that.
ebraga has joined #crystal-lang
A124 has joined #crystal-lang
Oliphaun_ has quit [Remote host closed the connection]
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
Oliphaunte has joined #crystal-lang
ebraga has quit [Ping timeout: 265 seconds]
Oliphaunte has quit [Ping timeout: 265 seconds]
mark_661 has joined #crystal-lang
mark_66 has quit [Ping timeout: 248 seconds]
Oliphaunte has joined #crystal-lang
<RX14> i was going to try and write up my comment about language-specific package managers into a longer article tonight but my server just ran out of space... oh well
Renich has joined #crystal-lang
<FromGitter> <bcardiff> @RX14, you might need also to check the DNS www.rx14.co.uk & rx14.co.uk are not returning the same content. The former is used in your github profile.
<RX14> huh
<RX14> yeah i should probably add a DNS record for www
ebraga has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
kulelu88 has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Ping timeout: 250 seconds]
mark_661 has quit [Remote host closed the connection]
ebraga has quit [Read error: Connection reset by peer]
<BlaXpirit> hm i'm having such hard time with making this C API conveniently usable from Crystal
<BlaXpirit> so it manages some structs in its memory, and occasionally it will call your function, passing a pointer to one of those structs
<BlaXpirit> in C you can store custom data on that struct by setting a designated void* member
<BlaXpirit> in other similar cases where I manage the allocation of the objects, it's relatively easy for me to make a neat class that can be subclassed to store any kind of data
<BlaXpirit> but what am I supposed to do here? just expose the pointer and let the user set it?
<FromGitter> <drosehn> Set the pointer to some routine in your wrapper-routines? and then provide a routine which crystal users can call to have your wrapper routine handle their custom data? Presumably the only custom data they'd have would be some kind of crystal object.
<FromGitter> <drosehn> (or maybe I'm wrong about what that void* member is for)
<BlaXpirit> i don't understand
globalkeith has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
<BlaXpirit> > can't use class variables in generic types
<BlaXpirit> pls
<BlaXpirit> this is the most random limitation i've ever seen
onethirtyfive has joined #crystal-lang
<jeromegn> Anybody was able to install crystal on macOs Sierra?
<jeromegn> as far as I can tell, it can't be done via homebrew due to LLVM stuff
<havenwood> jeromegn: works on my machine
<jeromegn> oh...
<havenwood> jeromegn: what seems to be the problem?
<havenwood> jeromegn: brew update && brew install crystal-lang
<jeromegn> CMAKE_OSX_DEPLOYMENT_TARGET (10.12) is greater than CMAKE_OSX_SYSROOT SDK
onethirtyfive has quit [Remote host closed the connection]
<jeromegn> oh, I may need to upgrade xcode
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Read error: Connection reset by peer]
alex_takitani has joined #crystal-lang
<alex_takitani> Hello!
Oliphaunte has joined #crystal-lang
<alex_takitani> Can someone give me a little help converting ruby to crystal?
<alex_takitani> I'm trying to convert this method https://github.com/byroot/ruby-osdb/blob/master/lib/osdb/movie_file.rb#L43
<tilpner> You forgot to say what part you're having problems with. Are you using UInt64#from_io for the unpacking?
<Papierkorb> alex_takitani: what's the issue you're having? Can you gist what code you've got (of that method), and which error(s) you're getting?
<alex_takitani> sure 1 min!
<alex_takitani> it's working
<alex_takitani> But I got it working by trial and error
<alex_takitani> not sure that I'm not doing anything wrong
<RX14> well you aren't reading 64kb
<Papierkorb> That & operator on line 15 is useless, you're operating on a 8-Bit uint there. hash is also, I guess, a Int32
<RX14> Papierkorb, i don't think so
pawnbox has quit [Ping timeout: 255 seconds]
<RX14> File.size should return Int64 or UInt64
<Papierkorb> alex_takitani: Maybe the easiest way of tinkering is through the playground. run "crystal play" and follow the URL, paste your code in there and go from there
<RX14> File.size returns UInt64
<alex_takitani> the problem is that i wont be able to open the file for reading there, right?
<Papierkorb> Ah, I remembered an (old?) GH issue complaining about file size restrictions or something
<Papierkorb> alex_takitani: You mean in the playground? You can, the working directory is the one of where you start the playground server
<Papierkorb> RX14: Still, it's already bound to 64bit, making the & useless
<Papierkorb> alex_takitani: Lines 12-16 and 21-26 are duplicates. Consider moving one of those into its own method and just call it twice.
<alex_takitani> oh! awesome!
<RX14> alex_takitani, let me see if I can get this working
<alex_takitani> I don't know if it helps but
<alex_takitani> i'm testing the avi file from this link
<Papierkorb> alex_takitani: Then, you're only operating on 64 Byte, not 64KiB. Slice(UInt64).new(8 * 1024) (8 x 8KiB == 64KiB) may have been what you wanted
<RX14> alex_takitani, does it give the right answer?
<Papierkorb> alex_takitani: But while that will be faster, you may have to look at which endianess the calculation expects. Great way to shoot oneself into the foot ;)
<RX14> this might works
pawnbox has joined #crystal-lang
soveran has quit [Remote host closed the connection]
soveran has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Changing host]
<alex_takitani> yes! with a little change
<alex_takitani> IO::ByteFormat::LittleEndian
<alex_takitani> thank you! I'll try to make sense of the code now :)
<RX14> alex_takitani, if you need any help understanding just ask
<alex_takitani> thanks!
alex_takitani has quit [Quit: Leaving]
<jeromegn> progress I suppose!
Ven_ has joined #crystal-lang
<FromGitter> <crisward> `Could not locate llvm-config, make sure it is installed and in your PATH` ?
pawnbox has quit [Remote host closed the connection]
<FromGitter> <crisward> I've install crystal with `brew install crystal-lang --with-llvm`
bew78 has quit [Ping timeout: 244 seconds]
<jeromegn> I'm installing llvm straight up and it seems to work this tie
<jeromegn> *time
trapped has quit [Read error: Connection reset by peer]
<jeromegn> alright got it installed
<jeromegn> but... crystal -v yields the version and a warning:
<jeromegn> [warn] kq_init: detected broken kqueue; not using.: Undefined error: 0
<jeromegn> oh that's libevent
globalkeith has joined #crystal-lang
<jeromegn> alright, uninstalled libevent, reinstalled... same with crystal, and now there are no warnings... wow
Oliphaunte has quit [Read error: Connection reset by peer]
Oliphaunte has joined #crystal-lang
qard has joined #crystal-lang
Oliphaunte has quit [Ping timeout: 272 seconds]
globalkeith has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
Ven_ has quit [Ping timeout: 240 seconds]
Ven_ has joined #crystal-lang
Ven_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<FromGitter> <piedoom> not sure why I made this... but behold! the Crystal Cat. http://imgur.com/a/ThETh
<BlaXpirit> good one
globalkeith has joined #crystal-lang
Renich has quit [Ping timeout: 260 seconds]
Renich has joined #crystal-lang
Renich has quit [Quit: leaving]
<FromGitter> <jwoertink> @piedoom that's awesome!
<FromGitter> <piedoom> thanks :)
globalkeith has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
globalkeith has joined #crystal-lang
globalkeith has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
globalkeith has joined #crystal-lang
CompanionCube has quit [*.net *.split]
tliff has quit [*.net *.split]
DeBot has quit [*.net *.split]
jfontan has quit [*.net *.split]
tliff has joined #crystal-lang
CompanionCube has joined #crystal-lang
soveran has quit [Remote host closed the connection]
globalkeith has quit [Quit: My MacBook Air has gone to sleep. ZZZzzz…]
<Papierkorb> I agree, that cat is pretty cool piedoom
jfontan has joined #crystal-lang
ruby_ has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 2 new commits to master: https://git.io/viDMU
<crystal-gh> crystal/master ed3f095 Ary Borenszweig: Compiler: fixed missing semantic of forall free var in captured block return type
<crystal-gh> crystal/master 5f77224 Ary Borenszweig: Use forall across the std
ruby_ has quit [Read error: Connection reset by peer]
ruby_ has joined #crystal-lang
Philpax has joined #crystal-lang
Philpax has quit [Ping timeout: 260 seconds]
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 272 seconds]
<travis-ci> crystal-lang/crystal#ed3f095 (master - Compiler: fixed missing semantic of forall free var in captured block return type): The build was broken. https://travis-ci.org/crystal-lang/crystal/builds/161179885
ssvb has quit [Remote host closed the connection]
Philpax has joined #crystal-lang
qard_ has joined #crystal-lang
miketheman has quit [Ping timeout: 244 seconds]
kulelu88 has quit [Ping timeout: 244 seconds]
qard_ has quit [Client Quit]
qard_ has joined #crystal-lang
miketheman has joined #crystal-lang
qard_ has quit [Client Quit]
qard_ has joined #crystal-lang
qard has quit [Ping timeout: 260 seconds]