• @deranger@sh.itjust.works
    link
    fedilink
    English
    103 months ago

    Non programmer but skilled with computers type guy here: what makes Java well suited for this?

    This is probably an incorrect prejudice of mine, but I always thought those old languages are simpler and thus faster. Didn’t people used to rip on Java for being inefficient and too abstracted?

    Last language I had any experience with was C++ in high school programming class in the early 2000s, so I’m very ignorant of anything modern.

    • @Feyd@programming.dev
      link
      fedilink
      English
      103 months ago

      Java can be pretty damn efficient for long running processes because it optimizes at runtime. It also can use new hardware features (like cpu instructions) without having to compile for specific platforms so in practice it gets a boost there. Honestly, the worst thing about Java is the weird corporate ecosystem that produces factoryfactory and other overengineered esoteric weirdness. It can also do FFI with anything that can bind via c ABI so if some part of the program needed some hand optimized code like something from BLAS it could be done that way.

      All that to say it doesn’t matter what language they use anyway, because rewriting from scratch with a short timeline is an insane thing to do that never works.

      • @deranger@sh.itjust.works
        link
        fedilink
        English
        53 months ago

        Why is there a need to rewrite it at all? Is it because COBOL is basically ancient hieroglyphics to modern programmers thus making it hard to maintain or update?

        • @Feyd@programming.dev
          link
          fedilink
          English
          13 months ago

          I wouldn’t necessarily agree it needs to be rewritten. Hiring programmers that are willing to work in cobol would certainly be harder than other languages though, because you’ll have a much smaller candidate pool and people would be unlikely to see learning cobol as a good career investment

          • @barsoap@lemm.ee
            link
            fedilink
            English
            1
            edit-2
            3 months ago

            COBOL is the career advise you hear people give for people who want to make money but don’t want to deal with the VC clownshow. COBOL btw is only 13 years older than C and both language’s current standard dates to 2023.

            It’s at its core a bog-standard procedural language, with some special builtins making it particularly suited to do mainframe stuff. Learning COBOL is no worse a career investment than learning ABAP, or any other language of the bureaucracy. Sure you’ll be a career bureaucrat but that’s up sufficiently many people’s alley, no “move fast and break things”, it’s “move slowly and keep things running”.

    • @flamingo_pinyata@sopuli.xyz
      link
      fedilink
      English
      33 months ago

      I am a programmer but I’m not sure why people think Java is suited for anything, especially a system so sensitive to bugs. It’s so hard to write high quality readable code in Java. Everything is way more clunky, and verbose than it needs to be.

      Some major improvements were made with versions 17+ but still, it feels like walking through mud.

      It’s a language from the 1990s for the 1990s.

      Btw the performance is actually pretty good in Java, the old reputation for slowness is entirely undeserved today.

    • nfh
      link
      fedilink
      English
      33 months ago

      The way Java is practically written, most of the overhead (read: inefficient slowdown) happens on load time, rather than in the middle of execution. The amount of speedup in hardware since the early 2000s has also definitely made programmers less worried about smaller inefficiencies.

      Languages like Python or JavaScript have a lot more overhead while they’re running, and are less well-suited to running a server that needs to respond quickly, but certainly can do the job well enough, if a bit worse compared to something like Java/C++/Rust. I suspect this is basically what they meant by Java being well-suited.