Better HN
topnewbestaskshowjobs
Log inSign up

staticassertion

13,486 karma · joined Jun 1, 2016 (10y ago) · 4,896 submissions

@insanitybit
Submissions

comment 9mo ago · link · parent

I can't give you examples, but my experience is that AI does very well with Rust except for cases where a library has a constantly changing API/ has had recent breaking changes. I find that AI does extremely well at "picking up" a Rust codebase, I suspect due to the type information providing context but I couldn't say.

comment 9mo ago · link · parent

> - It would be a big deal if Rust did have a safe dynamic linking ABI. Someone should do it. That's the main point I'm making. I don't think deflecting by saying "but C is no safer" is super interesting.

I think we all agree that it would be a huge deal.

> - So long as this problem isn't fixed, the upside of using Rust to replace a lot of the load bearing stuff in an OS is much lower than it should be to justify the effort. This point is debatable for sure, but your arguments don't address it.

As you point out, this is the debatable part, and I'm not sure I get your justification here.

comment 9mo ago · link · parent

I don't get it. What's the chasm here?

comment 9mo ago · link · parent

Yes but it's not really fair to expect me to know how to do that. Just because I know how to do it for backend code, where it's often a lot easier to see those copies, doesn't mean I'm just a negligent asshole for not doing it on the frontend. I don't know how, it's a different skillset.

comment 9mo ago · link · parent

I don't think it's the same tbh. In Rust I can often just `rg '\.clone'` and immediately see wins. Allocations are far easier to track statically. I don't have a good sense for "seeing" allocations when I look at JS, it feels like it's unfair to expect me to have that tbh. As for profilers, yes I could see things like "this code is allocating a lot" but JS hardly feels like a language where it's smooth to then fix that, and again, frameworks are so common that I doubt I'd be in a position to do so. This is really in contrast to systems languages again where I also have profilers but fixing the problem is often trivial.

> You think about threading, concurrency, etc: JS is even a little easier than many backend languages because it is (almost excessively) single-threaded. A lot of concurrency issues cannot exist in current JS designs unless you add in explicit IPC channels to explicitly "named" other threads (Service Workers and Web Workers).

My issue isn't with being able to write concurrent code that has no bugs, my issue is having access to primitives where I have tight control over concurrency and parallelism. The primitives in JS do not provide that control and are often very heavy in and of themselves.

I think it's perhaps worth noting that I am not saying "it's impossible to write fast code for the browser", I'm saying it is not surprising that people who have developed skillsets for optimizing backend code in languages designed to be fast are not in a great position to do the same for a website.

comment 9mo ago · link · parent

> Any tool that can plug into MLIR and use LLVM, can potentically produce fast code.

I guess that's sort of technically true, but not even really? Like, obviously you can compile Python to C and then compile that with clang, but it doesn't make it fast. But even if that were the case, there aren't that many languages that have Rust performance so who cares? "Potentially" is sort of saying we might have a future language that's better, but of course anyone would agree.

> Also there is the alternative path to execute code via agents workestration, just like low code tooling work.

I don't understand how this is relevant.

> I see you never had the fortune to review code provided by cheap offshoring teams.

I just don't understand why you're bringing it up tbh I don't understand the relevance.

comment 9mo ago · link · parent

> Formal specifications and automated testing, will beat any language specific tooling.

I don't understand what you mean. Beat any language at what? Correctness? I don't think that's true at all, but I also don't see how that's relevant, it definitely doesn't address the fact that Rust will virtually always produce faster code than the majority of other languages.

> Hardly much different than dealing with traditional offshoring projects output.

I don't know what you mean here either.

comment 9mo ago · link · parent

This is a very shallow, very boring criticism. I doubt it will resonate. Modern C++ does not solve the safety issues, it has plenty of brand new footguns like string_view. Who cares if Go is better than Rust? Feel free to write Go, no one cares.

"mut and fn very annoying to read" like okay lol who cares? What should anyone take from your post other than that you aren't that into Rust?

comment 9mo ago · link · parent

I don't agree. For one thing, the language directly impacts things like iteration speed, runtime performance, and portability. For another, there's a trade-off between "verbose, eats context" and "implicit, hard to reason about".

IMO Rust will strike a very strong balance here for LLMs.

comment 9mo ago · link · parent

TBH I don't know how to do that work. If I'm in the backend it's very easy for me. I can think about allocations, I can think about threading, concurrency, etc, so easily. In browser land I'm probably picking up some confusing framework, I don't have any of the straightforward ways to reason about performance at the language level, etc.

Maybe once day we can use wasm or whatever and I can write fast code for the frontend but not today, and it's a bit unsurprising that others face similar issues.

Also, if I'm building a CLI, maybe I think that 1ms matters. But someone browsing my webpage one time ever? That might matter a lot less to me, you're not "browsing in a hot loop".

comment 9mo ago · link · parent

I had a script in another language. It was node, took up >200MB of RAM that I wanted back. "claude, rewrite this in rust". 192MB of memory returned to me.

comment 9mo ago · link · parent

> If I can cause a server to not serve requests to anyone else in the world by sending a well crafted set of bytes, that’s absolutely a vulnerability because it can completely disable critical systems.

Well obviously I reject that, right? That's sort of my point.

> If availability isn’t part of CIA then a literal brick fulfills the requirements of security and the entire practice of secure systems is pointless.

That doesn't follow at all. If I say "availability is an operational concern and not a security concern" it does not follow then that "remote code execution is not a security concern" whatsoever.

comment 9mo ago · link · parent

Feel free to think that I'm lying or whatever. This is just armchair psychologizing.

This has nothing to do with aggressors or victims. A hypothesis has been provided to explain the data we have, the hypothesis was rejected because it it seemed unintuitive that someone would have distanced themselves, I provided an explanation that accounts for why they would have.

That is, my explanation accounts for the user distancing themselves from AI by appealing to the risk of reputational harm that exists. You don't have to accept that, you can say some other explanation is more plausible, or whatever, but all I have done is provide an explanation - in no way is this an attempt to frame anyone as "aggressor" or "victim".

If you think this is a "pro AI" or "anti AI" stance (A) I don't give a shit, it isn't, and you can just think I'm lying (B) you seem confused about the purpose of the post, which is merely to provide an explanation that accounts for the data.

comment 9mo ago · link · parent

The linux kernel does the opposite, they do not believe in security vulnerabilities. That's why if you mention "security" in a patch, Linus will reject it.

comment 9mo ago · link · parent

> so can you.

I don't feel obligated to provide evidence based on some vague suspicion about "verified" accounts. If they want to find it, go ahead. Why is that such a heavy ask?

Here, https://www.reddit.com/r/aiwars/search/?q=death+threat&cId=7...

The problem is, of course, that now you can say "but those aren't verified!" and now it's tossed back at me to keep trying to meet some "bar" for this.

Or this, https://www.videogameschronicle.com/news/postal-game-develop...

Oh gosh but no arrests made, oh my god it's not VERIFIED to some whatever standard. Literally just google it if you want to know.

Look into this yourself, why am I doing this for you? Why do I care?

> So far, every post you have made has convinced me of the opposite of what you claim because you haven't been able to produce even one example.

Absence of evidence is not evidence. If you find yourself swayed that way, evaluate your epistemology.

comment 9mo ago · link · parent

Nothing from me! Sorry but I don't really think I'm obligated to support that claim.

edit: Here, https://news.ycombinator.com/item?id=47102818

That's the absolute most I'll do for you. Go find your own evidence, otherwise.

comment 9mo ago · link · parent

If you're submitting a CVE for a primitive that seems likely to be useful for further exploitation, mark it as such. That's not the case for ReDOS or the vast majority of DoS, it's already largely the case that you'd mark something as "privesc" or "rce" if you believe it provides that capability without necessarily having a full, reliable exploit.

CVEs are at the discretion of the reporter.

comment 9mo ago · link · parent

I don't believe that's the history here but I could be wrong. The history is that CIA encompasses availability, which it shouldn't.

Regardless, I don't think it matters. If you truly believe your DoS may be a likely privesc etc, label it as those. The system accounts for this. The insanely vast majority of DoS are blatantly not primitives for other exploits.

comment 9mo ago · link · parent

I think this is just sort of the wrong framing. Yes, a plane having a DoS is a critical failure. But it's critical at the level where you're considering broader scopes than just the impact of a local bug. I don't think this framing makes any sense for the CVE system. If you're building a plane, who cares about DoS being a CVE? You're way past CVEs. When you're in "DoS is a security/ major boundary" then you're already at the point where CVSS etc are totally irrelevant.

CVEs are helpful for describing the local property of a vulnerability. DOS just isn't interesting in that regard because it's only a security property if you have a very specific threat model, and your threat model isn't that localized (because it's your threat model). That's totally different from RCE, which is virtually always a security property regardless of threat model (unless your system is, say, "aws lambda" where that's the whole point). It's just a total reversal.

comment 9mo ago · link · parent

I don't really agree. Maybe I do, but I probably have mixed feelings about that at least.

DoS is distinct because it's only considered a "security" issue due to arbitrary conversations that happened decades ago. There's simply not a good justification today for it. If you care about DoS, you care about almost every bug, and this is something for your team to consider for availability.

That is distinct from, say, remote code execution, which not only encompasses DoS but is radically more powerful. I think it's entirely reasonable to say "RCE is wroth calling out as a particularly powerful capability".

I suppose I would put it this way. An API has various guarantees. Some of those guarantees are on "won't crash", or "terminates eventually", but that's actually insanely uncommon and not standard, therefor DoS is sort of pointless. Some of those guarantees are "won't let unauthorized users log in" or "won't give arbitrary code execution", which are guarantees we kind of just want to take for granted because they're so insanely important to the vast majority of users.

I kinda reject the framing that it's impossible to categorize security vulnerabilities broadly without extremely specific threat models, I just think that that's the case for DoS.

There are other issues like "is it real" ie: "is this even exploitable?" and there's perhaps some nuance, and there's issues like "this isn't reachable from my code", etc. But I do think DoS doesn't fall into the nuanced position, it's just flatly an outdated concept.

comment 9mo ago · link · parent

If the system "fails open" then it's not a DoS, it's a privilege escalation. What you're describing here is just a matter of threat modeling, which is up to you to perform and not a matter for CVEs. CVEs are local properties, and DoS does not deserve to be a local property that we issue CVEs for.

comment 9mo ago · link · parent

Part of the problem is that customers will scan your code with these tools and they won't accept "we never call that function" as an answer (and maybe that's rational if they can't verify that that's true). This is where actual security starts to really diverge from the practices we've developed in the name of security.

comment 9mo ago · link · parent

TBH I Think that DoS needs to stop being considered a vulnerability. It's an availability concern, and availability, despite being a part of CIA, is really more of a principle for security rather than the domain of security. In practice, availability is far better categorized as an operational or engineering concern than a security concern and it does far, far more harm to categorize DoS as a security conern than it does to help.

It's just a silly historical artifact that we treat DoS as special, imo.

comment 9mo ago · link · parent

It's strange to me that you read the word 'easily' as 'commonly', these are unrelated terms. But I suppose I am fine with saying that reports of death threats against users who use AI are quite common, certainly any navigation of one of the more controversial subreddits where these topics come up is sure to reveal that users are reporting this.

You can find more public accounts, such as by artists or game companies, about death threats they've received.

comment 9mo ago · link · parent

I actually do exercise. What I'm suggesting here is that there was never anyone helping me to build that habit forming, it has been entirely "self serve".

comment 9mo ago · link · parent

Yes, sorry, I think other posts are quite critical of yours so maybe you think this was me trying to be like "your post is bad". I think you're right (though I think that medication and therapy are often critical to help kickstart healthier habits, and it's worth noting how heavy a lift those things are), but it is just notable to me how hard those things are. I am not depressed, thankfully, because if I had to rebuild a social life or go to the gym to fix myself I'd be fucked.

comment 9mo ago · link · parent

I think this is true, but oof that's a heavy list. For one thing, food, alcohol, drugs, and stimulants, all have addictive properties that are almost certainly comorbid with depression. Dropping those is rough.

Exercise is perhaps one of the easier ones but, personally, I've found it incredible to reflect on how absolutely bad my childhood "gym" classes were. At no point did we actually... go to a gym. That was never normalized for us. We sort of just learned how to do jumping jacks when we were told to, that sort of thing, and it was all structured for us. There was no habit forming, no "how to do this once there's no one around to structure it for you". In my experience, people who go to the gym get "brought in" by someone in their life who can help them build that structure. For someone missing it, well, you're truly on your own in a rather stressful environment.

Sleep hygiene is good but, again, I suspect tricky here.

Regular social interactions, another heavy lift! What do you do to build up a network of people in your life? Social structures don't just magically appear, and once again, they're usually just handed to you for most of your life and once those fall away you're in quite a spot trying to recover or build anew.

I think the environmental stressors may be the roughest, hard to say. Eliminating financial stress is something that can take decades. Noise pollution? That's really quite out of my control.

All of these are great things to work on but I suppose my read of them is "wow, being depressed seems really fucking hard if you have to do these things to get out of it".

comment 9mo ago · link · parent

I mean, this is very obviously false. Literally everyone is not. Some people are, some people are absolutely condemning the use, some people use it just a bit, etc.

comment 9mo ago · link · parent

I'm surprised that you consider this hefty or find this surprising. I think you can just Google this and decide on what you consider "verified". There's quite a lot of "AI drama" out there that I'm sure you can find. I'm reluctant to provide examples just to have you say "that's not meeting my bar for verified" for what I consider such a low stakes conversation.
1
151617
164