sdogruyol has quit [Remote host closed the connection]
zamith_ has quit [Quit: Be back later ...]
zamith_ has joined #crystal-lang
zamith_ has quit [Quit: Be back later ...]
dbackeus has joined #crystal-lang
zamith_ has joined #crystal-lang
zamith_ has quit [Quit: Be back later ...]
sdogruyol has joined #crystal-lang
<dbackeus>
is it possible to render methods blocks in ecr? <%= my_method do %><p>hello</p><% end %> gives me "unexpected token: (" error
elia has joined #crystal-lang
hangyas has joined #crystal-lang
sdogruyol has quit [Ping timeout: 240 seconds]
elia has quit [Quit: Computer has gone to sleep.]
<jhass>
mmh, I'd expect it to, probably a bug/missing feature
sdogruyol has joined #crystal-lang
dbackeus has quit [Remote host closed the connection]
dbackeus has joined #crystal-lang
dbackeus has quit [Remote host closed the connection]
elia has joined #crystal-lang
boghison has joined #crystal-lang
<boghison>
Hi! Does anyone know how I can pass a C struct to a C function (where the param is the struct pointer)? I tried just using .new, but it says that the struct has no method to_unsafe
sdogruyol has quit [Remote host closed the connection]
Raimondi has joined #crystal-lang
elia has quit [Quit: Computer has gone to sleep.]
elia has joined #crystal-lang
<jhass>
boghison: you might need to use pointerof(foo)
sdogruyol has joined #crystal-lang
sdogruyol has quit [Remote host closed the connection]
elia has quit [Quit: Computer has gone to sleep.]
leafybasil has quit [Remote host closed the connection]
sdogruyol has quit [Remote host closed the connection]
elia has joined #crystal-lang
sdogruyol has joined #crystal-lang
grios_ has joined #crystal-lang
elia has quit [Quit: Computer has gone to sleep.]
sdogruyol has quit [Remote host closed the connection]
elia has joined #crystal-lang
<crystal-gh>
[crystal] asterite pushed 1 new commit to master: http://git.io/vOceS
<crystal-gh>
crystal/master e605cbc Ary Borenszweig: Fixed gc/null after adding libc type aliases. Fixes #1083
<crystal-gh>
[crystal] MakeNowJust opened pull request #1090: Added hooks `method_added` and `method_removed` (master...feature/method_added) http://git.io/vOcvD
<jhass>
hangyas: Slice is basically a pointer with bounds checking, a chunk of memory
unshadow has quit [Quit: leaving]
elia has quit [Quit: Computer has gone to sleep.]
<hangyas>
so a fixed size array?
elia has joined #crystal-lang
<jhass>
hangyas: not quite, that's what StaticArray is for
<jhass>
it's not fixed to be aligned to the underlying data type really, opposed to StaticArray
elia has quit [Client Quit]
<hangyas>
oh, I see thanks
<crystal-gh>
[crystal] asterite pushed 2 new commits to master: http://git.io/vOcks
<crystal-gh>
crystal/master 8839eb0 Ary Borenszweig: Codegen: don't dump LLVM module on handled exception (it's not useful for bug reports)
<crystal-gh>
crystal/master d17b1b0 Ary Borenszweig: Say to include source code to reproduce bugs on handled exceptions
grios_ has quit [Ping timeout: 244 seconds]
<hangyas>
btw I'm thinking about implementing Stack and Queue classes as they are not in the std, if nobody working on them or something
<jhass>
hangyas: not sure if they'd fit into the currency model stdlib is aiming for, did you look at Channel?
<jhass>
*concurrency
<hangyas>
hm, I didn't think about concurrency purposes
<jhass>
Stack might be okay, but Queue people would be expect to be thread safe and used for such purposes (thus be confusing in relation to Channel)
<jhass>
personally I think such stuff would be good to have libraries but liked to see as few tools as possible in stdlib that do good on the average usecase
<jhass>
opposed as too many specialized tools and then you spent half day wondering which to use now, like in Java
leafybasil has quit [Remote host closed the connection]
<jhass>
I mean few tools as possible with overlapping usecases of course