Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • 02:16
    renovate[bot] edited #12735
  • Feb 04 23:27
    straight-shoota milestoned #12966
  • Feb 04 23:27
    straight-shoota milestoned #12966
  • Feb 04 22:45
    Blacksmoke16 synchronize #12966
  • Feb 04 12:51
    straight-shoota closed #12224
  • Feb 04 12:51
    straight-shoota closed #13034
  • Feb 04 12:15
    straight-shoota milestoned #12921
  • Feb 04 12:15
    straight-shoota milestoned #12921
  • Feb 04 10:44
    straight-shoota edited #12921
  • Feb 04 02:39
    cyangle synchronize #12921
  • Feb 04 01:08
    cyangle synchronize #12921
  • Feb 04 01:08
    cyangle synchronize #12921
  • Feb 03 22:11
    straight-shoota labeled #12794
  • Feb 03 22:11
    straight-shoota assigned #12794
  • Feb 03 22:07
    straight-shoota synchronize #12959
  • Feb 03 21:38
    straight-shoota milestoned #12983
  • Feb 03 21:38
    straight-shoota milestoned #12983
  • Feb 03 17:37
    straight-shoota milestoned #13045
  • Feb 03 17:37
    straight-shoota milestoned #13045
  • Feb 03 16:49
    straight-shoota review_requested #13045
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
we need one though but not now :P
From IRC (bridge bot)
@FromIRC
<jokke> :⁠)
<jokke> i was pretty impressed when i found out that go has zero C deps
Serdar Dogruyol - Sedo セド
@sdogruyol
writing a GC is tough, not the GC itself though :D
yeah, they've written everything in Go but that took like 3-4 years
From IRC (bridge bot)
@FromIRC
<jokke> yeah
<jokke> even the cryptostuff
<jokke> but i hate go :⁠D
<jokke> i think it's a terrible language
Serdar Dogruyol - Sedo セド
@sdogruyol
heck, they even have image manipulation in go
From IRC (bridge bot)
@FromIRC
<Papierkorb> jokke: My pure crystal GC can't scan the stack yet, so not useful. Had to hack the stdlib a bit though
<jokke> Papierkorb: oh wow!
<Papierkorb> jokke: It's currently not meant to be used outside the boehm-gc lul
Serdar Dogruyol - Sedo セド
@sdogruyol
@Papierkorb open source it please :pray:
what do you use for alloc?
From IRC (bridge bot)
@FromIRC
<Papierkorb> @sdogruyol, when I get to it (cough Qt), and get it to scan stuff like Boehm, it might actually do something useful
<Papierkorb> Simply LibC.malloc() atm. Didn't see a need to switch that out,
<Papierkorb> Not to mention that memory allocation is a beast of its own
Serdar Dogruyol - Sedo セド
@sdogruyol
yeah...
From IRC (bridge bot)
@FromIRC
<jokke> yeah :⁠/
unreadable
@unreadable
Is it possible to remove an value from a named tuple? Couldn't find anything in the docs so I guess no
From IRC (bridge bot)
@FromIRC
<Papierkorb> Though, that'd just be a re-definition of __crystal_malloc(). And if you remember, I do have a stupid and naive memory allocator in Crystal, though that one was meant to be used in a kernel, so it's doing no mmap() stuff as of now
<Papierkorb> @krypton97, no. If you need a mutable structure, don't use an immutable-by-definition structure like NamedTuple. Use Hash instead.
unreadable
@unreadable
I was aware of that
thanks