structura.js
umbrella
structura.js | umbrella | |
---|---|---|
4 | 4 | |
394 | 3,213 | |
- | 0.7% | |
7.6 | 9.9 | |
3 months ago | 7 days ago | |
TypeScript | TypeScript | |
MIT License | Apache License 2.0 |
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.
structura.js
-
Focusing on optimization, surpassing immer, limu finally reaches the top of immutable data performance
Before 3.12, although the performance of limu was several times better than immer, it was far away from structura and mutative These new immutable data operation libraries still have many gaps, so they can only be debugged friendly and several times faster than immer as a promotional point. If you want to pursue the ultimate speed, it is recommended by default. mutative.
-
The sword refers to immer, the faster and stronger immutable data js tool limu stable version released!
But is immer really the ultimate answer? The performance problem of immer is more prominent in large arrays and deep-level object scenarios. See this issue description, many authors in the community began to try to make breakthroughs, and noticed that structura and mutative, I found that it is indeed many times faster than immer as they said, but it still fails to solve the problem of both fast speed and good development experience. I will analyze the two issues in detail below.
-
I made a typescript library similar to Immer but ~20 times faster and with zero-runtime freezing
Nice work! but please break down https://github.com/giusepperaso/structura.js/blob/master/src/index.ts into something more manageable (refactor through extraction and promotion)
umbrella
- I made a typescript library similar to Immer but ~20 times faster and with zero-runtime freezing
-
Image from my current generative art project "Harmonium"
OP here. This project is implemented in Typescript and Svelte, with support from the thi.ng libraries.
-
Ask HN: What was the biggest contributor to your happiness in the past year?
This a is a really wide field. Basically its starts with one of the standard algorithms, like and l-system, a voronoi diagram, or simple combination of sin and cos to draw shapes. Have a look at thi-ng[1], just as example for a library that has implemented a lot of this kind of algorithms. The next step in my process is to think about how to destroy this forms as most of them are used a lot in this field and become boring. Using perlin noise as input to arguments of the algorithms is one way to do this. The other part is to make most all of the input variables easily changeable as most of the time the whole process is like writing the program and then spend a lot of time adapt the parameters until you get some interesting output. So in the end I have a small Svelte app, using Svelte only cause the data binding for the inputs so simple, which has tons of sliders that renders an SVG that can be saved in the end.
[1]https://github.com/thi-ng/umbrella
-
Timeflake: 128-bit, roughly-ordered, URL-safe UUIDs
@thi.ng/ksuid https://github.com/thi-ng/umbrella/tree/develop/packages/ksu...
What are some alternatives?
limu - High performance immutable lib alternative to immer with the same api, based on shallow copy on read and mark modified on write mechanism.
webhl - WebHL is a fork of hlviewer.js that uses the File System Access API to load game assets direct from your computer rather than from a server.
concent - A reactive atomic state engine for React like.
Pomelo.EntityFrameworkCore.MySql - Entity Framework Core provider for MySQL and MariaDB built on top of MySqlConnector
hel - A module federation SDK which is unrelated to tool chain for module consumer. 工具链无关的运行时模块联邦sdk.
mynode - The easiest way to run Bitcoin and Lightning!
kafka-ui - Open-Source Web UI for Apache Kafka Management
client-zip - A client-side streaming ZIP generator
timeflake - Timeflake is a 128-bit, roughly-ordered, URL-safe UUID.
julia - The Julia Programming Language
id128 - 128-bit id generation in multiple formats
sequential-uuids - generator of sequential UUIDs