HNHacker News
TopNewBestAskShowJobs

nly

11,488 karma · joined April 14, 2013

submissionscomments
nly··on Building a Fast Lock-Free Queue in Modern C++ from Scratch
cmpxchg can fail spuriously on some platforms
nly··on Building a Fast Lock-Free Queue in Modern C++ from Scratch
Once you get to using custom lock free queues you should be picking something that matches your workload/broader design anyway.
nly··on Building a Fast Lock-Free Queue in Modern C++ from Scratch
Once you use atomic cmpxchg you've lost a great deal of scalability because it implies a retry loop (internal or by the user)

The last thing you want is all of the threads failing to cmpxchg (spuriously or otherwise ) spinning on a shared cacheline

Real world alternatives show atomic xchg only solutions scale to hundreds of threads.

nly··on Postgres LISTEN/NOTIFY actually scales
WhatsApp is primarily 1 to 1 messaging. Why would this be hard to scale? Scaling horizontally, sharding, and message routing is all it takes, surely?
nly··on Hacker wipes Romania's land registry database
In the UK deeds no longer really exist and do not take precedence over the land registry.

Property that isn't registered can remain unregistered but must be registered before it is sold.

nly··on Sealed tomb filled with paintings and inscriptions discovered in Egypt
Some cemeteries in London reuse graves after just 75 years

https://en.wikipedia.org/wiki/City_of_London_Cemetery_and_Cr...

I have very vivid memories as a child of walking through Brookwood Cemetary in south east England seeing a big machine crunching up headstones. Vast swathes of the place was flattened. The cheat code here seems to be "topple testing" for health and safety reasons.

It's the UKs largest cemetery and in a shocking state:

https://lostlcp.com/brookwood-cemetery-reburials/

nly··on How Has Roman Concrete Lasted for Millennia? 1,900-Year-Old Latrine Offers Clues
Primairly because old houses are on bigger plots and allow for extensions and conversions.
nly··on OnePlus halts operations in USA and Europe
For now. They'll reneg down the line
nly··on Show HN: Beautiful Type Erasure with C++26 Reflection
And lost value semantics and any hope of type safety.
nly··on Show HN: Beautiful Type Erasure with C++26 Reflection
That's the thing though isn't it. C++ didn't add type erasure to the language, it added compile time reflection and said have at it.
nly··on Show HN: Beautiful Type Erasure with C++26 Reflection
IDEs like CLion now have compile time visual debuggers.
nly··on Modern decor may be straining people's brains
You can...move books.
nly··on Modern decor may be straining people's brains
I live in a London terrace, originally built circa 1900.

There's plenty of evidence the rear gardens were used for growing food and drying laundry back then

Children would also play there where they could be seen from the kitchen (which was always in the rear), rather than playing in the road (as much)

Rear gardens also served as a space where you would converse with your neighbour. Typically fences between neighbours were low and wire (tall 6ft wooden fences came later)

The other thing is the only toilet in a 4 bedroom property would also be out there, as an outdoor WC, accessible from outside

I doubt much read space was reserved for lawn back then

nly··on Girls just wanna have fast MPMC queues with bounded waiting
What was the one time when you need something wait free? I'm assuming interacting with hardware?
nly··on Girls just wanna have fast MPMC queues with bounded waiting
What's important is you know the trade-offs you are making.

You can't have a bounded queue that is always non-blocking because slow consumers can block producers.

You can't have a global FIFO order + multiple producers without slow producers blocking consumers.

You can't have a global FIFO order + have have non-atomic reserve and commit without a interrupted/de-scheduled producer thread being able to block the consumer

If you want atomic commit then you lose separate reserve which means either unbounded memory or atomic fixed-size data with sentinel values, ABA problems etc.

There are trade-offs everywhere, and it's best to pick the data structure that fits your needs just like any other problem.

nly··on Girls just wanna have fast MPMC queues with bounded waiting
The MPSC/MPMC structure in Aeron is wait-free with respect to producers - one producer cannot block another

There are simple node based algorithms that achieves a similar guarantee:

https://web.archive.org/web/20240928080729/https://www.1024c...

There is also a MPMC algorithm on this site very similar to the article

https://web.archive.org/web/20220524214823/https://www.1024c...

nly··on Bonnie Tyler, singer of Total Eclipse of the Heart, dies aged 75
I think of that movie every time I hear the song! That was one badass robot sequence.

"Suuuuure. Kidnap the humans, DESTROY THE MACHINE."

nly··on Mysterious debris could be 'space balls'– may contain toxic rocket fuel
Time to comb the desert until more are found.
nly··on Nearly a Million Investors Lost a Total of $3.8B on Trump Crypto Coin
Direct transfers to your dear leader.
nly··on Physical disc production ending in Jan 2028 for new games on PlayStation
Theres no technical reason one should look better than the other.

Both should use multipass ahead of time compression with a rate control algorithm, and both should have enough slack streaming bandwidth to handle complex scenes with buffering

nly··on Nintendo has raised its employees base salary by 10%
My British parents went there this year and found it very expensive
nly··on UK likely to intervene in Paramount takeover of Warner Bros Discovery
Cool trick given both companies are US entities.
nly··on Stroustrup's Rule (2024)
In well thought out C++ software lifetime rarely becomes an issue because deciding on ownership and object lifetime is unavoidable as part of the design process.
nly··on NUMA: Cores, memory, and the distance between them
If the code is mapped readable and not mutated how does it make a difference?

The code will be prefetched in to local (executing) CPU cache just the same. No invalidations will take place across NUMA zones.

Modern DLLs on e.g. Linux use PIC and not mutable relocations.

nly··on The CEO of Mullvad is the main financer of the Swedish Örebro party
Ironically most of the polish I know who came to Britain returned home to Poland for better prospects.

Adjusting for purchasing power parity, GDP per capita in Poland isn't far behind the UK.

nly··on Age verification is just a precursor to automated attribution of speech
Because it's accurate?

If I have access to your digital ID I shouldn't be able to impersonate you anymore than I should be able to fly using your passport.

Your passport is useful not just because it's difficult to forge, but because border control is a thing.

nly··on Age verification is just a precursor to automated attribution of speech
Yeah...I'm fully aware what a ZKP is..you're just missing the point.
nly··on Age verification is just a precursor to automated attribution of speech
Doesn't matter!

You still need to send a digital image from the id, signed by an authority, saying "this person is 18"

You then still need a trusted ID service or algorithm to capture an image of the user _at the time of use_ to compare that to.

Just having access to your digital ID credentials proves nothing

The zero knowledge proof only helps prevent tracking between the ID service and the website you're logging into. This is valuable but requires standardisation and client side support, which doesn't exist.

All the time the client side is implemented by JavaScript served from the server side you're just trusting these parties to behave and not snoop

nly··on Age verification is just a precursor to automated attribution of speech
But to be effective you need to prove that the person presenting the ID is the person the ID belongs to.

In person that falls to a human being, and it's an easy and intuitive task that takes seconds.

On the internet this involves some kind of video recording being sent to some agency somewhere being paid a fee, who may later be asked to prove the efficacy of their service. This agency needs a digital copy of the photo from your ID for matching purposes. They'll be tempted to store this for auditing purposes... they'll also be tempted to store correlation IDs etc if the architecture allows.

The issue is trust. You just can't trust these first and third parties not to collaborate for commercial gain or at government demand or request.

And ultimately you're still exchanging verification at registration for a shareable credentials: I could use my ID to sign up to pornhub premium and then sell the username and password to a 16 year old if I wished, just like those buying alcohol can go and give it to the underage. A black market for digital credentials is even easier to establish than material goods

nly··on Fintech Engineering Handbook
> However, I've heard that in HFT, they don't do that because the overhead itself is too costly.

I've worked at several HFTs and 2 had independently settled on 64bit signed fixed point with a implied 10^9 scaling factor between internal systems.

However in-process one just used 'double' for all FX conversions, scaling etc. With 15 digits of precision and careful rounding choices it's fine.

Dealing with the outside world you'd obviously just convert as cheaply as possible - and there are some crazy fast algorithms doing fast binary float -> correctly rounded decimal conversions these days

← PreviousPage 2 of 34Next →