Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
tene
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
15 ms
·
91.
▲
by
tene
5y ago
Could you provide some examples of C++ features that the Rust team has consciously chosen to not support, to try to keep the language more approachable? Could you show some examples of how you need to work around these deliberate limitation
92.
▲
by
tene
6y ago
I've never actually used TSan, so please correct me if I've missed something significant about how it works, but doesn't TSan need to observe the race happening in order to detect it? The code coverage analysis I've seen
93.
▲
by
tene
6y ago
What sort of "support" do you imagine the IETF should be offering, and to whom? The mission of the IETF is to produce high quality, relevant technical and engineering documents that influence the way people design, use,
94.
▲
by
tene
6y ago
This description doesn't match my experience of writing Rust at all. During the exploratory phase of my projects, I very rarely run into nontrivial lifetime issues, and when I do, I can just put whatever data into an Arc and then it ju
95.
▲
by
tene
6y ago
One other underappreciated point is how to deal with other resources besides memory. Go has a GC, which helps with memory, but you're entirely on your own for files, sockets, database connections, mutexes, channels, etc. The features t
96.
▲
by
tene
6y ago
This really matches my experience, in that learning the Go language is very simple, but learning to correctly use the Go language to reliably build correct programs is much more difficult. The Go compiler (and other tooling like go vet and
97.
▲
by
tene
6y ago
> shed the tears of joy with how many symbols are used It... doesn't, though? Rust's syntax is pretty aggressively conventional, from my perspective. Looking at the punctuation symbol tokens, almost all of this is common to ma
98.
▲
by
tene
6y ago
Can you share some examples of Rust code "going obsolete"?
99.
▲
by
tene
6y ago
I've had a great experience with https://rook.io/ managing Ceph for Kubernetes in production.
100.
▲
by
tene
6y ago
Like you said, this is a variant type that represents either a value, or an error. Here's the definition of Rust's Result type: pub enum Result<T, E> { Ok(T), Err(E), } I threw together some examples of
101.
▲
by
tene
6y ago
https://tauri.studio/en/docs/getting-started/technical-detai... "The first generation user interface in Tauri apps leverages Cocoa/WebKit on macOS, gtk-webkit2 on Linux and Webkit via EdgeHTML /
102.
▲
by
tene
6y ago
Yes, I agree, you can implement a doubly-linked list in Rust exactly as you can in C, with the same precise control. You can even implement intrusive collections: https://docs.rs/intrusive-collections/ Unsafe is a norm
103.
▲
by
tene
6y ago
Could you offer some insight or examples of where or how C permits or enabled more-precise control than is permitted or enabled by Rust?
104.
▲
by
tene
6y ago
Could you explain what additional layer is between me and the hardware when using Rust vs using C? I've written a lot of Rust, and a lot of C, and I can't figure out what you're referring to here.
105.
▲
by
tene
6y ago
Can you share any good examples of C codebases that have enforced these rules and successfully avoided having memory safety problems? Can you share any details on what rules a team could use to reliably avoid having memory safety problems w
106.
▲
by
tene
6y ago
If you believe the comments of people advocating nohello are about "lost productivity", I recommend you try re-reading this comment thread with a bit more empathy, looking for the emotions behind the comments. You mention our soci
107.
▲
by
tene
6y ago
Personally, I always try to give people all the details up-front, but here are some rough situations where I'm likely to give people a very short summary instead of a full verbose request for reasons like you asked about: If they respo
108.
▲
by
tene
6y ago
The big difference to me is that Red Hat family distros have been a lot better suited to managing a large fleet of servers that I want to treat as cattle, not pets. I've finally managed to get away from Debian derivatives a few years
109.
▲
by
tene
6y ago
https://rook.io/ is a really great way to get shared storage up quickly and simply.
110.
▲
by
tene
6y ago
I've failed to find any text in the article that discusses why that map is misleading. There's a section that discusses why it would be visually misleading to use a logarithmic scale, but I can't find anything that justifies
111.
▲
by
tene
6y ago
Could you explain what problem you're trying to demonstrate here? What's the bad thing?
112.
▲
by
tene
6y ago
You may be interested in a paper written by the Ceph team: "File Systems Unfit as Distributed Storage Backends: Lessons from 10 Years of Ceph Evolution" https://www.pdl.cmu.edu/PDL-FTP/Storage/ceph-exp-so
113.
▲
by
tene
6y ago
To me, it looks like a pretty clear demonstration that there really is a useful, meaningful spectrum of clarity vs indirection.
114.
▲
by
tene
6y ago
I understood "auto-immune drug war" to be metaphorically comparing the problems with police misbehaviour to an autoimmune disorder. In autoimmune disorders, your immune system which normally defends against pathogens, instead att
115.
▲
by
tene
6y ago
I'm very confused by this claim. Rust's borrow checker is new, but everything else in the language is extremely familiar and recognizable to me from other languages I've worked with. Structs and enums are all over the place
116.
▲
by
tene
7y ago
https://docs.rs/rio/ is a pretty credible attempt at providing a misuse-resistant API for io_uring, both synchronous and async. There's still some nonzero complexity in using it instead of read/write, but it
117.
▲
by
tene
7y ago
While I agree that different defaults might be nice, modern versions of ip support a -br[ief] option which is pretty nice: $ ip -br a lo UNKNOWN 127.0.0.1/8 ::1/128 eth0 UP 10.1
118.
▲
by
tene
7y ago
Not the parent, so I can't speak for them, but my experience is that it's pretty likely that you'll eventually run into situations where you really want to store something different in the DB than what you send out from your
119.
▲
by
tene
7y ago
Could you explain some examples of what this is useful for? What sort of algorithms or operations do you have in mind where you both want insertion order, and also key-based lookup in the same data structure? I've made heavy use of al
120.
▲
by
tene
7y ago
The point is that the sane, correct choice is also the easy, default choice in Rust. We've been able to implement (ptr,len) buffer types in C for as long as we've had C, but uint8_t* is both baked into many APIs, and the path of
More ›