9,663 karma · joined Jun 14, 2010 (16y ago) · 1,502 submissions
comment 3y ago · link · parent
[1] Yesterday: TabFS – a browser extension that mounts the browser tabs as a filesystem, https://news.ycombinator.com/item?id=34847611
[2] The day before: Linux's SystemV Filesystem Support Being Orphaned, https://news.ycombinator.com/item?id=34818040
comment 3y ago · link · parent
Peak tin is a conspiracy theory, and everyone who worries about the Sea Peoples is a warmongering racist.
comment 3y ago · link · parent
Case in point: Media referring to him as a boy genius, him moving back in with his parents, and his apparent video game addiction all to the contrary, the guy turns 31 next month. If that surprises you at least a bit, and I have to admit it did surprise me, then his antics have exactly the effect he wants.
comment 3y ago · link · parent
(To clarify: I'm not entirely serious.)
comment 3y ago · link · parent
comment 3y ago · link · parent
I notice that GPT-3 also has a tendency to loop when left purely to its own devices. This seems to be a feature of this phase of the technology. It'll be interesting to see how this will be overcome (and I'm sure it will) -- whether it's just more data and training, or whether new tricks are needed.
comment 3y ago · link · parent
> I love these "rules of thumb", "black magic sorcery", and "best practices" that grey-haired old wizards pick up.
Just quoting this to point out what I mean by addressing your tone. It's fine to disagree, but this feels like you're setting up that everyone who disagrees with you must be condescending and stuck in the past. Yes, performance advice is often tied to the specific situation, but that's also true for the things you state.
> Worse still, these internalised tricks and rules are often related to Moore's law scaling, making them exponentially wrong over time. Not in the figurative sense, but a literal one.
Implying that Moore's Law makes anything exponentially faster is an anachronism (talk about old knowledge!), it only makes things exponentially more parallel nowadays. See next point why that's relevant.
As others have already clarified, -fomit-frame-pointer was sometimes 20% on x86. For some applications, people would kill for a 20% boost in single-threaded performance, even today!
And importantly, that this specific optimization has become useless on x64 says nothing about the value of optimizations in general. Different ones are still useful, to give an example let's say SIMD (where it applies).
> You see this with people claiming that I'm exaggerating when I say all code should be parallel. Meanwhile AMD is about to sell a 128 core / 256 thread processor. You can have two per host for a staggering 512 hardware threads. Single threaded code is capable of utilising just 0.2% of that machine!
I'm not sure which strawman "grey-haired" developer you have in mind that buys a 512-thread server to run single-threaded code on it and then needs you to explain to them that they should parallelize it. Maybe you've met that person. But in general: Doesn't most code live in web servers nowadays anyway? If so, it's either already running in parallel, or can be made to do so with very little effort.
BTW, parallelizing code in a web server can be harmful (!) to total throughput due to communication overheads. This is something that I find people don't always realize when they naively parallelize something, and is also sometimes missed by benchmarks that don't put the server under heavy load.
> A similar "tuning best practice" that I still see applied in the field is database servers with dedicated data, log, temp, and templog drives... on cloud VMs where this is guaranteed to have worse performance than simply pooling the same amount of disk into a single logical drive.
A statement like this depends on many concrete details about the specific cloud infrastructure (you didn't say AWS, you said "cloud"), and cloud VMs are usually not the best performing way to run a database anyway. So again, this is very context-specific.
Also, if database performance is critical enough that you consider tuning these things, then renting bare metal should at least be a consideration as well. People who have never measured it are sometimes surprised by how large the virtualization overhead is (and how cheap it is to rent physical servers). On actual hardware, this advice might still be relevant.
> I can't think of many (any?) other industries where more experienced senior staff can be this wrong about as many things...
The actual point is that you should measure things in concrete cases, not make general claims. In that sense, I unfortunately don't find your "updated" way to state what supposedly is and isn't relevant not much of an improvement to the "outdated" claims you argue against so vehemently.
comment 3y ago · link · parent
comment 3y ago · link · parent
> At this point, Microsoft will have invested a total of $13B in OpenAI. Moreover, new VCs are in on the deal by buying up shares of employees that want to take some chips off the table.
> However, the astounding size is not the only extraordinary thing about this deal.
> First off, the ownership will be split across three groups. Microsoft will hold 49%, VCs another 49%, and the OpenAI foundation will control the remaining 2% of shares.
> If OpenAI starts making money, the profits are distributed differently across four stages:
> 1. First, early investors (probably Khosla Ventures and Reid Hoffman’s foundation) get their money back with interest.
> 2. After that Microsoft is entitled to 75% of profits until the $13B of funding is repaid
> 3. When the initial funding is repaid, Microsoft and the remaining VCs each get 49% of profits. This continues until another $92B and $150B are paid out to Microsoft and the VCs, respectively.
> 4. Once the aforementioned money is paid to investors, 100% of shares return to the foundation, which regains total control over the company.
comment 3y ago · link · parent
Or alternatively, is the point that you can’t be punished for kidnapping if you might also have murdered the person, but that part can’t be proven? None of that makes sense.
comment 3y ago · link · parent
It’s one of the most deeply disturbing sci-fi horror stories I’ve ever seen. To be clear, most of the horror is implied rather than described, which I think only makes it worse. Part of me wishes I had never read it.
Highly recommended, but if you’re at all in doubt if you have the stomach for it, maybe stay clear.
comment 3y ago · link · parent
I think many C programmers might disagree with large parts of this, however. Some things that caught my eye that might be controversial:
> Wrap your structs in a typedef
The only reason to do this that's mentioned is "annoyance", which I think is a weak reason if you have the kind of problem for which you're considering to use C. The author already mentions that it has a weird interaction with forward declarations. It's my understanding that many C codebases don't do this, simply to be more explicit about what's a struct and what's not, and to avoid typedef explosion.
> the POSIX standard reserves the ‘_t’ postfix for its own typenames to prevent collisions with user types – make of that what you will ;)
IMO, that's not something to casually dismiss with a smiley. If it's reserved, don't do it.
> Typedef only creates a weak type alias not a proper new type (it’s really not much better than a preprocessor define), meaning there’s no warning when assigning to a different type from the same base type
The point is somewhat valid, but the author seems a bit confused about terminology here. It's not "a different type from the same base type", instead, it's a different name for the same type. The comparison with the preprocessor is unwarranted.
> Be (somewhat) afraid of pointers
Why? The following rant about RAII doesn't really give that many clues. Handles can have a performance penalty vs pointers -- or be a performance benefit, this really depends on the details.
Also, this is where it might have been helpful to go into different conventions about allocations, whether the caller or callee should allocate, etc.
comment 3y ago · link · parent
Regarding the battery pack, though, I don’t find that completely implausible. With some existing headsets, people have complained about discomfort from the weight of the headset. If a well-designed cable helps to reduce that significantly, why not?
comment 3y ago · link · parent
My experience has been the opposite. Ensuring exception safety in a type that has nontrivial move/copy operators (that is, a type that for whatever reason can’t follow the “rule of zero”) is often a research-level problem. Not having to worry about that in Rust is such a breath of fresh air.
comment 3y ago · link · parent
Like a 5-year old kid, this ThinkPad randomly decides that it doesn't want to go to sleep. Unplugging, closing the lid, or manually selecting it from the start menu: it simply won't do it. It does turn off the display, but the power light stays on, and the fans keep running. What am I supposed to do with a hot, actively cooled notebook that won't turn off, when I want to put it into a bag because I have to go somewhere? And fun fact: This bug has persisted for years. It's a portable computer that actively refuses to be transported.