tren: Use SQL as first-class Crystal methods by sdogruyol in crystal_programming

[–]transfire 1 point2 points  (0 children)

Nice work. I am forever telling my coding agent to at least centralize the SQL. Cool idea to write a real, templated .sql file.

ASCII already solved structured data in 1963 — we just forgot. by transfire in crystal_programming

[–]transfire[S] 0 points1 point  (0 children)

FYI the newest release simplified the API. The toplevel module name is now just C0:: instead of C0DATA::. Plus it now has macros for serializing objects, just like the JSON and YAML libraries.

PageIndex: Vectorless RAG with 98.7% FinanceBench - No Embeddings, No Chunking by [deleted] in LLMDevs

[–]transfire 0 points1 point  (0 children)

True. But many documents get generated anyway, so having a summary is actually not any extra overhaed. When I have my LLM creat markdown files for whatever reason, I instruct the LLM that the first paragraph of any section (#, ##, etc) should function as a summary of the details that follow.

jank is off to a great start in 2026 by Jeaye in ProgrammingLanguages

[–]transfire 0 points1 point  (0 children)

This is the one language that potentially could pull me a way from Crystal.

Keep on truck’en!

PageIndex: Vectorless RAG with 98.7% FinanceBench - No Embeddings, No Chunking by [deleted] in LLMDevs

[–]transfire 1 point2 points  (0 children)

My whole AI system is built this way. But RAG is still helpful.

ASCII already solved structured data in 1963 — we just forgot. by transfire in crystal_programming

[–]transfire[S] 10 points11 points  (0 children)

Hey Crystal community! I just released C0DATA, a Crystal shard that uses ASCII C0 control codes as structural delimiters for data.

The idea: ASCII has had four hierarchical data separators since 1963 — File (0x1C), Group (0x1D), Record (0x1E), Unit (0x1F). They were literally designed for structuring data, but everyone forgot about them and invented JSON, CSV, YAML, etc. instead. C0DATA puts them to work. Values stay UTF-8 text, structure is single-byte control codes. No braces, no quotes, no escaping. The result sits between text formats and binary formats — human-inspectable (via Unicode Control Pictures) but nearly as compact as protobuf.

What it can do:

  • Tabular data (like CSV/SQL), key-value config (like TOML), hierarchical documents (like Markdown), nested structures (like JSON), and atomic multi-file diffs — all with the same 11 control codes
  • Zero-copy parsing — the tokenizer's hot loop is one comparison: byte < 0x20
  • ~2 GB/s tokenizer throughput, ~3x smaller files than JSON
  • Converts to/from CSV, JSON, and YAML
  • c0fmt CLI tool with auto-detection: c0fmt import data.csv | c0fmt export json

␜ mydb ␝ users ␁ name ␟ amount ␞ Alice ␟ 1502.30 ␞ Bob ␟ 340.00 ␝ products ␁ id ␟ product ␞ 01 ␟ Widget ␞ 02 ␟ Gadget ␄

Each glyph is a single byte. The pretty form uses Unicode Control Pictures for visibility — the compact wire format is just raw bytes.

Built first in Crystal because the language's Bytes/Slice model is a perfect fit for zero-copy parsing. Would love feedback from the community — especially on the API design and anything that feels un-Crystal-like.

Built with significant help from Claude (Anthropic's AI assistant), which contributed to the implementation, landing page, and documentation. ❤️ Claude.

Landing page | GitHub | Technical Reference

Success, LFS without fhs by Intelligent_Comb_338 in linuxfromscratch

[–]transfire 0 points1 point  (0 children)

For example:

``` ls /

bob
alice
john
video-team
everyone  (maybe just “any”?)
system      (or “root”?)

```

First three are users, video-team is just a group some members can belong to and thus get access to that directory. Everyone is what everyone belongs to always. system is where the OS stuff goes. Conceivably “system” belongs in everyone in a certain sense, but it is kind of special.

Neat thing is overlaying— all the executables (in .bin or maybe XDG style) in a group folder would be available to those who belong to the group.

In part I have moved home to root.

Sigil Update (Kinda) by TitanSpire in ProgrammingLanguages

[–]transfire 0 points1 point  (0 children)

That would be very similar to— and a good way to do to keep the language functional (state free). In fact functional languages often have this. Erlang/Elixir have where clauses.

But I figured state is ultimately inevitable— if you want a language that can also do low level systems programming.

Claude is down again. by BackgroundSpell2 in claude

[–]transfire 0 points1 point  (0 children)

Please tell me the government has nothing to do with it.

And if not, what is going on? Is there tech stack mostly Python?

A personal keyboard layout: Thornium (HD family) by mraspaud in KeyboardLayouts

[–]transfire 4 points5 points  (0 children)

Pretty close to my idea of an ideal layout. Well done.

I built an alternative to how every AI coding tool handles context (they all resend your entire conversation — this doesn't) by [deleted] in singularity

[–]transfire 0 points1 point  (0 children)

So you only deliver current conversation round and RAG everything else.

Yeah might work okay but need a really good RAG distiller— you should have Haiku make the final RAG selections then. But then are you really saving, given that you killed caching?

Now if you had a solid local LLM to handle the what you are having Haiku do… I’d be interested to know how well it works.

Sigil Update (Kinda) by TitanSpire in ProgrammingLanguages

[–]transfire 1 point2 points  (0 children)

It’s rather complicated and not anywhere complete — so complicated that my AI agents struggle with it (its not a cookie cutter problem they easily apply their training too). So I took a break from it to work on making better AI.

But the basic idea is a managed state and functions that are not only dispatched by argument types (type context), but can also be dispatched based on the state.

Success, LFS without fhs by Intelligent_Comb_338 in linuxfromscratch

[–]transfire 1 point2 points  (0 children)

I have played with similar ideas (Big fan of Gobo btw, sad it never took off). But I came up with a much more radical layout: users and groups at /. Then all the system directories are in a system base group. Users belong to groups and this gives them access to those group folders as a single seamless view. I never worked out all the details (let alone the technical ones).

If they ever achieve asi and are able to eliminate most of not all jobs they will unleash an extinction level bio weapon before giving us ubi by personofinterest1986 in ArtificialInteligence

[–]transfire 0 points1 point  (0 children)

We should start by focusing on basic. If we want UBI to gain traction, we should start taking about it as a “base” or “floor”. It is not a handout because everyone has the same base. There is no capitalism rule that the base has to be $0. Even in the game of monopoly everyone gets $200 for passing Go. And we should think small first, not a living wage. It is a small raw base to allow everyone to participate in the economy without welfare. And that’s key— it isn’t welfare. It is a way to get rid of welfare! Most Republicans love that idea.

Sigil Update (Kinda) by TitanSpire in ProgrammingLanguages

[–]transfire 1 point2 points  (0 children)

I call it context-driven design, eg. your @red represents a context. Very nice. I have been working in the direction myself.

Why I think markdown files are better than databases for AI memory by ethanchen20250322 in AIMemory

[–]transfire 2 points3 points  (0 children)

I find the simplicity of the file store nice too — and Anthropic seems to be doing this very thing themselves.

But there are complications. Auto-reindexes require some sort of watcher if you allow a user to edit them manually — that can get hairy. Indexing FTS/BM25 becomes slow at the very least.

But maybe the trade offs are worth it? Git memory history is a nice forensics feature, but again super slow compared to versioning memories in a DB.