markup.rs
baseplate.go
markup.rs | baseplate.go | |
---|---|---|
7 | 7 | |
332 | 89 | |
- | - | |
7.8 | 6.6 | |
3 months ago | 13 days ago | |
Rust | Go | |
Apache License 2.0 | BSD 3-clause "New" or "Revised" 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.
markup.rs
-
Any web frameworks that could compare to Symfony?
(Sailfish is fastest, but it's syntax is of the more traditional <%= msg %> flavour and Markup.rs is second-fastest with a Maud-like syntax but the author apparently doesn't have time to rewrite the syntax reference, so you have to follow a link from the open issue to an old version of the README.)
-
Need Suggestion for Beginner Projects
Maud or markup.rs for templating (I use the latter, and it is faster, but they're both fast and markup.rs is currently missing its full syntax documentation unless you dig through the revision history for the stale version. I'd recommend the former for you.)
-
Yet another HTML builder
For the sake of thoroughness, I should point out that Haml-like templating engines like Maud and markup.rs are even more concise.
-
.exe launch a webapp with Rust
https://maud.lambda.xyz/ or https://github.com/utkarshkukreti/markup.rs for server-side HTML templates that compile to Rust code
-
3 of the top 5 fastest web frameworks are written in Rust! (#1, #3 and #5)
(eg. In Python, Genshi templates are too slow for me to feel comfortable using them, but they were the main way to get robust correctness checks for templates last time I evaluated my options. In Rust, Markup.rs or Maud are the second and third fastest templating solutions, as I remember, and they give even more well-formedness guarantees for HTML than Genshi.)
-
Web server with XML-based language
There are various templating solutions that use syntax derived from the host language, like Maud or markup.rs for Rust, the E factory API for lxml for Python, etc.
-
Whole stack Rust for Web Applications? Are we there yet?
You can have similar features to Phoenix Live View by using Turbo from Hotwire with your favorite template engine in Rust. Contrary to what the video presentation on the Hotwire main page leaves you to believe, Hotwire works with any template engine from any language, not just Rails. Markup.rs and Turbo from Hotwire should compose quite nicely.
baseplate.go
-
Just In Time Image Optimization at Reddit Scale
We chose to use govips which is a cgo wrapper around the libvips image manipulation library. The majority of new development for services in our backend is written using baseplate.go. But Go is not an ideal choice for media processing as it cannot keep up with the performance of native code. The most widely used image-processing libraries like libmagick are primarily written in C or C++. Speed was a major factor in selecting libvips in order to keep latency low on CDN cache misses for images. In our tests, libvips was 3–4 times faster than libmagick on basic image processing operations. Content-aware smart cropping was implemented by porting smartcrop.js to Go. This is the only operation implemented in pure Go.
-
Python use by SWEs
Even Reddit has python backends https://github.com/reddit/baseplate.py based on Pyramid. They also have a go one. https://github.com/reddit/baseplate.go
-
Reddit System Design/Architecture
there's a multitude of services in reddit's architecture. as far as i can tell, they mostly using reddit's baseplate framework (which has implementations in both python and go).
-
3 of the top 5 fastest web frameworks are written in Rust! (#1, #3 and #5)
FWIW, I believe Reddit has rewritten some Python into Go because of scaling issues. I don't know of any public write ups to confirm it, but at the least there's a public repo that contains their base template.
- How do you maintain quality of code in a Go project?
-
Evolving Reddit’s ML Model Deployment and Serving Architecture
Gazette Inference Service is a baseplate.go (Reddit’s golang web services framework) thrift service whose single responsibility is serving ML inference requests to it’s clients. It is deployed with Reddit’s modern kubernetes infrastructure.
-
Deadline Budget Propagation for Baseplate.py
Baseplate is implemented in Python and Go, and although they share the same main functionality, smaller features differ between the two. One such feature that was previously on the Go implementation but not Python was deadline budget propagation, which passes on the remaining timeout available from the initial client request all the way through the server and any other requests that may follow. The lack of this feature in Baseplate.py meant that many resources were being wasted by servers doing unnecessary work, despite clients no longer awaiting their response due to timeout.
What are some alternatives?
maud - :pencil: Compile-time HTML templates for Rust
Apache Thrift - Apache Thrift
askama - Type-safe, compiled Jinja-like templates for Rust
tera - A template engine for Rust based on Jinja2/Django
horrorshow-rs - A macro-based html builder for rust
ructe - Rust Compiled Templates with static-file handling
silkenweb - A library for writing reactive single page web apps
deno-deploy-rust-template - A template for creating Deno Deploy projects in Rust
sailfish - Simple, small, and extremely fast template engine for Rust
MoonZoon - Rust Fullstack Framework
turbo - Incremental bundler and build system optimized for JavaScript and TypeScript, written in Rust – including Turbopack and Turborepo.
actix-web - Actix Web is a powerful, pragmatic, and extremely fast web framework for Rust.