babel-handbook
Immer
babel-handbook | Immer | |
---|---|---|
7 | 145 | |
12,007 | 27,487 | |
- | 0.6% | |
0.0 | 7.2 | |
2 months ago | 9 days ago | |
JavaScript | ||
Creative Commons Attribution 4.0 | MIT 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.
babel-handbook
-
Abstract Syntax Trees and Practical Applications in JavaScript
For more information about building Babel plugins, check the Kent's Babel Handbook or this awesome Babel handbook by Jamie.
- babel-handbook: A guided handbook on how to use Babel and how to create plugins for Babel.
-
Getting Started With Babel - Transpiling Javascript
Babel does this by compiling down JavaScript code written with the latest standards into a version that will work everywhere today. This process is known as source-to-source compiling, also known as transpiring. Source: Jamie Kyle
-
11 JavaScript Examples to Source Code That Reveal Design Patterns In Use
I'll be honest, my approach to getting used to working with ASTs is a bit weird, but it worked for me. For some reason the thought of working with the TypeScript AST sounds really attractive to me. I'm sure most people recommend to start deep diving into babel first before getting used to working with an AST with the TypeScript compiler, but I started it the other way around. There is a great library called ts-morph that focuses on making it easier for developers to work with the TypeScript compiler. Learning hands on with ts-morph while getting used to their compiler api made babel much easier to understand without ever touching babel.
-
A tale of knowledge building
Those videos gave me a base for the task but I needed more sources to achieve it, so I read a lot of source code for other libraries built with babel-plugin-macros, read the plugin's authoring documentation and Jamie Kyle's Babel Handbook.
-
How to create your own language that compile to JavaScript
If you want to learn more about parsing, reading the code of an actual recursive parser might be a better idea. Esprima is a decent place to start if you're interested in JS grammar. Then you can look at the babel handbook to learn more about AST transformations. From there, the literature gets quite a bit more heavy. If you get this far and are willing to push further, you'll probably want to grab yourself a copy of the dragon book at a minimum.
-
Revealing the magic of AST by writing babel plugins
Babel handbook
Immer
-
Comparing React Mutative vs. React Immer
Immer, which means always in German, is a little package that makes working with an immutable state more convenient. Winner of the 2019 JavaScript Open Source Award for "Most impactful contribution".
-
Immer : Clear understanding of how to handle nested state objects with Immer in React and TypeScript
Immer Documentation
-
Introduction to Functional Programming in JavaScript: Immutability #6
For deeply nested structures, achieving immutability can be more challenging. Libraries like Immutable.js and Immer provide tools for creating and managing immutable data structures.
-
Comparing React state tools: Mutative vs. Immer vs. reducers
Immer is a lightweight package that simplifies working with immutable states. Immutable data structures ensure efficient data change detection, making it easier to track modifications. Additionally, they enable cost-effective cloning by sharing unchanged parts of a data tree in memory.
-
Immer VS mutative - a user suggested alternative
2 projects | 25 Jan 2024
-
Show HN: Cami.js – A No Build, Web Component Based Reactive Framework
```
It looks like it’s mutating, but both the reducers and update() uses immer* under the hood, so we still respect immutability under the hood.
Cami supports redux devtools so you can use that for time-travel debugging too!
—-
* https://github.com/immerjs/immer
- Why do we need modules at all?
-
Making Sense of React Server Components
I heard that immutability libraries like immer.js [0] help with this. Anyone go this way and had good success? Is this 'the way'?
[0]: https://immerjs.github.io/immer/
-
How We Fixed Performance With JS Object Variable Mutation
So, that's what we built, and we built it in the most obvious way — using JavaScript Proxy objects to track mutations and reflect those changes across Appsmith’s framework. Initially things looked good — it worked, aside from a few hacks to make some data types work with map and set, and we were following the example of other projects that had similar requirements. If it was good enough for them, it should be good enough for us, right?
-
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.
What are some alternatives?
esprima - ECMAScript parsing infrastructure for multipurpose analysis
immutability-helper - mutate a copy of data without changing the original source
super-expressive - 🦜 Super Expressive is a zero-dependency JavaScript library for building regular expressions in (almost) natural language
immutable-js - Immutable persistent data collections for Javascript which increase efficiency and simplicity.
picoc - A very small C interpreter
redux-toolkit - The official, opinionated, batteries-included toolset for efficient Redux development
babel-plugin-macros - 🎣 Allows you to build simple compile-time libraries
Recoil - Recoil is an experimental state management library for React apps. It provides several capabilities that are difficult to achieve with React alone, while being compatible with the newest features of React.
estree - The ESTree Spec
react-query - 🤖 Powerful asynchronous state management, server-state utilities and data fetching for TS/JS, React, Solid, Svelte and Vue. [Moved to: https://github.com/TanStack/query]
super-expressive.macro - 🎣 A macro to generate Regular Expressions (RegExp) at build-time with super-expressive.
valtio - 🧙 Valtio makes proxy-state simple for React and Vanilla