skiplistrs
jsynchronous
skiplistrs | jsynchronous | |
---|---|---|
1 | 12 | |
4 | 117 | |
- | - | |
1.8 | 4.0 | |
over 3 years ago | about 2 months ago | |
Rust | JavaScript | |
- | BSD 2-clause "Simplified" License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
skiplistrs
-
Event Sourcing
Sure - here's a simple fuzzer from a rope (fancy string) library I wrote a few years ago back when I was still learning rust. (Don't judge me!):
https://github.com/josephg/skiplistrs/blob/master/tests/test...
In a loop it simply randomly decides whether to insert, delete or replace some text, and after any action checks that the state is valid (In this case via a call to check2()).
You can go way deeper with this sort of thing if you want, with more complex models, random item generation and simplifiers to help pare down problems to simple test cases. And you can have more complex state - for example, where you also track interaction between multiple items. For example, if your state is a few users, and you also track one user paying another user and verify the total balance across all users is unchanged.
But you don't need to go deep for fuzz testing to be worthwhile. Even something as simple as this little loop is a remarkably effective bug finder.
jsynchronous
-
Ask HN: What is something you built but never marketed?
A data-synchronization library for Node.js
https://github.com/siriusastrebe/jsynchronous
Ever get tired of sending API requests and JSON payloads? Wouldn't it be cool if data just synced between server and client?
Jsynchronous lets you share deeply nested object/arrays between node.js and connected browsers – and any changes made to that variable.
-
Woe be onto you for using a WebSocket
For the very reasons listed in the article, I built:
https://github.com/siriusastrebe/jsynchronous
a library for keeping a javascript variables synchronized between Node.js servers and clients.
Websockets work great for message passing but it struggles with data structures more complicated than what JSON can represent. Jsynchronous syncs any javascript object or array with arbitrarily deep nesting and full support for circular data structures.
If a computer goes to sleep, or disconnects, websocket connections (and their underlying TCP connections) get reset so you lose any data sent while a computer is unavailable. Jsynchronous will re-send any data clients are missing.
There's also a history mode that lets you rewind to past states.
- Easily share fast changing server data with Jsynchronous.js - for games and real time apps.
- Easily share fast changing server data with Jsynchronous.js - for games and real time apps
- Show HN: Synchronize your rapidly changing app state with all connected browsers
-
Event Sourcing
I recently built https://github.com/siriusastrebe/jsynchronous which uses event sourcing to synchronize javascript variables on the server with connected browsers.
You can also replay states using a special “rewind” mode, a core advantage of event sourcing.
-
5000x faster CRDTs: An Adventure in Optimization
Not for rust - for javascript: Take a look at this library: https://github.com/siriusastrebe/jsynchronous
-
Ask HN: Who wants to be hired? (August 2021)
Fullstack web developer, data visualization and real-time app specialist
I recently built and open sourced https://github.com/siriusastrebe/jsynchronous a real-time data sync library for javascript.
Location: Seattle, full time roles
- Jsynchronous.js - Data synchronization for games and real-time web apps
What are some alternatives?
FASTER - Fast persistent recoverable log and key-value store + cache, in C# and C++.
QuestJS - A major re-write of Quest that is written in JavaScript and will run in the browser.
plumber - A swiss army knife CLI tool for interacting with Kafka, RabbitMQ and other messaging systems.
wshook - Easily intercept and modify WebSocket requests and message events.
message-db - Microservice native message and event store for Postgres
FluidFramework - Library for building distributed, real-time collaborative web applications
Workflow - re-startable monad that recover the execution state from a log, and workflow patterns
hn-search - Hacker News Search
zotonic - Zotonic - The Erlang Web Framework & CMS