cargo-leptos
swc
cargo-leptos | swc | |
---|---|---|
4 | 141 | |
316 | 30,118 | |
6.0% | 1.0% | |
8.8 | 9.9 | |
about 17 hours ago | 5 days ago | |
Rust | Rust | |
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.
cargo-leptos
-
I Improved My Rust Compile Times by 75%
> separate-front-target-dir = true
This is now enabled unconditionally and the Cargo.toml option is deprecated since cargo-leptos 0.2.3, it is going to be removed in 0.3
https://github.com/leptos-rs/cargo-leptos/pull/216
https://github.com/leptos-rs/cargo-leptos/issues/217
https://github.com/leptos-rs/cargo-leptos/commit/b0c19a87cff...
-
Hey Rustaceans! Got a question? Ask here (16/2023)!
Leptos is a SolidJS-like framework with excellent performance. It has a great server-side story as well with server-side rendering & client-side hydration as well as what they call "server functions"; essentially define a function server-side and it can be called client-side without having to deal with http and API design. Also great tooling story with cargo-leptos, leptosfmt (as well as leptos-language-server)
-
What are some stuff that Rust isn't good at?
Leptos got it working a couple weeks ago as well: https://github.com/leptos-rs/cargo-leptos
-
Yew | What’s been your experience?
Future opportunities - This one's tougher to speak to since leptos is new on the block. I think it's worth exploring leptos (or sycamore?) just to learn about fine-grained reactivity, and comparing how it works compared to a traditional react model. But to me the ecosystem around leptos is promising, with tools like cargo-letpos, leptosfmt, and more, it seems the community is stepping up to help fill some gaps.
swc
-
Storybook 8 Beta
First, we switched the default compiler for new projects from Babel to SWC (Speedy Web Compiler). SWC is dramatically faster than Babel and requires zero configuration. We’ll continue to support Babel in any project currently using it.
-
What is JSDoc and why you may not need typescript for your next project?
SWC
-
Implementing auth flow as fast as possible using NestJS
As the reference explains “**SWC** (Speedy Web Compiler) is an extensible Rust-based platform that can be used for both compilation and bundling. Using SWC with Nest CLI is a great and simple way to significantly speed up your development process.”
-
Ruby Outperforms C: Breaking the Catch-22
This is specifically about breaking the myth that performing expensive self-contained operations (e.g, parsing GraphQL) in a native extension (C, Rust, etc.) is always faster than the interpreted language.
The JS ecosystem has the same problem, people think rewriting everything in Rust will be a magic fix. In practice, there's always the problem highlighted in the post (transitioning is expensive, causes optimization bailouts), as well as the cost of actually getting the results back into Node-land. This is why SWC abandoned the JS API for writing plugins - constantly bouncing back and forth while traversing AST nodes was even slower than Babel (e.g https://github.com/swc-project/swc/issues/1392#issuecomment-...)
-
Building a Minimalist Docker Image with Node, TypeScript
Why Speedy Web Compiler ?
- TypeScript Is Surprisingly OK for Compilers
- Speedy Web Compiler: Rust-Based Platform for the Web
-
FTA: Fast TypeScript Analyzer
FTA is a TypeScript static analysis tool built on the speedy foundations of swc. FTA is fast; capable of analyzing more than 150 files per second on typical hardware, it offers a powerful addition to your code quality toolkit.
-
Show HN: Ezno, a TypeScript checker written in Rust, is now open source
Very cool! I'm curious, is this intended for dev tooling?
For example, I could see this (or something similar) being useful as the engine for a typescript language server that would be faster than the standard one
But if it's not aimed at 1:1 with tsc, would it be intended more for something like swc[1]?
Or what would you expect people to use this for, besides just being a cool project to learn from?
[1] https://github.com/swc-project/swc
-
TypeScript team released an explorer for performance tuning
This is... good news, but I still cannot fathom using the default Typescript compiler for regular development. Seriously, leave the type-checking to your IDE and CICD chain, and switch to using tsx (https://www.npmjs.com/package/tsx) or swc (https://swc.rs/) and you will _immediately_ notice the difference in speed and productivity.
What are some alternatives?
leptos - Build fast web applications with Rust.
esbuild - An extremely fast bundler for the web
dioxus - Fullstack GUI library for web, desktop, mobile, and more.
vite - Next generation frontend tooling. It's fast!
IRust - Cross Platform Rust Repl
ts-loader - TypeScript loader for webpack
rusty-css - a solution to create and export css styles in a familiar way, but without leaving the rust syntax. You can access and manipulate every value you define on an individual basis.
tsup - The simplest and fastest way to bundle your TypeScript libraries.
rfcs - RFCs for changes to Rust
vitest - Next generation testing framework powered by Vite.
tauri - Build smaller, faster, and more secure desktop applications with a web frontend.
ts-node - TypeScript execution and REPL for node.js