Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
pornel
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
33 ms
·
721.
▲
by
pornel
2y ago
It's possible, but that's an exaggeration of a degenerate case. RC doesn't mean all data must be tangled into an unknowably large randomly connected web of objects. The behavior is deterministic enough to be profiled and iden
722.
▲
by
pornel
2y ago
No, it's not a problem at all. There are already several high-performance databases written in Rust. Lifetimes are mainly a learning barrier for new users, and affect which internal API designs are more convenient, but they're not
723.
▲
by
pornel
2y ago
Oh, I remember this project now. I see it still advertises 3x-10x overhead. To me this takes it out of being a contender in the systems programming space. This can't be dismissed as a mere quality-of-implementation detail. C and C++ ar
724.
▲
by
pornel
2y ago
Fil-C sounds very similar to Google's MiraclePtr. However, Safe C++ (Circle) and Rust do much more than that. They are not limited to pointers on the heap, and the borrowing rules work for all references including the stack. They also
725.
▲
by
pornel
2y ago
That's cool, but it'd be nice to also have a distinction between a get and a copy (like ObjC) or borrow/move (like Rust) to avoid redundant increments and decrements.
726.
▲
by
pornel
2y ago
People being fired/laid off have additional rights that quitting doesn't give them, so making people quit on their can be a way for a company to avoid the obligations. And regardless of employment rights, this can be still questio
727.
▲
by
pornel
2y ago
Building safe abstraction around unsafe code works, because it reduces the scope of the code that has to be reviewed for memory safety issues. Instead of the whole codebase being suspect, and hunting for unsafety being like a million-line &
728.
▲
by
pornel
2y ago
Cloudflare uses AMD TSME to encrypt the RAM: https://blog.cloudflare.com/securing-memory-at-epyc-scale/
729.
▲
by
pornel
2y ago
Cargo.lock is not ideal for this. It needs to be portable, and cover all kinds of builds and test runs, so it contains a superset of all dependencies for all platforms (recursively), as well as development-only dependencies, and everything
730.
▲
by
pornel
2y ago
The major versions unfortunately have a dual role of dictating their release cadence and LTS support. They're not purely SemVer but also milestones and marketing versions. This is unfortunate, because scheduled version bumps that happe
731.
▲
by
pornel
2y ago
There has been a bunch of failed C killers, and C++ has massively shat the bed, so I understand that people are jaded. However, this pessimistic tradeoff is just not true in case of Rust — it has been focused from the start on preventing fo
732.
▲
by
pornel
2y ago
Yes, but still if you have somebody looking over your shoulder, it can leak whatever you've been looking at. There's a way to block that entirely for "secure' apps, but iOS could be smarter about this, and cache some str
733.
▲
by
pornel
2y ago
Because memory vulnerabilities don't make programs immune to other dumb mistakes. You get these vulnerabilities on top of everything else that can go wrong in a program. Manual checking of memory management correctness takes extra ti
734.
▲
by
pornel
2y ago
It's been a skill issue for 40 years. How long are we going to continue searching for those programmers who don't make mistakes?
735.
▲
by
pornel
2y ago
There's finally a way to safely add two signed numbers, without tricky overflow checks that may trigger UB themselves!
736.
▲
by
pornel
2y ago
I don't even use Windows, but I need to write portable libraries. Unfortunately, MSVC does strongly influence the baseline, and it's not my decision if I want to be interoperable with other projects. In my experience, Windows devs
737.
▲
by
pornel
2y ago
C99 is still new ! Microsoft tried to kill C by refusing to implement anything that wasn't also in C++. MSVC was 16 years late implementing C99, and implemented only the bare minimum. Their C11 implementation is only 11 years late. I
738.
▲
by
pornel
2y ago
You're talking about the dotcom bubble ! A time in history where enormous amounts of money were thrown down enormous amounts of overhyped wells, and almost all of them turned out to be stupidly bad business. People mocking that waste
739.
▲
by
pornel
2y ago
They're certainly useful, and the goalposts for what is "intelligent" keep shifting, but I think we're seeing only progress towards more polished bigger LLMs. I don't think that progress implies there's a path
740.
▲
by
pornel
2y ago
I think it changes the nature of this technique from a cheap simple trick – just one low-precision matmul – to a less general, many times more expensive, more complex computation. To me that starts to feel wasteful, even if GPUs can churn t
741.
▲
by
pornel
2y ago
The conversion is pretty expensive, and very sensitive to numerical errors. Okay as a preprocessing step, but I'd strongly advise against doing it in a shader.
742.
▲
by
pornel
2y ago
I've done many rewrites of C in C, and C in Rust, and there is a big difference that is directly attributable to Rust. The safety of references, no raw malloc, no null pointers, compiler-checked thread-safety of types, consistent and e
743.
▲
by
pornel
2y ago
If you wouldn't write your program in C or C++, then it's not the problem that Rust is trying to solve. Rust has some nice high-level features and tools, so it gets used in other areas like web dev too, but in the end, it is a sys
744.
▲
by
pornel
2y ago
It depends how proficient you're in Rust. Once Rust itself is not a difficulty for you, there's a lot of productivity gained from having a modern language with many conveniences, and great tooling. Rust moves more bugs to compile
745.
▲
by
pornel
2y ago
I think it's necessary to remember that they're not a general artificial intelligence, but language models. For example, they're pretty good (not perfect) at translating things, including translating arbitrary instructions
746.
▲
by
pornel
2y ago
CCS2 is clunkier than NACS, but not too bad. At least it doesn't have the big external latch that CCS1 has.
747.
▲
by
pornel
2y ago
The particular mode of distribution of code as a traditional standard library has downsides: - it's inevitably going to accumulate mistakes/obsolete/deprecated stuff over time, because there can be only one version of it, and
748.
▲
by
pornel
2y ago
It won't even open on mobile if the page hasn't been loaded in landscape orientation. This seems to be all about being flashy and JS-heavy, rather than just getting the point across.
749.
▲
by
pornel
2y ago
Cloudflare caches pages at many many datacenters, often colocated with large ISPs. This lets Cloudflare deliver pages from their local cache over local links (which is fast and cheap), instead of fetching the data every time across the worl
750.
▲
by
pornel
2y ago
None at all. The alignment is for cheap and easy access of data once it is in memory. It's probably rooted in PostgreSQL being written in C where aligned access is trivial, and dereference of an unaligned pointer is Undefined Behavior
More ›