• C is the most efficient programming language

    From Nightfox@VERT/DIGDIST to All on Tue Nov 2 09:45:49 2021
    I haven't done much programming in pure C, but I thought this article was interesting. It says C is the most efficient programming language as far as power consumption, speed, and memory usage:

    https://bit.ly/3ECS5QT

    Full link:

    https://cryptomode.com/c-is-the-most-energy-efficient-and-fastest-programming-l anguage-study-finds/

    Nightfox

    ---
    ■ Synchronet ■ Digital Distortion: digitaldistortionbbs.com
  • From Nightfox@VERT/DIGDIST to Digital Man on Tue Nov 2 18:39:33 2021
    Re: C is the most efficient programming language
    By: Digital Man to Nightfox on Tue Nov 02 2021 05:04 pm

    They actually have Python over C in regards to memory usage. (!?!)

    ? C is #3 on their memory list, and Python is #12 on the list for memory usage.

    serious contender for similar reasons that C is not a serious contender for a lot of software development tasks - because there are other very important factors such as development time, verification and validation, extensibility and maintenance.

    I like and use C a lot, but it's not "the most efficient programming language" for all forms of efficiency. Depending on the job, some other forms of efficiency matter more than eeking out that extra 1% of performance or resource optimization.

    I agree. I think the article meant it as efficient for energy use, C, and memory use. But there are other languages that are better for productivity.

    Nightfox

    ---
    ■ Synchronet ■ Digital Distortion: digitaldistortionbbs.com
  • From Digital Man@VERT to Nightfox on Wed Nov 3 13:30:18 2021
    Re: C is the most efficient programming language
    By: Nightfox to Digital Man on Tue Nov 02 2021 06:39 pm

    Re: C is the most efficient programming language
    By: Digital Man to Nightfox on Tue Nov 02 2021 05:04 pm

    They actually have Python over C in regards to memory usage. (!?!)

    ? C is #3 on their memory list, and Python is #12 on the list for memory usage.

    Sorry, Pascal - the *other* 'P' language. :-)
    --
    digital man

    Sling Blade quote #24:
    Karl: Kaiser blade. I hit my mother upside the head with it. Mmm... Killed her. Norco, CA WX: 80.5°F, 42.0% humidity, 5 mph NNW wind, 0.00 inches rain/24hrs

    ---
    ■ Synchronet ■ Vertrauen ■ Home of Synchronet ■ [vert/cvs/bbs].synchro.net
  • From Ksource@VERT/MUTINY to Nightfox on Sat Nov 6 02:00:39 2021
    Re: C is the most efficient programming language
    By: Nightfox to All on Tue Nov 02 2021 09:45:49

    I haven't done much programming in pure C, but I thought this article was interesting. It says C is the most efficient programming language as far as power consumption, speed, and memory usage:

    I mean it's not a huge surprise. They didn't have assembly on there, so you have your low-level/systems languages at the top (C,
    C++, Rust) where the specific ordering between them doesn't matter too much. The thing about these cross-language benchmarks is it
    all comes down to how the benchmark code was written. I'm surprised to see Fortran do so poorly. Maybe there haven't been any old
    geezers writing good Fortran code for the CLBG (which was their source pool).

    Also, good job whoever wrote the Python code for CLBG! Ha!

    I guess what's new is that this paper puts a new green spin on things. Since we're more energy-conscious these days, we can
    describe languages as "energy-efficient" instead of just "efficient". Can I get a carbon tax credit for writing more C code?

    ---
    ■ Synchronet ■ Mutiny BBS - mutinybbs.com - telnet:2332 - ssh:2232