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.

Rust for the Web

244 pointsby huydotnetalmost 8 years ago

14 comments

modaldualityalmost 8 years ago
Web developers may be also interested in <a href="https:&#x2F;&#x2F;gotham.rs&#x2F;" rel="nofollow">https:&#x2F;&#x2F;gotham.rs&#x2F;</a>, which was released very recently and looks to be a promising competitor to Rocket.
评论 #15015172 未加载
评论 #15014836 未加载
评论 #15016819 未加载
评论 #15016196 未加载
pankajdohareyalmost 8 years ago
Man Rust is super hard already! I mean people told me it would be harder to think functionally but after clojure, i think lisps are super easy. But i feel Rust is way harder than anything. Infact i feel Haskell is comparatively easier than Rust. So i am not sure why one wants to use it for web. I think Rust has a place and that is to replace C++ for system software, possibly even C for writing Kernels because why not? But definitely not for web. Go is probably the right choice for that sort of performance scenario in the backend. But for frontend neither Go or Rust are good simply because of the huge size of the runtimes. Clojure-script comparatively has a smaller runtime than either Go or Rust runtimes compiled to JS.
评论 #15015782 未加载
评论 #15016201 未加载
评论 #15015973 未加载
评论 #15015629 未加载
评论 #15015852 未加载
评论 #15021970 未加载
jbg_almost 8 years ago
I built <a href="https:&#x2F;&#x2F;dtmf.io&#x2F;" rel="nofollow">https:&#x2F;&#x2F;dtmf.io&#x2F;</a> using Rust. The first prototype was using the Iron framework but then after fighting some parts of Iron, I pared it back to just using async hyper &amp; handlebars-rs directly for the HTTP and templating. The glue to put them together is really minimal. Overall, I&#x27;ve been really impressed with Rust.
vvandersalmost 8 years ago
Nice overview, it might be worth mentioning that Emscripten isn&#x27;t a tier 1 platform[1]. We&#x27;ve seen some asserts thrown in LLVM when building debug but go away when build release.<p>I&#x27;ve been trying to isolate it down to a reproducible sample but haven&#x27;t nailed down exactly what&#x27;s causing it yet.<p>Even with that issue it&#x27;s been great to work with. I find myself so much more productive with Rust compared to C&#x2F;C++.<p>[1] <a href="https:&#x2F;&#x2F;forge.rust-lang.org&#x2F;platform-support.html" rel="nofollow">https:&#x2F;&#x2F;forge.rust-lang.org&#x2F;platform-support.html</a>
评论 #15015778 未加载
IshKebabalmost 8 years ago
&gt; NamedFile::open(Path::new(&quot;www&#x2F;&quot;).join(file)).ok()<p>Is this vulnerable to the classic &quot;..&#x2F;..&#x2F;..&#x2F;..&#x2F;..&#x2F;..&#x2F;..&#x2F;etc&#x2F;passwd&quot;?
评论 #15016679 未加载
评论 #15017232 未加载
RussianCowalmost 8 years ago
Just a small nitpick, but #3 is not actually an isomorphic app, it&#x27;s just a regular server-rendered one. Isomorphic typically means that the app is rendered in the same way (e.g. via React) on both the frontend and backend, and the frontend degrades gracefully when JS isn&#x27;t enabled.<p>More on-topic: I just recently started a new web app using Rust on the backend. Though there is definitely a lot still missing, it&#x27;s amazing how far the language and its ecosystem have come in the past year or so. I expect that within a couple years, Rust will be a viable alternative to Python and Ruby for backend web development.
评论 #15016804 未加载
评论 #15015074 未加载
Animatsalmost 8 years ago
It&#x27;s cool that you can do this, but it&#x27;s probably not something you want to do unless you have an unusual application. A reasonable application might be a heavily used API at the HTTP level, where the web-facing part is really a subroutine call interface, performance may be a big issue, and safety against bad parameters is a big issue.
EugeneOZalmost 8 years ago
You are cool, and it&#x27;s all is amazing work. I bet it was very interesting to implement. But reading comments I think people don&#x27;t understand that it&#x27;s just demonstration of how much Rust evolved, not a tutorial of what they should do to use Rust for the Web. Kind of overkill :)
thinbeigealmost 8 years ago
The &#x27;Client-sode JS in Rust&#x27; part is a promising showcase for WebAssembly and I hope to see more languages compiling to WebAssembly soon. But looking closer at the code which does not a lot compared to its size I rather prefer the JS version.
评论 #15014877 未加载
评论 #15014761 未加载
评论 #15014851 未加载
spankaleealmost 8 years ago
This makes no mention of the size of these applications. Given the recent focus on shipping less JavaScript to the browser to better support mobile and slow networks, I wonder how feasible this project even is?
评论 #15015549 未加载
评论 #15015531 未加载
roywigginsalmost 8 years ago
I can&#x27;t help thinking something like Wt, but in Rust, would be an awfully handy way to write webapps.
Siilwynalmost 8 years ago
Nice blog! Do you have a RSS feed? Can&#x27;t find any...
jackblack8989almost 8 years ago
This is all good and dandy but I don&#x27;t like the webpage font-color! Can we have more of black on black so that it&#x27;s even more modern and minimal? Or white-on-white which is more of a trend these days?
评论 #15015448 未加载
评论 #15014954 未加载
anhtranalmost 8 years ago
Rust is cool. But I don&#x27;t think it&#x27;s good for web backend at this time. I will try it when working with WebAssembly.
评论 #15022927 未加载