Better HN
topnewbestaskshowjobs
Log inSign up

mmoll

148 karma · joined May 16, 2020 (6y ago) · 39 submissions

Submissions

comment 1w ago · link · parent

The control loop probably used email for messaging.

comment 2w ago · link · parent

I agree. The “excuse” for implementing those behaviors is just providing plausible deniability. The commit that lets crypt return “*”, followed closely by a change that lets you easily trigger that behavior sounds just like how somebody would sneakily introduce a back-door into tons of linux systems while making it look as innocent as possible.

comment 2w ago · link · parent

No. Musl claims (claimed?) to be strictly POSIX compliant, and POSIX requires crypt to return NULL on errors.

comment 2w ago · link · parent

The musl vulnerability looks a lot like an intentional backdoor, doesn’t it?

comment 1mo ago · link · parent

I think the idea is that nobody will need to understand the code or plan an implementation. The AI will do that. Now, whether that is a good idea is debatable, personally I think we should not make all software engineering depend on just a few AI companies. Oh, and nobody will notice that nobody has an understanding of what is built, as all those management positions will sooner or later also be filled by AI.

comment 1mo ago · link · parent

I came here to say exactly that. There’s int_leastN_t for storage and int_fastN_t for computation. Stdint.h really gets a bad rap here.

comment 2mo ago · link · parent

”…the book says basically - no biggie, there is no death“

So does the Bible.

comment 2mo ago · link · parent

That is the point: our minds are also next-„token“-predictors, at least we can‘t prove they‘re not. That‘s why I don‘t agree with the article: LLMs _are_ next-token predictors. However, that says little about their capabilities. Also, while I have no idea what „consciousness“ is, I have difficulties believing that it could arise in a program that, in theory, you could execute with pen and paper.

comment 3mo ago · link · parent

But how would „what we value“ still be relevant?

comment 3mo ago · link · parent

And most of the discussion would immediately apply to almost any other facet of society…

comment 4mo ago · link · parent

What are you talking about?

comment 5mo ago · link · parent

It is telling that I thought “that’s why all trains were late this afternoon” before I realized that the issue occurred only minutes ago.

comment 5mo ago · link · parent

If this weren’t Deutsche Bahn, I’d say it’s a cyber attack. Given that this is Deutsche Bahn, though, it may just as well be a maintenance issue.

comment 7mo ago · link · parent

The AI became sentient and ran away.

comment 7mo ago · link · parent

It doesn’t mean that these “thoughts” influenced their final decision the way they would in humans. An LLM will tell you a lot of things it “considered” and its final output might still be completely independent of that.

comment 11mo ago · link · parent

That may be dangerous. The more obscure the topic, the more likely it is that the AI will come up with a working but needlessly convoluted solution.

comment 11mo ago · link · parent

Exactly. After all, how can WE confidently claim that we’re more than stochastic parrots?

comment 12mo ago · link · parent

We once rented bikes in Copenhagen, they all looked like they were fresh from the junk yard. We had to try several to find ones where at least one of the brakes was still working. It was a horrible experience, and we tried several different places. That was after we found out that the public bikes that were supposed to be available all over the city had all been stolen.

comment 12mo ago · link · parent

You won’t just be viewing an ad, you will have to actively engage in a minute long sales talk with the LLM.

comment 2y ago · link · parent

True. I often think of Rust as a best-of compilation of Haskell and C++ (although I read somewhere that OCaml had a greater influence on it, but I don’t know that language well enough)

In real life, I find that Haskell suffers from trying too hard to use the most general concept that‘s applicable (no pun intended). Haskell programs happily use “Either Err Val” and “Left x” where other languages would use the more expressive but less general “Result Err Val” and “Error x”. Also, I don’t want to mentally parse nested liftM2s or learn the 5th effect system ;-)

comment 2y ago · link · parent

Surpriiiiiiise!

comment 2y ago · link · parent

Mid-30s is maybe a tad earlier than average, but by the age of 40 you’d expect noticeable changes.

comment 2y ago · link · parent

If only I had known this earlier in my career! They should really add a feature to make a hard copy of the big bucket list to minimize memory overhead, though.

comment 2y ago · link · parent

Most standard containers have no way to communicate allocation failure to the caller in the absence of exceptions (think of constructors that take a size). Worse, the implementations I’ve seen would eventually call operator new, assuming it would throw if it fails. That is, subsequent code would happily start copying data to the newly created buffer, without any further tests if that buffer is valid. In the absence of exceptions, that won’t work.

comment 2y ago · link · parent

On the other hand, once your embedded system is sufficiently large, people will want to use (and inevitably will use at some point) standard containers such as std::string or std::vector. And without exceptions, all of those might invoke UB at any time (I have yet to see a standard library that understands and honors -fno-exceptions; usually they just drop all try-catch blocks and all throws)

comment 3y ago · link · parent

German wages are low? Are you serious?

comment 3y ago · link · parent

> Real const data doesn't exist

Ever seen a ROM?

And the C library‘s hacks around not being able to overload functions (which is the only reason for strstr et al‘s weird signature) wouldn‘t stop me from using const. It can be really useful both for documentation and for correctness. Think memcpy, not strstr.

comment 3y ago · link · parent

Huh? Who says so?

comment 3y ago · link · parent

But code using these monadic operations can also be quite clean… toy example:

   auto askForUsername = [&] { … };
   auto lookupUserByName = [&](auto name) { … };
   auto printUserDetails = [&](auto userId) { … };
   
   auto details = 
     askForUsername()
       .and_then(lookupUserByName)
       .and_then(printUserDetails);

comment 3y ago · link · parent

The idea is to make the accesses safer, not necessarily more readable. The monadic operations make it impossible to access the value in a std::optional without first testing that it actually contains a value.
12