Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
pornel
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
29 ms
·
541.
▲
by
pornel
2y ago
It's nice that this worked without need for communication between cars. This should be a built-in feature of adaptive cruise control in regular cars.
542.
▲
by
pornel
2y ago
On-site battery storage is the standard for DC fast charging installations. It's already cheaper.
543.
▲
by
pornel
2y ago
It's incredible that paying fealty to the president is talked about so casually, and framed as just a normal and necessary thing to do. This is something that should be expected in an absolute monarchy, not a democracy.
544.
▲
by
pornel
2y ago
Use of a dense matrix is an artificial constraint you've imposed yourself, but that only disproves feasibility of your proposed solution, not the entire problem in general. A similar problem, n-body simulation*, has n² gravitational in
545.
▲
by
pornel
2y ago
On Linux you get WebKitGTK, which is more of a gamble than browser versions of Chromium or Gecko.
546.
▲
by
pornel
2y ago
Tauri is an application framework. If you want to use Rust for your application, there's going to be one more option for rendering its UI. This does make it closer to Electron. We'll see whether Servo can be made leaner or faster
547.
▲
by
pornel
2y ago
> Not if you remove auth from the kernel The factoctum looks very much like a microservice or a database with stored procedures handling access control, but of course plan9 makes it a file system instead of some RPC. It's a sensib
548.
▲
by
pornel
2y ago
The kernel knows about system-local users, but not the remote ones. Servers may need to access data of multiple users at once, so it's not as simple as some setuid+chroot CGI for every cookie received. Kernels like Linux are not design
549.
▲
by
pornel
2y ago
As mentioned in a previous post in these series, this is implemented in the LLVM MCA tool: https://llvm.org/docs/CommandGuide/llvm-mca.html I particularly like the wrapper for it https://lib.rs/car
550.
▲
by
pornel
2y ago
Cargo has been co-created by Yehuda Katz, who worked on Ruby's Bundler before. Cargo has been designed after npm, so it definitely took lessons from it, but it doesn't make sense to just broadly attribute this to Rust being JavaSc
551.
▲
by
pornel
2y ago
The rayon library uses work stealing for this. Its parallel iterators offer some control of splitting strategies and granularity, so you can tune the trade-off between full utilization and cost of moving things between threads. Additionally
552.
▲
by
pornel
2y ago
In retrospect, it makes sense that fastest general-purpose inflate implementations can be beaten by fine-tuning for the kind of specific non-text data found in PNG images. The Rust PNG crate took the same approach: https://lib.
553.
▲
by
pornel
2y ago
They just need to rewrite the rest of Chrome to use the native Rust<>Rust interface. (in reality Google is investing a lot of effort into automating the FFI layer to make it safer and less tedious)
554.
▲
by
pornel
2y ago
That's great. Having a usable baseline is important to ship it in more than a handful of handpicked functions. But the whole approach with fixed-length instructions seems terrible to me. It takes Intel a decade to add another batch of
555.
▲
by
pornel
2y ago
The car isn't the problem, but it's tied to an incredibly overvalued stock, which in turn made it possible for Musk to buy massive influence and political power, and wield it irresponsible self-serving ways.
556.
▲
by
pornel
2y ago
Quite the opposite. Pebble is great at sleep tracking. They manage to do a better job with Pebble's limited sensors than Apple can with all of their hardware. I have both, I use sleep tracking a lot, and I've compared them.
557.
▲
by
pornel
2y ago
Pebble is still way better at sleep (and nap) tracking than Apple Watch. I have a tendency to stay up late and get up at random times, so I need to track if I get enough sleep.
558.
▲
by
pornel
2y ago
The fluid can't be "easily" simulated. It's a chaotic system (turbulent flow is chaotic). Even tiniest differences between the real and simulated state will add up and amplify over time. Fluid simulation is a notoriously
559.
▲
by
pornel
2y ago
If you don't count manual SIMD intrinsics or inline assembly as C, then Rust and FORTRAN can be faster than C. This is mainly thanks to having pointer aliasing guarantees that C doesn't have. They can get autovectorization optimi
560.
▲
by
pornel
2y ago
Buggy unsafe blocks can affect code anywhere (through Undefined Behavior, or breaking the API contract). However, if you verify that the unsafe blocks are correct, and the safe API wrapping them rejects invalid inputs, then they won't
561.
▲
by
pornel
2y ago
This is a dead-end. Like all ICE engines, it still emits NOx pollution that cities want to get rid of. It is even less efficient than hydrogen fuel cells. It combines energy-inefficiency of ICE with the energy-inefficiency of hydrogen gener
562.
▲
by
pornel
2y ago
It's not that easy. Although some site owners enable protection without thinking about it, a lot of the time this is deliberate. Site owners are increasingly concerned about AI crawlers taking their content without giving anything in r
563.
▲
by
pornel
2y ago
In Rust objects can dynamically go in and out of having virtual dispatch. The vtable is only in the pointer to the object, so you can add or remove it. Take a non-virtual object, lend it temporarily as a dynamically dispatched object, and t
564.
▲
by
pornel
2y ago
For a long time Tesla had barely any presence in Europe, and Model S and X were expensive rare cars, from a weird foreign brand. Driving that was a delicate balance between coolness and showing off, and then Musk changed the image from cool
565.
▲
by
pornel
2y ago
Stroustrup is right that C++ is under pressure, but I'm baffled that his response to this is so ineffective. The focus on incremental backwards-compatible changes is only looking inwards, and isn't facing the external pressure. Li
566.
▲
by
pornel
2y ago
There's address sanitizer, and languages with garbage collectors and runtime bounds checks. There are WASM VMs, and even RLBox that translates WASM back to C that checks its own pointers at run time. The difficulty is shifting most of
567.
▲
by
pornel
2y ago
TIL, the HTTP RFC explicitly allows range end to exceed the length of the content: https://www.rfc-editor.org/rfc/rfc9110#name-byte-ranges
568.
▲
by
pornel
2y ago
Is there a mainstream language where this still holds true? From what I've seen most languages don't want to have a Turing complete type system, but end up with one anyway. It doesn't take much, so it's easy to end up wi
569.
▲
by
pornel
2y ago
> exceedingly rare To have a mere one in a billion chance of getting a SHA-256 collision, you'd need to spend 160 million times more energy than the total annual energy production on our planet (and that's assuming our best bit
570.
▲
by
pornel
2y ago
Reading just the first byte is probably wasting a read of the whole block. Hashing the whole file after that is wasteful. You need to read (and hash) only as much as needed to demonstrate uniqueness of the file in the set. The tree concept
More ›