Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 23:07
    straight-shoota edited #12814
  • 23:01
    straight-shoota synchronize #12814
  • 22:59
    straight-shoota edited #12814
  • 22:58
    straight-shoota edited #12814
  • 22:58
    straight-shoota edited #12814
  • 22:55
    homonoidian opened #12815
  • 22:55
    homonoidian labeled #12815
  • 22:53
    straight-shoota edited #12814
  • 22:53
    straight-shoota edited #12814
  • 22:52
    straight-shoota edited #12814
  • 22:52
    straight-shoota edited #12814
  • 22:51
    straight-shoota labeled #12814
  • 22:51
    straight-shoota labeled #12814
  • 22:51
    straight-shoota labeled #12814
  • 22:51
    straight-shoota opened #12814
  • 22:16
    straight-shoota labeled #12813
  • 22:16
    straight-shoota labeled #12813
  • 22:16
    straight-shoota labeled #12813
  • 22:16
    straight-shoota opened #12813
  • 22:03
    straight-shoota labeled #12812
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.
unreadable
@unreadable
If you need any help I'm here. Currently working with sqlite as well
From IRC (bridge bot)
@FromIRC
<jokke> hey
Serdar Dogruyol - Sedo セド
@sdogruyol
hey @jokke
From IRC (bridge bot)
@FromIRC
<jokke> if i were to develop an alternative stdlib, how would i provide a prelude file for it?
<jokke> i tried putting a file "prelude.cr" in src/<project_name>/
Serdar Dogruyol - Sedo セド
@sdogruyol
can't you do that with --prelude ?
From IRC (bridge bot)
@FromIRC
<jokke> and then compiling something with --prelude prelude
<jokke> but that just seems to include the standard prelude
<jokke> at least it let me use puts, which isn't in my stdlib
Ghost
@ghost~55586c4815522ed4b3e08557
you need --prelude "./prelude"
From IRC (bridge bot)
@FromIRC
<jokke> @bew: and what if i want to build another project which uses my stdlib as a dep?
Ghost
@ghost~55586c4815522ed4b3e08557
it uses the same "path" logic than require iirc
From IRC (bridge bot)
@FromIRC
<jokke> @bew: ah i see
<jokke> okay, so then it would be <my_lib>/prelude
<jokke> thanks :⁠)
Ghost
@ghost~55586c4815522ed4b3e08557
yes should be ;)
From IRC (bridge bot)
@FromIRC
<jokke> are there any gc libs in crystal in the works?
Serdar Dogruyol - Sedo セド
@sdogruyol
nope
From IRC (bridge bot)
@FromIRC
<jokke> dang
Serdar Dogruyol - Sedo セド
@sdogruyol
I'm not aware of any GC written in Crystal