minification-benchmarks
relibc
minification-benchmarks | relibc | |
---|---|---|
15 | 9 | |
1,208 | 812 | |
- | 0.1% | |
9.1 | 8.9 | |
4 days ago | 6 days ago | |
TypeScript | Rust | |
MIT License | 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.
minification-benchmarks
-
Extremely reducing the size of NPM package
Minifiers are used to reduce the size of the bundle. They can remove unused code, shorten expressions, and so on. And Now there are already several popular minifiers, and they continue to appear: more familiar ones - written in JavaScript - Terser and UglifyJS, even Babel has its own version of the minifier, there are also more modern SWC (written in Rust) and ESBuild (written in Go), and a bunch of other lesser-known minifiers. And I recommend you to look at this repository. It contains up-to-date test results of various popular minifiers.
-
Minify and Gzip (2022)
This minify/gzip size effect is a well known quirk to developers of javascript minifiers. The minifier's symbol mangling algorithm often has a more pronounced effect than does advanced AST optimization.
This website has real life data on the matter for popular libraries:
* https://github.com/privatenumber/minification-benchmarks
Compare the trophies indicating smallest size for Minified versus Minzipped (gzip). Generally the smallest minified size yields the smallest minified+gzip size, but there are some notable anomolies outside the range of statistical noise. It is not practical for a javascript minifier to take a compression algorithm into account - it would blow up the minify timings exponentially.
-
Bun v0.6.0 – Bun's new JavaScript bundler and minifier
It would be helpful to see how Bun's minifier compares to the others with popular libraries:
https://github.com/privatenumber/minification-benchmarks
-
JS Uglify/Minify Gems?
JavaScript
-
Overview of the next-gen frontend dev tools
There are many minifiers such as terser and uglify. But, because minifying also require to parse the JS, it is actually possible to use esbuild and SWC to minify the code. Here's a benchmark of the main minifiers.
-
Overworld 1.0 is Live
Here's a comparison showing the major players with comparable stats at first glance. https://github.com/privatenumber/minification-benchmarks
-
Is anyone using Google Closure Compiler? And why not?
https://esbuild.github.io/ https://github.com/privatenumber/minification-benchmarks
- Parcel v2
- I never need webpack or babel anymore
-
🧢 Stefan's Web Weekly #6
privatenumber/minification-benchmarks – JS minification benchmarks: babel-minify, esbuild, terser, uglify-js
relibc
-
Why does musl make my Rust code so slow? (2020)
That is what Go does. BSDs hate it. https://github.com/redox-os/relibc could be repurposed for this easily enough.
- Bun v0.6.0 – Bun's new JavaScript bundler and minifier
-
Microsoft rewriting core Windows libraries in Rust
A C standard library rewritten in Rust already exists. [0]
glibc has its share of CVEs, and many of the bugs are of the double free, use-after-free, buffer overflow variety. [1]
[0]: https://github.com/redox-os/relibc
-
Linux libs rewritten in rust?
It is entirely possible to write a libc replacement in Rust. In fact, Redox has done so. There is nothing preventing that library from providing a POSIX interface both to C programs and to the Rust libc FFI crate.
-
How do I use Zig as Rust's Standard C Library?
This is more a Rust question than a Zig question. In Rust, the choice of a specific libc (or to not use a libc) is part of the "target", for example many hardware platforms have gnu/musl/none targets. See also relibc or mustang for pure-rust alternatives. Each libc alternative require some work to integrate into Rust.
-
Rust Compiler Ambitions for 2022 | Inside Rust Blog
There have been a few attempts to replace libc, at least on Linux - for example Rustix, and Relibc.
-
Porting Rust's Std to Rustix
There is in fact already a library that does that https://github.com/redox-os/relibc
-
is there a musl implementation in Rust ?
There's relibc.
- Relibc: Portable Posix C standard library written in Rust
What are some alternatives?
vite - Next generation frontend tooling. It's fast!
mustang - Rust programs written entirely in Rust
esbuild - An extremely fast bundler for the web
rustix - Safe Rust bindings to POSIX-ish APIs
terser - 🗜 JavaScript parser, mangler and compressor toolkit for ES6+
compiler-builtins - Porting `compiler-rt` intrinsics to Rust
mocha-esbuild - Run tests with mocha compiled by esbuild
rust - Empowering everyone to build reliable and efficient software.
fjb - fast javascript bundler :package:
cross - “Zero setup” cross compilation and “cross testing” of Rust crates
source-map-explorer - Analyze and debug space usage through source maps
ziglibc