Iron

Languages and libraries

web framework

SHOW HN2014

Iron

A fast middleware-oriented Rust web server framework

github.com

#rust web framework#middleware#http server#rust#web server

81points
45comments
#363of 2,272 in 2014
Top 16%of 2014 by points

How HN took it

CuriousMostly questions and neutral comments

3 positive, 20 neutral or asking, 1 mixed, 4 critical, out of 28 comments about the project. Thread score -0.06.

Idea: 1 for, 1 againstPerformance: 0 for, 2 againstDocs: 2 for, 0 againstExecution: 0 for, 1 against

The thread, comment by comment

Each row is a top-level comment and its replies, in HN's order. Select a cell to open that comment on HN.

positive neutral or mixed critical about another commenter or something else the maker

What HN said

What people liked

  • Welcomed as an early Rust web framework

    From 1 comment
    • I've been waiting to see some Rust frameworks emerge. Thanks for putting this together! Would you be willing to contribute a test implementation to our project [1]? [1]…
      bhauer on HN

Objections

  • Hello world throughput (2500-3000 req/s) is far below Go and other frameworks

    From 2 comments
    • "Iron averages 2500-3000+ requests per second for hello world" For a hello world in my laptop I can get typically 30k requests with Go, and with mono/httpListener ~10k. I…
      dawkins on HN
    • Same here, without even looking into what is slow, Clojure with Compojure does 7500 req/s. If Rust would like to be the next close to bare metal language we need some serious…
      leccine on HN
  • Rust is not yet production-ready and breaking changes are frequent

    From 2 comments
    • This looks like a great resource! Unfortunately, I'm not sure if anything in Rust should be considered `production-ready` yet, and I haven't worked with any ORM wrappers in Rust…
      zzmp on HN
    • I know rust is pre-1.0 but wow that's a lot more breaking changes than I expected...
      wc- on HN

Requests

  • Add benchmark test scripts and profiling

    From 2 comments
    • Since the tests are relative they should include a script that tests the different frameworks/languages. It shouldn't be too complicated.
      eudox on HN
    • The comparison with Go is really interesting because I don't think its http server does anything particularly fancy (like calling across FFI to non-Go code) and I don't see any…
      sanderjd on HN
  • Fix broken documentation links

    From 1 comment
    • By the way, something is up with the server serving the static doc. The link to the docs is wrong, eg https://github.com/iron/router should link to…
      mercurial on HN

Questions

  • How to share mutable state such as a connection pool across requests

    From 1 comment
    • Simple question. According to [1], middlewares are cloned for each request. Is there a good built-in way of accessing shared mutable data, such as a connection pool? 1:…
      mercurial on HN
  • How often do breaking changes happen and how to stay up to date

    From 1 comment
    • This looks very nice. I've been following rust and go for a while now and I finally have a small service to write that would be a good fit for either language so I'm going to try…
      wc- on HN

Alternatives named

  • Go net/http

    From 1 comment
    • "Iron averages 2500-3000+ requests per second for hello world" For a hello world in my laptop I can get typically 30k requests with Go, and with mono/httpListener ~10k. I…
      dawkins on HN
  • Node.js frameworks

    From 1 comment
    • The benchmarks are a bit lower than we wanted. I think this is mostly due to an immature ecosystem for doing basic http - working off of c bindings to a proven, fast framework…
      jonreem on HN
  • Compojure (Clojure)

    From 1 comment
    • Same here, without even looking into what is slow, Clojure with Compojure does 7500 req/s. If Rust would like to be the next close to bare metal language we need some serious…
      leccine on HN

Category, keywords, summaries and labels on this page were made by AI (Thread Reader v2) and not checked by hand. Each point links to the comments it came from.

Add a badge to your READMEShown on HackerShow
[![Shown on HackerShow](https://hackershow.org/badge.svg)](https://hackershow.org/show/7976749)