hlieberman 6 years ago

I'm not sure why you would use this over cowboy's REST handler. Cowboy is the thing that powers Phoenix -- you really can't beat it for concurrent performance.

(Loïc of NineNines is an absolutely incredible guy that does a ton of really important work, and you all should consider supporting him at https://salt.bountysource.com/teams/ninenines)

noncoml 6 years ago

Erlang is amazing language in its simplicity. And it was the perfect language for the web. I keep wondering why it never really took off.

  • notamy 6 years ago

    Syntax as well as just that it's a really weird way of thinking about things compared to languages like Java, Python, etc. Elixir seems to be helping some with this, so I guess we'll see.

    • digitalzombie 6 years ago

      It's Prolog inspired. It's weird because it never took off like C/C++ like languages.

      The language syntax is small enough that I believe it'll take a short time to learn and get use to the syntax versus other languages.

      • kornish 6 years ago

        > The language syntax is small enough that I believe it'll take a short time to learn and get use to the syntax versus other languages.

        I'm not sure size of syntax has all that much to do with adoption. Case in point: Lisp.

    • noncoml 6 years ago

      It’s funny because I would take Erlang’s syntax over Elixir’s anyday.

      • im_down_w_otp 6 years ago

        Likewise. I wish I could have Erlang the language w/ Elixir's community and growth.

        • skrebbel 6 years ago

          Can't you? I mean, aren't they interoperable?

          • saurik 6 years ago

            The canonical argument order in Elixir is backwards from Erlang (and I will argue just "wrong" with respect to the functional programming paradigm: it is essentially object-oriented corruption... the subject pretty much needs to be the final argument for various forms of functional composition to work; the place where this really becomes clear is when trying to call "reduce", which continues to have the "correct" argument ordering even while almost nothing else does <- though watch me be misremembering the exact place where this clicks as it hasn't been years since I spent a lot of time trying to be happy programming with Elixir :/), so there is a massive impedance mismatch tying to reuse functions and primitives codes in one language from the other (and it almost seems like many Elixir wrappers exist only to reverse the argument order). So, sure: they are "interoperable"... but so are C and Python ;P.

            • filmor 6 years ago

              Erlang does not support currying, so having the subject in the last arg does not help much.

              Also, the actual ordering is not `func(Args..., Subject)` but instead `func(Args..., Subject, OptionalArgs...)` which bit me more than once.

              I like Elixir's consistent use of the first arg for the subject along with the pipe operator, which gives you essentially currying-like behaviour in the first argument.

    • tazjin 6 years ago

      > it's a really weird way of thinking about things compared to languages like Java, Python

      This depends on your background. I have a very hard time thinking about procedural behaviour and state mutations, Erlang's (and other functional language's) model is much easier to keep in my head.

    • noncoml 6 years ago

      Yeah, syntax is a bit different than the mainstream, but it only takes a week or so to get used to it.

  • qaq 6 years ago

    People are creatures of habit the syntax looks "weird" to many.

    • pjmlp 6 years ago

      To the point of rewriting syntax just because of it, e.g. ReasonML vs OCaml...

  • issaria 6 years ago

    For network applications, yes. Web? no.

    It actually shares a lot of the usecase with golang, I would say, if the program can be distributed as binary, there would probably no golang.

    • noncoml 6 years ago

      > For network applications, yes. Web? no.

      Meaning?

jwatte 6 years ago

Why no comparison to webmachine? Webmachine has a really robust mapping to the HTTP standard, and sits on top of mochiweb.

bfrog 6 years ago

I wasn't aware anyone was still maintaining mochiweb, thats actually somewhat comforting to know!

Exuma 6 years ago

Hows this compare to something like Elixir + Phoenix?

  • shinemonad 6 years ago

    I think you cannot. The Phoenix is a solid and stable framework. rooster still just a simple implementation of a basic REST framework.