Show HN: An example GraphQL server written in Rust

(github.com)

74 points | by biggestlou 1555 days ago

2 comments

  • AzzieElbab 1555 days ago
    pretty cool. almost indistinguishable from implementation in higher level languages
    • jillesvangurp 1555 days ago
      Very nice. I played with and demoed something similar yesterday evening using Kotlin, Spring Boot and Expedia's graphql library at a meetup. Relative to things like Appollo, it is more convenient because it generates the schema using reflection, which means that after hooking up the schema generator, you can just write the same kind of code as normal and simply slap the Query or Mutation interface on the things you want exposed to graphql.

      https://github.com/jillesvangurp/kotlin-graphql-demo

    • biggestlou 1555 days ago
      Yep, once you get the lower-level bits in place (which is still pretty tricky) you can iterate with confidence and surprisingly quickly. I created this project mostly to get people over the hump and into smoother sailing.
    • nine_k 1555 days ago
      I don't see how Rust is low-level. It allows easy access to low-level stuff, but it has quite powerful high-level features.
      • AzzieElbab 1554 days ago
        Excuse me - compiled, vmless, and gcless language
    • hobofan 1555 days ago
      With higher-kinded types on the long-term roadmap, I would definitely rank Rust as a high level language.
      • biggestlou 1554 days ago
        I think it's more accurate to call it a language with high-level features
  • uberman 1555 days ago
    I saw "actix-web" and I thought to myself...

    "That odd, that project is dead now. Why release something dependent on it?"

    But then I went to the actix-web git repo and low and behold it is not dead.

    Then scratching my head, I re-read this post from my history:

    https://words.steveklabnik.com/a-sad-day-for-rust

    Clearly stating the actix-web project was dead and I recall going to the link in the article to: https://github.com/actix/actix-web that had a post from the maintainer stating that the project was dead.

    Anyone know what is going on with this project?

    • OJFord 1555 days ago
      The owner relented, and passed control to a contributor.

      It was on HN, but I found it easier to find the OP:

      https://github.com/actix/actix-web/issues/1289

      Edit: discussed here: https://news.ycombinator.com/item?id=22099335

    • martell 1555 days ago
    • cetra3 1555 days ago
      Yes, the creator of actix-web has appointed a new maintainer after realising it was unfair to just up and delete it. The issue is here: https://github.com/actix/actix-web/issues/1289

      The project future is obviously in flux with this transition, but I am hoping myself & other contributors will be able to carve a path forward.

    • steveklabnik 1555 days ago
      Thanks for the comment, I've now updated my blog post, so that when others run across this in the future, they'll see that it's living on.
    • proc0 1555 days ago
      I don't even use Rust and I reacted like the bitconnect guy, "Mmmm No no no".
      • ericsanchez 1555 days ago
        Damn. Thank you. This comment had my dying in a restaurant earlier. I really enjoy writing rust and I was sad when Steve was sad. I had a similar thought, “why when actix is dead?” I’m glad actix is back.

        I was coming to SHOW HN a rust tool I made when, boom, front-page: actix is dead.

        Every journey has its obstacles.

      • rvz 1555 days ago
        I extensively use Rust, but honestly, I see that the entire "community" with the devoted Rust evangelists make the project look like a giant weekly soap opera gone off script.

        Besides that, slapping more seemingly foreign and non-standard technologies together sounds like someone is cooking for a menu for carnage and chaos which requires lots and lots of tests to write.