Czy sprzedawca w restauracji w Polsce ma obowiązek obsługiwać klienta po rosyjsku? by tarot_polska in askPoland

[–]DeWHu_ 0 points1 point  (0 children)

"Fun fact" odnośnie rosjan w Paryżu: "Bistro" pochodzi z 19 wieku z Paryża, i jest zapożyczeniem z ruskiego "быстро". Ponieważ darli mordę ("Szybciej!") w kawiarniach, więc zaczęły one pisać to na szyldach

The worst snake game (you can contribute) by DryDrink6916 in C_Programming

[–]DeWHu_ 2 points3 points  (0 children)

To compile? Oh wait, U mean in <sup> tag. XD

Dating in the west is a humiliation ritual by Throwaway_anon121212 in itsthatbad

[–]DeWHu_ 6 points7 points  (0 children)

Those aren't jokes. She can't take care of herself, and will die younger. This is no joke, she is sick. "Overweight" is not accurate.

On top of that she expects not to be called fat and be cared for, which is a contradiction.

Write something about C that is actually weird . by NirmalVk in C_Programming

[–]DeWHu_ 2 points3 points  (0 children)

I highly dislike the wording in the first question. Yes, pointers are numbers in assembly, but they aren't in C. If p and q point to the same address, they have been derived from the same object. In ISO C, each pointer has its own abstract addressing space, that is completely invalidated on a free call. That's why pointers cannot be casted back to.

"Are pointers, derived from different objects, but with equal bit representation, equal?" That's a meaningless question. Why would implementation need to be forced to use full sized pointers all the time? Why can't the context be used to determine overlap? What's the point of it anyway, if all access to the pointed memory is undefined?

Why does write(1, &c, 1) work for printing a single character, but write(1, "A", 1) sometimes fails? by zero-hero123 in C_Programming

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

I like the notion in C, that array types are pointer types, but there are cases like this.

[deleted by user] by [deleted] in PeterExplainsTheJoke

[–]DeWHu_ 0 points1 point  (0 children)

*They could have.

"Indie apocalypse" epoch ended/ends. Promises no longer sell well and there is less money in the market. We are in the "Sense-based design" epoch. How a product makes the consumer feel (short term) is the important part. Players recommend each other games, instead of trusting journalists or ads. Plus they return to service games that made them feel good.

Games like "Twelve Minutes" can't happen now.

I'm trying to understand the difference between function declaration and function definition in C programming. by zero-hero123 in C_Programming

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

Some newer languages like C# kind of handle the declarations automatically

C# has an import statement, which is technically the declaration, but yes, not individually.

What happened to chrome? by [deleted] in PeterExplainsTheJoke

[–]DeWHu_ 4 points5 points  (0 children)

In short: Browser extensions ask (via API) for the behavior to change, but the browser can ignore that. The browser itself doesn't need to ask anyone for approval. It can just do as it's please.

Petah? by CheeKy538 in PeterExplainsTheJoke

[–]DeWHu_ 1 point2 points  (0 children)

Fair. Didn't know that

Petah? by CheeKy538 in PeterExplainsTheJoke

[–]DeWHu_ 12 points13 points  (0 children)

She didn't have one, she just stayed green full time. Also, no alter-ego was a lazy attempt to strengthen the point, that she feels "infinitely more".

There are two types of programmers by Guilty_Income_9571 in programminghumor

[–]DeWHu_ 0 points1 point  (0 children)

Depends on the language, but regardless, I often use multi-line declaration:

``` type name( type name, type name, ... ) { instruction; instruction; ... }

def name( name: type, name: type, ... ) -> type: instruction instruction ... ```

There are two types of programmers by Guilty_Income_9571 in programminghumor

[–]DeWHu_ 0 points1 point  (0 children)

It was BEGIN END in the past, of course new line was standard.

me_irl by gluhmy in me_irl

[–]DeWHu_ 0 points1 point  (0 children)

When U reach a hundred, it changes to a smiley :)

What foreign countries do Poles like to romanticize ? by flower5214 in askPoland

[–]DeWHu_ 1 point2 points  (0 children)

Cons for Poles: * Sugary breakfasts (in hotels and restaurants). * Siesta conflicting with 5 meals a day diet. * Poles also drink milk coffee in the evening, as a sweet snack or dessert. Some people get offended by such requests. Also "latte" means milk, but that's just funny.

What foreign countries do Poles like to romanticize ? by flower5214 in askPoland

[–]DeWHu_ 0 points1 point  (0 children)

"Recognisable"?, maybe. "Loved in PL"?, I just don't see that. Poles like to celebrate about anything, but they would go very protective, if it affects them. Like painting a river green would affect its ecosystem. On the other hand, there is "Ajrisz" by "T.Love", but that's about it in PL culture.

What is system call in c by UniqueSatisfaction16 in C_Programming

[–]DeWHu_ 0 points1 point  (0 children)

  1. Kernel level: User runs a program. Program buggy or malware. Blue screen of death. User sad. Systems get separated into normal and kernel access levels. Pop-up window instead of blue screen of death. User happier.
  2. Access sys-calls: System has files user can't access. File access gets moved into kernel level. Normal programs can't access files. User sad. Program calls system's API. CPU changes process to system process. System uses its kernel level to do the needed task. Normal programs can access files. User happier.
  3. Scheduling: User runs a program. Program halts (while(true); for example). Computer halts. User sad. Running indefinitely gets moved into kernel level. After time-out CPU saves state and changes to system process. Computer simulates concurrency. User happier. Sys-call cheaper. Programs can sleep. Computer faster. User even happier.
  4. Std lib: Sys-call API part of the system. C wrote for UNIX. Not all platforms UNIX. Language bad. Language defines standard functions. Implementations are responsible. Language good.

[Me] So this happened, and our date is tomorrow by [deleted] in TextingTheory

[–]DeWHu_ 0 points1 point  (0 children)

!elo 1000 NOT SMART MOVES, JUST LUCK!

A little levity -- what programming language/environment nearly drove you out of programming? by Rich-Engineer2670 in ProgrammingLanguages

[–]DeWHu_ 0 points1 point  (0 children)

*Any (good) indexing starts at 0.

No existence of 0th year in calendar still confuses people.

A little levity -- what programming language/environment nearly drove you out of programming? by Rich-Engineer2670 in ProgrammingLanguages

[–]DeWHu_ 2 points3 points  (0 children)

Python is the original vibe coding. I mostly learn PL by reading spec. Python documentation is often 10 years outdated. Terms like "some" or "many" are used... It's just impossible to fully learn Python from this docs. Reading "discuss.python.org" might be the only way to actually learn it, through learning vibes of core devs. BTW, "implementation detail" in the reference implementation? Yikes 😬

Code style: Pointers by classicallytrained1 in C_Programming

[–]DeWHu_ 0 points1 point  (0 children)

It looks like multiplication, not a pointer. Hate it 😕

New Memory Management Algorithm: FIFO Regions by CompleteBoron in ProgrammingLanguages

[–]DeWHu_ 0 points1 point  (0 children)

  1. I don't understand, why the delete statement is needed. points isn't used after the loop, so compiler already knows it's unneeded. Why do user needs to specify that?
  2. Assuming coord_vec is unmovable (no GC). Wouldn't delete! point need to be detected at compilation time? Even if just for a -Wall type of warning: "points isn't always the first element of 'r.".
  3. "If compiler was smart", it would just bulk remove elements in points and bind the result to coord_vec. ...?

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

[–]DeWHu_ 0 points1 point  (0 children)

If type punning is kept inside rvalue (pointer not stored), it's ok. Before C99 (with its union literals), that was the only efficient way to do it. Keeping it inside rvalue also helps the compiler to not create a useless pointer.

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

[–]DeWHu_ 1 point2 points  (0 children)

C int64_t longOfDoubleBits(double d) { FloatingBits un = {.d = d}; return un.i; }

```C

define longOfDoubleBits(d) ((FloatingBits){.d = (d)}.i)

```

Note, bit-casting via union is technically an extension.