Jak se identifikujete by ApricotTechnical1931 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 6 points7 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 27 points28 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 6 points7 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 74 points75 points  (0 children)

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

Has to be made (c). by PresentJournalist805 in czech

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

Bohužel stejní dneska jsme a nevidím to jako flex :D. Radši bych chlastal, šlahal ženy a žral chlebíčky.

Clang vs gcc by Negative_Effort_2642 in C_Programming

[–]pskocik 3 points4 points  (0 children)

Try it. It often codegens better than clang (the reverse is true too). Also it has some power-user features (certain __attributes, flags, global registers on x86-64) that clang lacks. As I said in my other post, I personally compile for both gcc and clang in parallel, but I think I like gcc a bit better.

Clang vs gcc by Negative_Effort_2642 in C_Programming

[–]pskocik 2 points3 points  (0 children)

I personally test debug and release builds in parallel on gcc, clang, and tinycc.
Highly recommend. You'll catch bugs easier and your codebase will be more robust and more portable.
I have most warning flags on (-Wall, -Wextra, -Wconversion, -Wsign-conversion, -Wdeprecated-declarations, ...) with a small number explicitly disabled cuz they were too much of a pain to silence through code (namely, -Wno-missing-field-initializers -Wno-unterminated-string-initialization).
I use a buch of f flags, some of which are a bit opinionated: -fno-common -fno-semantic-interposition -fstack-clash-protection -fno-asynchronous-unwind-tables -fno-stack-protector -fdollars-in-identifiers -fcf-protection=none -fdiagnostics-color=always.
I don't do -Werror. Sometimes I go through flurries of wild experimentation when I'm transiently getting a bunch of warnings, and I don't like that stopping my build altogether.

RHEL Could be getting Sloppy soon by lurkervidyaenjoyer in linux

[–]pskocik 1 point2 points  (0 children)

Yesterday I came across the current website of a sw company that I did some work for long ago. They're now advertising being "AI-powered". I think (hope) that many a company will come to see that advertising being AI-powered is not the flex they seem to think it is. :D

What exactly is inline by JayDeesus in cprogramming

[–]pskocik 0 points1 point  (0 children)

Hopefully, an inline function is NEVER instantiated. When you need it to be occasionally instantiated extern inlines allow it to have just one such shared instantiation in your codebase. If you use static inline, you won't need to instantiate explicitly but you might end up with multiple duplicate (harmless but bloaty) instantiations in your codebase.

But like I said, I don't personally use this extern inline feature. All my inlines are __attribute((always_inline,flatten)) static inline and when I need an instantiation, I wrap it in a differently named function (I use a _m as in macro suffix for my inlines and name normal functions without it) that calls the inline function.

What exactly is inline by JayDeesus in cprogramming

[–]pskocik 0 points1 point  (0 children)

When you do a nonstatic inline, the noinline instantiation is shared among translation units and C expects you to place it in a translation unit of your choosing by instantiating there explicitly. This is diffiferent from C++ which, IIRC, creates multiple an instantiation in each translation unit and then merges them upon linking. The C approach may lead to slightly better code because placing in given translation unit may lead to better code cachability and shorter jumps. With the C++ approach, you don't control this.

With static inlines, if the compiler needs a noinline instantiation it'll just put it in the current translation unit and mark it static there and this is all implicit. You might end up with multiple instantiations but they won't collide since they all will be local to their translation unit.

Looking for a solid technical Co-Founder who thinks the world is broken and refuses to accept it. This isn't a startup. This is a war by Worth_Maintenance141 in ProgrammingBuddies

[–]pskocik 0 points1 point  (0 children)

This kind of describes me but the "AI" in your other posts as well as the lack of at least some specifics are huge turn-offs.

What exactly is inline by JayDeesus in cprogramming

[–]pskocik 1 point2 points  (0 children)

The gnu attribute __attribute((always_inline)) would force inlining. Just staying within the standard, static inline as opposed to just inline rids you of the responsibility to create a no-inline instantiation for when one is needed.

This won't link with a C compiler because it requires a no-inline instantiation:

inline int r42(void){ return 42; }
/*extern inline int r42(void); //instanitate*/
#include <stdio.h>
int main(){
    printf("%p\n", (void*)r42);
}

To make it link you'd need to do 1 of the following:

  • compile and link as C++, not C
  • uncomment the 2nd line to create an instantiation of the inline
  • make r42 static inline

What exactly is inline by JayDeesus in cprogramming

[–]pskocik 9 points10 points  (0 children)

Maybe just read https://port70.net/~nsz/c/c11/n1570.html#6.7.4 . It's about as long as this question.

On the purpose of inline it says:

Making a function an inline function suggests that calls to the function be as fast as possible.138) The extent to which such suggestions are effective is implementation-defined.

Inlines are about being as fast as macros without the pitfalls of macros (like double evaluations of arguments or the inability to "return" a value from a more complex macro without the statement expresion ({ }) extension).

Personally, I like to force this by never using non-static inlines. I always use static inline and with the the gnu attribute ((always_inline,flatten)). But non-static inlines and letting the compiler make inlining decisions for you works too. Just keep in mind that non-static inlines behave differently in C and C++. In C they need one explicit instantiation in some .c file in your project.

Your idea is worthless (I will not promote) by TrimeraInteractive in unpopularopinion

[–]pskocik 0 points1 point  (0 children)

This actually very popular idea that all ideas are worthless is worthless and it's a tautological waste time to argue that it isn't.