<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]