Better HN
topnewbestaskshowjobs
Log inSign up

sapiogram

922 karma · joined Aug 18, 2014 (12y ago) · 345 submissions

Submissions

comment 3y ago · link · parent

> Like everyone sane before them they figured N:M scheduling is not the way forward and they ripped it out before going stable.

Why do you think Java recently went from N:M scheduling? Surely there's something to it?

comment 3y ago · link · parent

> And well she had some seriously disappointing and eronious views on the subject.

You have to get specific if you want to convince anyone.

comment 3y ago · link · parent

> I wouldn’t recommend for production but it will get you to 5mb image sizes.

Former co-worker did this, and we still have tons of docker images in production that lack basic debugging functionality like... a shell. Alpine Linux is only like 8 MB more :(

comment 3y ago · link · parent

Anyone who is able to reliably predict which stock valuations are actually fairies and unicorns can become insanely rich doing so. With this great insight, surely you'll be a billionaire in 10 years through short selling?

comment 3y ago · link · parent

> No way are they going to negotiate to raise prices in a meaningful way against their largest client.

Why not? It's not like Apple will have anywhere else to go for the next 8 years. x86 cores are too slow and power-hungry for the foreseeable future, and building their own risc-V core will take... at least 8 years.

comment 3y ago · link · parent

Not exactly, Prettier is a far more opinionated formatter than Eslin will ever be. As far as I know, Eslint can't format one line into multiple lines, and vice versa. Whether that's desirable or not is up to the you, of course.

comment 3y ago · link · parent

> which I'd categorise as being generally apathetical, if not hostile, to the engineering profession

Any chance you could elaborate on this? Arm exists and is British, after all.

comment 3y ago · link · parent

> Automated CI/CD

[...]

> One intern was told to deploy the app and I guess he made a mistake and updated k8 configs which deleted all the pods. Tell me how code reviews are supposed to catch it.

These sound contradictory to me. Part of having automated CI/CD, is not having to manually deal with k8s to do a regular deploy.

comment 3y ago · link · parent

What a bizarre article. How can an employer not be allowed to keep track of when you work?

comment 3y ago · link · parent

Looks like ML workloads is the primary use case here, no amount of goroutines will help you there as long as the ecosystem doesn't exist.

311.

Go 1.22 Inlining Overhaul(docs.google.com ↗)

5 points · by sapiogram · 3y ago · discuss

comment 3y ago · link · parent

It's actually better when things aren't written in Rust, because then you have something to evangelize!

comment 3y ago · link · parent

Norwegian here, where are those 36% that aren't electrified? I thought pretty much everything was built electric since the 50s.

comment 3y ago · link · parent

> You seriously think the US can't get a few mercenaries inside Russia if they wanted to?

This would be unbelievably risky... The mercenary might get caught afterwards, before, or just be a Russian double agent from the start. And if any of that happens, you'd give Putin a massive refueling on his bonfire of anti-western propaganda.

comment 3y ago · link · parent

I think it really is exactly a power, as long as `b` is allowed to be any real number.

comment 3y ago · link · parent

It pisses me off so much that Go doesn't have a built-in way to wait for a goroutine to complete, similar to how every other language I've used allows joining threads. Would avoid all this, solve some extra problems to boot, and be much less error-prone.

comment 3y ago · link · parent

I think this is more of frontend vs backend thing. I have a similar experience to you with our ~5kloc React frontend, while dependency upgrades for our 50kloc backend have been mostly painless.

comment 3y ago · link · parent

Large projects have overwhelmingly been written in statically typed languages throughout the entire history of our industry. Large projects in Javascript is a comparatively recent development, in that context the rise of Typescript is completely understandable.

comment 3y ago · link · parent

Idk, I wish they would have actually engaged. No one learns anything new from this reply.

comment 3y ago · link · parent

What common misunderstanding?

comment 3y ago · link · parent

Note: Since this post, they've multithreaded a fair bit of the simulation as well. It runs insanely well, the entire game is a marvel of software engineering in my book.

comment 3y ago · link · parent

It's very, very hard to be memory bandwidth bottlenecked if your program is not parallelized, even on consumer hardware. A 5Ghz cpu core with dual-channel DDR5 might get 75 GB/s of memory bandwidth. That's 15 bytes per clock cycle. Prosumer hardware? Maybe 60 bytes per clock cycle. No way one cpu core can keep up with that.

comment 3y ago · link · parent

HN tends to slow to a crawl every time Reddit is offline, because Redditors come here instead.

comment 3y ago · link · parent

Melt in what way? Just didn't have enough network bandwidth, or something else?

comment 3y ago · link · parent

Genuine question, what is it causes websites to keel over in a mild breeze like that? Surely not raw CPU, memory, or network bandwidth on the machine? Is it just some arbitrary limit imposed on whatever VM they are running?

comment 3y ago · link · parent

This technique was new for me, thanks for posting! I will keep it in the back of my head.

I'm wondering, how fast is this in practice though, compared to the state of the art of general-purpose allocators? I'm sure it's faster, but it definitely warrants benchmarking, considering that some serious compromises are being made here:

* Object pool is fixed size, but presumably the size isn't known statically. So you need to oversize it, wasting memory

* Additional 16 bytes overhead per object, due to roster index + reverse roster index

* Not thread safe, and looks like there is no good way to make it so

* Tracking down use-after-free bugs or memory leaks become much more difficult. The article touches on this a bit

comment 3y ago · link · parent

Regardless of the details here: Thank you so much for taking the time to come here and explain your decisions, without getting offended or overly defensive.

comment 3y ago · link · parent

> The UN nuclear watchdog, the International Atomic Energy Agency, said it has been unable to independently verify reporting that suggested Russian forces have received “high doses of radiation.”

All you need to know from the article.

comment 3y ago · link · parent

Apple Silicon isn't more efficient in terms of memory capacity, there's really no way to do that unless you go for some crazy memory architecture that nobody wants to program for.

Apple Silicon has a lot more memory bandwidth though, maybe that's what you heard?

comment 3y ago · link · parent

> What matters is if there is s significant niche where the language is a better fit than any alternative.

This is a wonderful comment, and puts into words something I've been thinking for a long time. The best general-purpose languages always seem to start out with a strong niche, then grow from there.

1
89101112