TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Sapper, a lightweight web framework written in Rust

127 pointsby dumindunuwanalmost 9 years ago

6 comments

killercupalmost 9 years ago
It&#x27;s good to see new web-focused projects in Rust, I think it can be a really great language for this kind of thing. But to be honest, I&#x27;m looking forward to seeing what will be considered the go-to approach for Rust web applications _in a year_ or so.<p>There is much experimentation going on right now, with cool little innovations here and there, but I have yet to see an approach that looks really new and Rust-y to me.<p>For example: Rust&#x27;s type system certainly has some nice properties to track dependencies between middlewares[^1] but I&#x27;m not convinced middlewares are even the best approach possible here. Also, it will be interesting how a framework based on async IO will look and what tricks&#x2F;syntactic sugar&#x2F;macros will be employed to keep boilerplate code down.<p>This is a pretty big order, of course: While I enjoy using small libraries, a well designed web framework requires a lot of organisational effort for all the small pieces to fit together nicely. I think most of the &#x27;small pieces&#x27; are already there or at least well under way, by the way. For example: The async (mio) branch of hyper looks pretty solid for HTTP1&#x2F;2, the Diesel ORM is fantastic (and will, according to creator Sean Griffin, soon hit 1.0), and handling JSON will only get better with future versions of serde.<p>[^1]: As recently discussed in <a href="https:&#x2F;&#x2F;chrismorgan.info&#x2F;blog&#x2F;tween.html" rel="nofollow">https:&#x2F;&#x2F;chrismorgan.info&#x2F;blog&#x2F;tween.html</a> and some other posts concerning the use of sessions types in Rust.
评论 #11818699 未加载
steveklabnikalmost 9 years ago
Fun fact: crates.io is written with a Rust + Ember + Postgres stack, though with its own framework, condiut, rather than Sapper. It uses about 30 megabytes of memory resident. Coming from Rails world, this was... quite the change.<p>Also fun fact: we had a small amount of downtime today :( Type safety can&#x27;t protect you from everything. <a href="https:&#x2F;&#x2F;users.rust-lang.org&#x2F;t&#x2F;crates-io-is-down-fixed&#x2F;6060&#x2F;6?u=steveklabnik" rel="nofollow">https:&#x2F;&#x2F;users.rust-lang.org&#x2F;t&#x2F;crates-io-is-down-fixed&#x2F;6060&#x2F;6...</a>
Thaxllalmost 9 years ago
The more I look at Rust the less I like the syntax, what are those? &quot;Ok(())&quot;
评论 #11817103 未加载
评论 #11816787 未加载
评论 #11818783 未加载
评论 #11817592 未加载
评论 #11816673 未加载
Corianderinealmost 9 years ago
Interesting, when would I use this (and Rust) over some other new web frameworks like Amethyst (Crystal) and Jester (Nim)?<p><a href="https:&#x2F;&#x2F;github.com&#x2F;Codcore&#x2F;amethyst" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Codcore&#x2F;amethyst</a><p><a href="https:&#x2F;&#x2F;github.com&#x2F;dom96&#x2F;jester" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;dom96&#x2F;jester</a>
mikerichardsalmost 9 years ago
Can someone recommend a good IDE or editor with good IDE-like features for Rust? I think it&#x27;s time for me to take the plunge and start learning a little bit about Rust.<p>Also, I&#x27;m assuming the windows support is good these days?
评论 #11816436 未加载
评论 #11816309 未加载
评论 #11816743 未加载
评论 #11816753 未加载
评论 #11816452 未加载
评论 #11816580 未加载
评论 #11816711 未加载
yarperalmost 9 years ago
This framework seems to have practically the same API as nickel.rs <a href="https:&#x2F;&#x2F;github.com&#x2F;nickel-org&#x2F;nickel.rs" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;nickel-org&#x2F;nickel.rs</a>