jhass changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.12.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 quit [Quit: Textual IRC Client: www.textualapp.com]
Philpax has quit [Ping timeout: 250 seconds]
Philpax has joined #crystal-lang
dorei has joined #crystal-lang
Dreamer3 has quit [Ping timeout: 240 seconds]
Philpax_ has joined #crystal-lang
Philpax has quit [Ping timeout: 255 seconds]
Philpax_ is now known as Philpax
Dreamer3 has joined #crystal-lang
Philpax_ has joined #crystal-lang
Philpax has quit [Ping timeout: 240 seconds]
Dreamer3 has quit [Ping timeout: 240 seconds]
dorei has quit []
Dreamer3 has joined #crystal-lang
dome22xl has quit [Ping timeout: 255 seconds]
Dreamer3 has quit [Ping timeout: 240 seconds]
Dreamer3 has joined #crystal-lang
A124 has quit [Read error: Connection reset by peer]
A124 has joined #crystal-lang
tomchapin has joined #crystal-lang
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
Dreamer3 has quit [Ping timeout: 240 seconds]
pawnbox has joined #crystal-lang
Dreamer3 has joined #crystal-lang
pawnbox has quit [Ping timeout: 248 seconds]
Dreamer3 has quit [Read error: Connection reset by peer]
Dreamer3 has joined #crystal-lang
Dreamer3 has quit [Ping timeout: 240 seconds]
Dreamer3 has joined #crystal-lang
Dreamer3 has quit [Read error: Connection reset by peer]
matp has joined #crystal-lang
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 240 seconds]
Dreamer3 has joined #crystal-lang
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
tomchapin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pawnbox has joined #crystal-lang
Dreamer3_ has joined #crystal-lang
Dreamer3 has quit [Ping timeout: 240 seconds]
Dreamer3_ is now known as Dreamer3
Dreamer3 has quit [Ping timeout: 240 seconds]
Dreamer3 has joined #crystal-lang
Dreamer3 has quit [Client Quit]
vikaton has quit [Quit: Connection closed for inactivity]
Dreamer3 has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
trapped has joined #crystal-lang
pawnbox has joined #crystal-lang
trapped has quit [Read error: Connection reset by peer]
Philpax_ has quit [Ping timeout: 276 seconds]
elia has joined #crystal-lang
Philpax has joined #crystal-lang
<travis-ci> MakeNowJust/crystal#a58531e (master - Optimized StringScanner, and added `String#byte_index_to_char_index`): The build passed. https://travis-ci.org/MakeNowJust/crystal/builds/110906492
Philpax has quit [Ping timeout: 252 seconds]
Philpax has joined #crystal-lang
Philpax has quit [Ping timeout: 252 seconds]
Philpax has joined #crystal-lang
<BlaXpirit> jokke, for example with an Array: typeof(a[0])
<crystal-gh> [crystal] John-K opened pull request #2201: Add check for llvm-config- to Makefile (master...LLVM_CHECK) https://git.io/v2qfU
<jokke> BlaXpirit: that would require the array not to be empty
<BlaXpirit> jokke, no
<jokke> no?
<jokke> ok
<jokke> what about iterator?
<BlaXpirit> >> a = [] of Int32; typeof(a[0])
<DeBot> BlaXpirit: # => Int32 - https://carc.in/#/r/sud
<jokke> oh nice
<BlaXpirit> jokke, well it has to be any operation that returns the type that you want to obtain
<jokke> i seet
<jokke> *i see
<jokke> it's evaluated at compile time and replaced with the proper value
<jokke> cool thanks
<jokke> BlaXpirit: do you know how i can ask a type in a macro if it's another type or one of its subclasses?
<jokke> as in T.is_a?(MyType+)
<jokke> but that doesn't seem to work
<jokke> also tried Resource.subclasses.includes?(T)
<jokke> then i crashed the compiler
<jokke> ah
<jokke> i was missing the module Resource belongs to
<jokke> JSONApi::Resource.subclasses works
<crystal-gh> [crystal] jhass pushed 2 new commits to master: https://git.io/v2qOl
<crystal-gh> crystal/master 439314b Sebastian Szturo: Fix multiple inner lists and typo
<crystal-gh> crystal/master 436f810 Jonne Haß: Merge pull request #2190 from SebastianSzturo/multiple-inner-lists...
<crystal-gh> [crystal] jhass pushed 2 new commits to master: https://git.io/v2qOw
<crystal-gh> crystal/master 7dd7ddb Malo Jaffré: Fix #2187: can't name a symbol `:"\\"`
<crystal-gh> crystal/master 62ee5c0 Jonne Haß: Merge pull request #2192 from MaloJaffre/symbol_fix...
<travis-ci> manastech/crystal#436f810 (master - Merge pull request #2190 from SebastianSzturo/multiple-inner-lists): The build passed. https://travis-ci.org/manastech/crystal/builds/110923990
<DeBot> https://github.com/manastech/crystal/pull/2190 (Fix multiple inner lists)
<travis-ci> manastech/crystal#62ee5c0 (master - Merge pull request #2192 from MaloJaffre/symbol_fix): The build passed. https://travis-ci.org/manastech/crystal/builds/110924195
<DeBot> https://github.com/manastech/crystal/pull/2192 (Fix #2187: can't name a symbol `:"\\"`)
avdi has quit [Ping timeout: 240 seconds]
CompanionCube has quit [Ping timeout: 240 seconds]
jwaldrip has quit [Ping timeout: 240 seconds]
avdi has joined #crystal-lang
jwaldrip has joined #crystal-lang
CompanionCube has joined #crystal-lang
CompanionCube has quit [Changing host]
CompanionCube has joined #crystal-lang
trapped has joined #crystal-lang
pawnbox_ has joined #crystal-lang
pawnbox has quit [Ping timeout: 252 seconds]
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/v2qoB
<crystal-gh> crystal/master 4173160 Ary Borenszweig: Fixed: incorrect symbol value for :"\\" and :"\"". Related to #2192
<crystal-gh> [crystal] asterite pushed 2 new commits to master: https://git.io/v2qoD
<crystal-gh> crystal/master 603b374 TSUYUSATO Kitsune: Check AtomicWithMethodCheck in parse_call_block_arg
<crystal-gh> crystal/master 12edc3d Ary Borenszweig: Merge pull request #2164 from MakeNowJust/fix/check-atomic-in-block...
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/v2qKz
<crystal-gh> crystal/master 98b1d16 Ary Borenszweig: Formatter: support `foo.[bar]`, introduced in #2164
pawnbox_ has quit [Remote host closed the connection]
<travis-ci> manastech/crystal#12edc3d (master - Merge pull request #2164 from MakeNowJust/fix/check-atomic-in-block): The build passed. https://travis-ci.org/manastech/crystal/builds/110940963
<DeBot> https://github.com/manastech/crystal/pull/2164 (Check AtomicWithMethodCheck in parse_call_block_arg)
<travis-ci> manastech/crystal#98b1d16 (master - Formatter: support `foo.[bar]`, introduced in #2164): The build passed. https://travis-ci.org/manastech/crystal/builds/110942044
<DeBot> https://github.com/manastech/crystal/pull/2164 (Check AtomicWithMethodCheck in parse_call_block_arg)
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 244 seconds]
pawnbox has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 240 seconds]
pawnbox has joined #crystal-lang
A124 has quit [Quit: '']
A124 has joined #crystal-lang
<jokke> how can i cross compile for mac?
<jokke> (on linux)
<jokke> is it possible?
<jeromegn> I don't think so
<jeromegn> looks like you need a machine with the arch you want to compile on for the last step
<jeromegn> You could probably do it with travis though
<BlaXpirit> you really could do anything with travis. how do they prevent abuse?
<jeromegn> https://docs.travis-ci.com/user/workers/os-x-infrastructure/ and creating artifacts + shipping to S3 or something: https://docs.travis-ci.com/user/uploading-artifacts/ (or probably manually downloading them)
<jeromegn> not sure!
Philpax has quit [Ping timeout: 252 seconds]
<jeromegn> jokke ^ in case you missed it.
luislavena has joined #crystal-lang
<luislavena> jokke: to cross compile from Linux to OSX, you will need a compiler toolchain for it. The MRuby/mruby-cli folks believe created one, one sec.
<luislavena> You need the OSX SDK (which needs to be generated on a OSX machine), you could download existing docker image, and it uses clang for that.
<jokke> okay
<jokke> sounds a bit complicated :)
alsm has joined #crystal-lang
r00takaspin has joined #crystal-lang
<alsm> Hi, with JSON.mapping is there a way to declare an array of something as type?
<alsm> ahh, got it
tomchapin has joined #crystal-lang
<crystal-gh> [crystal] plukevdh opened pull request #2202: Expose URI from HTTP::Request (master...expose-uri-from-request) https://git.io/v2mDR
shama has joined #crystal-lang
<rkeene> Cross-compiling Crystal in general is broken -- it only looks at the system name (Linux) and the ISA (x86_64), which doesn't give you enough information to compile a binary for
alsm has quit [Ping timeout: 252 seconds]
<rkeene> Since it relies on so much of the host system, e.g., libc et al. which it fails to identify
elia has quit [Quit: Computer has gone to sleep.]
shama has quit [Read error: Connection reset by peer]
r00takaspin has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
shama has joined #crystal-lang
<luislavena> jokke: correct, cross-compilation is complicated, and currently Crystal is a bit naive on that front.
<jokke> i'd _love_ to see crystal on arm.
<jokke> probably problematic when there's no fpu and such
<ssvb> jokke: it is pretty uncommon to have no fpu on arm, even the bottom of the barrel hardware (such as the raspberry pi) has it
<jokke> really..?
<ssvb> what kind of arm hardware do you have?
<jokke> i could've sworn that someone told to use an alternative ogg decoder that uses only integers on a pi
<jokke> is there anyone actively working on getting crystal to be supported by pygments?
<ssvb> well, the integers only decoder cleverly utilizing fixed point calculations *might* be slightly faster than a floating point implementation, even on some x86 processors too
<jokke> i have a pastebin using pygments and it sucks not to have proper syntax highlighting
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
<BlaXpirit> jokke, once i tried to get into pygments to fix it up for crystal
<BlaXpirit> but uhhhh nope nope nope nope nope
<jokke> yeah, i think no one wants to do it :D
<jokke> it's python after all
<jokke> :P
[spoiler] has quit [*.net *.split]
Papierkorb has quit [*.net *.split]
rkeene has quit [*.net *.split]
havenwood has quit [*.net *.split]
onionhammer has quit [*.net *.split]
Veejay has quit [*.net *.split]
miketheman has quit [*.net *.split]
_jungh4ns has quit [*.net *.split]
mlitwiniuk has quit [*.net *.split]
jbye has quit [*.net *.split]
benner has quit [*.net *.split]
benner has joined #crystal-lang
rkeene has joined #crystal-lang
jbye has joined #crystal-lang
onionhammer has joined #crystal-lang
Veejay has joined #crystal-lang
Papierkorb has joined #crystal-lang
[spoiler] has joined #crystal-lang
mlitwiniuk has joined #crystal-lang
miketheman has joined #crystal-lang
havenwood has joined #crystal-lang
_jungh4ns has joined #crystal-lang
Ven has joined #crystal-lang
<BlaXpirit> damn, I've been thinking so hard about any good way to make efficient wrappers of C libraries but nothing at all comes to mind
<BlaXpirit> you just can't avoid allocating 2 objects on the heap in radically different locations
Ven has quit [Ping timeout: 250 seconds]
<BlaXpirit> it's terrible for cache
<BlaXpirit> there is this option of preallocating memory and telling the C library to initialize in that memory location (if it supports that) but still no good way to find out the size of the needed memory
buggs has joined #crystal-lang
elia has joined #crystal-lang
Ven has joined #crystal-lang
krtv` has quit [Remote host closed the connection]
Ven has quit [Client Quit]
Philpax has joined #crystal-lang
luislavena has quit [Quit: Leaving]
shama has quit [Quit: (╯°□°)╯︵ɐɯɐɥs]
emancu has joined #crystal-lang
trapped has quit [Read error: Connection reset by peer]
Renich has joined #crystal-lang