Workflow
jsynchronous
Our great sponsors
Workflow | jsynchronous | |
---|---|---|
1 | 12 | |
42 | 115 | |
- | - | |
0.0 | 0.0 | |
almost 8 years ago | over 1 year ago | |
Haskell | JavaScript | |
BSD 3-clause "New" or "Revised" License | 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.
Workflow
-
Event Sourcing
I was part of that debate, I remember a rather interesting point of discussion: Is the main operation "apply" or "dedup"
Apply seems to be the common notion of event sourcing: There is a function apply that takes a state an event and yields a new state. Then, starting in an init state and iteratively applying the entire event history, boom, latest state restored.
Dedup has a lot of charm though: Run and rerun your code, if that step of your code is executed for the first time (no corresponding event in the event history) execute the step and store its result as an event in the history, however, if that step of your code is executed for the second, third time (there is a corresponding event in the event history) do not execute the step and return its result from the event in the history. The Haskell Workflow Package (https://hackage.haskell.org/package/Workflow) is a good example
Temporal follows the second approach, so "proper" Event Sourcing? You be the judge :)
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?
cloud-haskell - This is an umbrella development repository for Cloud Haskell
QuestJS - A major re-write of Quest that is written in JavaScript and will run in the browser.
unliftio - The MonadUnliftIO typeclass for unlifting monads to IO
wshook - Easily intercept and modify WebSocket requests and message events.
effect-monad - Provides 'graded monads' and 'parameterised monads' to Haskell, enabling fine-grained reasoning about effects.
FluidFramework - Library for building distributed, real-time collaborative web applications
record - Anonymous records
plumber - A swiss army knife CLI tool for interacting with Kafka, RabbitMQ and other messaging systems.
lens-tutorial - The missing tutorial module for the lens library
zotonic - Zotonic - The Erlang Web Framework & CMS
rio-orphans - A standard library for Haskell
FASTER - Fast persistent recoverable log and key-value store + cache, in C# and C++.