Better HN
topnewbestaskshowjobs
Log inSign up

seeknotfind

858 karma · joined Mar 20, 2022 (4y ago) · 455 submissions

Submissions

comment 6h ago · link · parent

No, they don't have this issue. Space and time complexity apply to functional programming exactly the same as normal programming.

comment 9h ago · link · parent

Due to the Howard-Curry Correspondence, proof and algorithm structures are isomorphic, so you can think of them as the same thing as far as mathematics is concerned.

comment 4d ago · link · parent

There may be other benefits to crypto, but I don't think this is one. It's about how you build trust- there will be better ways for that for a while.

comment 1w ago · link · parent

I said "Please also double check if there's anything else?"

comment 1w ago · link · parent

The famous myth "everything that can be invented has been invented". We've seen but a flit of light in the infinite darkness. Upwards and onwards mi amigo.

The world's most challenge problems are the ones that haven't been solved, not the limit of what we would like to understand. Though it's hard to feel that outside of the bay where so many problems feel so far from the computers.

comment 1w ago · link · parent

Yeah, yesterday, I was trying to research chemicals that could be causing a severe allergic reaction in someone I know. Astra found a French research paper that blinded air fresheners, labeled them by number, and gave readings of chemicals found in the air after a specific amount of time. I was going to email the authors in order to try to find the underlying chemicals, but then I asked Astra if it could find them. It ended up sorting popular air fresheners by their public ingredients and matching these to the ingredients listed in the paper. I would have never taken the time to figure that out, especially because I don't speak French.

comment 3w ago · link · parent

Yeah and also being okay with throwing away that other stuff if it doesn't work out.

comment 1mo ago · link · parent

Ubsan is a misnomer here from a technical perspective. However overflow unsigned or not is unexpected in many cases. As such, sanitizing it (and many other hard to reason about behaviors) by default is great practice. For an example, when unsigned values are used to count, overflows from summing over 2**N often result in incorrect behavior. This may be incrementing or even counting beans.

One particularly famous example of a bug: https://projectzero.google/2023/01/exploiting-null-dereferen...

We usually get away with ignoring unsigned rollover because most application counts don't exceed 2**32 or 2**64. However, many can exceed these values, and in those cases, explicitly handling this case in critical systems is often better than ignoring potentially erroneous behavior.

Another concern, some people might have about this is the performance implications or what to do when you want to allow overflow. In that case you can locally disable overflow protections.

comment 1mo ago · link · parent

Yes, this is the best answer. This also works with `-fsanitize=unsigned-integer-overflow`.

comment 1mo ago · link · parent

Wow, that's pretty bad, but imagine if 50% of software allowed this to happen at any time, and it was discovered on December 1st, 2026. What would happen?

comment 2mo ago · link · parent

I would worry more about 5D chess or 6D and even 7D chess. This article talks about teaching models to be good and methods that could train goodness, but it sounds like there are some unsolved problems to graduate to 8D+ chess.

comment 3mo ago · link · parent

Is this supposed to be scary or amazing?

comment 3mo ago · link · parent

Wow. This is incredible. Turning the entire field of mathematics into a formalized and connected system. An index of mathematical understanding. All fields will undergo this change!!!

My man Terrance Tao, I hope to contribute to your symphony of progress.

If the interrelationships of this are also exposed and searchable, if it can build many bridges inside itself, then this is truly the cipher key to all that can be known.

comment 3mo ago · link · parent

100%. Context is big for AI, but it's nothing compared to everything a human can learn. If you efficiently represent everything in context, it may be many papers, but if AI is actively working through proofs, it will quickly fill up. They're no denying AI is making strides, but pinning it to memory is an oversimplification.

comment 4mo ago · link · parent

We are?

comment 5mo ago · link · parent

If you're calling this across translation units, the calling convention will come with a performance penalty, but boy have we come full circle since pre-ANSI C required you to pass args as a struct. Much love - wish the language required struct and arg list to be the same thing. You can send a list of em and it'll work with algebraic data types for batching calls. The dream. CPU doesn't play nice though since structs aren't register shaped, but maybe they could be in a future calling convention.

comment 6mo ago · link · parent

You can click on that to see more detail :)

comment 7mo ago · link · parent

"I'm sorry". What do HN readers think about how this inclusion changes the meaning of the rest of the email?

comment 8mo ago · link · parent

Did you ever try multiple copies?

comment 9mo ago · link · parent

They're are plenty of mods that inject AI into games, like Skyrim. Though in order for a game to have LLMs and scale to a shipping audience without a subscription, you would want to run them locally.

The real technical blocker is performance and voice synthesis. If voice synthesis was at parity with human actors, it would be worth it to battle the performance aspect for major studios. In text based games especially, taking time to generate enough text is just too slow to be convenient

comment 10mo ago · link · parent

Very cool. Can't wait to see what's next with this project! Congrats on the huge scale of tests/examples as well.

comment 10mo ago · link · parent

Thanks, yeah, I did see some of the pure C++ types getting converted. Though it makes a lot of sense why you had to go with shared_ptr for generic inductive types.

Have you considered combinatorial testing? Test code generation for each sample program, for each set of mappings, and ensure they all have the same behavior. If you look at the relative size or performance, it could allow you to automatically discover this issue. Also, allocation counting.

Hey also sucks you are not in SF. I'm looking for people into formalization in the area, but I haven't found any yet

comment 10mo ago · link · parent

From tests/basics/levenshtein/levenshtein.cpp:

    struct Ascii {
      std::shared_ptr<Bool0::bool0> _a0;
      std::shared_ptr<Bool0::bool0> _a1;
      std::shared_ptr<Bool0::bool0> _a2;
      std::shared_ptr<Bool0::bool0> _a3;
      std::shared_ptr<Bool0::bool0> _a4;
      std::shared_ptr<Bool0::bool0> _a5;
      std::shared_ptr<Bool0::bool0> _a6;
      std::shared_ptr<Bool0::bool0> _a7;
    };
This is ... okay, if you like formal systems, but I wouldn't call it performant. Depending on what you are doing, this might be performant. It might be performant compared to other formally verified alternatives. It's certainly a lot nicer than trying to verify something already written in C++, which is just messy.

From theories/Mapping/NatIntStd.v:

    - Since [int] is bounded while [nat] is (theoretically) infinite,
    you have to make sure by yourself that your program will not
    manipulate numbers greater than [max_int]. Otherwise you should
    consider the translation of [nat] into [big_int].
One of the things formal verification people complain about is that ARM doesn't have a standard memory model, or CPU cache coherence is hard to model. I don't think that's what this project is about. This project is having basically provable code. They also say this in their wiki:

https://github.com/bloomberg/crane/wiki/Design-Principles#4-...

> Crane deliberately does not start from a fully verified compiler pipeline in the style of CompCert.

What this means is that you can formalize things, and you can have assurances, but then sometimes things may still break in weird ways if you do weird things? Well, that happens no matter what you do. This is a noble effort bridging two worlds. It's cool. It's refreshing to see a "simpler" approach. Get some of the benefits of formal verification without all the hassle.

comment 10mo ago · link · parent

> Composition is like applying a permutation array to another

Composing injective functions is like applying a permutation array to another.

comment 10mo ago · link · parent

I bought several of these and give them as gifts. Unix Pipe, Expansion Pack, and PUNK0 are my favorites.

comment 11mo ago · link · parent

Yeah, from the title, it sounds like perhaps the entire operation is differentiable and therefore trainable as a whole model and that such training is done. However, upon close inspection, I can't find any evidence that more is done than calling the model repeatedly.

comment 12mo ago · link · parent

Yeah, it sounds platonic the way it's written, but it seems more like a hyped model compression technique.

comment 12mo ago · link · parent

I suspect that once quantum computers actually scale up so that you can play with them, we'll find all sorts of interesting things to do with them.

However, even now, you can imagine that if quantum computers were small enough, it would be worth it to have it just for the asymptotically fast prime generation with Shor's algorithm. I don't think that's that far fetched. Of course, people wouldn't necessarily need to know they have a quantum computer, but they don't necessarily know the workings of their computers today anyway.

comment 12mo ago · link · parent

The last digit of pi doesn't exist since it's irrational. Chaitan's constant, later busy beaver numbers, or any number of functions may be uncomputable, but since they are uncomputable, I'd be assuming that their realizations don't exist. Sure, we can talk about the concept, and they have a meaning in the formal system, but that's precisely what I'm saying: they don't exist in this world. They only exist as an idea.

Say for instance that you could arrange quarks in some way, and out pops, from the fabric of the universe, a way to find the next busy beaver numbers. Well, we'd be really feeling sorry then, not least because "computable" would turn out to be a misnomer in the formalism, and we'd have to call this clever party trick "mega"-computable. We'd have discovered something that exists beyond turing machines, we'd have discovered, say, a "Turing Oracle". Then, we'd be able to "mega"-compute these constants. Another reason we'd really feel sorry is because it would break all our crypto.

However, that's different than the "idea of Chaitan's constant" existing. That is, the idea exists, but we can't compute the actual constant itself, we only have a metaphor for it.

12345
16