Hacker Newsnew | past | comments | ask | show | jobs | submit | eterm's commentslogin

> the only apparent reason to chose Rust over C is virtue signaling

If you'd said another memory safe language I might have been on board, but C? We've seen a complete collapse in the ability of software to go un-hacked and un-exploited. Not all of that is down to poor memory safety of course, but it's a category of vulnerability that is massively increased in both surface and risk by choosing to write C.

Choosing Rust alone might be virtue signalling, but choosing a memory safe language is just pragmatic.


In this particular topic (performance) Rust matters because it will deliver excellent performance. You could write a container -> map -> map -> container flow in fifty memory safe languages, but probably it would be a bit slower than the nasty hack you'd write in C to convert the data in place. Rust isn't, if you're intrigued you will discover that Rust 1) figured out that the two containers must be the same size in memory so it can re-use the original container and 2) did the in-place conversion even though that wasn't what you wrote, because it's faster.

So magically the Rust was just as fast, but much more readable and when a junior (or an LLM) modifies it slightly so that the output container is bigger it won't suddenly segfault due to that scary in-place conversion loop now being a bounds miss, the Rust won't attempt the in-place conversion now that it can't work.


In the age of machine-generated code, why not ask LLMs to write "safe C"?

You've received downvotes, but I'll do you the kindness to actually answer you.

Firstly the obvious, LLMs aren't perfect yet, they still make mistakes.

But even if they could achieve safe C by asking them to "Write Safe C, Make no mistakes", there would still be a significant benefit to achieving safety by using Rust or a memory safe language.

LLMs work best when they have a combination of clear objective functions and guardrails. In this case, the compiler acts as a guardrail to keep it safe while trying to solve the problem that needs solving.

Having a compiler step prevents the LLM taking a "shortcut". Despite models improving, they will still take shortcuts, sometimes absurd ones, to meet some definition of a "job done".

The other massive benefit is cost and speed. Having an LLM analyze and reason about the safety is expensive and wasteful. Having this done at compile time is cheaper and quicker. The earlier in the feedback loop, the cheaper it will be.

Save your tokens for "real" work, not stuff you can check at compile time.


> Young travelers, especially those aged 21 to 39

You know you're in a messed up state when 39 year olds are described as "Young travellers".

Many Millennials are over 40 too, lumping them in as "young travellers" and pretending it's an achievement to get 22% of your clientele from that demographic just demonstrates how aged the cruising demographic really is.


for the bad and the good, 39 years now is considered quite young, one of the reasons is because the generation older than them are still active and are way more resourceful.

I'm a couple years past 50 and perfectly willing to describe 39 year olds (except for Jack Benny) as young.

> "Based on our investigation so far, we believe the attackers accessed certain marketing data held by those vendors, which may include some customer names and email addresses,"

A big question that I think will increasingly be asked as this sort of thing becomes more widespread: Did these customers really give informed consent to their data being passed to these "third party vendors" that are getting breached?

Even with regulation such as CCPA and GDPR in Europe, a lack of meaningful consequences has meant a complete abdication of treating customer data as a liability.

Maybe companies will be more careful with handing out data to third parties if they can no-longer trust those third parties to keep the data secure and it becomes a reputational risk.

Of course that remains to be seen, this one will likely fade into noise and have little to no effect long term, but I am hopeful that meaningful attitude change to data will happen as an effect of the continuing vuln-pocalypse.

An alternate technical point of view: there's also an argument for the need for a better way than emails or SMS for being contacted by companies with which we do business. If a contact grant was handled in a more privacy-preserving manner, then you could authorise companies to send you messages without giving up a form of identification, and this authority could then even be also appropriately delegated in a more secure way.


>Maybe companies will be more careful with handing out data to third parties if they can no-longer trust those third parties to keep the data secure and it becomes a reputational risk.

They don't care about reputation. Like 3/4 of people have the mentality their data is already out there. They don't care.

The only thing these companies care about is $$$ because they're too big to care. They are engrained in the US system.


"Like 3/4 of people have the mentality their data is already out there." This is fascinating, can you point me to documented research supporting this? -someone who cares.

It’s not that I don’t care, it’s that I feel powerless to do anything about it. I got another letter this week that basically all of my PII was stolen by an employee of a medical provider I have no recollection of ever dealing with.

Probably three mergers ago, maybe even more than half a lifetime ago, I went to a clinic of theirs and now my data is just out there..again.


I doubt there is research on it, but I agree that it is seemingly a very common sentiment people have. Google, Amazon, and Meta taking all of the data of their users makes people not care, countless data leaks in the news contribute, and it all bleeds into regular sentiment to not care about data regulation. It doesn’t help that the same politicians that should be regulating are heavily lobbied by the same companies to not regulate user data.

If I go on haveibeenpwned and type in any email address I've used since 2001, it shows up.

There is well known effect in privacy research, the so-called privacy paradox, where users will state that they care about privacy but when they have to make a decision (to use a product, configure a setting, etc) they do not seem to care about privacy.

This is usually because they care about something else more, not because privacy is not a factor.

tell me your values and I'll know what you say your values are

show me your actions and I'll know your actual values

also, there may be some confusion here about what it means to not value something – it is being used here to mean, valuing it lowly or below other things, not "valued at literally 0"


It's wild how the values you think you have and the values you actually have can differ so wildly. But, in therapy I have realized that countless times. It feels a bit like chesterton's fence.

Of course, people can also just lie.


No, it's because they think "I don't have anything to hide" while also being unwilling to shit with the door open.

The people you're talking about would not think "I need to keep my shitting private", but rather "you'd be a fucking weirdo/pervert to watch".

There's no shame in having nothing to hide. There's no shame in shitting with the bathroom door closed. There's no shame in going with products that happen to compromise privacy.

There is shame in prying into someone's secrets. There is shame in opening the bathroom door on someone. There is shame in using products to compromise someone's privacy.

They think in terms of these shames, not in terms of rights. This way, they do what they want, and if someone tries to come after them for it, they make that person the problem.

Adopt this philosophy enough, and you become a narcissist.


Thank you for explaining this as you did, it is very clear.

It is also because "they trust us. Dumb fucks"

And they do. People trust that large companies will be competent at handling data. If I hand this over to you you'll keep it safe right? Obviously you can keep ot safe because you're a big company full of smart people who are going to try your best to keep it safe right?


It's not that they don't care also, its that they don't know about digital privacy either. And you know how many people out there aren't tech-savvy

> A big question that I think will increasingly be asked as this sort of thing becomes more widespread: Did these customers really give informed consent to their data being passed to these "third party vendors" that are getting breached?

As a Domain Arch in consumer retail in Australia, those laws are getting SIGNIFICANTLY restricted now, a lot of the implied consent that existed is now being questioned, even across business units of a single company, and that's the exact question that's being asked.

Our legal department is tightening PI and consent considerably, and its going to leave our marketing teams without a lot of the tools and capabilities they've been going to for a long time.

Can't say I disagree with any of it either


> informed consent

In theory that should be the right framing, in practice having the information means nothing if there is no reasonable action you can take from there.

In the case of Visa and MasterCard, Amex or JCB or Diners' terms aren't better or more competitive, your only real option is to give up on credit cards altogether.

A lot of otherwise sensible concepts have little weight when you have a cartel or straight duopolies/monopolies.


If you have no choice that's not really consent, is it?

Not "really", but real consent is an incredibly high bar IMHO.

Even in very favorable situations it's a grey zone: For instance does someone _really_ consent to every single term in their 20 pages employment contract when they quit a miserable job to move to the only place offering them something decent that will help them get out of the ghetto ?

It quickly gets into philosophical territory.


Having worked at one of these companies, banks especially take this kind of data privacy and regulation stuff seriously. It’s all in the terms of service you blindly click through, but they deal with data provenance and chain of custody seriously.

The big problem is the number of external marketing SaaS vendors all these financial service marketing orgs tend to use. It’s too big a surface area for true security assurance.


Personally the only thing I’ll find acceptable is personal criminal and financial liability for executives in the case of data breaches - SOX style.

Are we already too far gone? In theory companies are meant to manage subprocessors of the entire chain. In practice, that amounts to hundreds of them.

> Maybe companies will be more careful with handing out data to third parties if they can no-longer trust those third parties to keep the data secure and it becomes a reputational risk.

No no no, you've got it backwards. The reputational risk is not giving data to third parties. The more third-parties you involve, and the more you offload, the lower the reputational risk.

The purpose of many companies is not their product or their service, it's accountability laundering. If you make it someone else's problem, you don't have to care. If JP Morgan had the leak instead, it would be much worse for them. Much, much worse. Now, a sane person would say "well then JP Morgan why don't you just design your systems to prevent a leak?" but that's not how risk-averse leaders see it.

They see it as "the leak is inevitable". Now, do you want to leak the data, or do you want someone else to leak the data? There's a secret third option which is "don't collect the data" but nobody actually considers that. Realistically, you just outsource some operation to however the hell you like. Then, when things go wrong, you wipe your hands, maybe make a PR release about how you "trusted them", and then move on to dump your operations into another third party. Fingers crossed this one doesn't leak!


do they need consent? Legally speaking I mean are they required to get consent in the usa? I would hope yes but I don;t know

I doubt we will, people want to be able to see the same documents/messages/etc from their PC and their phone.

That doesn't strictly require a central server, but a central server certainly makes any kind of sync orders of magnitude easier for everyone. That becomes a central weakness whether the client software is deployed via javascript in a web browser or packaged as a desktop app.

Running a proprietary service might buy you a small amount of time compared to web-scanners, but it doesn't change the risk model. In fact, given that the browser is still a fairly effective sandbox, moving to published desktop app probably increases the risk for clients by increasing the blast radius of any issues there.

Consider the kind of viruses we used to deal with: https://en.wikipedia.org/wiki/Melissa_(computer_virus)


Its time to bring back offline desktop apps. It pains me every time I have to pay adobe to use lightroom classic.

https://github.com/storytold/lightcraft

This suite of programs was top post here a few weeks ago, in case you want an alternative.


Actual slop.

I remeber trying one of them and finding out that using Cmd + A in the project name text input doesn't work. 20 apps and the dev didn't bother to check this.


There have been 1000s of updates since you last tried it.

This seems surprising to me. I think live presence is an essential part of real time communication, but also something that should be well understood how to scale?

Indeed, this seems like a really low number for when to run into issues, unless they're running it on a shared VPS and/or it's just not very well built.

i could see how after 10k users, the logarithmically? growing time/resource pressure of checking more users against every list, without properly distributing the data / sharding, starts to creep in

Perhaps I'm not understanding the Matrix model, is there no central broker that is holding user contact relations and fanning out and directing statuses / messages?

Because, otherwise, even if you went crazy and did the most naive implementation:

    Storing for every User
    User -> List <User Contacts>
And the reverse: User -> List<Users who have you as contact>

And even then if you go full quadratic and have literally everyone have everyone else as a contact, and store and update the online status for each pair, and do that for each direction, you still shouldn't have scaling issues at 50k users, as that just isn't that much data?

By 500k Users you might be starting to feel it with a naive approach, but 50k? It shouldn't be a bottleneck unless status updates are causing cascade effects into other systems.

And that's just an analysis of the most naive design I could think of!


I don’t believe there’s a central coordinator (it wouldn’t be distributed then).

I think you’re missing that rooms are attached to servers, and you can join rooms that aren’t on your server.

If I go join a room with 50k people on another server, those 50k people need to pull an online status from my server and my server needs to pull all of theirs.

Multiply that by all the rooms 50k people have joined and you get a _lot_ of messages bouncing around.

It’s sort of hard to optimize without either a central and implicitly trusted cache, or giving up on trust entirely. Central cache is sort of obvious. You could go peer to peer but then you have to deal with “what if somebody modified their server to issue forged updates”. You could maybe sign them but I’m not sure how anyone would validate that without getting a pubkey from your server and now we’re back to scaling problems and have a new “storing a million pubkeys” storage issue.


Based on live metrics from my current server, there are three order of magnitudes more presence updates processed than any other form of event (typing, message, encryption, etc). This is after the majority of people have turned it off. It's a huge amount of work relative to everything else in the protocol.

based on experience with another tool i saw, each lookup itself must be authorized by checking membership in at least two other lists on three other servers :P

It's an asynchronous protocol, the need for someone to be visibly online is your own.

Send me a message, I'll get back to it when I'm online.


> Send me a message, I'll get back to it when I'm online.

Which isn't acceptable in a lot of workplaces. I'd say these chat systems have an expectation of only semi-asynchronicity. If you're truly async, you use e-mail. If you send a chat message you're expecting an at least somewhat timely response, an online indicator helps let you know how soon you might get it.


I mean, if the user names and the messages themselves are cached and displayed, why can't user location be done the same way every ~5-10min or so, or ~1m with an active direct user-to-user (with approval) lookup? it's an exchange of two ~6-10 digit grids and an elevation, I'll give allowance for a timestamp.

> common outages that occur every week

That's a ridiculous statement. Outlook down for a day is not a weekly event. FAA Ground Stops aren't a weekly event.

They are things that almost never happen.

While it might be a pattern of rushed upgrades, it's still a pattern that something isn't quite right. That might just be rushed upgrades due to fear of vulnerabilities getting exploited left and right, but it's still clearly a big difference from even 6 months ago.


UK government recently launched a "Be Ready" preparedness campaign.

https://beready.campaign.gov.uk/

It's nowhere near the kind of readiness and preparedness campaigns of the cold-war of course, but it's a step up in alertness that's higher than anything I can remember.


It's a new campaign, but the messasge is not new at all. The previous government had a preparedness campaign in 2023 (https://www.gov.uk/government/publications/the-resilience-fr...). And you could go back to 2004 and the UK government's "Preparing for Emergencies" campaign where a leaflet was sent to every household (https://en.wikipedia.org/wiki/Preparing_for_Emergencies).

I don't think the two are comparable. The 2022 resilience framework led to the publication of the gov.uk/prepare website in 2024, but it had no paid reach and was quickly forgotten. And Preparing for Emergencies was launched in response to a perceived terrorist threat post-9/11 and Madrid train bombings. So you might take this as an indication that the UK government believes there is something to be concerned about.

I know, I live in London right now, and people are worried.

Possibly coincidence, but it almost looks like grid instructions, Up, Down, Left, Right and F?

Sounds like a Rubix Cube! F being Front.

> Sounds like a Rubix Cube! F being Front.

Potentially relevant: a Rubik’s Cube can be used for data encryption:

> https://scienceblogs.de/klausis-krypto-kolumne/2016/11/10/ho...


Interesting! But does R4 make sense in a Rubik's cube? Isn't that a no-op?

4x10 grid from one fixed origin

This is very promising!

( I've deleted my earlier post, too many spoilers I think! - This is a very good candidate track I feel though. )


Glad I was able to catch it before you deleted!

I have the same string here, but I doubt it's a random 256-bit value. Random Z85 is about 27% punctuation, so ~11 of 40 characters. This has 3, only . and /, and lowercase five times, plus one capital A.

My agent thinks its something typed by hand to look random: two-key alternations (.a.a, hwh, mjm, aYa), same-finger column moves (8K, /p, Qa), shift held across neighbours (AD, FO), and the hands move from the lower rows to the upper rows right at the slash.

Maybe its a password: two parts split at the slash, or a dead end.

PS: If you find it, share the bounty! Haha


If you're seeing characters, then you're still a layer behind. It appears essentially random after the next step.

Edit: I misread, we are at the same step then, I should use a real entropy check on this then.

Edit2: You were right, this isn't random enough to be a hash or key, but it also seems to be a dead end. Something to sleep on!


I'm arriving to the same conclusion! Going to sleep on it too, maybe tomorrow we discover something new. I'll post here!

> ranking it nipping at the heels of the much pricier Opus 5.5

Huh? Opus 5.5 is an order of magnitude cheaper in reality, according to their own link.


Better yet, in a completely different utility whose output could be piped into the parameter, but the lack of rich piping brings you back to parsing.

Normalizing this kind of fuzzyness to an normalized iso timestamp would simplify things a bit

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: