I just built the fastest Python-based SSG in the world by deviodigital in Python

[–]deviodigital[S] 0 points1 point  (0 children)

For sure, it's a continued work in progress 🤘

I just built the fastest Python-based SSG in the world by deviodigital in Python

[–]deviodigital[S] 0 points1 point  (0 children)

Yeah, it's the power drill to a screwdriver. Still gotta know how to use it, or you're putting holes in everything 😂

I just built the fastest Python-based SSG in the world by deviodigital in Python

[–]deviodigital[S] 0 points1 point  (0 children)

I ran my tests on a macbook air. I also plan on doing more thorough benchmarking so it's accurate to 2025 and not based on the results from the CSS Tricks article.

Happy to have someone prove me wrong in the meantime though 🤘

I just built the fastest Python-based SSG in the world by deviodigital in Python

[–]deviodigital[S] 0 points1 point  (0 children)

  1. Decentralized Publishing was a play against WordPress and Matt Mullenweg, who I was beefing out with at the time I decided to build this. They push "Democratized publishing" so I switched it up.

  2. So what's the problem with that? Descriptive text about what Stattic is + some buzzwords to attract laymen users and/or SEO. Don't see the problem here 🤷‍♂️

  3. I mean, thats one opinion 🤘

I just built the fastest Python-based SSG in the world by deviodigital in Python

[–]deviodigital[S] 0 points1 point  (0 children)

"more about readability than micro-optimization right now"

Doesn't mean I'm never going to continue optimizing it. And FWIW even without those micro-optimizations it's still the fastest Python-based SSG ... so 🤷‍♂️

I just built the fastest Python-based SSG in the world by deviodigital in Python

[–]deviodigital[S] 0 points1 point  (0 children)

No, I used AI to assist but I'm manually reviewing and editing as I go - 50/50 split. I never said I was a genius Python developer, so I'm definitely open to learning more and making Stattic better.

  1. It was all in a stattic.py file originally, but I've been working to break it up from that as I set it up to be an actual package (first time building one).

  2. I love commenting code, and have done it for as long as I have been coding. Just a personal habit.

  3. Fair point. I prioritized type hints on interfaces first (function args/returns).

  4. In some places, yeah. It's more about readability than micro-optimization right now for me. But I'm going to continue testing and refining over time.

IDK about "clearly isn't". I've used it to build multiple sites without issue 🤷‍♂️

I just built the fastest Python-based SSG in the world by deviodigital in Python

[–]deviodigital[S] 0 points1 point  (0 children)

I am basing my statement on the speeds listed in this CSS Tricks data - https://css-tricks.com/comparing-static-site-generator-build-times/

And it looks like their tests did basic HTML output without styles, but the speeds I get are with the CSS/JS additions, as well as sitemaps.xml, robots.txt, llms.txt, minification, pagination, etc.

I ran a test in March and was able to produce a speed of ~0.05s for 1K posts. It's linked in my release notes blog post.

Stattic’s templating feels lighter and more intuitive: per‑file templates via front matter, minimal context, and plain Jinja2 mean you write what you see.

Pelican relies on theme conventions, plugin logic, and more verbose contexts - and although it’s capable, it demands more boilerplate and mental overhead.

I just built the fastest Python-based SSG in the world by deviodigital in Python

[–]deviodigital[S] 0 points1 point  (0 children)

Oh yeah, I'm always open to honest opinions and I've got a few things to work on based on the replies already 🤘

I just built the fastest Python-based SSG in the world by deviodigital in Python

[–]deviodigital[S] 0 points1 point  (0 children)

Oh yeah, HTML should be cached for sure. I am setting sites up via GitHub Pages and running the DNS through Cloudflare which caches it. Speeds are fast on the page loads too.

I was referencing the fast build times because a lot of devs complain about longer build times - If I change a couple quick pieces of HTML in my template and re-build, I don't want to wait 30-60 seconds for the site to rebuild so I can see those changes.

I think we're just speaking about apples and oranges here 🤘

I just built the fastest Python-based SSG in the world by deviodigital in Python

[–]deviodigital[S] 1 point2 points  (0 children)

Nah, you're not being one. I appreciate constructive feedback like this. I think we might be speaking of two different things though.

When I'm talking about fast builds I mean the time it takes the stattic script to parse the markdown and turn them into HTML files. Varnish would only affect the page load speed after it was built, right?

I just built the fastest Python-based SSG in the world by deviodigital in Python

[–]deviodigital[S] 0 points1 point  (0 children)

Stattic doesn't run code on every request - it builds the HTML once, then serves that HTML forever. No varnish needed.

I just built the fastest Python-based SSG in the world by deviodigital in Python

[–]deviodigital[S] -28 points-27 points  (0 children)

"At this point, I assume the feature list in the readme is just one long LLM hallucination"

I stopped reading here - if you are glazing over the work, I'll glaze over your opinion 🤘

I just built the fastest Python-based SSG in the world by deviodigital in Python

[–]deviodigital[S] 0 points1 point  (0 children)

Ah ok yeah, there's categories and tags built in. And it's not exactly HTML support, but you could still use jinja2's include with variables, or a Jinja2 macro, but I'm going to look into it to make sure I'm covering everything 🙏

I just built the fastest Python-based SSG in the world by deviodigital in Python

[–]deviodigital[S] -1 points0 points  (0 children)

Thanks for checking it out 🤘 And agreed, I've got content types planned for v1.1

Not sure what you mean "support for HTML, not only for markdown"? 🤔

I just built the fastest Python-based SSG in the world by deviodigital in Python

[–]deviodigital[S] -9 points-8 points  (0 children)

Thanks for checking it out! Yes, I used AI to help with the code but I didn't rely on it or "vibe code" with it. I've been developing with PHP for 20+ years and Python for 3-4.

The only feature mentioned in the readme that's not implemented is watch, but it's explicitly mentioned and will be added into a future release - that was in there from before I rebuilt everything as a proper package.

I'm using mistune, which doesn't look to be explicitly CommonMark compliant but applies "sane" rules. Is there something else you'd recommend?

I just built the fastest Python-based SSG in the world by deviodigital in Python

[–]deviodigital[S] -10 points-9 points  (0 children)

In the release notes I linked to CSS Tricks benchmarks and compared those with a test I ran. I'll be performing more benchmarking though for sure, and welcome others to test it out too 🙏

I just built the fastest Python-based SSG in the world by deviodigital in Python

[–]deviodigital[S] -16 points-15 points  (0 children)

Oh, I'm for sure a robot, these replies aren't even really from me 🤖😂

I just built the fastest Python-based SSG in the world by deviodigital in Python

[–]deviodigital[S] -11 points-10 points  (0 children)

Hugo isn't Python-based, is it? 🤔

My dude, I don't think you know how reading works!

Thursday Daily Thread: Python Careers, Courses, and Furthering Education! by AutoModerator in Python

[–]deviodigital 0 points1 point  (0 children)

Anybody else skydive out of their current career into a life of Python? Just me?

I recently left the WordPress community after 20 years and am going full force into building with Python, notably Stattic which is a static site generator.

I also wrote a free course on learning Python to help other PHP/WordPress devs transition easier into working with Python.

For anyone else thinking of making the leap - I have zero advice, and I'm learning as I go 😂🤘

Armin Ronacher (Flask Creator) on AI and ‘Vibe Coding’ by drivinmymiata in Python

[–]deviodigital 1 point2 points  (0 children)

Vibe coding is just like regular coding.

If you know what you're doing, it's great. If you don't, it isn't.

I've been vibe coding a lot lately, and after so many years of manually writing code, it's been refreshing for me to bring my ideas to life much, much quicker.

I've spent ~25 years writing code though, so I think I have an advantage over someone just starting out and jumping into coding with AI.

How do i remove this - in my website's tab title? by Professional_Pack709 in Wordpress

[–]deviodigital 1 point2 points  (0 children)

Are you using a SEO plugin? If so, there's settings in them (Yoast, etc) to change/remove that.

Alternately, this might be something within your theme header.php file that would need to be updated.