all repos — h3rald @ 8ff5525b7f9a69de28c9a0b5557cb0768f0b4ff5

The sources of https://h3rald.com

#DecemberAdventure
h3rald h3rald@h3rald.com
Sun, 22 Dec 2024 20:27:52 +0100
commit

8ff5525b7f9a69de28c9a0b5557cb0768f0b4ff5

parent

8c14501dca1cd91c00aaabe3a4f3f9e3dc72ab8c

1 files changed, 6 insertions(+), 0 deletions(-)

jump to
M contents/articles/december-adventure-2024.mdcontents/articles/december-adventure-2024.md

@@ -686,3 +686,9 @@

Finally I got around to writing a [proper article](/articles/hex) about hex. How it came about, why I bothered... things like that! Next I will start thinking about... a standard library for hex, and also maybe improve the playground to support entering longer programs. + +### Day #22 + +I improved the [playground](https://hex.2c.fyi/play) a little bit. I added a button to "upload a file" by copying and pasting it into a textarea and evaluating it. I ended up increasing the STDIN buffer to 16kb and implement a way to strip hashbang, comments, and newlines before sending it through the REPL... kinda hacky, but it seems to work. + +I have also been thinking about creating a new `::` symbol to create operators (to avoid using `.` on all user symbols all the time) and also some possible modules for a hypothetical standard library.