Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
pornel
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
38 ms
·
691.
▲
by
pornel
2y ago
This quirk needs to be in a tutorial or a developer-oriented reference. Involving an ISO committee in this wouldn't produce a document that makes it any easier to understand it. This is because from the language perspective, there'
692.
▲
by
pornel
2y ago
This looks like an exploit in a city-building game — spam the map with bridges, get free oil.
693.
▲
by
pornel
2y ago
The pre-rendered backgrounds were breathtaking in the 90s, but today the old off-line ray tracing looks worse than what modern games can render (same goes for the original Myst). The remastered version has been released before AI upscaling
694.
▲
by
pornel
2y ago
If you don't know the language, and it's different from what you know, it may look incomprehensible to you whether it's complex or not. For example, the Korean alphabet is pretty simple, and the spelling is simpler than Engli
695.
▲
by
pornel
2y ago
C/Ragel bug was the cause of Cloudbleed, and the reason why Cloudflare switched to Rust. https://en.wikipedia.org/wiki/Cloudbleed
696.
▲
by
pornel
2y ago
It's not about blame. It's about recognizing the need for safe infrastructure: physically separated bike paths, not painted gutters. Physics does care about the difference between crossing a painted line vs hitting a bollard.
697.
▲
by
pornel
2y ago
When "social" was a hot new thing, Google suddenly wanted to be Facebook, and started making all of their products part of Google+, whether it made sense or not. Google+ required having a public profile with a real name. Gmail
698.
▲
by
pornel
2y ago
We haven't had such FOMO-induced self-destruction since Google+.
699.
▲
by
pornel
2y ago
Fun fact: Box<T> is allowed in C FFI in arguments and return types. From C's perspective it's a non-NULL pointer to T, but on the Rust side it gets memory management like a native Rust type. Option<Box<T>> is all
700.
▲
by
pornel
2y ago
They put the exact same faux buttons in their ICE cars. This is not an EV thing. It's a contemporary trend, and it just happens that most newly designed cars are EVs now. The rise of touchscreen technology was just coincidental with t
701.
▲
by
pornel
2y ago
Hyundai shows which one.
702.
▲
by
pornel
2y ago
VW ID. cars have the worst fake buttons on the steering wheel. Multiple buttons were merged into a single mushy creaky touch-sensitive plastic face that is inconvenient and unreliable when you press intentionally, but easy to accidentally
703.
▲
by
pornel
2y ago
Until 2012, Rust 0.6 required a postfix `.` on enum variants: https://github.com/rust-lang/rust/commit/04a2887f879 And here's a 2013 bug for the ambiguity: https://github.com/rust-lang&#x
704.
▲
by
pornel
2y ago
The problem has been known from the beginning, because async I/O on Windows has the same issues as io_uring. Rust went with poll-based API and synchronous cancellation design anyway, because that fits ownership and borrowing. Making as
705.
▲
by
pornel
2y ago
You're namedropping the hot new card, but every card before it was also the hot new card when it was released. It reminds me of the NEVER OBSOLETE sticker e-machines put on their unbelievably fast 500Mhz Pentium PCs. These cards will i
706.
▲
by
pornel
2y ago
Optimizations in compilers like LLVM are done by many individual code transformation passes, one applied to the result of the previous. This layering makes the order of the passes important and very sensitive. The passes usually don't
707.
▲
by
pornel
2y ago
Path tracing techniques usually focus on finding the most useful rays to trace, to focus only rays that hit a light (importance sampling). RC is different, at least in 2D and screen-space 3D. It brute-force traces fixed sets of rays in regu
708.
▲
by
pornel
2y ago
Essentially yes. There's ambient occlusion that computes light intensity with high spatial resolution, but completely handwaves the direction the light is coming from. OTOH there are environment maps that are rendered from a single loc
709.
▲
by
pornel
2y ago
This is a rendering technique designed for real-time graphics, and it's not applicable to that kind of image analysis. It does what has already been possible with ray tracing, but using an approximation that makes it suitable for real-
710.
▲
by
pornel
2y ago
Rust git2 bindings are pretty good and actively maintained. However, Rust also has `gix` which is a ground-up reimplementation, and once that matures, it will probably sideline libgit2.
711.
▲
by
pornel
2y ago
Unchecked shared mutability that causes data races and Undefined Behaviour is the pervasive default behavior in C, with no option to turn it off. Safe Rust doesn't have this "feature". This makes multi-threaded code in C very
712.
▲
by
pornel
2y ago
BTW, this asymmetry makes unary negation in C an unexpected source of Undefined Behavior.
713.
▲
by
pornel
2y ago
This article gets referenced a lot, but it does a poor job of defining what color actually is. The biggest issue the article describes — inability for sync code to wait for an async result — is limited mostly to JavaScript, and doesn'
714.
▲
by
pornel
2y ago
The lowest-level routines need to be written mostly in assembly to have constant-time execution (which is a difficult task even in assembly due to the complexity of modern CPUs). None of Rust, C, nor C++ can guarantee constant-time executi
715.
▲
by
pornel
2y ago
> likeliest group of people to own an EV […] These people do not live in “disadvantaged communities.” Isn't that the whole point? Early EV adopters are already creating a demand in richer areas, and that can be fulfilled by commerci
716.
▲
by
pornel
2y ago
They're not fighting anything. Your straw from a bar in a first-world country reliably ends up in a landfill, among heaps of other plastics. Far away from any turtles. The Pacific garbage patch is mostly from fishing nets, and the othe
717.
▲
by
pornel
2y ago
This has been a deliberate design choice, because these primitives typically have to be constant-time, and are full of tricks to avoid CPUs' side channels. It's a very delicate code that is dangerous to rewrite. However, TLS still
718.
▲
by
pornel
2y ago
My point was that RC in practice is pretty deterministic in the vast majority of cases, and I think equating its unpredictable rare cases with natural unpredictability of a GC is scaremongering. The differences between their non-determini
719.
▲
by
pornel
2y ago
You've misread my comment. All my uses of "deallocate" refer to RC.
720.
▲
by
pornel
2y ago
The success of this project is going to be very non-linear with speed, so it really hangs on where your speed improvements will plateau. If you get below 2x, you can compete with WASM and ASAN. If you get it down to 1.1x-1.2x, you can compe
More ›