Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 13:15
    beta-ziliani milestoned #13030
  • 13:15
    beta-ziliani milestoned #13030
  • Jan 30 23:49
    Tamnac synchronize #13026
  • Jan 30 23:43
    Tamnac synchronize #13026
  • Jan 30 22:36
    straight-shoota milestoned #13011
  • Jan 30 22:36
    straight-shoota milestoned #13011
  • Jan 30 22:30
    oprypin edited #13026
  • Jan 30 22:03
    HertzDevil labeled #13031
  • Jan 30 22:03
    HertzDevil labeled #13031
  • Jan 30 22:03
    HertzDevil opened #13031
  • Jan 30 20:20
    straight-shoota closed #13027
  • Jan 30 20:19
    straight-shoota closed #13028
  • Jan 30 20:19
    straight-shoota closed #13025
  • Jan 30 20:19
    straight-shoota closed #13023
  • Jan 30 20:19
    straight-shoota edited #13025
  • Jan 30 20:06
    straight-shoota assigned #13030
  • Jan 30 20:06
    straight-shoota opened #13030
  • Jan 30 20:06
    straight-shoota labeled #13030
  • Jan 30 20:06
    straight-shoota labeled #13030
  • Jan 30 15:56
    straight-shoota labeled #13026
Zatherz
@zatherz
long is, at least on most platforms that crystal targets, Int64
crystal doesn't have things like unsigned, it's separate types, so UInt64
@bararchy @watzon Thanks, I'm gonna use these results for https://gitlab.com/zatherz/magicjson
I'm gonna have an always_ordered option that makes it use force ordered, otherwise I'm gonna use naive w/ reset
Chris Watson
@watzon
Ooh awesome
Good going using GitLab
sevk
@sevk
make crystal as a human language , similar to short english .
Zatherz
@zatherz
what
Chris Watson
@watzon
:confused:
sevk
@sevk
easy++
Chris Watson
@watzon
Anyone know what these would be in a Crystal Lib file?
void numa_init (void);
void numa_uninit (void);
I tried fun numa_init, but it's telling me can't find function numa_init (Exception)
Matias Garcia Isaia
@mgarciaisaia
@watzon doesn't fun numa_init : Void work?
Chris Watson
@watzon
@mgarciaisaia nope. Still says it can't find the function
Oh well, I don't think it's an important one to include
Matias Garcia Isaia
@mgarciaisaia
The Crystal Way™ would be something like:
lib Numa
  fun init = numa_init : Void
  # ...
end
So your code calls Numa.init instead of an ugly, C-like name
Chris Watson
@watzon
Is it possible to wrap static functions? Like https://gitlab.com/procps-ng/procps/blob/master/proc/readproc.c#L89
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.