Better HN
topnewbestaskshowjobs
Log inSign up

Jorengarenar

589 karma · joined Nov 17, 2020 (6y ago) · 311 submissions

Submissions

comment 2y ago · link · parent

Yeah, we didn't copy that one over precisely because it was kind of a blocker to introducing replacements for outdated design.

But I think it can be weaseled into that principle. Thanks!

comment 2y ago · link · parent

As you probably already know, WG14 recently finalized work on C23 and began the cycle for a new revision of the C standard, for now called C2y. Traditionally, that means updating the charter, but this time around we decided to do things a little bit differently and instead of simple update to C23 charter [1], we tried a more substantial rewrite.

Initial version was uploaded on the website as document N3223 [2] and a "live" preview also is available [3].

The plan is to no longer keep charter tied to specific revision, but to have it apply to current and future standardizing efforts as a whole.

What do you think? Do you like it? Is something not clear enough? Did we miss something? We would like to hear your opinions and suggestions!

[1]: https://www.open-std.org/jtc1/sc22/wg14/www/docs/n2611.htm

[2]: https://open-std.org/jtc1/sc22/wg14/www/docs/n3223.pdf

[3]: https://docs.google.com/document/d/e/2PACX-1vQSNqWYsJPUsyigr...

3.

The C Standard charter [pdf](open-std.org ↗)

2 points · by Jorengarenar · 2y ago · 3 comments

comment 3y ago · link · parent

I mean...

> Six years after the start of the Second Generation, a new generation of consoles appeared (...) For reasons that are not entirely clear, they are considered part of the Second Generation.

As well as in last paragraph:

> (...) ‘What to call this so-called “Lost Generation?’” Should it be renamed to the Third Generation, and the Third to the Fourth and so forth? That would be confusing. While I like the term “Lost Generation,” and it lends well to how these machines were (...) doomed by the console market crash, (...) I suggest calling it the 2.5 Generation; this avoids any renaming and places it in the correct chronological order.

comment 3y ago · link · parent

>the premise is sort of flawed.

>The author says that the 3rd gen of consoles really begins with the NES, and so these early 1980s consoles can't belong to the 3rd generation.

Rather than the author, I would say that it's everybody else - a general consensus - making that claim.

>So I think it makes more sense to say that the 3rd generation begins in 1982/1983 with the Colecovision and Atari 5200.

I think is precisely the premise of this article - to show that those systems, had it not been for a crash of 1983, would have been categorized as early 3rd gens instead of late 2nd gens and to give a way to somewhat correct the mistake by calling them "generation 2.5"

6.

Why the 2nd generation of game consoles is really two distinct generations(web.archive.org ↗)

8 points · by Jorengarenar · 3y ago · 6 comments

comment 3y ago · link · parent

> vim predates the fashion for dark backgrounds,

If anything, the correct version of this statement would be "Vim was created when light backgrounds were a fad".

The "natural" background of the terminal is dark, including ADM-3A (terminal "responsible" of vi's HJKL).

comment 3y ago · link · parent

> This is still the case in C11, Section 5.2.4.1. Did this change in the most recent standard?

Well, no, it's still marked "just" obsolete. For it to be deprecated or removed there would need to be anybody caring about it enough to put some work. But since it doesn't affect vendors at all (they can just ignore) and users don't complain, it's just a forgotten "law" - still law, but a dead one.

> I was thinking more like the file-local namespace clobbering offered by Python e.g., from LIBNAME import actual_function_name.

Oh, that's... way more than just namespaces. Way more. That would require more fundamental changes and additions. C++ just added modules in C++20 (not sure how well those will catch on), but I don't think something like that is to be expected in C for feasible future.

comment 3y ago · link · parent

@1: The limits are considered obsolete since C89 and implementations are encouraged to avoid them whenever possible. I think the same way we disregard non ASCII character sets, non two's complement encodings and similar, we are safe in assuming sane implementation being able to handle longer names. And being honest, if given implementation isn't capable of more than 31 significant characters, then it would have problems with namespaces too.

@2: Agree, although I don't recall this ever happening to me.

@3: Is it? How is libname::actual_function_name() much better?

I actually like to use libname__actual_function_name(), as it further separates "namespace" from function name (unless we need compatibility with C++, as IIRC it reserves all double underscores, not only at the beginning).

comment 3y ago · link · parent

Only handful of Vim plugins have dependencies and even then you need to install them explicitly

comment 3y ago · link · parent

Liking to have clean and empty inbox isn't related to limited memory

comment 3y ago · link · parent

LIBNAME_actual_function_name()

comment 3y ago · link · parent

Yeah, GOTO or global variables are usually a not so good idea... except in cases where those are actually the best tools for the job and any alternative makes code actually worse.

Coincidentally, the same applies to "you"

comment 3y ago · link · parent

If everybody became a robot and there's no need for chairs, then to whom is the technical debt supposed to be paid?

If there are still fleshbags who need chair, the one created 20 years ago, if properly cared for, works just fine.

Now, if I used a piece of rotten wood for one leg, because I couldn't bet bothered to go fetch a new plank, this is debt that will need to be paid in the form of putting additional work to fix said leg later.

comment 3y ago · link · parent

Don't worry, I personally know plenty of devs whose favourites are assembly, C, C++, Pascal, Perl... even BASIC, Fortran, COBOL or Forth!

And surprisingly enough, among them, even the old farts aren't so old.

comment 3y ago · link · parent

It baffles me it's the only comment pointing this out and it's not even at the top.

The rest of commenters for some reason seem to equate "technical debt" with old technology and "legacy" projects.

comment 3y ago · link · parent

Wait, wasn't Perl 6 rebranded as new language Raku?

comment 3y ago · link · parent

You forgot to put "\s" here.

But I appreciate the Picasso joke. Too many devs try applying over-engineered abstraction to simple problems.

------

From this place I want to greet one such "Picasso" whose code from over 20 years ago I was debugging last week... I know your name...

comment 3y ago · link · parent

> It's very rare to find someone who has C as their favourite language

Hello, I visit here every day. Nice to meet you

comment 3y ago · link · parent

Python is great for stuff which could technically be a shell script, but really shouldn't; it essentially replaced Perl.

comment 3y ago · link · parent

Really? I don't notice difference

comment 3y ago · link · parent

Indeed, it had way less computational power, but other aspects were better. I should have worded it more clearly.

comment 3y ago · link · parent

> The Wii's remote wasn't 'underpowered', but it was relatively cheap and added an interesting feature.

I'm not sure why you mention the controller or how to measure its power, but the console itself was definitely underpowered compared to PS3 or X360. Heck, it was comparable to 6th rather than 7th gen.

comment 3y ago · link · parent

> By your logic, why move past the Wii U or Wii or any console before it?

They said "underpowered", not "outdated" or "ridiculously weaker"

comment 3y ago · link · parent

> The GameCube was the weakest hardware-wise between the PlayStation 2, Xbox, and Dreamcast.

It might have been weak, but definitely was comparable (sometimes even stronger) in power to PS2 and definitely not weaker than Dreamcast [0].

> The Nintendo 64 was weaker than the PlayStation or Sega Saturn.

What? No, no, no. PlayStation was definitely weaker. N64 was crippled down by using cartridges instead of CD.

---

Despite the raw power, both N64 and GC were crushed by PS1 and PS2 in sales.

[0]: https://www.cs.umd.edu/~meesh/cmsc411/website/proj01/main/co...

comment 3y ago · link · parent

> Always is a bit strong isn't it? Prior to the Wii their consoles tended to be similar to their contemporaries in processing power.

Yup, you could say Nintendo always thrived on underpowered (compared to competition) hardware.

  NES was twice less powerful than SMS;
  GameBoy didn't even have a color display;
  SNES vs SMD similarity as NES vs SMS;
  GBC was weaker than Neo Geo Pocket or WonderSwan;
  GBA didn't have competition (although, if we count N-Gage...);
  Wii had hardware from previous generation;
  NDS was way worse in raw numbers that PSP;
  3DS analogically with PS Vita;
  Switch isn't even comparable to PS4/X1, let alone PS5/XSX;
What all of those Nintendo consoles have in common? Being their the most successful.

Whereas when Nintendo focused more on being on par in hardware power during 5th gen. (N64) and 6th gen. (GameCube), they didn't sold nearly as much as other generations.

The exception to the pattern are Virtual Boy and Wii U. The former was poorly designed then sacrificed as "filler"; the later flopped due to bad marketing (and naming) + poor decision on betting on "casuals".

In conclusion: as we can see, there is a clear trend, not a rule, but a trend nevertheless.

comment 3y ago · link · parent

So... unsigned overflow is defined, while signed is straight up UB... and for you it's the former that's wrong?
12345
11