Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
pornel
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
68 ms
·
841.
▲
by
pornel
2y ago
Apple could add an API for 3rd party subscriptions to integrate with that screen. But Apple prefers to insinuate that you either pay them 30% or get scammed, and there is absolutely no option in between.
842.
▲
by
pornel
2y ago
The big difference is that EVs are designed to be charged unattended (you plug in, and go do something else). Nobody needs to be monitoring the "pumps". Charging locations are often combined with other businesses, which means it&#
843.
▲
by
pornel
2y ago
This means Rust has also been ported to HaikuOS. Nice!
844.
▲
by
pornel
2y ago
> how many customers you can serve per parking spot/charging station. With gas, hoards of cars can be serviced quickly For gas stations the throughput matters, because cars are blocking the queue. BEV charging is more comparable to
845.
▲
by
pornel
2y ago
This is the most important metric . 1000km in the slow-charging Leaf takes 14 hours. 1000km in quick-charging cars takes 9h-9.5h, compared to 8.5h in a gas car[1]. For the trivial case of a city-only car with a home charger all battery met
846.
▲
by
pornel
2y ago
Not exactly the same, but Mozilla had a whacky idea of compiling C to WASM and then WASM back to native code, which gives a natively running program that is sandboxing its own memory accesses: https://hacks.mozilla.org/2020&
847.
▲
by
pornel
2y ago
Being "good" in music is not universal. There's a certain level of skill required to compose and produce a song, but beyond that the genre/style of the song is more important, and which style is better is very subjective
848.
▲
by
pornel
2y ago
BMP coupled with 7Zip would outperform too (probably by a bigger margin). It just boils down to gzip vs gzip-replacement compressor.
849.
▲
by
pornel
2y ago
The logo is perfect: https://github.com/RustPython/RustPython/blob/main/logo.png
850.
▲
by
pornel
2y ago
Why are you using WASM? Tauri lets you call native Rust code.
851.
▲
by
pornel
2y ago
Programmers have an ideal obvious translation of C programs to machine instructions in their head, but there's no spec for that . It creates impossible expectations for the compilers. My recent favorite paradox is: in clang's opt
852.
▲
by
pornel
2y ago
That's a common misconception. Advanced compilers like GCC and LLVM have optimizers working primarily on a common intermediate representation of the program, which is largely backend-independent, and written for semantics of the C abst
853.
▲
by
pornel
2y ago
C is defined in terms of its own abstract machine (one that can't overflow a signed int), not the hardware that it runs on. This creates the contentious issue of Undefined Behavior that C forbids, but which the actual hardware has no p
854.
▲
by
pornel
2y ago
This is a common pitfall in Rust wrappers for C libraries — they diligently copy the underlying library's typedefs as Rust's type aliases, but Rust doesn't have the same implicit type conversions as C, which makes it a leaky
855.
▲
by
pornel
2y ago
There are a couple of proof-of-concept libraries adding a `Gc<T> where T: Traceable`, so it is doable. You can't change the existing Rc, because it's a concrete type. Making it use a tracing GC internally would require a lo
856.
▲
by
pornel
2y ago
> Rust's shared XOR mutable references […] makes linearity nearly useless or inevitably creates a parallel, incomplete universe of functions that also work on linear values. Yup. Rust can't abstract over mutability. For owned v
857.
▲
by
pornel
2y ago
UK tried to have a "silicon roundabout" and attract VC investment, but then Brexit happened and the allure of English-speaking entry point into the EU market has disappeared. Europe has missed out on the craze of getting millions
858.
▲
by
pornel
2y ago
Image and video compression are like that. Ideas for mainframes in the '80s are realtime algorithms now.
859.
▲
by
pornel
2y ago
Does TypeScript have some disambiguating syntax like turbofish?
860.
▲
by
pornel
2y ago
I suspect that most the hate for Rust's async is from overuse of tokio's multi-threaded spawn(), as if it was the `go` of goroutines. Tokio's mt spawn adds burdensome Send and 'static requirements, and often gives too fi
861.
▲
by
pornel
2y ago
I don't get how can you think Golang does it better. Its async is not easily composable. Anything beyond async 101 becomes a tangled web of DIY goroutines, wait groups, channels, callbacks, special empty signal channels for selects,
862.
▲
by
pornel
2y ago
Threads don't support cancellation in any reasonable way. Cancellation is immensely useful for networked applications and for GUIs. Threads make it difficult to fully use CPU and network, without over-subscribing either one. If you sta
863.
▲
by
pornel
2y ago
Pin is a state rather than a property of the data itself. This has a very nice effect of allowing merging and inlining of Futures before they're executed. It's similar to how Rust does immutability — there's no immutable memo
864.
▲
by
pornel
2y ago
Rust is already popular and old enough to have terrible Enterprise Rust code bases. There are a few things working in Rust's favor: * unsafe code is used to build safe abstractions around it, so most users don't have to write unsa
865.
▲
by
pornel
2y ago
The examples of dithering that look low-contrast and overly bright are due to incorrect gamma. The diffusion algorithms don't inherently make images brighter. They require working in the right color space, linear light in this case. Th
866.
▲
by
pornel
2y ago
It does vary a lot. In city it's easily 4mi/kWh or more. But I remember being pissed at Stellantis when in cold rain on highway the efficiency dropped to 1.7mi/kWh, and the range estimate was still calculated based on the mar
867.
▲
by
pornel
2y ago
Passing Acid3 is a nice milestone, but realistically that's a 16-year-old test without modern performance requirements. $1 million is wild for an open-source hobby project, but sadly it doesn't buy many person-years at competitive
868.
▲
by
pornel
2y ago
There's over a decade of real-world data available from Tesla and Leaf, and the batteries are very long-lived: they degrade about 1%-2% per year with a good battery management system, and around 3% per year with Leaf's weaksauce o
869.
▲
by
pornel
2y ago
BTW, if you want something for road trips, check out Bjorn Nyland's data: https://docs.google.com/spreadsheets/d/1V6ucyFGKWuSQzvI8lMzv...
870.
▲
by
pornel
2y ago
I've had e208 from on.to. It's a lovely nimble city car. The downside is that it charges at 60-80kW, and it's not especially efficient car either. Purely from BEV perspective it's a low-end performance for a mid-range pr
More ›