Crystal is good for humans and LLMs.

Crystal is a compiled language inspired by Ruby. I kept my eye on it for quite a while. And I made myself productive in it in one day.

The amount of code you have to review and refactor has grown by factors.
So recently I've been looking for something easy to review, idiomatic and portable.

A ~10 years ago I had some experience with Ruby. I liked the language but the market decided what we had to use, so Ruby became locked in RoR ecosytem. It got me thinking - Wouldn't it be an advantage? Being a one-framefork-language means that it is idiomatic in every way possible.

So I made an exeriment. I gave coding agent a task to rewrite one of my services in Crystal. I only provided the tests and documenation. If Ruby is so idiomatic, whouln't Crystal be the same?

It was a success. I've got 50% less code than original, the logic is easy to trace, and during session the agent made less mistakes. I took less time to review and fix. Considering that It's  new for me and the language is not so popular I think It's a huge success.

I'll see how it goes from now on.

#crystallang #ruby
The Weekly Challenge 365: Alphabet Digit Counter Token

I’ve been doing the Weekly Challenges. The latest involved string mangling and regular expressions. (Note that this ends today.)

RogerBW's Blog

Time flies! It's already 5 years since the release of Crystal 1.0.
We're going to celebrate that! Meet the Core Team and community members looking back at that milestone, what happened since then, and what's coming next.
You can tag your questions with #Crystal2026AMA

Friday, 27 March 2026 16:00 UTC
Video Call: https://man.as/crystal2026ama-zoom
Live Stream: https://man.as/crystal2026ama

More info: https://forum.crystal-lang.org/t/5-years-anniversary-of-crystal-1-0/8801

#CrystalLang #ask_me_anything

Join our Cloud HD Video Meeting

Zoom is the leader in modern enterprise cloud communications.

Zoom

Release v3.3.4 of Ktistec is available.

This release adds Mastodon-compatible client support for publishing posts. Just like the previous release, however, all Mastodon API support is behind a build flag (-Dwith_mastodon_api). It's still experimental, so opt in only if you're happy to work with rough edges.

Beyond that, I focused on cleanup and refactoring throughout the codebase. Here's the full changelog:

Added

  • Cursor-based pagination on actor timeline and everything pages.
  • Mastodon-compatible API: /api/v1/statuses endpoint for status posting.
  • Mastodon-compatible API: /api/v1/timelines/public endpoint.

Fixed

  • Autosave focus handling. Fixes problems introduced in v3.3.3.
  • Prevent blur from creating a draft post when publishing a post.

Changed

  • Integrate X-Ray Mode colors into the theming system.
  • Improve CI: add npm audit, test, and caching.
  • Use npm ci in Dockerfile for reproducible builds.
  • Remove very old compiler bug work-around.

πŸ‹οΈ Mastodon API support is coming alongβ€”more in the next release!

#ktistec #crystallang #activitypub #fediverse

Comparing f64f24d1...df77bdab Β· toddsundsted/ktistec

ActivityPub (https://www.w3.org/TR/activitypub/) server for individual users and small groups. - Comparing f64f24d1...df77bdab Β· toddsundsted/ktistec

GitHub

is it the expectation that atomic should be used for all class level variables now?

#crystallang

The Weekly Challenge 364: Decrypted Goals

I’ve been doing the Weekly Challenges. The latest involved various sorts of string parsing. (Note that this ends today.)

RogerBW's Blog
Maybe one way to change the rules is to stop writing code that needs big hardware. The old options were C or C++ for speed and efficiency (which are difficult and dangerous) or Python, Ruby, NodeJS, Perl, PHP for quick and easy coding (but which are fat and slow). But we have better options now, better compromises... #RustLang, #NimLang, #GoLang, #CrystalLang ... the legacy languages have become the tools of the oppressor

I have started work on a Mastodon-compatible API layer intended to support the many Mastodon front-ends available. It is incomplete and requires an explicit build flag to enable, but what's there (the main timeline) already works with the official Mastodon app, Tusky, and Phanpy.

Here's the full changelog:

Fixed

  • Editor focus now stays in the editor after the first draft is saved. (fixes #139)
  • Filter settings instructions. (fixes #135)

Changed

  • Improved consistency of mini button colors.

As always, check out the full diff for the complete details.

#ktistec #crystallang #activitypub #fediverse

Get an app for Mastodon

Browse official and third-party apps for the decentralized social network Mastodon

You're looking for something that's readable but more efficient and smaller than #JSON or #YAML?
Structure data with #ASCII control codes like people did in 1963!

https://trans.github.io/c0data/

There's also a library in @CrystalLanguage available.

#crystallang #crystallanguage

C0DATA β€” Structure Data with Control Codes

This small release focused on two big deliverables: support for the latest version of Crystal and fixes for a few delivery issues.

Previous releases supported a wide range of Crystal Language versions, but ran into problems with version 1.17.x and beyond due to breaking changes in the standard library. This release works on 1.19.1 but also requires at least 1.19.1.

This release also fixes a bug, present since mid-2020 when HTTP signatures were first added, that resulted in signatures some fediverse servers wouldn't accept. Mastodon did, but with the proliferation of new ActivityPub servers, I increasingly encountered servers that did not.

Here's the full changelog:

Fixed

  • HTTP signature keyId now includes #main-key fragment.
  • IRI matching during dereferencing.
  • Broken down-detection for actors.

Changed

  • Fall back to Activity Streams context if supplied context is empty.
  • Deliver to personal inbox if delivery to shared inbox fails.

It's always good to stay up-to-date on releases. But if your platform doesn't yet support 1.19.1, I've also released a parallel branch that still runs on 1.16.3 and earlier. I'll maintain that branch for the next few releases to give everyone time to upgrade.

#ktistec #crystallang #activitypub #fediverse

Comparing f64f24d1...df77bdab Β· toddsundsted/ktistec

ActivityPub (https://www.w3.org/TR/activitypub/) server for individual users and small groups. - Comparing f64f24d1...df77bdab Β· toddsundsted/ktistec

GitHub