Proposal/RFC: Rewrite the astro compiler in rust #1108
Replies: 5 comments 14 replies
-
|
I will starting the development in stage 2 in here: https://github.com/Eveeifyeve/compiler/tree/rewrite-in-rust. |
Beta Was this translation helpful? Give feedback.
-
|
I'm not particularly happy about the motivations, because if there's something where the compiler shines, it's speed. It's something we never had problems with. Other than that, I already started working on an error resilient parser in Rust |
Beta Was this translation helpful? Give feedback.
-
|
I’m convinced this is the kind of innovation that’ll push the project into hyperspace. |
Beta Was this translation helpful? Give feedback.
-
|
my website has 11k pages with i18n and the build takes a lifetime (11 min on GitHub action). I'm super happy about this test, if you need feedback or help I'm up for it |
Beta Was this translation helpful? Give feedback.
-
|
Hello, I've started on this some time ago now, it works and is available to try out now in Astro 6 Beta (set Docs here: https://v6.docs.astro.build/en/reference/experimental-flags/rust-compiler/ I know there's a lot of hype around this, but I'd just like to make it clear that compilation time is very far from being the bottleneck, both in build time and in memory usage. As such, this new compiler only vaguely improves both of these aspects. Especially if you already had a fast CPU / not a lot of .astro files, build time will be more or less the same as the previous compiler. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The Proposal
What if I thought I could make the astro compiler faster but also contributing massively, so today I am opening this as a proposal for what if astro compiler was rewritten in rust that is faster and less in terms of size.
The Motivation, Why it should be considered? and if unaccepted?
My motivation is for me to contribute to and one thing I really know is rust, but the main motivation could be making a big significant change to astro. but I feel like the astro compiler could do a performance upgrade and make the size less, so thats why it should be considered.
and it doesn't matter If this RFC isn't approved, then have a maintained fork of astro compiler then if you do reconsider it it's not a waste of time, plus for the community to use if they wanted to.
Major changes:
It involves a change in the usage of esbuild and switch to lightning css so css would change.
It also involves the change of the compiler team to learn rust.
Thanks, Eveeifyeve (CEO/Founder at TeaClient)
Beta Was this translation helpful? Give feedback.
All reactions