Writing text editor from scratch in D & Raylib
madwebness
qount25 at protonmail.com
Mon Apr 6 01:06:37 UTC 2026
> Recently I found an interesting project in C + Clay + SDL
> Could be interesting for you to check
> https://dylancobb.github.io/sev/
Yep, thank you, interesting project. One thing I wish I could do
is to be able to ship to WASM and the browser - which this editor
can do because it's in C, but ick cannot. Raylib itself supports
WASM, but D with GC doesn't, correct? Does anybody know if D + GC
+ maybe parts of stdlib will ever be compiling for wasm?
I've also browsed through their dir structure, it's funny that I
can't actually map it very well to what I've done with ick, which
kinda made me feel like a hack. Their source and editor itself
(from the screenshots) look more polished, but at the same time
it must lack something I've implemented, because there's
definitely less code as far as I can tell. I also didn't see any
unit tests - don't know how is it even possible to NOT have unit
test coverage for a project like text editor.
Their usage of this "Clay" lib for layout is what also picked my
eye. Has anyone tried it? I guess it could simplify things
greatly when I get to implementing things like splits, tabs and
other small UI elements, but I'm not sure I want to go that way -
what if I want to support GOP rendering or some other backends
later, I better have my own tiny UI lib. How hard can it be for
an editor?
Anyway, good link, made me think about things. And also about
building proper small community, which this "sev" editor is
definitely also doing.
More information about the Digitalmars-d
mailing list