• MonkderZweite@feddit.ch
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    10 months ago

    Unpopular opinion: Ruby is too widely used, because it’s the least performant language.

    Sometimes even for stuff, where performance matters (Asciidoctor).

    • The Quuuuuill@slrpnk.net
      link
      fedilink
      English
      arrow-up
      1
      ·
      10 months ago

      Ruby’s popularity in the early 10s thanks to Ruby on Rails feels like it happened by accident. The language is hard to read and low performance, but Rails is completely automagic. But this is also the worst thing about rails. You create your app fast, but then maintaining it is expensive because you can’t onboard new developers easily. Even if they’re familiar with rails’ automagicisms, it will take them quite some time to parse what the hell the code is doing.

      Meanwhile I seem to recall Ruby’s creator finding the situation of his language being popular because he’d created it as an experiment and never thought it would be used in production grade environments

      • MonkderZweite@feddit.ch
        link
        fedilink
        arrow-up
        0
        arrow-down
        1
        ·
        10 months ago

        No, there circulated a performance list a while ago. Python was in the lower third while Ruby was bottom.

        • morrowind@lemmy.ml
          link
          fedilink
          arrow-up
          1
          ·
          10 months ago

          Which benchmark are you talking about? The most common I know of is the computer language benchmarks game, here’s a nice implementation of it.. You can see ruby is actually a decent bit faster.

          It’s an annoyingly persistent myth that ruby is significantly slower than python.

  • alokir@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    9 months ago

    JavaScript: i know it was easy to write it like this but you should index your citations next time

    Typescript: I meant properly, not on your scratch sheet

  • darcy@sh.itjust.works
    link
    fedilink
    arrow-up
    1
    ·
    10 months ago

    haskell: “you submitted your math work instead of an essay”

    javascript: “this is awful, but at least i can read it anywhere i like”

    lisp: “it is not grammatically correct to nest brackets so much”

    lua: “your vocabulary is too limited and you have the writing skills of a child”

    rust: “omg. your essay is fast, safe, and perfect in every way! A+”

    css: “this is beautiful, but it doesnt say anything”

    • MonkderZweite@feddit.ch
      link
      fedilink
      arrow-up
      0
      ·
      10 months ago

      javascript: “this is awful, but at least i can read it anywhere i like”

      There are only 3 engines capable of interpreting most of it.

      • darcy@sh.itjust.works
        link
        fedilink
        arrow-up
        1
        ·
        10 months ago

        it can run on almost any browser, it can be bundled to run on desktop or mobile. i know wasm exists but javascript is still sadly an extremely versatile language, mostly due to its support on the web

    • starman@programming.dev
      link
      fedilink
      English
      arrow-up
      0
      ·
      edit-2
      10 months ago

      C#: did you just copy Java’s essay and put your name on it?

      COBOL: why it looks like it’s from 16th century?

      PHP: I did not ask for a spaghetti recipe

      alternative Rust: it’s great, but I asked for an essay, not “🔥 Blazingly fast rust-based EssayOS”

      • raubarno@lemmy.ml
        link
        fedilink
        arrow-up
        1
        ·
        edit-2
        10 months ago

        Rust v3: “It’s three hours and I’m still compiling dependencies”

        EDIT: Also, “What does Option[Arc[Mutex[BTreeMap[String, Box[RefCell[Box[amp mut F>>>>>>> where F : Fn(T) -> U in your essay mean?” (srry, I didn’t come up with a better obscure data type, it’s probably gibberish)

        EDIT2: Lemmy deletes ‘less than’ sign for some damn reason (time to build Lemmy at home?)

        • eestileib@sh.itjust.works
          link
          fedilink
          arrow-up
          1
          ·
          10 months ago

          My friend partially explained how the build safety system worked for Rust and my first reaction was “holy shit the link stage must take a century”.

          “Yes.”

        • kattenluik@feddit.nl
          link
          fedilink
          arrow-up
          0
          arrow-down
          1
          ·
          edit-2
          10 months ago

          I don’t think you should criticize a language that you clearly have not even learnt the syntax of. Dependencies are also a one-time compile and linking just your own program or library does not take very long, and if you’ve ever worked with C languages it’s all the same.

          Just because you don’t know how to read a languages syntax doesn’t mean it’s bad, it’s just like how you have to learn anything else. Rust is quite self-explanatory afterwards.

          • raubarno@lemmy.ml
            link
            fedilink
            arrow-up
            1
            ·
            edit-2
            10 months ago

            I do write Rust projects

            EDIT: Well, it depends. If you statically compile everything with C build systems, in that sense, the speed should not differ from generic cargo workload. Although, in most cases, projects written in C are dynamically linked due to several reasons, one of which is code speed. In practice, even huge projects written in C (30k to 10k LOC) build quicker than C++ or Rust.

            I’m not pooping on generics, either. Generics is a saviour for correctness and performance. Yet, I want to point out the type creep is still a thing, even though there’s little we can do about it.

            Anyways, this thread should be better interpreted with humor, instead of technical accuracy.

            • kattenluik@feddit.nl
              link
              fedilink
              arrow-up
              0
              arrow-down
              1
              ·
              10 months ago

              Fair, I just don’t like it even when it’s humorous as it still speaks of a language in a bad way.

              Also, if you use a Unix system to build your projects I can recommend you check out Mold if you haven’t yet as it speeds up the linking significantly.

  • JATtho@sopuli.xyz
    link
    fedilink
    arrow-up
    1
    ·
    10 months ago

    C++: The project is now led by university research comitee optimizing essays/second and consists 1k lines of template hieroglyphs.