<TheGillies>
what's the best rails like crystal framework?
<martinium>
TheGillies I was looking into this as well. Most seem to be alpha stage. Has the kitchen sink but if you prefer something lighter Kemal looks very promising. Very similar to Sinatra
dtzu has quit [Read error: Connection reset by peer]
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 268 seconds]
dtzu has joined #crystal-lang
<TheGillies>
I'm using kemal right now seems the most popular
<TheGillies>
crystal is so fast, im lovin it heh
<martinium>
I am having trouble finding enough material to learn it properly but I'll keep at it. Yes, the speed is beautiful. High level and speed together
<martinium>
will probably make many projects with this language
<martinium>
this and Nim seem most interesting to me
<martinium>
Merry Christmas to anyone in here who celebrate this holiday!
<Chronium>
Something with the struct isn't right, as the CPU seems to triple fault. And that only means that I don't know how to properly translate C code to Crystal
<RX14>
well
<RX14>
can't you print the GDT for your C version and the crystal version
<RX14>
and observe differencesd
<Chronium>
Will try that
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 258 seconds]
<Chronium>
RX14: The Crystal structure is completely not correct
<FromGitter>
<airinfection> its correct
<FromGitter>
<airinfection> Ary Borenszweig does best.
<RX14>
Chronium, in what way
<Chronium>
Completely different from the C one
<Chronium>
RX14: The one at the top is Crystal, the integers are printed backwards, but still, shouldn't matter, and the bottom one is the correct C one https://puu.sh/t0DZ7/66d9bdf60e.png
Philpax has quit [Ping timeout: 248 seconds]
matp has quit [Read error: Connection reset by peer]
<FromGitter>
<airinfection> i dont know RX14 is right always
<FromGitter>
<airinfection> what he says is right
<FromGitter>
<airinfection> he is god
matp_ has joined #crystal-lang
<BlaXpirit>
Chronium, wait what? your screenshot is empty anyway
<crystal-gh>
[crystal] MakeNowJust opened pull request #3778: Don't remove docs in block yielding of macro (master...feature/crystal/to-s-emit-doc) https://git.io/vMfgL
akwiatkowski has quit [Quit: Konversation terminated!]
akwiatkowski has joined #crystal-lang
Ven has joined #crystal-lang
<Chronium>
I have this in a lib: https://puu.sh/t0I36/ef405f19ec.png and it says when I try to get a pointer to a field: can't take address of @gdt.null (example)
Ven has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 265 seconds]
<Papierkorb>
Chronium: Please don't post screenshots. Use gist.github.com instead.
<Chronium>
Making a whole paste for a couple of lines is more than a waste of time
<Papierkorb>
¯\_(ツ)_/¯
<Chronium>
And also a waste of space on either GitHub's server or Pastebin's
<Papierkorb>
But .. an image requires no space. Aha
<Papierkorb>
Well, you know better than me in this case.
<Chronium>
Also, ctrl + PtrintScreen is much faster than going on gist or Pastebin to make a paste, set all the correct syntax, make it expire, so on and so forth
<RX14>
well
<RX14>
i can just SPC g h B to paste my whole buffer to gist :)
<Chronium>
What editor?
<RX14>
spacemacs
<Chronium>
Interesting
<Chronium>
But because of Windows reasons, I'll stick to my Visual Studio code
<Chronium>
My Arch install stopped going graphical after the last update and I'm too lazy to reinstall the graphics driver :D
<Papierkorb>
> Waste of time helping the helper
<Papierkorb>
> Expects help
<Papierkorb>
No can do.
<RX14>
i've had my arch install for 3 years and never had a single problem getting to X11
<RX14>
i guess i'm just lucky
<FromGitter>
<mjago> How do I do `mpg123_handle *mh;' in my binding to lib_mpg123 ?
<Chronium>
Well, I have no idea what's happening, may be nvidia drivers acting weird with the GTX 970. But the kernel module for nvidia won't start
<RX14>
mpmpg123_handle will be a struct i guess
<FromGitter>
<mjago> Yes
<RX14>
so that's mh : Mpg123Handle*
<RX14>
where Mpg123Handle is the bound struct
<RX14>
in the olib def
<Papierkorb>
RX14: 3 years, then had to reinstall (nvidia -> amd broke things weirdly enough), but neither do I now after 1 year on this 'new' install. Only thing that broke was BTRFS (on two machines), so I don't use that anymore
<RX14>
i've not really had any issued with btrfs personally
<RX14>
well thats not exactly true
<RX14>
but the ones I have had have been self inflicted
<RX14>
or with filesystems created using the ext4 converter
<FromGitter>
<mjago> @RX14 Thanks I'll play with that
<RX14>
which i now flat out refuse to use
<RX14>
because it's shit
<Papierkorb>
It's weird, it was when I updated the system and then shut down the machine right afterwards. This happened on two machines months apart. Only issue I had, but loosing data isn't fun, so I went back to ext4
<RX14>
but I run btrfs on my 1TB hdd, and on my home server (running over 2x500gb + 1x1tb drive array in raid1 mode) and it's been great
<RX14>
like
<RX14>
i've even had drives fail
<RX14>
well
<RX14>
i was converting my raid1 to a normal array
<RX14>
so I could change the drives arounbd
<RX14>
and while that was happening one of the drives failed
<RX14>
in the btrfs array
<RX14>
and so I had to do all sorts of recovery stuff on the failed drive
<Papierkorb>
uargh
<RX14>
but once that was done
<RX14>
the btrfs array worked perfectly
<RX14>
even though there was some corrupted data, btrfs detected that and scrub just removed it
<RX14>
so yeah
<RX14>
i can't really extrapolate from my 2 arrays into it being really reliable
<RX14>
but i'm quite enamored with btrfs personally
<FromGitter>
<mjago> How do I pass a NULL pointer in crystal... ` fun new = mpg123_new(NULL, Int32*) : Int32* ' - any simple binding examples might help too!
<RX14>
well it would be Pointer(Foo).null
<RX14>
where Foo is the pointer type
<RX14>
but that looks like a binding there
<RX14>
not a call
<RX14>
so you can't pass null because you're only binding it
<FromGitter>
<mjago> Ah ok
<FromGitter>
<mjago> Perhaps I should start on something simpler ;)
akwiatkowski has joined #crystal-lang
<Chronium>
Is the @[Packed] attribute correct for packing a struct inside a lib?
<RX14>
yes
pawnbox_ has joined #crystal-lang
pawnbox has quit [Ping timeout: 265 seconds]
martinium has joined #crystal-lang
pawnbox_ has quit [Remote host closed the connection]
martinium has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
lacour has joined #crystal-lang
martinium has joined #crystal-lang
soveran has quit [Remote host closed the connection]
martinium has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
soveran has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Changing host]
soveran has quit [Ping timeout: 252 seconds]
kochev has quit [Remote host closed the connection]
soveran has joined #crystal-lang
<crystal-gh>
[crystal] ysbaddaden closed pull request #3777: Do not add `libs/` to `.gitignore` (master...dont-ignore-libs) https://git.io/vMf09
soveran has quit [Remote host closed the connection]