Hot take on Modal (@wryl, @neauoire): Just use sed scripts lol

Attached in the screenshot of my addition program in action.

The process is:
- Take two numbers as two number lines.
- Turn each into Roman-ish numerals.
- Turn into unary.
- Concatenate.
- Turn back into Arabic, for now as a sum.
All done with global POSIX regex substitution, of course.

@wryl @neauoire update: got it to output full number without addition.

119 lines of ed script.

@aartaka @neauoire Snazzy! ❤️

If you haven't scoped it out sedlisp or similar efforts, they're really inspirational.

https://github.com/shinh/sedlisp

GitHub - shinh/sedlisp: Lisp implementation in sed

Lisp implementation in sed. Contribute to shinh/sedlisp development by creating an account on GitHub.

GitHub
@wryl @neauoire yes, heard about it. One of the reasons I picked sed/ed as my next esoteric languages!
@aartaka @wryl mild take, unless the sed interpreter is less than 200 lines 🤔
@wryl @neauoire it's more than that, but it's available everywhere 😛