NHacker Next
  • new
  • past
  • show
  • ask
  • show
  • jobs
  • submit
Astro 7.0 (astro.build)
Princesseuh 1 hours ago [-]
I made the Rust compiler and the Rust Markdown pipeline (https://satteri.bruits.org) in this, let me know if you have any questions, glad to answer anything!
BSTRhino 5 minutes ago [-]
Very cool! What was the trickiest part of coding Sätteri?
ZeWaka 1 hours ago [-]
How does Satteri compare to a standard library like marked (https://github.com/markedjs/marked)?
Princesseuh 56 minutes ago [-]
It depends in what regards you mean, I have some benchmarks here if you'd like to take a look at those: https://github.com/Princesseuh/web-markdown-benchmark

The TL;DR is that `marked` is very light, but a bit on the slower side compared to Sätteri and `markdown-it` (and its forks). I'm not sure how friendly the extensibility is, but Sätteri re-use the same AST format as the unified ecosystem, which might feel more friendly.

Both good options, though!

toddmorey 1 hours ago [-]
Thanks for your work on this!
BorisMelnik 1 hours ago [-]
great job, that is a huge accomplishment.
stronglikedan 1 hours ago [-]
love the color scheme
keepupnow 1 hours ago [-]
For the good of humanity, I must ask... How much Claude? How much human?
pier25 26 minutes ago [-]
It's very cool to see the JS ecosystem reducing dependencies and I hope this trend continues.

Astro has gone from 247 deps in v6 to 190 in v7.

https://node-modules.dev/#install=astro@7.0.6

https://node-modules.dev/#install=astro@6.0.0

Princesseuh 18 minutes ago [-]
This was actually part of the reason I made the Rust markdown processing, the unified ecosystem is a lot of deps!

I still have some plans in this area that should reduce the overall count further, though.

matsemann 56 minutes ago [-]
I probably only use 1 % of Astro's features, but I like how it's enabled me to build static sides as back in the days, but with a build pipeline.

So I can use components, reuse stuff, include stuff etc, basically what I would do with PHP back in the days, but now it spits out a compiled page I can host for cheap (often even free). And easy to add in some interactivity when needed. Like I render a list as a component, and very easy to ship some dynamic filtering on the frontend using the same code, but the content is still statically in the html, so served fast and good SEO.

cassidoo 27 minutes ago [-]
I upgraded my website recently and it's exciting! That being said, I admit my builds didn't get faster (they actually on average slowed down a bit). Hopefully that improves, but worth noting.
microflash 1 hours ago [-]
The switch to strict HTML compilation is just not cool, and actively prevents upgrading sites which need to deal with remote content that is not written in strict HTML.

I also wish there could be a general purpose content processing API so I can plug a different format than markdown (such as typst)

Princesseuh 1 hours ago [-]
This does not affect remote content, only the content written in .astro files. If you have remote content you'd use something like `set:html`: https://docs.astro.build/en/reference/directives-reference/#...

See this example: https://stackblitz.com/edit/github-ug3paw61?file=src%2Fpages...

microflash 57 minutes ago [-]
Unfortunately, I've also come across .astro files that I'm not allowed to touch and yet have to work with them (some internal corporate dinosaur which has not been updated for a while).

For my personal site, it was a 5 minute work, as usual :)

BorisMelnik 1 hours ago [-]
this terrified me lol I'm on 5.1.x on most of my sites
keepupnow 1 hours ago [-]
"The .astro compiler has been rewritten in Rust.".

I'm personally awaiting the rewrite to assembly.

stevoo 48 minutes ago [-]
I have been trying to convince my marketing department to replace there archaic wordpress with an Astro build with AstroCMS and markdown for there needs.

I have build several sites using Astro 6, and i am finding the ease of building the sites amazing and exceptional in SEO as well.

gigatree 42 minutes ago [-]
What’s AstroCMS?
fnoef 46 minutes ago [-]
I really really like Astro, but I'm either getting old or it's something else.

I just recently updated my website to Astro 6 and now... there's Astro 7. Maybe by the time I update, Astro 8 will be a few weeks in the future.

ulimn 42 minutes ago [-]
(As an outsider, ) I suspect it's because the Rust rewrite was big enough to bump the main version number.
Princesseuh 39 minutes ago [-]
It was partially that, but mostly the Vite version with the Rolldown bundling etc. We typically always need to do a major whenever Vite releases one because it tends to impact us a lot compared to other frameworks for various reasons.
big_toast 17 minutes ago [-]
Are these typical build speeds on static sites these days? It's slower than I expected for a rust re-write. (Or I guess maybe the portion re-written in rust is only a small part of the build pipeline time?)

My understanding is that astro isn't considered particularly slow?

turkeyboi 35 minutes ago [-]
Exhausting
Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact
Rendered at 20:19:15 GMT+0000 (Coordinated Universal Time) with Vercel.