Better HN
topnewbestaskshowjobs
Log inSign up

AlotOfReading

15,561 karma · joined Jun 8, 2017 (9y ago) · 4,715 submissions

Submissions

comment 5mo ago · link · parent

   It's fairly trivial, but still significantly harder than computing a single CRC.
You can do it with a single GF(2) multiplication, ignoring the complications of reflection and such. A normal CRC is just the special case of making the remainder 0 (again ignoring complications). You can also brute force it, but that's a bit slow for 64 bit CRCs and well, nanoseconds vs minutes in your example.

    Noise is not the only thing they should be protecting against.
Sorry, can you point to the comment where I tried to defend AMD's use of CRCs in this particular application? I think I've made it pretty clear that I don't think they're appropriate for cryptographic applications. I was just talking about the math.

Different tools for different purposes. You probably don't want to be using your mac scheme for noise resistance, because then you're paying a cost in either buffer space, PDU size, or retransmits, and your error correction capabilities are nil. CRCs allow some error correction (albeit rarely used and inefficient for multibit errors vs FECs), good bit error detection properties, and are cheap. It's common to use both at different layers of a protocol stack.

comment 5mo ago · link · parent

Affine as in substructural linear types. They correspond to linear logic [0], and affine logic is named such because the way it's defined corresponds to affine functions. You don't literally need to scale your pointers though.

[0] https://en.wikipedia.org/wiki/Linear_logic

comment 5mo ago · link · parent

The entire point of my post was that it's trivial, exactly as difficult as computing the CRC in the first place. Not sure why that was controversial.

Nevertheless, they're still useful protection against noise, and you usually want to detect it right as you're pulling protocol messages off the wire. Placing checksums in the last field of each message (as Ethernet does) simplifies the hardware implementation.

comment 5mo ago · link · parent

Computing a CRC is equivalent to attacking it. The checksum is the value that produces a certain fixed constant when appended to the data. This is why you'll often see checksums as the last field in a message. It allows for hardware to verify the entire message by checking if the CRC of the bytes equals that fixed constant without having to parse it.

comment 6mo ago · link · parent

You have to put on some very narrow lenses to argue that "most" serious software is written for the JVM. Operating systems, compilers, browsers, databases, planes, cars, the transaction processing for at least one major payment processor, major cloud services, etc predominantly use other languages.

I don't think there's any single language that most serious software is written in.

comment 6mo ago · link · parent

The stones don't get tired, but the humans running the visitor center and keeping the tourists in line do. Operating a highly visited historical site like Stonehenge takes significantly more work than people realize.

comment 6mo ago · link · parent

It's a bit annoying getting frontier models to even work on IOCCC code because of "safety", but even if you get around that LLMs just aren't very good at it. Obfuscating code involves a level of creativity and deviousness that LLMs struggle to meet.

comment 6mo ago · link · parent

Keep in mind that I primarily consume ebooks, but I generally find books cheaper unless we're counting piracy. You can get physical books from used bookstores for remarkably cheap and ebook/new book prices are kept as close as publishers can get away with.

That said, there are clear advantages to books. You can't page through an ebook nearly as well as a physical reference book. That's admittedly somewhat balanced by the existence of search. Physical books can also pay much more attention to the aesthetics of print and layout. Eink readers and epub/mobi/az3 formats are atrocious for this, whereas iPads with PDFs are somewhat better. There's still works that can't be captured in those formats though, like pop-up books, raised/embossed/textured printing (which I've seen used in poetry), or illuminated works. And books don't need power.

comment 6mo ago · link · parent

I'm not sure that's a great takeaway. Lots of problems are undecidable and have reasonably effective solutions in practice (e.g. finding bugs -> testing, static analysis, etc). Mind you, I don't expect we'll find anything like that for transformers, but there's a surprisingly large gap between what's possible in general and what's possible in the cases we care about.

comment 6mo ago · link · parent

No, this is in the same ballpark as ideas like big-O notation. The paper is saying that transformers can recognize a language with exponentially fewer symbols than other kinds of systems, i.e. they're more succinct.

It's exactly as related to real models as computer science is to real computers.

comment 6mo ago · link · parent

You might not be aware, but Baumgartner has a generally negative reputation in the conservator community. From what I understand as a non-expert, he's overly aggressive with his swabbing/varnishing and he's taken power tools directly to an artwork numerous times. The former isn't obvious to me either.

comment 6mo ago · link · parent

If it's not clear, my post was about school curricula.

comment 6mo ago · link · parent

If you spend any amount of time listening to people complain about what is or isn't taught, you'll quickly discover that most things they hate aren't taught and the things they wish were taught are, at least in some form. Much of the rest is based on either outdated or misunderstood knowledge/beliefs.

comment 6mo ago · link · parent

They very much understood their situation. That was the means of control. Their incomes were directly defined by agricultural productivity, and their expenses largely controlled by the shogun. Daimyo couldn't meaningfully communicate with each other, easily intermarry, or form alliances. They were forced to maintain huge retinues and lavish estates, and the shogun could bankrupt them or kill their family at any point.

The shogunate needed to do some balancing along the way (including the introduction of metallic currency), but the government had enough levers to keep the samurai in line, right up until they couldn't.

comment 6mo ago · link · parent

These are remarkably close to the raw cost of materials and tooling. The Sagrada Familia model is a 12k piece set for $800, ~$0.07/piece. Phantasy has an unlicensed Opera set (85019) [0] with 3.5k pieces for $190, $0.05/piece. That's straight up cheap. They're not limiting production to control prices. High quality injection molding (in multiple colors no less!) is hard. 2 cents over 12k pieces does add up to a nice bit of change for Lego though.

[0] https://pantasy.com/products/pantasy-the-opera-85019

comment 6mo ago · link · parent

Pantasy, Cobi, Funwhole, megabloks, etc. There's tons of alt bricks at nearly any reasonable price point. But you're still not going to find these sorts of multi-thousand piece sets for <$100 because it takes at least a few cents to produce a dimensionally accurate, quality controlled bit of plastic.

comment 6mo ago · link · parent

Because the other responses are incredulously focused at why someone would ask such a dumb question, the answer is that oceans affect everyone's lives.

Ocean currents and temperatures are major factors in storms, economic activity like trade, and ecosystems across the country. Monitoring them costs virtually nothing, and the benefits are huge.

comment 6mo ago · link · parent

LLVM does speculative devirtualization as well these days, though it's not as aggressive as Hotspot. High-performance native code tries to avoid deep dynamic hierarchies anyway, so it's mitigated by cultural practices.

GCs are definitely a strong point for Java, but most high-performance code can be rewritten to avoid pummeling memory management. This used to be common for Java in financial applications, not sure if it still is.

C++ has evolved its own compacting GCs like oilpan [0] for applications where high performance is inherently tied to allocation. Oilpan runs into pointer issues and isn't remotely comparable to G1GC or ZGC, but I think the speed of V8 speaks for itself. Rust allows you to drop in non free-list based allocators and GCs (e.g. Bumpalo), but they're relatively immature.

    That may be because the information on that page seems to be up to date to 2011-2. Java is now on version 26, BTW.
The last time I dove into JVM internals was around the same time. I figured that someone who's worked with it more recently might have better examples than what's easily searchable.

[0] https://chromium.googlesource.com/v8/v8/+/main/include/cppgc...

comment 6mo ago · link · parent

    I don't know what it is that Rust demonstrates given that few large scale projects have chosen it, but I've seen nothing to indicate that it doesn't suffer from the same performance issues as C++ compared to Java. 
The point of bringing up Rust is that it also gives the compiler much more information to optimize on than C++, but actual performance is comparable or slightly worse in most benchmarks because the quality of C++ codegen is so high. Some of those Rust advantages are exactly the same things that have been touted as major advantages for Java over C++, like escape analysis and lifetimes.

    Of course, in principle it's always possible to match and perhaps even exceed Java's performance in a low-level language, but in practice it becomes ever more difficult as the program grows (and the cost remains with maintenance forever).
Sure, which is why I asked for real examples of whatever you consider a "large scale" program. I wasn't able to find anything via search before I replied, and the wiki page on Java performance [0] is repeating what I understood.

[0] https://en.wikipedia.org/wiki/Java_performance

comment 6mo ago · link · parent

    In general, the tradeoff is between optimisations that help large programs vs optimisations that help small programs.
Do you have concrete examples of large scale Java programs that are significantly more performant than comparable programs in native languages like C++? My understanding was that this dynamic hadn't fundamentally changed much since the 2010s, when Java was able to occasionally edge out a win in 1-2 benchmarks and would lose handily in others. My experience is that large scale Java programs remain a bit of a bear even after significant optimization effort (e.g. Bazel).

There are of course plenty of optimizations the JVM does that aren't possible AOT, but that that doesn't imply an automatic win at large scales, as Rust demonstrates.

comment 6mo ago · link · parent

Another example is history. It's theoretically possible to become an academic historian through private study and there are certainly no legal barriers to it, yet amateurs almost never make the transition except through higher education.

comment 6mo ago · link · parent

Now if only GM's executives could stop snatching defeat from the jaws of victory.

comment 6mo ago · link · parent

A former employer once had Christmas layoffs. Their way to help was preemptively giving these scammers a list of everyone's contact info as "relocation assistance".

comment 6mo ago · link · parent

That's what the Arm SystemReady certification is for. Blame manufacturers for ignoring it. Let's be honest, fixing device trees is usually lot easier than patching an ACPI table. Though, one manufacturer I know ships a DT with nearly 500k lines of if-def'd nodes.

comment 6mo ago · link · parent

There's a lot of companies trying to support datacenter systems like GH and Rubin that don't have dev hardware remotely resembling it. M-series isn't a good option, speaking from the personal experience of currently using one for this exact purpose.

comment 6mo ago · link · parent

What an awful university press release. "Randomness amplification" is just the old concept of a randomness extractor with quantum tacked on. It's a neat demo at best.

comment 6mo ago · link · parent

Considering cancelling mine because they've introduced ads to it in the form of undismissable "purchase the product being discussed here" affiliate popups.

comment 6mo ago · link · parent

Compilers are orders of magnitude more reliable than LLMs. There's a reason the saying is "it's not a compiler error".

I have a standing challenge to my co-workers that valid compiler errors will be rewarded like a birthday party, with the baked goods, alcohol, or sweets of their choice. It's only been redeemed once, and I've found less than a dozen unreported compiler bugs myself.

comment 6mo ago · link · parent

I don't know if you work in embedded, but I do and I've always understood zero alloc as "no dynamic allocation".

Most companies buying anything from WolfSSL will already be using a script or toolchain flags to validate stack usage. And if they don't, even embedded toolchains generally support canaries these days.

1
141516
158