Better HN
topnewbestaskshowjobs
Log inSign up

sapiogram

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

Submissions

comment 3y ago · link · parent

> So it looks like once he let the C++ folks in, they started to damage it.

At least in terms of his personal preferences. I don't think it's true in terms of market share, given the massive success of Rust.

comment 3y ago · link · parent

> Between every pair of adjacent elements, this vector allocated a dummy page, marked as un-readable and un-writeable. Any attempt to access it would immediately trigger a segfault.

I'm struggling to figure this one out. Essentially every two elements would be stored at the start and end of a page, respectively? Followed by a dummy page?

8KB per pair of elements I guess, hope your vectors weren't too large :p

comment 3y ago · link · parent

> It's reasonable to expect the 5 to arrive in 2024 at the earliest

My expectation is 2025 at the earliest, tbh. Mostly based on the CEO's repeated statements, and the complete lack of rumors about any developments. If a new lineup of PIs were going to launch next year, they'd have to be pretty late in development already.

comment 3y ago · link · parent

> You have to allocate a closure

That's incorrect, a closure in Rust compiles down to a static function that takes its environment as an argument. None of that requires a heap allocation in the above code.

comment 3y ago · link · parent

+1. In terms of development speed, Node + Axios is lightyears ahead. It's like 5 lines of code to send a JSON payload via http, vs 15+ in Go. The Javascript version is much likely to be correct as well, since it doesn't let you forget to check any of the three errors, or forget to check the http status of the response.

comment 3y ago · link · parent

Have they actually agreed on how to fix this now?

comment 3y ago · link · parent

That's USCF ratings, chess.com ratings are massively inflated in comparison.

comment 3y ago · link · parent

You realize that 99.999% uptime is 6 minutes of downtime a year? How is your internet even that stable? And do you never restart the machine?

comment 3y ago · link · parent

If false sharing is truly the bottleneck in your code, can't you just make sure the lock reserves the entire cache line? Each core still needs to fetch from L3 cache to grab the lock itself, but that's roughly the same cost as a compare-and-swap.

comment 3y ago · link · parent

> Slower than short allocations in V8 or Go

Slower than V8, definitely possible. Slower than Go, very unlikely, since it doesn't have a generational or compacting gc.

comment 3y ago · link · parent

Pseudoscience feels like the wrong label, because it's not trying to be science. To me, it's clearly just an opinion post based on his personal experience.

comment 4y ago · link · parent

Why is sizeof a terrible keyword? Just think of it as an operator rather than a function.

comment 4y ago · link · parent

Stockfish is the state of the art for its particular use case. General-purpose hash table are completely irrelevant, they'll never be able to compete on performance. Specific things Stockfish can assume:

* The table doesn't need to dynamically grow.

* Entries are allowed to be lost, but inserts can also simply fail

* Key collisions are considered acceptable, and because of this, Stockfish doesn't store the key in the table, only its hash. Even artificially high collision rates have been shown to not significantly impact playing strength.

* Bogus data due to race conditions is considered acceptable, same as above.

comment 12y ago · link · parent

> immigrant, noun.

> 1. A person who leaves one country to settle permanently in another.

I think he knows exactly what "immigrants" means.

comment 12y ago · link · parent

> improved support for multi-gigabyte heaps

I've heard this thrown around before, but what this actually mean? Is it just some optimizations to the garbage collector?

1
89101112