Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
josephg
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
39 ms
·
811.
▲
by
josephg
11mo ago
I wish there was another button on those contact permission boxes which would tell the app you've granted permissions. But when they try to read your contacts, send them randomly generated junk. Fake phone numbers. Fake names. Or even
812.
▲
by
josephg
11mo ago
Any chance this work can be upstreamed into mainline SSH? I'd love to have better performance for SSH, but I'm probably not going to install and remember to use this just for the few times it would be relevant.
813.
▲
by
josephg
11mo ago
Uhh, no. Rust started its life as a language with a garbage collector. It turned out to be a great C replacement, but that was never its original goal.
814.
▲
by
josephg
11mo ago
I'd love to see it. Though if the package is just "we run sel4's cmake script and save the result" then its much less interesting. If you can make a package which doesn't use cmake at all, email me. My email is in m
815.
▲
by
josephg
11mo ago
I've spent the last week starting to hand port SeL4 to rust. Mostly because I want to learn how kernels & capabilities work. This seems like a fun way to get my hands dirty with operating systems without needing to invent everythin
816.
▲
by
josephg
11mo ago
Nice stuff! I'm keen to see this too. I love programming in rust. Lots of non-rust developers think the whole point of rust is safety, but honestly, the things I like most about using it are the quality of life features like cargo. I l
817.
▲
by
josephg
11mo ago
> Many people call Ubuntu flavors distributions. This includes Ubuntu developers. You seem mad that a Linux distribution (Ubuntu) is trying this software out. Why do you care so much? Do you expect some of the programs you use to break?
818.
▲
by
josephg
11mo ago
It really depends based on how shasum is implemented. If its implemented in assembly, it'll perform the same no matter how its compiled. But if its written using C code, the compiler has a lot of latitude to vectorize based on target C
819.
▲
by
josephg
11mo ago
Why would it be faster? That seems suspicious to me. Is all the code being compiled with the same flags? Shasum probably benefits a lot from intrinsics that are only available on newer CPU targets.
820.
▲
by
josephg
11mo ago
It sounds like your beef is with Ubuntu for shipping some of this code. Not with the project for existing and fixing all the compatibility issues that you seem to care a great deal about. If you want a purely gnu userland with gpl code and
821.
▲
by
josephg
11mo ago
Only if you think it’s also icky for OpenJDK to have a clean room port of Java. I’m sure oracle would love to force Android and everyone else using Java to pay licensing fees in perpetuity.
822.
▲
by
josephg
11mo ago
Also bear in mind these tools have a long tail of obscure features that aren’t used much. Theres a useful subset of coreutils that is common across gnu coreutils, busybox and FreeBSD & macOS. Full coreutils compatibility is laudable - a
823.
▲
by
josephg
11mo ago
In the short term, yeah 4x slower coreutils is probably worth it for memory safe code. In the long run, I’m glad rust coreutils is slowly working through these compatibility issues so we don’t have to pay for memory safety. Yeah, it'll
824.
▲
by
josephg
11mo ago
Whoosh. You have completely missed my point.
825.
▲
by
josephg
11mo ago
Well, its not just "games vs phones". The question is whether or not the company's actions unfairly stifle competition. Nintendo / sony / etc would argue there's lots of competition, because you can just buy th
826.
▲
by
josephg
11mo ago
Well implemented network hardware can have high bandwidth and low latency. But that doesn't get around the complexity and headaches it brings. Even with the best fiber optics, wires can be cut or tripped over. Controllers can fail. Dri
827.
▲
by
josephg
11mo ago
Sure; I’d love it if they were. But there’s another, legally much stronger reason to hate on Apple for their locked down App Store that has nothing to do with engineering.
828.
▲
by
josephg
11mo ago
My point is the argument against apples monopolistic practices isn’t a technical argument. It’s a legal / social one. For what it’s worth, I agree with the argument that if I buy a computer it should let me run arbitrary code. But ther
829.
▲
by
josephg
11mo ago
Well yeah! A Nintendo switch or PlayStation is technically similar to an iPhone. But you can’t make the same monopolistic dealing argument there as you can on phones. Why? Because a console is bought as a gaming device. And because you can
830.
▲
by
josephg
11mo ago
You're right that I'm appealing to authority, but that doesn't make my argument invalid. The people who decided rust has value in the kernel are linux kernel developers. Ie, traditional C developers who see value in using rus
831.
▲
by
josephg
11mo ago
Yep. Its kind of remarkable just how little unsafe code you often need in cases like this. I ported a C skip list implementation to rust a few years ago. Skip lists are like linked lists, but where instead of a single "next" point
832.
▲
by
josephg
11mo ago
You said above: > Also, a more Rust-friendly model would have incured higher memory costs. I'm not sure how modelling everything in a rust borrow checker friendly way would change anything here? Everything you're talking about
833.
▲
by
josephg
11mo ago
I’m not really sure what point you’re making. All I see there is - or was - some unclear management within Linux itself. - There was an experiment to have rust in Linux. It got provisional approval from Linus. - Some people in the Linux ker
834.
▲
by
josephg
11mo ago
I totally hear you about C friendly APIs not making sense in rust. GTK struggles with this - I tried to make a native UI in rust a few months ago using gtk and it was horrible. > Also, a more Rust-friendly model would have incured higher
835.
▲
by
josephg
11mo ago
I have. I personally really enjoy the recent crop of UI frameworks built for the web. Tools like Solidjs or Svelte. Whatever your thoughts are about react, the JavaScript community that has been the tip of the spear for experimenting with n
836.
▲
by
josephg
11mo ago
Yeah they’re all just tools. From a technical perspective, rust, C and C++ work together pretty well. Swift too. LLVM LTO can even do cross language inlining. I don’t think C++ is going anywhere any time soon. Not with it powering all the l
837.
▲
by
josephg
11mo ago
Why? Are you allergic to running rust code? You know, you can’t actually tell when you execute a binary? I don’t like programming in Go, but nothing stops me running go programs on my computer. My computer doesn’t seem to care.
838.
▲
by
josephg
11mo ago
> if the safe wrappers let you write arbitrary data to a PCIe network card’s registers Functions like that can and should be marked unsafe in rust. The unsafe keyword in rust is used both to say “I want this block to have access to unsaf
839.
▲
by
josephg
11mo ago
This is the Linux kernel. User space can do whatever it wants.
840.
▲
by
josephg
11mo ago
If rust didn’t provide value to the Linux kernel, there’s no way it would have made out of the experimental phase. Rust isn’t an invading tribe. It’s just a tool.
More ›