Duplicating this wrapper in every driver would just make painful the usage of DMA for Rust drivers for not benefit.
19 karma · joined August 19, 2016
Duplicating this wrapper in every driver would just make painful the usage of DMA for Rust drivers for not benefit.
The safety in a programming language is mostly protecting the programmer against itself. The probability for a programmer to write this kind of code by mistake is close to zero, as opposed to UB in C or C++ that are pretty common. To make a vulnerable program with this kind of issue, the programmer would have to make them on purpose, what is unlikely unless for this kind of joke repository.
But nowadays WASM is much more suitable for the job. JavaScript was designed as a scripting language, not a low level intermediary language.
But a memory allocation failure is clearly not a good reason.
Of course you have to care about the problem domain first, but it's absolutely wrong that nobody commit their budget to fix C++ safety problems. There is a massive amount of static and dynamic tooling to mitigate its problems and a substantial part of the C++ evolution these last years was to improve safety. Rust was able to go further than C++ in this area since it is not yet constrained by decades of history.
- Jetbrains IDE with the Rust plugin (maintained by Jetbrains itself). The free IntelliJ IDE Community works really well. CLion or IntelliJ Ultimate are necessary for debugging support
- The Rust-analyser tool. A language server that can be used, in theory, on any IDE supporting the LSP protocol. Code is the most used IDE with this tool since it is the reference IDE of the project.
Would it be fair to accept an optimization on a language and refuse it on another because it is not idiomatic ?
Everything was perfecty smooth, but according to pcwalton the bottleneck was CSS handling.