Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. The Insider News
  4. Which programming languages use the least electricity?

Which programming languages use the least electricity?

Scheduled Pinned Locked Moved The Insider News
data-structuresquestion
10 Posts 6 Posters 10 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jbarron
    wrote on last edited by
    #1

    The New Stack[^]:

    Seems like Rust is having a moment.

    D G 2 Replies Last reply
    1
    • J jbarron

      The New Stack[^]:

      Seems like Rust is having a moment.

      D Offline
      D Offline
      Daniel Pfeffer
      wrote on last edited by
      #2

      This so-called benchmark is useless without further specification. Memory usage: Does this include kernel memory used by the application? How about virtual memory? Is committed memory counted differently from reserved memory? Execution time: Is this wall time (i.e. useless in a multi-tasking environment)? Does this include time spent in the kernel? How about startup & termination times of the RTL? Environment: How would the results vary if run on a different O/S? different compilers? Compilation time/memory usage: Given that compilation is performed once, while the application is run any number of times, this is meaningless unless one is speaking of differences measured in orders of magnitude.

      Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.

      P H 2 Replies Last reply
      0
      • J jbarron

        The New Stack[^]:

        Seems like Rust is having a moment.

        G Offline
        G Offline
        Gary Wheeler
        wrote on last edited by
        #3

        There's a far more useful question: Which programming languages are least likely to cause alcoholism or other forms of substance abuse in their users?

        Software Zen: delete this;

        D 1 Reply Last reply
        0
        • G Gary Wheeler

          There's a far more useful question: Which programming languages are least likely to cause alcoholism or other forms of substance abuse in their users?

          Software Zen: delete this;

          D Offline
          D Offline
          Dan Neely
          wrote on last edited by
          #4

          I believe the answer to that question is: "Yes."

          Did you ever see history portrayed as an old man with a wise brow and pulseless heart, weighing all things in the balance of reason? Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful? --Zachris Topelius

          G 1 Reply Last reply
          0
          • D Dan Neely

            I believe the answer to that question is: "Yes."

            Did you ever see history portrayed as an old man with a wise brow and pulseless heart, weighing all things in the balance of reason? Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful? --Zachris Topelius

            G Offline
            G Offline
            Gary Wheeler
            wrote on last edited by
            #5

            :laugh: You said it brother!

            Software Zen: delete this;

            1 Reply Last reply
            0
            • D Daniel Pfeffer

              This so-called benchmark is useless without further specification. Memory usage: Does this include kernel memory used by the application? How about virtual memory? Is committed memory counted differently from reserved memory? Execution time: Is this wall time (i.e. useless in a multi-tasking environment)? Does this include time spent in the kernel? How about startup & termination times of the RTL? Environment: How would the results vary if run on a different O/S? different compilers? Compilation time/memory usage: Given that compilation is performed once, while the application is run any number of times, this is meaningless unless one is speaking of differences measured in orders of magnitude.

              Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.

              P Offline
              P Offline
              Peter Adam
              wrote on last edited by
              #6

              A more detailed, possibly earlier paper: https://states.github.io/files/j2.pdf

              D 1 Reply Last reply
              0
              • P Peter Adam

                A more detailed, possibly earlier paper: https://states.github.io/files/j2.pdf

                D Offline
                D Offline
                Daniel Pfeffer
                wrote on last edited by
                #7

                Thanks. I'll take a look at it.

                Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.

                1 Reply Last reply
                0
                • D Daniel Pfeffer

                  This so-called benchmark is useless without further specification. Memory usage: Does this include kernel memory used by the application? How about virtual memory? Is committed memory counted differently from reserved memory? Execution time: Is this wall time (i.e. useless in a multi-tasking environment)? Does this include time spent in the kernel? How about startup & termination times of the RTL? Environment: How would the results vary if run on a different O/S? different compilers? Compilation time/memory usage: Given that compilation is performed once, while the application is run any number of times, this is meaningless unless one is speaking of differences measured in orders of magnitude.

                  Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.

                  H Offline
                  H Offline
                  honey the codewitch
                  wrote on last edited by
                  #8

                  You can just run a few devices through a power monitor. Watch them at idle for a baseline, and then run a system stress - unless what you're saying is the benchmark itself is incomplete? And adding, this technique works better on realtime systems because you won't have seemingly random variances in resource usage like you will on a windows system for example.

                  Check out my IoT graphics library here: https://honeythecodewitch.com/gfx And my IoT UI/User Experience library here: https://honeythecodewitch.com/uix

                  D 1 Reply Last reply
                  1
                  • H honey the codewitch

                    You can just run a few devices through a power monitor. Watch them at idle for a baseline, and then run a system stress - unless what you're saying is the benchmark itself is incomplete? And adding, this technique works better on realtime systems because you won't have seemingly random variances in resource usage like you will on a windows system for example.

                    Check out my IoT graphics library here: https://honeythecodewitch.com/gfx And my IoT UI/User Experience library here: https://honeythecodewitch.com/uix

                    D Offline
                    D Offline
                    Daniel Pfeffer
                    wrote on last edited by
                    #9

                    Yes, the benchmark is incomplete. Your suggested method is good for "black box" testing, but won't separate application vs kernel power usage, for example. If one really wants to measure the application's power usage, one should separate out the kernel's power usage, to say nothing of other applications running simultaneously. I agree that doing this is easier on single-tasking or real-time O/Ses.

                    Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.

                    H 1 Reply Last reply
                    1
                    • D Daniel Pfeffer

                      Yes, the benchmark is incomplete. Your suggested method is good for "black box" testing, but won't separate application vs kernel power usage, for example. If one really wants to measure the application's power usage, one should separate out the kernel's power usage, to say nothing of other applications running simultaneously. I agree that doing this is easier on single-tasking or real-time O/Ses.

                      Freedom is the freedom to say that two plus two make four. If that is granted, all else follows. -- 6079 Smith W.

                      H Offline
                      H Offline
                      honey the codewitch
                      wrote on last edited by
                      #10

                      Daniel Pfeffer wrote:

                      Your suggested method is good for "black box" testing, but won't separate application vs kernel power usage, for example. If one really wants to measure the application's power usage, one should separate out the kernel's power usage, to say nothing of other applications running simultaneously.

                      That's why I suggested a realtime system would give better results. You don't really have much in the way of context switches and other kernel overhead, or if you do, you can absolutely control it.

                      Check out my IoT graphics library here: https://honeythecodewitch.com/gfx And my IoT UI/User Experience library here: https://honeythecodewitch.com/uix

                      1 Reply Last reply
                      1
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups