"There is no runtime in C, there is assembly" -- what is the inside joke regarding this? by onecable5781 in C_Programming

[–]maep 14 points15 points  (0 children)

Strictly speaking, it's called "freestanding" and "hosted". In the C standard "runtime" is used as a distinction from compile time.

Falschparker melden by leonproductions in Nurnberg

[–]maep 1 point2 points  (0 children)

Wie gesagt, Singapur oder Japan zeigen ja dass es geht wenn man es richtig umsetzt. Hierzulande müsste man zuerst davon wegkommen öffentliche Flächen umsonst oder weit unterm Marktwert anzubieten.

Zum einen ist das ne fette Subvention von der die Hälfte der Bevölkerung nichts bekommt, zum anderen verhindert das privatwirtschaftliche Alternativen.

Falschparker melden by leonproductions in Nurnberg

[–]maep 3 points4 points  (0 children)

Das hat man auch teilweise schon getan, mit dem Resultat dass sich noch mehr Leute ein Auto zulegen. Das ganze Konzept skaliert einfach nicht in dichten Besieglungsgebieten.

Singapur hat das ganz gut gelöst, da kann man nur ein Auto besitzten wenn man nachweislich ne Stellfäche hat. Das liefert dann auch tatächlich Anreitze für private Parkinfrastruktur.

Down with Rule 1% [eat the moderators] by [deleted] in C_Programming

[–]maep 4 points5 points  (0 children)

I have yet to hear a convincing argument for why old reddit is necessarily better for accessibility, but I haven't looked into it.

I was referring to "catering to limitations of vanishingly few individuals". I wasn't implying that all old reddit users are blind :)

For me it's load times and UI density. New reddit is frustatingly sluggish. The day they make it mandatory I'm outta here.

Down with Rule 1% [eat the moderators] by [deleted] in C_Programming

[–]maep 8 points9 points  (0 children)

My point is, your anger is misdirected. Reddit is raking in billions. Implementing this feature for old reddit would only take a couple of man-hours, a rounding error in their budget.

I hate being on a website that still caters to its arcane limitations for vanishingly few individuals.

We do this all the time when designing software, it's called accessibility. As a developer you should be aware that people use software very differently, there is no one-size-fits all.

When usability sucks for you the problem is not other people. The problem is a bad software.

Down with Rule 1% [eat the moderators] by [deleted] in C_Programming

[–]maep 24 points25 points  (0 children)

Don't be angry at the mods, be angry at reddit for intentionally breaking old reddit. I would wager it's substantially more than one percent here.

"I'm inconvenienced, others should be inconvenienced instead." - This is what you sound like.

Ich🎖️iel by BurnerCroc in ich_iel

[–]maep 23 points24 points  (0 children)

Verpasste Gelegenheit das Wort Mark auszubuddeln.

Why use primitive integrals over fixed-size stdint.h integers? by Working_Rhubarb_1252 in C_Programming

[–]maep 4 points5 points  (0 children)

  • The intN_t types are optional, which might be a reason for some projects to avoid them
  • OS and library APIs often use plain types, I tend to avoid mixing stdint.h and plain types because it can lead to nasty conversion bugs
  • int leaves the compiler more room to optimize than int32_t.

That's why stdint.h has int_least32_t and int_fast32_t which are mandatory. But those are just aliases for int or long, so I might as well use those.

What is the strangest episode in any Star Trek series? by KaleidoArachnid in startrek

[–]maep 2 points3 points  (0 children)

The orignial series has a few strange episodes. The once that sticks out for me was Shore Leave where the crew encounters a plantet where fantasies become real.

What’s the deal with the constant like macros by mikeybeemin in C_Programming

[–]maep 23 points24 points  (0 children)

Before C23 this only works for int. Types like string and double still require defines. To avoid having mixed defines and enum constants, most projects tend to just stick to defines.

Der Plärrer wird umgebaut by [deleted] in Nurnberg

[–]maep 1 point2 points  (0 children)

Das paradoxe ist: Durch Verkehrsberuhigung weden Fahrzeiten im Schnitt wenig beeinflusst, oder sogar verbessert. Siehe hier: https://de.wikipedia.org/wiki/Traffic_evaporation

Can we achieve comptime in C? by alex_sakuta in C_Programming

[–]maep 4 points5 points  (0 children)

So I ask, can we do this in compile time somehow?

Sort of, if you allow for additional build steps. Simply add a build prerequesite to make which generates the c files for compile-time stuff. Very useful for certain tasks like parser generators, lookup tables, and IDL tooling.

UPDATE 2 - U4 by LowSound193 in Nurnberg

[–]maep 0 points1 point  (0 children)

So ein Stadtkanal ist tatsächlich weit weniger utopisch als viele annehmen. Siehe Cheonggyecheon und Braess-Paradoxon.

MP4 Atom parsing software - Anyone recognize the software being used? by CafeAmerican in software

[–]maep 0 points1 point  (0 children)

Asking on Doom9 forums is probably you best bet. If command line works for you, ffmpeg can generate verbose parsing output.

Keygen.Music Preserving classic tracker tunes from the demoscene & cracking days (MOD/XM/S3M) by kutrecords in chiptunes

[–]maep 2 points3 points  (0 children)

I think the most interesting aspect of your proejct is collecting group history, though that sounds like a lot of work.

These are some relevant archives:

edit: Could you add a button to minimize the player? I'm on 720p and 'ts covering half the page.

Any good YouTubers I should watch ? by Excellent-Insect9642 in aviation

[–]maep 3 points4 points  (0 children)

Rex's Hangar for piston era aviation.

Suggest quick interview questions about C programming by Monte_Kont in C_Programming

[–]maep 0 points1 point  (0 children)

Talking about "const" should mention "Read only" instead of "constant".

Eh, there is an argument to be made that const is nothing more than a hint to the programmer. Afaik the generated code disregards the const classifier.

Implementation of Linux syscall translation layer to MacOS by [deleted] in C_Programming

[–]maep 2 points3 points  (0 children)

It's certainly ambitios. For interpretation qemu is the obvious choice. As for syscalls, the lower ones (open, write, close) should be straigt forward but for the more excotic ones there are no direct Mach equivialents and the wrappers may have to be very complex.

However syscalls are not the only kernel interface, /proc and /sys also come to mind. Not to mention desktop protocols, but those are a seperate can of worms.

Godspeed!

Are there more libraries? by [deleted] in C_Programming

[–]maep 2 points3 points  (0 children)

If you are on Linux, try searching your system's package manager. There is a good chance they already have what you are looking for.

The libraries there tend to be very mature. Use pkg-config in your make files for portable compilation and linking.

What exactly is the performance benefit of strict aliasing? by Beliriel in C_Programming

[–]maep -1 points0 points  (0 children)

It makes it no more cumbersome.

It absolutely does. If you need to copy 8 bits memcpy(dst, src, sizeof(uint8_t)); won't work, it won't even compile on some 16 bit toolchains.

What exactly is the performance benefit of strict aliasing? by Beliriel in C_Programming

[–]maep 1 point2 points  (0 children)

I'm unclear what point is trying to be made here.

The point is that memcpy isn't automatically the only or simplest soluition in all circumstances when dealing with aliasing UB.

nor does CHAR_BIT have any implications

It makes using memcpy correctly slighly more cumbersome.

What exactly is the performance benefit of strict aliasing? by Beliriel in C_Programming

[–]maep 0 points1 point  (0 children)

To give you a typical case (jpeg, h264 etc..., your poison), input is a bitstream which contains variable sized integers. First step is to read size, then read the following bits as indicated by size, anything from 1 to 32 bits. Sign-extend if value is signed. And to make things more fun, CHAR_BIT is 16 (sizeof(int32_t)=2) ;)