3 ms·
> OOP has been out of favor for a while now I love these lines. Who writes this stuff? I'll tell you: The same people on HN who write "In Europe, X is true."
by throwaway2037 11mo ago
> OOP has been out of favor for a while now
I love these lines. Who writes this stuff? I'll tell you: The same people on HN who write "In Europe, X is true." (... when Europe is 50 countries!).
> Zig is a language for data-oriented design.
But not OOP, right? Or, OOP couldn't do the same thing?
One thing that I have found over umpteen years of reading posts online: Americans just love superlatives. They love the grand, sweeping gesture. Read their newspapers; you see it every day. A smidge more minimalism would make their writing so much more convincing.
I will take some downvotes for this ad hominem attack: Why does this guy have 387 connections on LinkedIn? That is clicking the "accept" button 387 times. Think about that.
- yxhuvud 11mo agoIt'd be very interesting to see an OO language that passes around allocators like zig does. There is definitely nothing in the concept itself that stops that.
- throwaway2037 11mo agoWhat about allocators in C++ STL (Standard Template Library)? Honestly, I have been reading & writing C++ for a squillion years, and (1) I have never used an allocator myself, and (2) never seen anyone else use it. (Granted, I have not seen a huge number of enterprise C++ code bases.)
- bnolsen 11mo agothey are very awkward to use in the current STL, they are part of the template definition. Back in the day EASTL did allocators much better but it never became a thing.
- riku_iki 11mo ago> (1) I have never used an allocator myself, and (2) never seen anyone else use it. arena allocators are necessity for high performance software, because heap allocations are magnitude slower.