5 ms·
Great to see work like this being done. Javascript is often a "good enough" language, but an efficient Smalltalk (or Self) language with support for things like
by stevedekorte 2y ago
Great to see work like this being done. Javascript is often a "good enough" language, but an efficient Smalltalk (or Self) language with support for things like system images, become:, coroutines, and other advanced features would open up a lot of advanced programming techniques like fast portable images, transparent futures, cooperative concurrency without async/await on every call, etc.
- davexunit 2y agoOn a similar note, you can now run Scheme in the browser via wasm: https://spritely.institute/hoot/ https://spritely.institute/hoot/ The current release can do coroutines via the delimited continuation support, but the next release will have ready-to-use lightweight threads (aka "fibers") that integrate with JS promises. No async/await marked functions/calls.
- OnlyMortal 2y agoAs an Obj-C guy, if I declare a method as input only and no return, it can run async in the run loop. I assume Smalltalk can do the same?
- epolanski 2y agoEffect-ts is also built on the same principles (fibers) if one wants to stay in TS land. https://effect.website/docs/guides/runtime https://effect.website/docs/guides/runtime