Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
josephg
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
31 ms
·
721.
▲
by
josephg
10mo ago
> To be honest, I think a lot of the justification here is just a difference in standard library and ease of use. I really liked this article by Bryan Cantrill from 2018: https://bcantrill.dtrace.org/2018/09/28&
722.
▲
by
josephg
10mo ago
Yes. But I like that rust gives you the option. In C, the only way to write a monomorphized hash table or array list involves horribly ugly macros that are difficult to write and debug. Rust does monomorphization by default, but you can als
723.
▲
by
josephg
10mo ago
> Rust can implement doubly linked list in safe code. It can. It wraps the unsafe parts in an abstract manner. As far as I know, only with Rc / RefCell. But that has a significant performance cost. Am I wrong? I'd love to see a
724.
▲
by
josephg
10mo ago
Davinci Resolve is free. At least, for the non studio version. (There’s a few studio only features, but almost everything is available in the free version of resolve). And a lot of people want to learn resolve anyway for color grading. Why
725.
▲
by
josephg
10mo ago
> It would have been nice for other wide changes like this to have like a 'strict datetime'; directive which would opt you into using this corrected behavior. That would be ugly, because you'd want some parts of your progr
726.
▲
by
josephg
10mo ago
The new glass look is just so bad. It feels cheap, like a child’s toy. And performance is worse as a result. I’ve turned it off on my phone, via the accessibility settings. But it’s clear Apple doesn’t test the UI layout much with the new g
727.
▲
by
josephg
10mo ago
I feel the same way about newsletters. “Hey you bought socks that one time! Want more socks??” -> Unsubscribe. “Hey it’s your weekly sock news! What’s new in socks!” -> But I unsubscribed! Haha no, you only unsubscribed from the “prod
728.
▲
by
josephg
10mo ago
I also think we have the data in for memory safety in C. Even the best people, with the best processes in the world seem to keep writing memory safety bugs. The “just be more vigilant” plan doesn’t seem to work.
729.
▲
by
josephg
10mo ago
In my experience (several years of writing high performance rust code), there’s only really 2 instances where you need unsafe blocks: - C interop - Low level machine code (eg inline assembly) Most programs don’t need to do either of those t
730.
▲
by
josephg
10mo ago
I love rust, but C does make it a lot easier to make certain kinds of container types. Eg, intrusive lists are trivial in C but very awkward in rust. Even if you use unsafe, rust’s noalias requirement can make a lot of code much harder to i
731.
▲
by
josephg
10mo ago
Many of its biggest benefits of rust come directly from other languages - including Haskell. Like, rust’s Option is identical to Haskell’s Maybe type. Traits are similar to type classes in Haskell, or interfaces in Go. In my mind, the thing
732.
▲
by
josephg
10mo ago
Yep that’s right. I’ve been working on a game with bevy. The Bevy game engine supports being dynamic linked during development in order to keep compile times down. It works great.
733.
▲
by
josephg
10mo ago
Well, Rust does support dynamic linking. It just doesn’t (yet) offer a stable ABI. So you need to either use C FFI over the dynamic linking bridge, or make sure all linked libraries are compiled with the same version of the rust compiler.
734.
▲
by
josephg
10mo ago
> waiting for I/O in the GUI thread The problem is sloppy programming. We knew how to make small, fast, programs 20+ years ago that would just scream on modern hardware. But now everything is bloated and slow. CPUs can retire billio
735.
▲
by
josephg
10mo ago
> Perhaps I could interest you in a hypothetical future blog post? I'd love that.
736.
▲
by
josephg
10mo ago
It’s rarely the thought that counts. It’s the committed effort. Presents aren’t just nice because they needed those socks. More importantly, they’re a signifier that you consider the person to be worth thinking about. You value them enough
737.
▲
by
josephg
10mo ago
Exactly. More expensive than a high end desktop or laptop while having less useful software than an iPad. No thanks. If it were around the $500 point I’d pick one up in a heartbeat. Maybe even $1000. But $3500 is nuts for how little they’re
738.
▲
by
josephg
10mo ago
Thanks for replying. I find your point of view for all this fascinating. With your experience, why do you think the site is failing? What could or should be done to save it?
739.
▲
by
josephg
10mo ago
> that's not the point of SO or any of the SE sites. It's not there so you don't have to do some more work to get to an answer. My brain is spitting out a parse error on this sentence. Too many double negatives. Zahlman wa
740.
▲
by
josephg
10mo ago
It doesn't appear to have worked.
741.
▲
by
josephg
10mo ago
> it looks to me like I could figure it out pretty easily from what's written there Really? Wanna give it a try then, without looking up any other documentation? I've used ffmpeg plenty of times, but it doesn't seem obviou
742.
▲
by
josephg
10mo ago
Is there anything stopping us from doing this today on modern hardware? Why do we grow the stack down?
743.
▲
by
josephg
10mo ago
> The fundamental value proposition of SO is getting an answer to a question I read an interview once with one of the founders of SO. They said the main value stackoverflow provided wasn't to the person who asked the question. It wa
744.
▲
by
josephg
10mo ago
Ah I see what you're saying. I think the idea is that those asserts should never be hit in the first place, because the code is correct. In reality, its a mistake to add too many asserts to your code. Certainly not so many that perfo
745.
▲
by
josephg
10mo ago
> But "Rust for everything!?"..Give me a fucking break! Nobody is arguing for that though? [1] I love rust and use it all the time, but personally I think its the wrong choice for application development and web development. An
746.
▲
by
josephg
10mo ago
How dare you. C is a fine language. Just don't accidentally step on any of these landmines and we'll all get along great.
747.
▲
by
josephg
10mo ago
Don't worry, they probably wouldn't want to work with you either. Some programmers think and care a lot about software correctness in a kind of mathematical way. Others just want to ship features and enjoy their lives. Both approa
748.
▲
by
josephg
10mo ago
Yep. I've heard it said that Rust forces you to experience all the pain up front. C will happily compile very broken code. One of my formative memories learning C came after I wrote a function which accidentally returned a pointer to a
749.
▲
by
josephg
10mo ago
> To me it feels like rust is barely readable sometimes. When I read some rust cost, I am often incapable to guess what it does, so it does not feel intuitive. I feel torn with this sentiment. On one hand, I totally agree. Rust's &q
750.
▲
by
josephg
10mo ago
> Correct. But how are you testing that you successfully crash In a language like rust, failed assertions panic. And panics generally aren't "caught". > instead of corrupting on-disk data stores If your code interacts w
More ›