Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 11:21
    straight-shoota milestoned #12781
  • 11:21
    straight-shoota milestoned #12781
  • 02:15
    straight-shoota assigned #11331
  • Nov 25 23:24
    straight-shoota labeled #12782
  • Nov 25 23:24
    straight-shoota labeled #12782
  • Nov 25 23:24
    straight-shoota opened #12782
  • Nov 25 23:17
    straight-shoota labeled #12781
  • Nov 25 23:17
    straight-shoota labeled #12781
  • Nov 25 23:17
    straight-shoota opened #12781
  • Nov 25 23:01
    straight-shoota synchronize #11635
  • Nov 25 22:56
    straight-shoota synchronize #11840
  • Nov 25 22:49
    straight-shoota labeled #12636
  • Nov 25 19:21
    straight-shoota labeled #12780
  • Nov 25 19:21
    straight-shoota labeled #12780
  • Nov 25 19:21
    straight-shoota labeled #12780
  • Nov 25 19:21
    straight-shoota opened #12780
  • Nov 25 19:11
    straight-shoota labeled #12779
  • Nov 25 19:11
    straight-shoota labeled #12779
  • Nov 25 19:11
    straight-shoota opened #12779
  • Nov 25 19:11
    straight-shoota labeled #12779
Chris Watson
@watzon
crystal_lib seems to not like them
Ghost
@ghost~5457d9aedb8155e6700d0c69
good day, Crystalians!
I had a little problem with my PC ... it died...
so, now, I am working on a brand new laptop
it has Fedora 26
and installed crystal
almost everything works... I just got that error when I tried the playground
the package lacks dependencies, probably. You should add the missing ssl lib
Matias Garcia Isaia
@mgarciaisaia
Hi @renich! Yeah, packages don't list dependencies yet :/
sudo dnf -y install openssl-devel may do the trick for you - check https://github.com/crystal-lang/crystal/wiki/All-required-libraries#fedora for more packages than you actually need
@watzon not really that sure about static. May it be something with inline, instead?
Ghost
@ghost~5457d9aedb8155e6700d0c69
@mgarciaisaia hmmm.. odd.. libssl is provided openssl-libs and it is installed
Matias Garcia Isaia
@mgarciaisaia
Not sure how does the Crystal <--> C interop works :(
Chris Watson
@watzon
@mgarciaisaia well what I'm looking at is a static inline void function
sevk
@sevk
["a","b"] - ["a"] # this is useful @Sija
Chris Watson
@watzon
Apparently extern variables are unsupported?
Jason Waldrip
@jwaldrip
TIL: that crystal binaries are not truly portable. i.e. I cannto build on ubuntu and run on alpine... because of the bohem gc requirement.
so... with that said, is there an ongoing discussion on bringing a crystal based GC to the language. Making it 100% crystal?
John Jansen
@johnjansen
@jwaldrip didnt we have this discussion at code camp?
Jason Waldrip
@jwaldrip
Oh we did...
John Jansen
@johnjansen
or were you just muttering to yourself ;-)
i was sitting close
Jason Waldrip
@jwaldrip
Not sure where we landed on it...
John Jansen
@johnjansen
not creepy close
Jason Waldrip
@jwaldrip
you were pretty close ;-)
John Jansen
@johnjansen
haha
i think it was the standard “were thinking about it” line on the GC front, @sdogruyol may remember or @elorest, they have better memories than me
Chris Watson
@watzon
Wishing I was there :laughing:
Garance A Drosehn
@drosehn
@DougEverly thanks for the pointer to your daemonize.cr. I'm not currently looking to write any daemons in crystal, but that's something that I'm likely to do. My comments were in response to questions brought up earlier by @watzon . What you have is a good start, and I think having that function available as a shard is better than individual programmers trying to figure it out.
Chris Watson
@watzon
Anyone know how to take a C macro like this #define LINUX_VERSION(x,y,z) (0x10000*(x) + 0x100*(y) + z) and Crystalize it?
Isaac Sloan
@elorest
@johnjansen My recollection was we’d like to develop some sort of full crystal replacement similar to what go ended up using. It’s not really at the top of the priority list right now though.
Matias Garcia Isaia
@mgarciaisaia
@watzon why not a regular function? That's just making a number from three different others, right?
Chris Watson
@watzon
Yeah I just thought of that
I'm tired and overthinking things lol
Jason Waldrip
@jwaldrip
@watzon would you prefer that as part of the build though?
You can do that with macro syntax pretty easily, i typically have a runner that evals the shard.yml and inserts the version
Chris Watson
@watzon
@jwaldrip yeah I just added it as a method. That works fine :)
Just got my second shard up on GitHub! Still have a bit of work ahead of me, but I have the bindings to procps-ng https://github.com/watzon/crystal-procps
John Jansen
@johnjansen
@elorest that was my vague recollection too …
Jason Waldrip
@jwaldrip
@elorest @johnjansen GC's are not easy... well, not true, gc's are trivial, mallocs are the real pain.
Isaac Sloan
@elorest
yep.
Jason Waldrip
@jwaldrip
Could just comb though bohem and convert it to crystal
Chris Watson
@watzon
Better yet, let's just write a C->Crystal transpiler to do the heavy lifting
Then make all the things Crystal libs
:grin:
Jason Waldrip
@jwaldrip
:-)
sevk
@sevk
:smile:
sevk
@sevk
C->Crystal transpiler +1 , keep all things simple :+1:
Ghost
@ghost~55586c4815522ed4b3e08557
Good luck with that :smile: