3 ms·
I'd be interested to read the rustc bug report on that compiler hang you found. Also, why do you use byte strings and not regular UTF-8 strings?
by EE84M3i 5y ago
I'd be interested to read the rustc bug report on that compiler hang you found.
Also, why do you use byte strings and not regular UTF-8 strings?
- mleonhard 5y agoI never filed the rustc bug report. I suspect that the problem is actually in LLVM. Byte strings are much easier to use than UTF-8. Also, I only needed to execute regular expressions against ASCII HTTP headers. I think `safe-regex` will get String support eventually, or somebody will write another safe regular expression library. Safe Rust has a bright future. Eventually, modern OSes will simply refuse to run software built from unsafe code, unless it has attached correctness proofs. This will mostly solve the IT security dumpster fire. To get us there, we need to write more useful things in safe Rust or other memory-safe languages.
- EE84M3i 5y agoIf you can still reproduce the hang, I suspect they would be interested in a report, even if the problem is rooted in LLVM.