Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 04:14
    HertzDevil edited #12523
  • 04:13
    HertzDevil edited #12523
  • 04:11
    HertzDevil synchronize #12523
  • 03:25
    HertzDevil edited #11840
  • 03:20
    HertzDevil synchronize #12364
  • 03:19
    HertzDevil synchronize #11840
  • 02:24
    HertzDevil labeled #12516
  • 02:24
    HertzDevil labeled #12523
  • 02:24
    HertzDevil labeled #12523
  • 02:24
    HertzDevil labeled #12523
  • 02:24
    HertzDevil opened #12523
  • 01:29
    HertzDevil closed #12519
  • 01:29
    HertzDevil closed #12517
  • 01:24
    HertzDevil synchronize #11840
  • 01:20
    HertzDevil synchronize #12364
  • Sep 24 20:37
    beta-ziliani labeled #12522
  • Sep 24 20:37
    beta-ziliani labeled #12522
  • Sep 24 20:37
    beta-ziliani opened #12522
  • Sep 24 17:15
    mattrberry opened #12521
  • Sep 24 17:15
    mattrberry labeled #12521
From IRC (bridge bot)
@FromIRC
<RX14> @krypton97 it uses libpcre which is very optimised
unreadable
@unreadable
I'm looking to do some validation
Hanyuan Li
@hanyuone
Argh C is confusing :(
From IRC (bridge bot)
@FromIRC
<Yxhuvud> rx14: But libPCRE is not statically linked, is it? Because if not, then the minimal cost is the cost for walking the linking, which is not necessarily insignificant.
<RX14> wat?
<RX14> it's linked once when you start the program
<RX14> then it makes no difference
<RX14> disregarding LTO
Hanyuan Li
@hanyuone
Argh how do you build GTK+ w/ Homebrew
From IRC (bridge bot)
@FromIRC
<Yxhuvud> sure but calling functions in it DO make a difference as it is always a jump or two away.
<RX14> no
<RX14> it's just a normal function call
<bmcginty> I'm blanking out on something here. I've got a pointer of data being returned from a library (libpq). Somehow, when the gc is running, it's segfaulting. I have a suspition it's trying to collect something from libpq land that libpq has already handled. Anyone seen anything like this before or have suggestions on where to go from here?
From IRC (bridge bot)
@FromIRC
<bmcginty> fault is in gc_clear_stack_inner, for what that's worth. I've also taken the pointer, created a second pointer, and copied everything over with Pointer.malloc(original_pointer_size) { |i| original_pointer[i] }. so the original pointer shouldn't be used outside of that one area in the program...
Hanyuan Li
@hanyuone
Does anyone know where to start with making a C binding for GTK+?
It honestly seems like a monumental task
Because I have basically 0 knowledge of C
From IRC (bridge bot)
@FromIRC
<Papierkorb> Beginning with Gtk in that case doesn't sound like a good idea tbh
<Papierkorb> The issue isn't even writing the pure binding itself. The issue is first getting structures right, and then the correct integration
<Papierkorb> In terms of Gtk, you also have to deal with GObject, and suddenly you have inheritance in C you have to wrap too.
From IRC (bridge bot)
@FromIRC
<RX14> i havent used gobject but it sounds like a terrible idea
Serdar Dogruyol - Sedo セド
@sdogruyol
hey everyone
Ghost
@ghost~55586c4815522ed4b3e08557
hey @sdogruyol ;)
Serdar Dogruyol - Sedo セド
@sdogruyol
hey @bew, how are you?
Ghost
@ghost~55586c4815522ed4b3e08557
good! it seems to be a long time, did you take some vacation?
Serdar Dogruyol - Sedo セド
@sdogruyol
yeah, I've just returned from a vacation
Ghost
@ghost~55586c4815522ed4b3e08557
good! So you're ready to return in your crystal ambassador role? ;)
Serdar Dogruyol - Sedo セド
@sdogruyol
I'll do my best :+1:
From IRC (bridge bot)
@FromIRC
<bmcginty> I goofed. not a gc issue (again, when will I learn). I was recursively calling a function.
<RX14> bmcginty, easy way to tell is stackoverflow has "(n times)" in one of the backtraces
unreadable
@unreadable
I find crystal so much more productive than go. Kinda reminds me about node.js but simpler hehe
And no async stuffs hehe
LuckyChicken
@LuckyChicken91_twitter
yes crystal is really awesome
Serdar Dogruyol - Sedo セド
@sdogruyol
@krypton97 indeed :100:
unreadable
@unreadable
wondering id there's something similar with try/catch block in crystal o.O
Ghost
@ghost~55586c4815522ed4b3e08557
unreadable
@unreadable
Yeah, I've found that
gonna play with it
rn
unreadable
@unreadable
begin/rescue/else works like a charm
Well done crystal team. No more err != nil bs..
Serdar Dogruyol - Sedo セド
@sdogruyol
Oh, what do you mean?
unreadable
@unreadable
err != nil is specific to Golang. Go libraries are written that way so they always return an error (nil or something else)
Serdar Dogruyol - Sedo セド
@sdogruyol
Ahh, now i get it
I don't like that kind of error handling
unreadable
@unreadable
It's a pain..doing assertion for every function it's not productive at all
cevarief
@cevarief
Hi, i'm new to crystal any crud sample with sqlite or any rdbms ?
It has some nice samples
cevarief
@cevarief
@krypton97 Thank you.