clojure-ohio

eraserhd 2026-03-12T13:45:54.181449Z

So... ferret actually uses emacs to tangle the source code from org-mode: https://github.com/nakkaya/ferret/blob/master/Makefile#L38-L51

2026-03-12T13:46:45.830319Z

oh yeah, how was the meeting on tuesday! what did y'all talk about

eraserhd 2026-03-12T13:46:49.167839Z

I guess I could edit the org-mode file manually, and install emacs just to tangle.

eraserhd 2026-03-12T13:47:02.484689Z

We broke https://ferret-lang.org

eraserhd 2026-03-12T13:47:34.727279Z

We discovered (= :hello :elloh) in ferret lang.

😂 1
eraserhd 2026-03-12T13:49:30.583079Z

This started with seeing that :hello prints as keyword#590 . 590 is the sum of the letters in "hello".

1
eraserhd 2026-03-12T13:54:28.144099Z

It kind of makes sense for targeting Arduinos with 2K program space and some few bytes of RAM, but I think I still would have chosen a better hash function. Actually, I think I would have had the compiler assign numbers in one of the AST transformation stages.

2026-03-12T13:58:12.457149Z

that's... a terrible hash function lol

2026-03-12T13:58:55.021319Z

reminds me of the early php

2026-03-12T13:59:05.152939Z

> In some cases, the function names were chosen to match the lower-level libraries which PHP was "wrapping",[23] while in some very early versions of PHP the length of the function names was used internally as a hash function, so names were chosen to improve the distribution of hash values.[24]

2026-03-12T13:59:17.700389Z

THE LENGTH OF FUNCTION NAMES

eraserhd 2026-03-12T14:00:09.195179Z

oh god, I remember that

eraserhd 2026-03-12T14:01:25.709039Z

I'm not sure how I ran into it?

eraserhd 2026-03-12T14:02:50.987329Z

I spent a bunch of time maintaining clipper code, where only the first four letters were significant for some things.

eraserhd 2026-03-12T14:03:39.003889Z

Oh, it looks like it was 10 for functions.

eraserhd 2026-03-12T14:04:57.634259Z

haha, the AI tells me dBASE III was 8 characters, but dBASE IV was probably also 8 characters, but don't trust it because it's been a while since they checked.

👀 1
2026-03-12T14:11:38.774309Z

i love computer