https://www.youtube.com/watch?v=UqVpXe5_GUQ
queer trans girl, software engineer, I like coding my own tools and ecology, 161
🏳️⚧️ 👩💻 🌷
| web | https://mayaks.eu/ |
| gemini | gemini://mayaks.eu |
queer trans girl, software engineer, I like coding my own tools and ecology, 161
🏳️⚧️ 👩💻 🌷
| web | https://mayaks.eu/ |
| gemini | gemini://mayaks.eu |
so the last days brought me back to university time (similar to bad dreams I often have) working on implementing signed and unsigned integer arithmetic in Javascript for uxn ts, a choice I made and a dragon I had to slay myself
so JS does not have 16-bit signed and unsigned single numbers, only 32-bit signed numbers, so if you add 2 big 16-bit numbers that overflow it will just return a big 32-bit number. It can be fixed when overflowing by shifting numbers by 16 bits or by using JS u16 and u8 arrays that will impose the limits for its elements. Now it works in uxnts (I hope for most of the operations), love you mathematics.
Sooo, while I am struggling to implement proper unsigned 16 bit int arithmetics in TS for uxnts, I did a little fun test.
Can I run uxnts with my hello world rom on Pebble watch? Yes. Am I serious about making it support more than simple text? Prob no 🙃 But maybe
I used simply.js deprecated sdk to make it run uxnts btw
here is the code, it's just packed uxnts with sdk refs
https://github.com/mayakarabula/uxnts/blob/main/pebble.ts
my vibes this morning, dreams aren't going to dream themselves 😇
has someone made an implementation of chess in uxn? I would be super interested, and would be happy to fill this gap myself too ^^
♟️♟️♟️
soooo, I have come back to the topic of running uxn in the browser and generally JS runtime, but what I felt was lacking in trying to run uxn in pure JS were types/structs, generally code readability, so I have started work on porting uxn to Typescript (based on current C implementation) hope it's not too blasphemous, below is an example of running simple hello.rom, as it does not include other devices than the system yet
<3
repo: https://github.com/mayakarabula/uxnts
but it's very much WIP now
The best-kept retro-mac secret is that the following web sites exist:
https://system6.app/
https://system7.app/
https://macos8.app/
https://macos9.app/
If you ever wanted to play with an old MacOS, this is the least effort to get started.