Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
UtherII
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
1.
▲
by
UtherII
2y ago
That's exactly the point. The patch in question is not to be used in any part of the kernel. It is a wrapper around the C API. It has no impact on current code and it will only be used by Rust drivers using DMA, the people of Rust for
2.
▲
by
UtherII
3y ago
The concept of safety is pretty different in a kernel and in a programming language. The kernel can be attacked directly with malicious calls, while it's the program created by the rust compiler that can be attacked (unless you envisio
3.
▲
by
UtherII
5y ago
Have you really used Rust on big codebases? One of the big advantage of Rust is especially that it fails far earlier than C++. Borrow checker error are local error that prevent bad behavior to propagate and cause problem on unexpected part.
4.
▲
by
UtherII
5y ago
The java slow build time is usually a dependency problem too. On similar complexity, Java is usually as fast or even faster than Rust.
5.
▲
by
UtherII
5y ago
It can used as an intermediate language, and since it was the only way to run code on the browser without plugins before WASM, it happened a lot. But nowadays WASM is much more suitable for the job. JavaScript was designed as a scripting la
6.
▲
by
UtherII
5y ago
You can even go back earlier : MessageFormat is available in Java since 1997.
7.
▲
by
UtherII
5y ago
I not sure he mean never panic at runtime. I think there are good reason to panic at runtime if you care about safety a buffer overflow is a good reason for instance. But a memory allocation failure is clearly not a good reason.
8.
▲
by
UtherII
5y ago
You have to blame both the carpenter and the tools. Since there is no such a thing as a perfect carpenter, mistake will happen, that why a tool that can prevent a whole category of mistakes is a good thing. It's no mistake good carpent
9.
▲
by
UtherII
6y ago
The IDE support use to be very poor but nowadays there are two really nice contenders : - Jetbrains IDE with the Rust plugin (maintained by Jetbrains itself). The free IntelliJ IDE Community works really well. CLion or IntelliJ Ultimate ar
10.
▲
by
UtherII
7y ago
The problem would be to get a definition of idiomatic code. Would it be fair to accept an optimization on a language and refuse it on another because it is not idiomatic ?
11.
▲
by
UtherII
9y ago
I'm not so sure. I remember a presentation of Webrender with nice demos : https://www.youtube.com/watch?v=erfnCaeLxSI&spfreload=10 Everything was perfecty smooth, but according to pcwalton the bottleneck was CSS ha
12.
▲
by
UtherII
9y ago
A new programming language is not required, it's just a bonus to help developers handling safety and concurrency.
13.
▲
by
UtherII
10y ago
The most obvious case is bound checking. If you have a code with direct array indexing you have to use unsafe code or loose a little bit of performance.
14.
▲
by
UtherII
10y ago
That's why on Linux, by default, Rust link everything statically except the libc. But you sill can make a fully static executable by using the "musl" target.
15.
▲
by
UtherII
10y ago
Yes, the crash can come from every line of code, but the origin of the bug is in the unsafe code. That's why unsafe code has to be cleanly inspected to be sure it has a safe interface, and by reducing the dangerous area to only few li
16.
▲
by
UtherII
10y ago
C++ has no advantage over Rust in this regard : C++ and Rust does not have stable ABI. But both can use the C ABI when a stable ABI is needed.