1. 30

  2. 6

    While I think this is a great article about the state of Rust’s ecosystem for writing HTTP backend, the name of the article seems to be quite a bit off.

    As mentioned this is about HTTP backends, but even there it’s not really about the language, as you’ll be able to write a Flask clone in most languages. Also it depends a lot on use cases. I mean there is C++ HTTP servers for reasons, even though I do not think it is generally the language that people would recommend for HTTP backends.

    Again, great article, just not quite what I expected by the title.

    1. 2

      as you’ll be able to write a Flask clone in most languages

      Flask has a surprising amount of functionality and most new languages in fact can’t write a Flask clone. The very article discusses Rust ecosystem’s inability to replicate Flask’s file upload functionality.

      1. 1

        Okay, that part was oversimplified from my side and I think it also very much depends on what you consider a clone. Most languages there are have at least one “flask inspired” HTTP framework.

        The very article also links to an issue which links to a crate, which does something very similar.

        However this also wasn’t the main point of my comment. Just wanted to mention that this is about HTTP backends and not about servers at large, which I (wrongly) expected. Instead it’s about the HTTP ecosystem, like the file upload functionality of a web framework.

        1. 4

          Most languages there are have at least one “flask inspired” HTTP framework

          Sinatra predates Flask by a few years, so one could say Flask is Sinatra-inspired. But I think the real truth is that they both map code to URL resources in as minimal a fashion as possible, so they all basically look the same because they’re solving the same problems.

    2. 3

      it looks like there’s a bug on your server where draft posts are visible to public visitors. under the Culture tab i saw “[Draft] Lian-Xiang, a Monster Girl Love Triangle from 1740s China”.

      1. 2

        It was annoying to ssh every time I wanted to make a modification, it was annoying to sftp or sshfs all my images, and so forth.

        This part could have been easily fixed with a Makefile.

        1. 3

          Or, perhaps, by using rsync.

          1. 1

            Or, alternatively by using a static hosting provider like Github Pages or Netlify