💾 Archived View for bbs.geminispace.org › u › norayr › 16661 captured on 2024-08-31 at 14:16:58. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2024-08-25)

-=-=-=-=-=-=-

Comment by 🐙 norayr

Re: "Help me find my second language"

In: s/programming

let me also mention pascal, and its implementation: freepascal.

it is a compiler which is independent from gcc or glibc. the code it generates has no dependencies other than kernel. it links statically necessary rtl, and it contains very effigient memory manager which supports cow strings etc.

still the resulting executabre size (static) is about 100k. which is unheard of. statically linked c minimal executabre built by gcc is about 800k in size.

in the compiler benchmark game measurements fpc is always exceptionally good in its memory usage, and the welr known research on energy efficiency also confirmed it is one of the best there.

it has strong community, they developed lots of libraries.

🐙 norayr

May 08 · 4 months ago

1 Later Comment

🦀 jeang3nie · May 08 at 01:47:

Pascal is a worthy shout-out. That said, there are other languages that can give it a run for its money on executable sizes if that's something that you're concerned with. Zig has lazy evaluation and only builds the parts of the standard library that you're actually using, giving it the ability to produce nice compact executables. And the figures you mentioned for C are due to Glibc, not C itself. Static linking with Musl on Linux produces much smaller binaries, and the BSD operating systems also have great and efficient libc implementations.

Frankly, Glibc is hot garbage. Nobody seems to be talking about it but Glibc's indirect function call interface was a major component of the XZ backdoor, which couldn't have worked without it. It's part of the reason that Glibc is so bloated to begin with and it's a potential security nightmare as well. That's a tangent for sure, but it's worth saying.

Original Post

🌒 s/programming

Help me find my second language — Background I am a data analyst/scientist doing spatial and temporal ecology stuff. I only use R because...that is what I..know ? I was never a programmer before I switched from env. engineering and recently was thinking to diversify a bit to Julia. I have quote a lot of freedom in my current job to program in whatever I want. Occasionally I have to do it in python for the GIS people downstream. The people downstream complain a lot about Python being slow in...

💬 aRubes · 13 comments · 2023-09-28 · 11 months ago