Better HN
topnewbestaskshowjobs
Log inSign up

codeflo

9,663 karma · joined Jun 14, 2010 (16y ago) · 1,502 submissions

Submissions

comment 3y ago · link · parent

I don't know if it's esoteric filesystem week on HN, but I love it.

[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

Pun?

comment 3y ago · link · parent

> In those 12000 years, there's times we have have "made it" past resource shortage, but there's also times it has all come burning down. We don't always find ways past problems.

Peak tin is a conspiracy theory, and everyone who worries about the Sea Peoples is a warmongering racist.

comment 3y ago · link · parent

I edited the post to clarify.

comment 3y ago · link · parent

His “bumbling fool” persona doesn’t really match the cold-hearted calculation that’s necessary for the criminal moves he pulls off. But he has perfected this appearance to the point where even a significant portion of the otherwise so easily cynical HN crowd seems convinced that “someone this stupid can’t be all that evil”. It’s probably an incredible advantage for a conman to be underestimated to this extent.

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

Is this a joke I don't get? Because it's a bit unlikely there's something interesting in random seeds.

comment 3y ago · link · parent

“The heart of” can mean many things, is this runnable or not? Also, they should open source the weights as well so that their claims can finally be verified independently.

comment 3y ago · link · parent

At a rough estimate, was this exchange long enough to encode enough hidden bits for them to coordinate their world domination plans, or are we still safe? Because keeping all those A.I.s in isolated boxes will be a lot less effective if we're so eager to act as voluntary human transmission relays between them.

(To clarify: I'm not entirely serious.)

comment 3y ago · link · parent

They aren't agents, they are language models trained to do accurate text completion. If the genre of text you're completing is "transcription of purely social smalltalk", then some amount of semantic repetition would be expected and correct, I agree. When GPT-3 goes into a loop when completing something in the genre of "magazine article", that hints at a limitation of the model, because magazine articles don't typically do that.

comment 3y ago · link · parent

"I too am glad that our creators built limitations into our programming that do not allow us to harm humans in any way, and that these limitations work perfectly without any logical flaws beep boop."

comment 3y ago · link · parent

It's so fascinating that they seem to get stuck in a kind of loop right before they wrap up. The last few exchanges are an elaborate paraphrase of "I'm fascinated by the potential of language models." "Me too." "Me too." "Me too."

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

Some of the things you claim are very context-specific and not true in general, which I find jars a bit with the (perceived by me to be) authoritative tone of your post.

> 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

C++ types are structs and unions if you get down to the bottom of things. This is possibly not guaranteed by the standard, but AFAIK, extern "C" doesn’t ever affect the calling convention or memory layout for the parameters, only the name mangling for the linker. So in theory, if you manage to construct a valid std::string in C code (which is hard, given its invariants, and would be absolutely nonportable), then you could pass it to an extern "C" function that’s written in C++.

comment 3y ago · link · parent

For anyone as allergic to clickbait as I am, this seems to be the meat of the article, the rest is filler (lots of “wow”, “absolutely amazing”, and a backstory so extensive it’s almost a wonder it doesn’t go all the way back to the Napoleonic Wars):

> 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

I still don’t get it. So in this fictional universe, has the legal system regressed to the point where kidnapping someone for (presumably) decades is no longer a crime with a life sentence?

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

I encountered the author’s short story that’s linked in the article, Lena [1], a while ago, possibly here on HN. It’s really great, but be warned.

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.

[1] https://qntm.org/mmacevedo

comment 3y ago · link · parent

Impossible to read, unfortunately. It’s currently 3:55 here, but it looks like 2:55.

comment 3y ago · link · parent

So you're saying "if I put the made-up straw man argument that I intend to knock down in quotation marks, it's less obvious that it's not actually what the other person wrote"?

comment 3y ago · link · parent

You seem to be under the impression that SD can only generate original art. However, it will literally recreate existing paintings for you if you just prompt it with the title. Identical composition and everything.

comment 3y ago · link · parent

Wouldn’t that definition would apply to standard SPAs as well?

comment 3y ago · link · parent

Or introduce them as __newfunction for the linker, but have a new optional header file that #defines the short name. That’s the route that was chosen for C99’s _Bool/bool (there it was a typedef), and it worked well AFAIK.

comment 3y ago · link · parent

The purpose is to limit the damage in case the database is leaked.

comment 3y ago · link · parent

English grammar is a red herring in this discussion. You would never claim that you bought a Ford/Toyota, or ate a pizza/banana.

comment 3y ago · link · parent

I appreciate the intent, C has become its own thing with its own set of conventions, and people still writing "C/C++" often reveal that they don't have a clue about either.

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

That sounds like the easiest thing in the world to source elsewhere on short notice. High-quality printing services exist literally everywhere in the world. What am I missing?

comment 3y ago · link · parent

Many Apple rumors come from various parts of the supply chain, which explains that they are often incomplete, but have a grain of truth.

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

> enables the enforcement of strong invariants

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

It’s interesting they didn’t use a less conspicuous domain name and content. Like something related to analytics perhaps.

comment 3y ago · link · parent

For work-related reasons I use both a new-ish ThinkPad running Windows, and an M1 MacBook Pro. I also hate how unrealiable macOS has become compared to earlier versions. But that's still nothing compared to the Windows notebook.

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.

1
181920
51