Better HN
topnewbestaskshowjobs
Log inSign up

otabdeveloper4

3,224 karma · joined Jun 14, 2019 (7y ago) · 4,047 submissions

Submissions

comment 2y ago · link · parent

"Memory unsafe languages" is maybe one percent of one percent of the problem.

As always, nobody actually gives a damn about "security" and uses it as a pretext to push something unrelated. (In this case, Current Year's stupid fad programming language.)

comment 2y ago · link · parent

Just accept the fact that -O3 is the real compiler, and -O0 is the training wheels you might only use once or twice while learning to program.

comment 2y ago · link · parent

Extremely bad advice. There is no point in debugging something that bears no relation to the software you release, and compiler optimizations is the only reason to use C or C++ in the first place.

comment 2y ago · link · parent

I'm guessing NextJS because internal tools need to make requests inside the DMZ without authorization.

(The huge mental disconnect between people who only ever make websites and people who make business tools is amazingly huge.)

comment 2y ago · link · parent

"AI" is not actually intelligence, it's an advanced madlibs generator. No, you do not want it anywhere near your source code.

comment 2y ago · link · parent

> Secondly, a core issue here is systemd in Linux. libsystemd is linked to all systemd services, which opens a rich attack surface of third party services to backdoor.

I guarantee you more services link to glibc, and that glibc has a much, much larger attack surface than anything systemd.

comment 2y ago · link · parent

Postgres doesn't have a sane and working replication story. (Mysql does, but it's full of legacy warts, of course.)

Mongodb is foolproof and works out of the box.

The other alternative here isn't Mongodb, it's Couchdb, but that isn't an RDBMS.

comment 2y ago · link · parent

"Unreadable syntax" is like number 1000 on the list of SQL problems.

comment 2y ago · link · parent

MongoDB is great if what you need is a replicated log or queue. It's what Kafka should have been.

comment 2y ago · link · parent

St.DOS (For TempleOS)

comment 2y ago · link · parent

Humans are just wired that way. A smiley face evokes friendship and positive emotion, and it's just two dots and an arc.

comment 2y ago · link · parent

No, mostly it solves the problem of runtime library loading and swapping. E.g., Linux VDSO can only work as a shared library.

comment 2y ago · link · parent

> Turns out that's exactly what containers are a packaging of!

Well, no. When people say "containers", they always mean "Docker".

And Docker also comes with a daemon with full root permissions and ridiculous security policies. (Like, for example, forcefully turning off your machine's firewall, #yolo. WTF!)

P.S. I actually run systemd-nspawn in production, but I am probably the only person on earth to do so.

comment 2y ago · link · parent

I'm talking about the compiler segfaulting, not the end-user code.

comment 2y ago · link · parent

No, CUDA's botched gcc implementation segfaulting due to compiler errors during compilation is not a "skill issue".

(Well, a skill issue of whoever is patching gcc on Nvidia's end, I guess.)

comment 2y ago · link · parent

CUDA is absolute shit, segfaults or compiler errors if you look at it wrong.

NVidia's software is the only reason I'm not using GPU's for ML tasks and likely never will.

comment 2y ago · link · parent

> for one euro [*]

[*] taxes and fees may apply.

comment 2y ago · link · parent

> Which of them actually ensure your program always works the same as when you first wrote it, without asterisks?

Nix does, if you want to actually invest the effort into the "without asterisks" part.

comment 2y ago · link · parent

Linux comes with Python included. (Python is the new BASIC, and explicitly designed to be so.)

comment 2y ago · link · parent

Every pre-modern wagon had a big old bucket of grease hung at the side of it. It was needed to keep the axle continuously lubricated. (Sayings about wheels and grease are preserved to this day.)

Theoretically, a two-wheeled transportation contraption could have been made, but having to carry the grease with you would make it pointless.

comment 2y ago · link · parent

The real answer is "ball bearings".

(The medieval wheel was powered by extreme amounts of lubrication.)

comment 2y ago · link · parent

Thanks but no thanks.

comment 2y ago · link · parent

Good thing you won't be around in 30 years to eat your hat.

comment 2y ago · link · parent

You shouldn't need one. Use Nix instead, they did 99% of the work for you already.

comment 2y ago · link · parent

> I still don't understand what it does better than Docker

It doesn't break as you scale. If you don't need that, then keep using Docker. (Personally, for me "scale" starts at "3 PC's in the home", so I eventually switched all of them to NixOS. I don't have time to babysit these computers.)

> Docker build are deterministic and easily reproductible

No, they definitely aren't. You don't really want to go down this rabbit hole, because at the end you realize Nix is still the simplest and most mature solution.

comment 2y ago · link · parent

> why are all of the browser teams who have some of the best C++ developers in the world and significant resources adopting memory-safe languages?

They aren't. Even Mozilla abandonded their Rust-in-Firefox project.

comment 2y ago · link · parent

Absolutely terrible documentation. The RFC doesn't even explain the purpose of the "End of Transmission Block" token.

comment 2y ago · link · parent

For every 1 security breach due to C++ memory management, there are at least 100000 due to shitty PHP code that doesn't escape strings or uses plaintext passwords that never change. (This is a conservative estimate.)

comment 2y ago · link · parent

> the most important research problem in history

Probably not.

> assuming that AGI can be achieved by just scaling up current LLM models

Lmao.

comment 2y ago · link · parent

You're assuming they have security breaches due to C++.

I'm betting here they don't; if they have security breaches it's due to '1q2w3e' being the password to their world-accessible PHP admin panel, and not because of C++ code.

1
626364
135