Lately, I’ve been exploring a few interconnected ideas:
Local-first web applications with a compiled backend – After eight years working on web platforms, the conventional stack feels bloated. The client already defines what it wants to fetch or insert. Usually through queries. So why not parse those queries and generate the backend automatically (or at least, the parts that can be)? Triple stores as a core abstraction – I’ve been thinking about using a triple-based model instead of traditional in-memory data structures, especially in local-first apps. Facts could power both state and logic, and make syncing a lot simpler. Lower-level systems programming – I’ve mostly worked in high-level languages, but lately I’ve been writing C libraries (like hash maps) and built a minimal 32-bit bare-metal RISC-V OS. It’s all still brewing, but I think these ideas tie together nicely. What if the OS didn’t have a file system and just a fact store? Everything could be queried and updated live, like a Lisp machine but built on facts. Some other things I’ve been playing with: A jQuery-like framework and element factory - You can pass signals that automatically updates the DOM. A Datomic-like database on top of OPFS - where queries become signals that react to new triples as they enter the system. Pairs well with the framework above.
It’s getting there, but it does not handle permissions so you either have to add a bunch of rules through the database (such as RLS on Postgres) or define a permission schema.
Trying to see how far inference can go given that queries usually specify this information (ex: where(r => r.author == $SESSION.AUTHOR_ID)).
I'm planning on doing a proper writeup/release of this soon, but here's the short version: https://gist.github.com/samscott89/e819dcd35e387f99eb7ede156... - Uses lldb's Python scripting extensions to register commands, and handle memory access. Talks to the Rust process over TCP. - Supports pretty printing for custom structs + types from standard library (including Vec + HashMap). - Some simple expression handling, like field access, array indexing, and map lookups. - Can locate + call methods from binary.
http://axcas.net is an online computer algebra system I've been working on. I'm working to finish the programming language which is based on C, and I'm adding an ode solver which I plan to use to evaluate special functions.
I release code into the public domain hoping it will be useful. There's some fast code for Groebner basis computations using the F4 algorithm (parallelized - article to follow), and some routines for machine integers e.g. discrete logarithm, factoring, and prime counting.
It's a web-based notepad calculator, which means it's a notes app but it can evaluate inline calculations like ```
£300 in USD + 20% 09:00 to 18:30 - 45 minutes
``` I wrote the core of the calculator a few years ago, and I've just launched a big rewrite that supports * document syncing
* offline editing
* markdown formatting
* PDF and HTML exports
* autocomplete
* vim mode Happy to hear feedback :)
Comments (1,400) 783 threads
Earlier commentsLocal-first web applications with a compiled backend – After eight years working on web platforms, the conventional stack feels bloated. The client already defines what it wants to fetch or insert. Usually through queries. So why not parse those queries and generate the backend automatically (or at least, the parts that can be)?
Triple stores as a core abstraction – I’ve been thinking about using a triple-based model instead of traditional in-memory data structures, especially in local-first apps. Facts could power both state and logic, and make syncing a lot simpler.
Lower-level systems programming – I’ve mostly worked in high-level languages, but lately I’ve been writing C libraries (like hash maps) and built a minimal 32-bit bare-metal RISC-V OS.
It’s all still brewing, but I think these ideas tie together nicely. What if the OS didn’t have a file system and just a fact store? Everything could be queried and updated live, like a Lisp machine but built on facts.
Some other things I’ve been playing with:
A jQuery-like framework and element factory - You can pass signals that automatically updates the DOM.
A Datomic-like database on top of OPFS - where queries become signals that react to new triples as they enter the system. Pairs well with the framework above.
Trying to see how far inference can go given that queries usually specify this information (ex: where(r => r.author == $SESSION.AUTHOR_ID)).
Would love to boot on a physical machine eventually though! If you have suggestions, happy to hear them :)
I'm planning on doing a proper writeup/release of this soon, but here's the short version: https://gist.github.com/samscott89/e819dcd35e387f99eb7ede156...
- Uses lldb's Python scripting extensions to register commands, and handle memory access. Talks to the Rust process over TCP.
- Supports pretty printing for custom structs + types from standard library (including Vec + HashMap).
- Some simple expression handling, like field access, array indexing, and map lookups.
- Can locate + call methods from binary.
I release code into the public domain hoping it will be useful. There's some fast code for Groebner basis computations using the F4 algorithm (parallelized - article to follow), and some routines for machine integers e.g. discrete logarithm, factoring, and prime counting.
It's a web-based notepad calculator, which means it's a notes app but it can evaluate inline calculations like
``` £300 in USD + 20%
09:00 to 18:30 - 45 minutes ```
I wrote the core of the calculator a few years ago, and I've just launched a big rewrite that supports
* document syncing * offline editing * markdown formatting * PDF and HTML exports * autocomplete * vim mode
Happy to hear feedback :)
All comments shown.
Couldn't load more comments. Check your connection and try again.