News for hackers. Stuff that matters.
Re:Crystal 1.11.0 Is Released by colesantiago on Sunday January 14, 2024 @01:27PM (#38992949)
It looks like Crystal is gaining traction.

Which companies use Crystal in anger / production in front of real users?

Re:Crystal 1.11.0 Is Released by compumike on Sunday January 14, 2024 @02:30PM (#38993604)
At Heii On-Call, we use Crystal to power the API server https://api.heiioncall.com/ as well as other internal components.
Re:Crystal 1.11.0 Is Released by asadawadia on Sunday January 14, 2024 @07:13PM (#38995860)
do you use kemal?
Re:Crystal 1.11.0 Is Released by juju213 on Monday January 15, 2024 @01:46PM (#39004467)
Hopefully they use Grip, a much better framework with encapsulation
Re:Crystal 1.11.0 Is Released by 1vuio0pswjnm7 on Sunday January 14, 2024 @03:26PM (#38994117)
Invidious, a self-hosted YouTube front-end. is written in Crystal.
Re:Crystal 1.11.0 Is Released by acheong08 on Sunday January 14, 2024 @04:14PM (#38994503)
And its resource usage is depressing. Isn’t Crystal garbage collected? I’m not sure why it has memory leaks.

Also, >300 MB of RAM usage (in docker. Some might be the system) with only 2 users after running for a while seems a bit too much

Re:Crystal 1.11.0 Is Released by ksec on Sunday January 14, 2024 @08:24PM (#38996327)
How would you know the memory leak was the Crystal part?
Re:Crystal 1.11.0 Is Released by acheong08 on Sunday January 14, 2024 @09:18PM (#38996706)
https://github.com/iv-org/invidious/issues/1438

I’m not the first one facing these issues.

Re:Crystal 1.11.0 Is Released by xethos on Sunday January 14, 2024 @08:37PM (#38996409)
Oh is this why Invidious' setup documentation recommends restarting Invidious every hour or so?
Re:Crystal 1.11.0 Is Released by acheong08 on Sunday January 14, 2024 @09:19PM (#38996724)
I ended up just throwing it 4 gigs of memory and it has pretty much been fine ever since. I do restart every few weeks when it reaches 1 GB though
Re:Crystal 1.11.0 Is Released by 1vuio0pswjnm7 on Sunday January 14, 2024 @10:59PM (#38997315)
(Not an Invidious user myself. I just looked at the source code a while back to see what they were doing. But I never tried compiling or using it.)
Re:Crystal 1.11.0 Is Released by DASD on Sunday January 14, 2024 @02:01PM (#38993310)
I believe Kagi is a heavy user of the language.
Re:Crystal 1.11.0 Is Released by SushiHippie on Sunday January 14, 2024 @08:37PM (#38996410)
~70k LOC Crystal

Mentioned in the crystal conf talk held by a Kagi Developer

https://youtube.com/r7t9xPajjTM

Re:Crystal 1.11.0 Is Released by freediver on Sunday January 14, 2024 @10:50PM (#38997269)
Re:Crystal 1.11.0 Is Released by ukd1 on Sunday January 14, 2024 @02:18PM (#38993488)
My last company (Rainforest QA) used it in quite a few places when ruby wasn't fast enough, though a lot of Go too.
Re:Crystal 1.11.0 Is Released by Piribedil on Sunday January 14, 2024 @02:49PM (#38993771)
Re:Crystal 1.11.0 Is Released by prh8 on Sunday January 14, 2024 @05:36PM (#38995143)
We use it to do nightly sitemap generation of over 30 million links. Takes about 30 minutes, replaced a Ruby (Rails) process that took hours.