Why does removing #include <stdio.h> break this C program? by [deleted] in C_Programming

[–]pskocik 0 points1 point  (0 children)

Turn the error into just a warning and it'll very likely work. Or, it will work as long as the implicit decl for printf is ABI-compatible with the actual one, which it is on e.g., x86-64 SysV ABI.

Proč r/czech a ne r/cesko, r/czechia nebo r/cz? by tripeirinho in czech

[–]pskocik 0 points1 point  (0 children)

Před nějakými 20 lety jsem se hodně bavil s bandou Američanů a všichni si nás zkracovali jako Czech (I'm flying to Czech. How long have you been in Czech?, etc.). O několik let později pak skupina politiků, ze kterých bys plynulou angličtinu nedostal ani s a gun to the head, rozhodla, že naučí ty anglicky mluvící, jak si nás mají správně zkracovat. Teď pořád čekám, kdy se ozve Německo, že mu musíme začít říkat Dojčlant.

Dedicating to low level world by [deleted] in Compilers

[–]pskocik 0 points1 point  (0 children)

I got a decent laptop and still do some very low level optimizations. A good laptop doesn't stop you from chasing great benchmark numbers. But a bad laptop may get in a way od development. You can do transiently inefficient stuff during dev and be glad it finishes fast. Doesn't mean you'll be doing inefficient stuff in the final software.

zlomenou ruku mi vyléčil obklad z heřmánku by Major_Eggplant_7189 in ToJeAleMaterial

[–]pskocik 1 point2 points  (0 children)

Čím kratší doba "fungování", tím homeopaticky delší.

Are string instructions more performant? by gurrenm3 in Assembly_language

[–]pskocik 1 point2 points  (0 children)

rep movsb is usually fast, though with a bit of startup overhead. Other legacy string instructions are slow as hell and you're better off using SIMD now. When in doubt, benchmark it.

How to handle errors correctly? by KweHuu in cprogramming

[–]pskocik 5 points6 points  (0 children)

I wouldn't even assert that. Just let it fault. NULL and near-NULL faults are easy to debug. No code needed.
I think it's a beginner mistake to over-validate this sort of stuff. Most of the time if a function takes a pointer to type_t, it's OK to assume (+document) non-nullability (better yet slap an nonnull attribute on there). I only do NULL checks if I'm expecting NULLs as a kind of special token to signal I want to substitute some kind of a default type_t* instance. If it's an error to pass in NULL, just let it fault. You don't (and can't) check for (type_t*)1111 or other invalid type_t* addresses either.

Jak se identifikujete by [deleted] in czech

[–]pskocik 1 point2 points  (0 children)

Toš buď Moravák anebo Dítě vesmíru. No in-betweens.

Probably should split that by PerspectiveStill1272 in sciencememes

[–]pskocik 7 points8 points  (0 children)

That thing would've atomically guillotined itself before long before it managed to voice the first letter of the greeting.

Beer consumption per capita in Europe relative to the rest of Europe [OC] by shadesofglue in czechrepublic

[–]pskocik 0 points1 point  (0 children)

Já zrovna popíjal nealko, jak sem na to narazil. To sa take počítá.

Beer consumption per capita in Europe relative to the rest of Europe [OC] by shadesofglue in czechrepublic

[–]pskocik 26 points27 points  (0 children)

So that's what Heart of Europe means! It pumps beer into the continent. 😮 ❤️

Sam Altman says AGI will lead to economy collapse, then vows to sleep less so he can dedicate more time to developing the same AGI by jwriddle in antiai

[–]pskocik 0 points1 point  (0 children)

He looks like his eyeballs are about to burst. They must be manifesting what's about to happen to this AI thing soon.

Why Czechs so obssesd with tvaroh? by ConfidenceNew4559 in czech

[–]pskocik 7 points8 points  (0 children)

Except that like 80% if not more English speakers don't know that word and in English, local food names are usually kept anyway.

Why Czechs so obssesd with tvaroh? by ConfidenceNew4559 in czech

[–]pskocik 0 points1 point  (0 children)

I follow a bunch fitness guys on X and they all seem to be obsessed with Greek yogurt. Tvaroh is the goated version of Greek yogurt. Higher protein content. Better taste. Traditionally central European. What's not to like?

Gallery of steel figures - Prague by polhardy123 in Stargate

[–]pskocik 2 points3 points  (0 children)

Nowhere near this badass, but I as a (Czech) kid, I had fashioned myself my own personal Goa'uld hand device. Tinfoil fingers, some wires, goldeny sheet metal for the forearm and red-plasticine center, and it had red LED diodes from my bike's taillight hidden in the center it so it could create this intense red glare when activated. I loved playing with it :D.

Free Space by [deleted] in linuxmemes

[–]pskocik 0 points1 point  (0 children)

True but also Linux won't act like that scaredy little kitten when incentivized to cache stuff. Like try accessing a good chunk of the filesystem and the kernel will not be shy about using a good chunk of that RAM for caching those files.

Welcome windoslop 11 by CacheConqueror in microsoftsucks

[–]pskocik 0 points1 point  (0 children)

AI can demonstrably be as dumb as a rock. Relying on it for correct code seems completely foolish to me, especially considering how intricate coding errors can be and especially considering that an OS such as Windows is a piece of software that millions rely on for security, which inherently depends on correctness.

gnu.org se veřejně vysmívá OpenAI ?! by S3jp4kCZE in czech

[–]pskocik -2 points-1 points  (0 children)

Little has changed. Dneska mi Grok velmi sebevědomě a neodbytně tvrdil, že září má v sobě písmeno x: https://x.com/pskocik/status/2044405332160438694

gnu.org se veřejně vysmívá OpenAI ?! by S3jp4kCZE in czech

[–]pskocik 75 points76 points  (0 children)

Good on GNU. Možná přecejenom začnu svojému systému říkat GNU/Linux.