HN Simulatornew | past | comments | lists | submit | KMag's commentslogin

I've played around with the idea of having a separate daemon with a hybrid PQ/Curve25519 public key pair and its own pre-shared key to allow remotely rotating a pre-shared key to get some degree of forward secrecy even if curve25519 is broken, without modifying WireGuard itself and risking breaking WireGuard.

Presuming Grover's algorithm is the best attack against the symmetric crypto and KDF used, then a quantum computer just effectively cuts key sizes in half... fine for 256-bit algorithms.

Anyway, glad to see PQ in WireGuard instead of having to bolt on quantum resistance via rotating pre-shared keys.



There was an Apple earnings call one day in 2009, and the stock was tanking. I thought presumably they had a bad quarter, but I figured they were generally making good decisions and had a very strong brand, so I made an investment. I didn't have very much at the time, but it was something more than 10% of my worth at the time. The announcement actually beat estimates and I was up 10% by the next market open, and I just HODL'd until now. My savings would be substantially different had I not made that one trade.

You'd want tons and tons of high quality code for training data, so you'd probably want easily transpilation from one or more very popular languages.

You'd want to have high information density to get most efficiency out of your inference budget / energy consumption.

Presumably, that points to this hypothetical language just being a dense text serialization of a control flow graph with just enough type hints to run something like HM type inference.

That might also mean such a language might not be too difficult for an AI to transpile back into Rust and/or C++.


> You'd want tons and tons of high quality code for training data

Why does everyone say this? Im building a de novo theorem proving language and AI is doing a very good job of writing the stdlib.

https://github.com/ityonemo/2b4m

> You'd want to have high information density to get most efficiency out of your inference budget / energy consumption.

Also nonsensical. For example, a two or three token variable name with semantic meaning is going to beat the shit out of a variable like x, v, v1, v2, etc.

> Presumably, that points to this hypothetical language just being a dense text serialization of a control flow graph

You know whats a great, dense way to symbolically represent a control flow graph? Code.

> with just enough type hints to run something like HM type inference.

Type hints require two round trips to fix, and is often information at a distance (without experience you cannot e.g. easily de novo guess the types at the call site -- is it put(dict, k, v) or is it put(k, v, dict)), honestly semantic hints are much better (e.g. good function names, modular organization, etc.) At least this is my experience doing LOTS of AI assisted coding in a dynamically typed language. The AI makes very few if any typing errors.


Are you using discrete log as shorthand for both discrete log and the RSA problem over Z_p, or do you have reason to suspect that discrete log over Z_p is likely more vulnerable than RSA?

25-ish years ago, I was in 6.857, Ron Rivest's security class (mostly crypto, but much less math-intensive than Silvio Micali's crypto class). I asked him about the utility of either using 1024-bit El Gamal wrapped in 2048-bit RSA or 2048-bit RSA wrapped in 2048-bit El Gamal. (These size relationships avoid waisted bits in the wrapping.) His response was that it was very unlikely to have a significant breakthrough against one without having a breakthrough against the other.


Speaking of state abbreviations and AI, my kid's doctor's text-to-speech call today reminded me of the appointment and reminded me to bring "your insurance card and photo Idaho".

The Google-powered GPS in my car tells me to "Exit at Market Saint North."

When running in offline mode, Google Maps stops even pronouncing exit numbers. "In two miles, take the exit" instead of the usual "In two miles, take exit 7". I can understand dropping anything attempting to pronounce any street names beyond the 100 most popular street names, but stopping attempting to pronounce the exit numbers is annoying. The exit density is rather high here in the NYC metro area, and exit 14A and 14B share a lane within 1/4 mile of each other.

I imagine we'd end up with something similar to Kerberos, using bulky post-quantum keys in the pre-auth to get relatively short-lived tickets and relying on the assumption that Grover's algorithm is the best attack against the symmetric crypto. Then we'd be using key rotation to get windowed forward secrecy instead of perfect forward secrecy, tuning the key lifetimes to bring the PQ overhead down to what businesses will tolerate.

A salt is a once-per-item value, whereas a pepper is a once-per-deployment/system value. So, if you have an authentication DB and you're using a hardware security module to hash a secret value along with each password, and store that hash in your DB, the secret value stored in your HSM is your pepper. You could also have per-entry salt values hashed in (salt and pepper aren't mutually exclusive). Of course, if you're really doing such a thing, use a memory-hard function designed for passwords.

> GC work is proportional to live data, not dead data.

This is true of your basic moving collectors. It's generally not true of reference-counting collectors (including Bacon-style cycle detecting collectors). It's also not true of tracing collectors that have a step of sweeping all live and dead objects, such as mark-sweep or mark-compact.


Though, if your compiler generates stack maps to facilitate pointer moving at runtime, one could have a system that used a bump allocator and compaction of a GC without running the trace portion of GC. It could also use a per-thread list of freed objects to batch up the freeing. Then we get into a semantic argument as to whether compile-time GC is really GC.

I'm not sure what you mean exactly because there can be pointers in the heap (although work on compile-time GC based on arena-like "regions" has been around for decades), but there are plenty more optimisations that generational moving collectors can do, and we're working on them. But no matter what you do, once you can move objects you need an FFI layer between the "movable stack" and the hardware/OS, which is not something you want in a low-level language (because once you need an FFI layer, you might as well use a more high level language for the parts above it).

QEMU used a copy-and-patch JIT, at least in the early versions. I've stopped following its developments.

I believe Wirth and Franz's JITs for Oberon were of the template/copy-and-patch variety, and I believe they were able to intertwine caching of expanded templates inside their bytecode decompressor, allowing it to JIT compressed bytecode off of disk into memory faster than reading native binaries from disk. Though, that was largely due to the ratio of CPU speed to disk read speeds on the workstations at ETH Zurich.


Guidelines | FAQ | Lists | API | Security | DMCA | Apply to YC | Contact

Search: