779 karma · joined Sep 15, 2018 (8y ago) · 197 submissions
comment 6mo ago · link · parent
It's interesting that the number of crossings is independent of whether L/W is less than or greater than 1, but the probability of crossings is equal to 2pi * L/W only in the short case. This makes sense since in the short case the noodle can at most cross a single line.
comment 8mo ago · link · parent
comment 9mo ago · link · parent
comment 9mo ago · link · parent
> The formal argument for this is known as Girard's Paradox. It is related to a better-known paradox known as Russell's Paradox, which was used to show that early versions of set theory were inconsistent. In these set theories, a set can be defined by a property.
[0]: https://lean-lang.org/functional_programming_in_lean/Functor...
16.
Caitlin: A Musical Program Auralisation Tool(icad.org ↗)
1 points · by enricozb · 10mo ago · 3 comments
comment 10mo ago · link · parent
I also think it's important to have really solid understandings (which can take a few decades I imagine) to understand the bounds of what Rust is good at. For example, I personally think it's unclear how good Rust can be for GUI applications.
comment 11mo ago · link · parent
- I wanted to edit the visibility (pub -> pub(crate)) of most but not all functions in a class.
- I changed a macro to not require commas in a list of items it took in as input.
- I changed a function to deal with utf-8 codepoints instead of bytes, so I wanted to rename all uses of "byte" to "char".
Basically, localized find and replace, with a bit of flexibility.
comment 1y ago · link · parent
It's a bit ugly due to cbindgen not supporting const-generic expressions and macro-expansion being nightly-only. It seems like this will be a generally useful mechanism to be able to use values which are not traditionally FFI-safe across FFI boundaries.
[0]: https://github.com/RediSearch/RediSearch/blob/cfd364fa2a47eb...
comment 1y ago · link · parent
Loved this stuff so much. I miss my summers off from school, where I would never think of a day gone as time "spent".
comment 1y ago · link · parent
[0]: https://github.com/frostyplanet/crossfire-rs/wiki#kanal [1]: https://news.ycombinator.com/item?id=45774086
comment 1y ago · link · parent
[0]: https://ezb.io/thoughts/interaction_nets/lambda_calculus/202...
comment 1y ago · link · parent
From a pure mathematician's standpoint, the content of a proof is kind of (waving big hands here) irrelevant. It's more that the existence of a proof implies the theorem is true, and thus can be used to prove other theorems. Because of this "proof-irrelevance", a great foil to an LLM's propensity to hallucinate is something like Lean. In Lean, and in theorem provers oriented towards classical mathematics, the statement of the theorem being proved is what matters most. And due to Curry-Howard, the statement is equivalent to the signature/declaration of the function, which is what the human ought to verify, while Lean will verify the body.
[0]: https://en.wikipedia.org/wiki/Curry%E2%80%93Howard_correspon....