<jhass>
Crystal does not support Windows as a platform yet
<jhass>
mh, well that's dead
<jhass>
?windows=Crystal does not support Windows as a platform yet, however compatibility is a long term goal. As such, community driven contributions towards it are welcome.
<DeBot>
jhass: Set windows.
<Mester>
Okay, thanks
pawnbox has joined #crystal-lang
Mester has quit [Quit: Leaving]
Oliphaunte has quit [Remote host closed the connection]
pawnbox has quit [Ping timeout: 240 seconds]
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
Oliphaunte has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Changing host]
soveran has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
Philpax has quit [Ping timeout: 244 seconds]
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
soveran has quit [Remote host closed the connection]
Oliphaunte has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 258 seconds]
Philpax has joined #crystal-lang
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
Oliphaunte has joined #crystal-lang
pawnbox has joined #crystal-lang
xmgx has quit [Quit: Leaving...]
Oliphaunte has quit [Remote host closed the connection]
Oliphaunte has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
ponga has joined #crystal-lang
the_drow has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
onethirtyfive has joined #crystal-lang
onethirtyfive has quit [Remote host closed the connection]
the_drow has quit [Quit: This computer has gone to sleep]
the_drow has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
the_drow has quit [Quit: This computer has gone to sleep]
Philpax has quit [Ping timeout: 240 seconds]
bjz has joined #crystal-lang
bjz has quit [Client Quit]
<BlaXpirit>
steakknife, I'm not aware of any platform where `sizeof(int) == 8`. if you do, i'm interested to find out
the_drow has joined #crystal-lang
bjz has joined #crystal-lang
bjz has quit [Client Quit]
onethirtyfive has joined #crystal-lang
mark_66 has joined #crystal-lang
<BlaXpirit>
i'm looking to do something like an #ifdef
<BlaXpirit>
unfortunately it seems like {% if CONSTANT == "something" %} doesn't work?
<jhass>
not? it should
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
<BlaXpirit>
hm must be another weirdness of playground
<jeromegn>
would it be possible to progressively generate a initialize method for a class using a macro? Say I have a macro that adds properties, but at the end of the evaluation of all macros, I’d like to generate an initialize function that accepts all those properties as arguments.
<jeromegn>
hmm, I’ll try to do a minimal example
<jhass>
since we don't really have a point where class definition is finished, it's kinda hard
<jhass>
you could get the previous definition and add a new one with the new property I guess
<jhass>
that'll generate n initializers though
<jhass>
it's one of the reasons JSON.mapping/YAML.mapping takes a named tuple literal
<jeromegn>
yea
<jeromegn>
I figured
<jeromegn>
mm
<jeromegn>
I’m playing with protobuf, attempting to use a similar syntax to the ruby protobuf gem, but I think I’ll have to diverge and follow the JSON.mapping-style
<jeromegn>
ok that’s pretty cool :) I’m satisfied with this syntax
<jeromegn>
now to generate those files… :’(
dminuoso has quit [Ping timeout: 276 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
dminuoso has joined #crystal-lang
Oliphaunte has joined #crystal-lang
pduncan has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
LastWhisper____ has joined #crystal-lang
LastWhisper____ has quit [Read error: Connection reset by peer]
pduncan has quit [Ping timeout: 250 seconds]
LastWhisper____ has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
dminuoso has quit [Remote host closed the connection]
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Ping timeout: 265 seconds]
Philpax has quit [Ping timeout: 252 seconds]
<FromGitter>
<sdogruyol> @danieldraper we use it
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
Oliphaunte has joined #crystal-lang
pduncan has joined #crystal-lang
soveran has joined #crystal-lang
sardaukar has quit [Read error: Connection reset by peer]
soveran has quit []
dminuoso has joined #crystal-lang
LastWhisper____ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
LastWhisper____ has joined #crystal-lang
LastWhisper____ has quit [Read error: Connection reset by peer]
LastWhisper____ has joined #crystal-lang
mkl0501 has joined #crystal-lang
mark_66 has quit [Quit: Leaving.]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
the_drow has quit [Quit: This computer has gone to sleep]
ponga has quit [Quit: Connection closed for inactivity]
<FromGitter>
<jwoertink> If my shard has an executable, where would the proper place to install it be? `./libs/fez/bin/fez` or `./bin/fez` or maybe `./libs/bin/fez` ?
<dminuoso>
FromGitter: Personally I would expect it to be in ./bin/fez
<FromGitter>
<jwoertink> that's sort of what I was thinking.
<FromGitter>
<jwoertink> So when you have a `postinstall` in your shard, it runs from the `./libs/my_shard/` directory. If I add a postinstall build script on that then it would look like `postinstall: crystal build --release -o ../../bin/my_shard my_shard.cr`. Would that be weird?
<FromGitter>
<jwoertink> I guess the only weird thing would be that the path wouldn't work the same on windows.
<BlaXpirit>
the situation is a mess alright. but i don't think crystal-based tools should go out of their way to find a location to install. installing can be done by external tools
onethirtyfive has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
<FromGitter>
<jwoertink> True. This could definitely be done by make. I'm just thinking about when there's 20+ dependencies, and every single one of them require a `crystal build` to be run. Then having `Makefile` to handle compiling each one all becomes a pain.
xmgx has joined #crystal-lang
<crystal-gh>
[crystal] asterite pushed 3 new commits to master: https://git.io/v6Gh8
<Lineath>
I am trying to write a C binding to a library, this library use a typedef for a function pointer using variadic arguments. Can someone help me to get the right function signature ?
<Lineath>
The function pointer looks like this : typedef void (*myfunction)(ArgType1, ArgType2*, ...)
<Lineath>
I guess i need to write something like "alias myfunction = (ArgType1, ArgType2 *, * -> Void) but it does not compile with the splat
<jhass>
right, we probably should change C variadics to splats
<jhass>
Lineath: I'm not sure if variadics are supported for C callbacks atm
<Lineath>
Maybe i'm doing it wrong (and I once i get the signature right, I still don't now how to pass a Crystal-defined function to my C Lib :))
<RX14>
crystal has a tad too much magic at the moment i think
<RX14>
ruby has way more
<jhass>
actually it doesn't
<jhass>
the most magical things in Ruby are =~'s local creation, the pseudo globals, perhaps flip-flop
<jhass>
there's some parser weirdness due to being a yacc parser
<RX14>
wow so much github activity today
Oliphaunte has quit [Remote host closed the connection]
<Lineath>
jhass: Thanks, I got it to work :) Still need to know how to pass a def blah(...) end instead of a blah = ->(...) {}, but it kind of "works" so : happyface
matp has quit [Ping timeout: 244 seconds]
<jhass>
With ->blah(Int32)
<Lineath>
I mean : if I define myfunc = -> (v : Void *, format : UInt8*, data : UInt8*) { #DoSomething } and later : someFunction(myFunc) it works
<Lineath>
But if i define : def myfunc (v : Void *, format : UInt8*, data : UInt8*) #DoSomething end and later : someFunction(myFund) if fails
<jhass>
Yes, you need to take a function pointer to it
<jhass>
With ->function
<Lineath>
okay, it works if my function is defined outside my module
<Lineath>
okay inside my module it works after putting it as static (self.myfunc)
<Lineath>
Great, this was my 2h first run test with Crystal, so I guess I'll try to play some more with it. Setting up such easily bindings to a C Lib is <3
<jhass>
❤
Philpax has joined #crystal-lang
bjz_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<Lineath>
Behold a SquirrelLang shard soon maybe ;)