<FromGitter>
<phoffer> @jwoertink are you looking at Marshal for the session stuff or for something else?
<FromGitter>
<jwoertink> no, it was for the session stuff. I scraped that though and just rolling with json for now
<FromGitter>
<phoffer> ah ok. I was just gonna mention that Marshal was dropped in Rails land cause there are security issues, I’m not sure if that would apply to Crystal
<FromGitter>
<jwoertink> I see what I was doing wrong
<FromGitter>
<elorest> is there a way to configure the crystal home page http server example to be https without using nginx or apache to proxy?
<FromGitter>
<fridgerator> I know kemal can use an ssl cert without proxy
<FromGitter>
<fridgerator> so, yes
<FromGitter>
<fridgerator> might look at how he does it
<FromGitter>
<elorest> Good idea.
fenicks has joined #crystal-lang
fenicks has quit [Ping timeout: 264 seconds]
olek_poz has joined #crystal-lang
Qchmqs has joined #crystal-lang
Raimondi has quit [Read error: Connection reset by peer]
Raimondi has joined #crystal-lang
<jhass>
should be a matter of passing a properly setup OpenSSL::SSL::Context::Server to its tls parameter
_whitelogger has joined #crystal-lang
olek_poz has quit [Ping timeout: 260 seconds]
Qchmqs has quit [Ping timeout: 264 seconds]
Qchmqs has joined #crystal-lang
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
olek_poz has joined #crystal-lang
Raimondii has joined #crystal-lang
Raimondi has quit [Ping timeout: 268 seconds]
Raimondii is now known as Raimondi
Qchmqs has quit [Ping timeout: 240 seconds]
InternetFriend has joined #crystal-lang
InternetFriend has quit [Ping timeout: 240 seconds]
bmcginty has quit [Ping timeout: 268 seconds]
bmcginty has joined #crystal-lang
jj66 has joined #crystal-lang
Ven has joined #crystal-lang
Ven is now known as Guest22771
sagax has joined #crystal-lang
olek_poz has quit [Ping timeout: 260 seconds]
Guest22771 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<FromGitter>
<redcodefinal> I just found out the hard way that Slice(T) only lets you do primitive types, but I need something like it that would be a fixed size buffer that could hold a struct type. Any recommendations?
<FromGitter>
<redcodefinal> In this example of how I would use this the crystal compiler complains that I can't use ```X * Y``` on the 5th and 7th line. It seems to only except a literal like `10`. Is there any way I can get this behaviour working?
<RX14>
@redcodefinal you might have to macro that one
<FromGitter>
<redcodefinal> @RX14 haha sounds like fun. do I need to set up a macro for the whole class? I may have found a weird workaround but I'm guessing crystal won't accept needing to do anything as a class argument. I actually didn't even know that you could use anything but a class in those arguments.
<RX14>
let me have a fiddle...
<FromGitter>
<redcodefinal> ty ty I didn't think it would be this hard to implement a static 2d and 3d array. I was using Slice(T) before but then I found out that it didn't handle non-primitive types wich was a surprise.
<FromGitter>
<redcodefinal> I'm kind of interested in why they built StaticArray(T, N) to take N instead of StaticArray(T).new(size, value), I love that I can look at the source code and find out.
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<RX14>
Slice(T) handles non-primitives...
<RX14>
and StaticArray is stack allocated
<RX14>
i.e. it's size needs to be known at compile time to allocate the correct number of things on the stack
<RX14>
or, as this is a class, in this case it's to know the size of the class
<RX14>
here it's best just to take the hit and use a normal array
bjz has joined #crystal-lang
<FromGitter>
<redcodefinal> darn, weird why Slice(T) was complaining earlier today about using it for a non-primitive type. If I could use Slice that would be the best. This is what I get https://play.crystal-lang.org/#/r/1u81
<RX14>
@redcodefinal you can use Slices, but you can't use Slice.new(size) for non-ints without providing a default value
<RX14>
I suggest you provide a default value for the TIme
<FromGitter>
<redcodefinal> @RX14 how so? Although I did manage to get it work like this https://play.crystal-lang.org/#/r/1u8p I guess it wants it to be in T.new
<FromGitter>
<redcodefinal> haha
<FromGitter>
<redcodefinal> thats interesting
<RX14>
the &block wasn't in the args list...
<RX14>
it didn't work when it was in the args list with a weird error
<RX14>
9another compielr bug?)
<RX14>
but not capturing worked
<FromGitter>
<redcodefinal> Yeah that is a little strange
<FromGitter>
<redcodefinal> well i think that about solves my issue, I'll probably be back with more questions later. I'm almost to the point where I have a working program.