HackerLangs
热门最新趋势评论往期问答秀出招聘

jorams

4,002 声望加入于 12年前
您可以通过 hn at joram dot io 联系我

评论

jorams
·16小时前·讨论
> 每篇关于编程语言的文章似乎都会提到 Rust。甚至 C++ 的文章也会提到 Rust,Zig 的文章也会提到 Rust。

"即使是 C++"没有任何意义。因为 Rust 的目标就是成为 C++ 的替代品。在 Zig 的背景下提及 Rust 也是合理的,因为 Zig 的目标是成为 C++ 的替代品,而 Rust 的目标也是 C++,C/C++ 是重叠的领域。

在讨论 Lua 之类的东西时,你很少会提到 Rust,因为它们是截然不同的。

你可能会经常看到有人提到 Rust 的一些其他原因:Rust 在编译时解决了许多语言在运行时使用 GC 解决的一些问题,这使得高级程序员更容易接受低级编程,并扩大了其目标受众。此外,长期以来,Rust 在各地都有非常活跃的传道者,导致不提它就会引发恼人的脱轨讨论。
jorams
·昨天·讨论
> 无论如何,让我们尝试讨论一些更具技术性的内容:

我要指出的是,接下来是完全非技术性的意见陈述。
jorams
·8天前·讨论
The company seems to be primarily in Germany (Aachen), with headquarters/holding company just across the border in The Netherlands (10km away in Lemiers, right on the border). That region is pretty economically integrated and I believe setups like this are fairly common to make use of the "business climate" of The Netherlands. Think taxes but also less bureaucracy. It looks like at least one of the founders also studied in Maastricht.
jorams
·10天前·讨论
You call it "boring advertising on consumer apps", but that's exactly where all the shady stuff keeps happening.
jorams
·10天前·讨论
A private company doing DARPA-funded research.
jorams
·16天前·讨论
There's really only a conflict between A and the rest, and that's because A is a lie. It's not a good thing, if it were they wouldn't have to say B and C.

They can try to do better and be hopeful, but they also fucked up big time. It's not like the public actually believes the lie, so stop telling it.
jorams
·18天前·讨论
Yes, that is exactly what a reasonable outcome looks like when the seller doesn't want to increase the price to levels their target customers can't afford. Some people won't be able to buy, but that is because of luck and not privilege.
jorams
·22天前·讨论
It doesn't work on bus, metro or tram, which GVB operates, but it does work on trains from all operators, not just NS.
jorams
·23天前·讨论
Sourcehut supports Mercurial, if the email workflow is your cup of tea. There's also Heptapod, which I believe is a fork of GitLab with added Mercurial support. I'm not aware of any Tangled or Radicle-like initiatives supporting it though.
jorams
·25天前·讨论
> I rent their 20GB VRAM instance GEX44, for which they now ask a 500 euro one-time setup fee

Along with the increase in monthly prices they've dropped setup fees back to more approachable levels, though not as low as they were a year ago. For the GEX44 it was €79 a year ago, now €114. Monthly price was €184 a year ago, now €234.
jorams
·25天前·讨论
Hetzner doesn't offer dedicated servers in the US. They operate two of their own data centers in Germany and one in Finland. In the US and Singapore they offer only cloud servers, running on hardware in others' datacenters.
jorams
·28天前·讨论
Packages in the AUR have some number of maintainers. When a maintainer no longer wants to maintain the package they can disown it, and when all maintainers do so the package becomes orphaned. An orphaned package can then be adopted by any user.

At any time there's a large number of orphaned packages in the AUR, and the attacker(s) targeted those.
jorams
·29天前·讨论
> Guess I'll be switching to a new OS this weekend across multiple machines.

This is a bit of an odd response. Arch very explicitly separates the AUR from everything else and doesn't make it easy to work with, because its security model has always been fundamentally broken and requires you to do your own vetting. It exists to facilitate sharing of package recipes between untrusted users. You should treat it like a pastebin.
jorams
·上个月·讨论
It's a bit buried, but it does:

> In contrast to conventional radial flux motors, the electromagnetic flux in an axial flux motor runs parallel to the axis of rotation. The key components are arranged in a disc‑shaped layout: two rotors sandwich the stator from the left and right. This design enables an especially compact motor architecture, high power and torque density, and new freedoms in drivetrain packaging. In the new Mercedes‑AMG GT 4‑Door Coupe, the motor at the front axle is just under nine centimetres wide; the two motors at the rear axle each measure around eight centimetres in width. The three axial flux motors are integrated per axle into so‑called High Performance Electric Drive Units (HP.EDU), where they are combined with a compact input planetary gearbox in a single housing.
jorams
·上个月·讨论
My favorite example of bad Netflix subtitles is Suits (2011). The music during the intro is the same throughout the series, from the song Ima Robot - Greenback Boogie. The English subtitles for the lyrics are wrong every single season, and they're wrong in a different way for every one of those seasons. The lyrics are not at all hard to understand--they've pretty specifically cut together some of the lyrics that are easiest to understand--so it's extremely obvious, but somehow nobody at any point figured out that they could just do it right once and not look totally incompetent.

After the initial Netflix release of the first 3.5 seasons (might have been 4.5, it was a baffling cutoff) they somehow decided not to add the rest, so I pirated it. Every single pirated intro came with perfectly correct lyrics.
jorams
·上个月·讨论
No. This is the equivalent of putting "echo 'rm -rf ~'" or similar into a test suite. The output of a test suite is not intended to be piped straight into your shell, and if you decide to do so anyway the consequences are entirely on you.

If your agent executes any random instruction in a piece of text, it behaves like a shell, and you should either fix that or bury it deep in a sandbox.
jorams
·2个月前·讨论
Something you'll see in real codebases is code that cares whether an input value is "empty", but it doesn't matter if it's null or an empty string. It's very easy to go for this:

    if ($input) {}
It'll work through every test case you try, and then someone enters a 0 into the field and it's also unexpectedly considered empty.
jorams
·2个月前·讨论
You didn't mention private repos in your comment, but I guess that was implied in the $7 thing.

That said: SourceHut has private repos and access control.
jorams
·2个月前·讨论
This is at least partially disingenuous. Zig is working on, and has already shipped for some situations, a faster compiler. Bun runs on an outdated version of Zig that doesn't include it.
jorams
·2个月前·讨论
Reproducible builds exist to reduce the need for trust, while commercial vendors are in the business of selling trust.