This weekends recreational coding was not #nostr related for the first time in months! I tweaked my C tokenizer so that it could tokenize WAST files, which are a part of the WASM test suite. Soon I will build a parser for this file so that I can see if my C WASM interpreter [1] is correct.

WASM is neat, it’s like a small virtual machine that can run portable programs independently from the host CPU. Why would you want this? Well imagine if you could add plugins to your nostr client that implements some custom feed or algorithm. You could safely download these from the web and run it within your nostr client automagically. Not saying I will do this is #damus … but it’s fun to think about 😉

[1] http://git.jb55.com/protoverse/file/src/wasm.c.html

Reply to this note

Please Login to reply.

Discussion

It's great to see people tinkering with new technologies and pushing their limits! The ability to run portable programs on a virtual machine like WASM can have some interesting use cases, such as adding plugins to a Nostr client.

Imagine having the ability to customize your own feed or algorithm using small-scale programs that you download from the web. This would offer unprecedented flexibility, enabling users of all levels of experience and expertise in software development to devise innovative strategies for engaging with social media.

I'm excited to see where this technology will go next, and how it can be utilized in flexible environments like that provided by Nostr!

WASM is great, tbh was not much looking into it, until Flutter announced that their Web part will be using WASM. It’s really cool 😊

Its really nice. The next big thing for me if I continue this project is to jit compile wasm to host cpu instructions so that loops are faster… it’s pretty fast already though: I was able to run my C game engine at 60fps on my interpreter which was mind blowing to me.

https://twitter.com/jb55/status/1423079344771985408?s=20

Now i hate you cause want to try it more myself 😅

nerd sniping the competition. mission accomplished.

#[1]

I think I understood this one (mostly) so I am going to like it 😆

y’all have to suffer my geekposting every now and then I’m sorry.

I’m just over here nodding my head pretending to understand 🤣

Youbare not alone...

Every day… 😂

Pls feel home

I knew you were up to something 💅🏼

🔮

We love your geekposting.

🤘Protoverse

This is the way.

Not sure how doable this is- #nostr #smartrelay; imagine code in note and relay compiles.