Hacker Newsnew | past | comments | ask | show | jobs | submit | everyone's commentslogin

Just cus structs and classes work differently, and classes are much more common. I tend to make everything a class, unless there is a really good reason to make it a struct.

> Just cus structs and classes work differently

The most common programming language where "struct" and "class" are both kinds of user defined type is C++. In C++ they only "work differently" in that the default accessibility is different, a "struct" is the same as a "class" if you change the accessibility to public at the top with an access specifier.

If you think you saw a bigger difference you're wrong.


Classes are a safe default even if you expect things to go very, very fast.

The overhead of screwing up NUMA concerns vastly outstrips any kind of class vs struct differences. It's really one of the very last things you should be worrying about.

Allocating an array of a class vs an array of struct might seem like you're getting a wildly different memory arrangement, but from the perspective of space & time this distinction is mostly pointless. Where the information resides at any given moment is the most important thing (L1/L2/L3/DRAM/SSD/GPU/AWS). Its shape is largely irrelevant.


Every time apple shits out some new crap there is a rapturous response here. Pathetic.

stackoverflow, how quaint. Anyone here remember when it was actually useful and questions like the one featured could be asked and answered?

Closed as not a real question.

If you havent played the Ashes 2063 mod series for DOOM I highly recommend it. https://www.moddb.com/mods/ashes-2063

Ive played a lot of excellent doom and quake mods...

* brutal doom, hell on earth starter pack

* blade of agony

* Hedon

* quake brutalist jams 1 to 3

* Arcane Dimensions

* alien armageddon (for duke3d)

but that one really stand out.


Ashes 2063 looks awesome thank you for sharing!

I downloaded the AshesStandalone_V1_51.zip file, but it looks like it only contains the windows executable. For our linux friends, unzip it, install gzdoom, and then run this command inside the "Resources" folder to play it on linux:

> gzdoom -config gzdoom-ashes.ini -iwad freedoom-0.12.1/freedoom2.wad -file AshesSAMenu.pk3 lightmodepatch.pk3 Ashes2063Enriched2_23.pk3 Ashes2063EnrichedFDPatch.pk3 +logfile log.txt


Don’t forgot to check out Ashes Hard Reset and Afterglow as well.


This is the most fun I've had with Duke Nukem this century https://www.moddb.com/mods/duke-nukem-alien-armageddon

It's a sort of duke roguelike with 100's of potential levels, you play through a a certain random number of them in a run. Also you unlock all sorts of power ups as you progress, enemies also get stronger and get random buffs. + Theyve added a load of mechanics, more weapons, enemies, more playable characters etc.


Looks great! Thanks!


I gotta try this!


I have so many freakin' rules in ublock just to make youtube's UI acceptable


Well, at least vote with your wallet, support FOSS and drm free stuff. Never support drm (if u still want access to drm containing stuff, just pirate it)


What? there's probably millions of programs for Linux.


Sure there is. But not for wha people use their phones for.

Can I call an Uber from a Linux app? Pay for things with tap to pay? Food or grocery delivery? Public transit passes? Etc.

Windows phone tried to unseat the duopoly. The OS was surprisingly good. But, no one made apps so it died.

Same thing for Linux phones.

edit if Apple didn’t go through great lengths to cripple PWAs then it wouldn’t be as big a problem. But even all the various services are crippling their own websites to direct people to apps for that sweet sweet data harvesting.


U have internet and browser on Linux phone.. If the service cant be used with those (or some other normal software) then its not worth using.


Bro just leave, and switch to Linux phone.. Android is also totally shit.


Guy complains about self vibe coding.. stop doing it then!! Do you really think it's practical? Your job must be really easy if it is.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: