Comment by πŸš€ stack

Re: "Would the Geminispace technically count as sustainable and…"

In: s/Random

At the risk of triggering the wrath of the gods of Python, a few years ago there was a paper showing that python code uses 75x the electric energy as compared to C. A newer, more detailed study show ~50-60 times the power usage.

Obviously, it means very little for individual runs (maybe microwatt/hours of energy difference), but at a 1/2-mile-long AI datacenter all the racked CPUs waste considerable power on all the python plumbing...

Citing:

β€” Energy Efficiency across Programming Languages (pdf)

β€” https://www.green-coding.io/case-studies/energy-efficiency-python/

πŸš€ stack

2025-12-01 Β· 5 months ago

13 Later Comments ↓

πŸ¦” bsj38381 [OP] Β· Dec 02 at 00:16:

I honestly didn't know Python uses more energy, at least on the bright side is that I'll learn more C and C++ stuff, or would learning both be redundant.

πŸš€ stack Β· Dec 02 at 00:17:

Avoid C++ like the plague! C is a good universal language to learn, proven by more than 50 years of success.

πŸ™ norayr Β· Dec 02 at 01:18:

anyway, yes, js is what makes fans spin all over the world, js in lots of web pages.

by not doing js but instead doing a gemini capsule you save energy and you vote for better world without lots of js and spinning fans from just opening web pages.

πŸš€ stack Β· Dec 02 at 01:22:

True, the web browser is by far the biggest memory/CPU hog on my devices. js is likely causing a fair bit of power consumption, possibly more than the AI datacenters when computed across all computers in the world showing some or other web page right now.

πŸ¦” bsj38381 [OP] Β· Dec 02 at 12:00:

Okie dokie, than I'll learn more C than. Thanks Stack :)

πŸ™ norayr Β· Dec 02 at 19:56:

right now i am writing something in c. because it was started in c.

and i can tell you, i prefer writing in machine code than in c. if there was only c, i would not enjoy computing or programming.

when i work on a c project i have a temptation to rewrite it in pascal.

so look at pascal freepascal, it is highly underappreciated. it generates very small binaries. it has modules - concept known since late 70ies but c++ just adopted it.

πŸ™ norayr Β· Dec 02 at 19:56:

it has low-level stuff if you need it, but it has normal strings, it has oop if you want, it has everything c++ has, but designed in more civilized way.

it is safe in a way that it is very unlikely that your program will segfault, instead most probably its runtime will kill the program fol something and report on console what happened and on which line of code.

πŸš€ stack Β· Dec 02 at 20:16:

Funny, I code stuff like Forth systems in assembly because C type system is too constricting and I have way too much casting clutter ... Pascal would drive me crazy.

For general purposes whatever you are more comfortable with is always better.

πŸ¦” bsj38381 [OP] Β· Dec 03 at 22:51:

@norayr While I was in the website for pascal freepascal, in the download section, I noticed that they also have downloads for Gameboy advance and Nintendo DS, which is pretty suprising to me, since I never see coding IDE downloads for the GBA or NDS before for other coding language IDEs. Also, I have been thinking of modding my DSi XL or my 3ds XL, but I don't want to brick it or anything though, I'll still think about it. They do have a Windows, Linux and Solaris version too, which is expected tbf.

πŸ™ norayr Β· Dec 03 at 23:31:

and it is a separate stack, not gnu, not llvm, they support cpu's like mentioned by you gameboy that llvm doesn't.

they have an outstanding crossplatform means of development, libraries. i can dig a youtube video (perhaps already published in /s/pascal where the same program is compiled under windows, then under amiga, and works on amiga same way!

πŸš€ stack Β· Dec 04 at 18:39:

I don't know if it is a consideration but... If you know C you will always find work. If you know Pascal, (or Lisp for that matter) you are a member of a special club of chosen people. But you will not get hired for your skills.

πŸ™ norayr Β· Dec 05 at 00:49:

yes for work i agree.

but even i got hired once, but left the company, at the time it was too much for me to have two jobs.

man i even got hired a couple of times to do work in oberon.

the situation with niche languages is that on one side there are no jobs, on other side, if you found a job listing, you are more likely to be competitive, since competition in java script let's say is unimaginable. and the language itself is more consistent so you don't need to train your brain for weird questions like what would happen if..., in js that's a hell, in pascal - not so. (:

πŸš€ stack Β· Dec 05 at 01:09:

dittos

Original Post

πŸŒ’ s/Random

πŸ¦” bsj38381:

Would the Geminispace technically count as sustainable and green? β€” Since I sometimes look into websites that checked if a website is green or not (I tried my perosnal website BBblog.haliya.net for Beacon and it says it's an F) and I think the Gemini web would be more green and sustainable technically, since there's no css, no javascript, mainly only text and some images. Now I will say something though, I'll never feel guilty when a soulless corporation tries to guilt me into making a lesser...

πŸ’¬ 30 comments Β· 1 like Β· 2025-12-01 Β· 5 months ago