Hacker Newsnew | past | comments | ask | show | jobs | submit | benecollyridam's commentslogin

Did you try the experimental, raw disk image for a Debian installer that Snapdragon provided? https://www.qualcomm.com/developer/blog/2024/05/upstreaming-...


I tried it, but had the same issue with the reboot loop. The latest daily build of Debian as of 7/29/24 will boot into Grub, but hangs as soon as it tries to load anything else.


It looks like thiserror (6.6M downloads/month) is more popular even though anyhow (5.7M downloads/month) is listed as #1 https://lib.rs/keywords/error


they are not competing

they handle two different cases

anyhow is for type erased errors, which is mainly used for the kind of errors you mainly propagate upward without handling them in any fine grained way. It's mainly used in applications (instead of libraries). For example in a web server anyhow errors will likely yield Internal Serer errors.

thiserror provides a derive (codegen) to easily create your own error. It's much more often used by libraries, but if an application doesn't want to handle this errors they will likely be converted into anyhow errors. A very common use case is to apply it on an enum which represent "one of many errors" e.g. as a dump example `enum Error { BadArgument(...), ConstraintViolation(...), ... }` and it's no absurd in some cases to have a mixture e.g. an enum variant `Unexpected(anyhow::Error)` which represents various very unpexted errors which likely could be bugs and you might have considered panicing there but decided to propagate them instead to avoid panic related problems


+1 this

I don't understand why this answer is buried deep in a thread & isn't included in the Rust Book, even though it's been conventional wisdom among experienced Rustaceans for a few years now.


thiserror should be in the stdlib frankly. Or Rust should offer its facilities natively.


Download counts don't mean very much here as I'm fairly sure both crates are common transitive dependencies. Or in other words, millions of programmers aren't individually choosing Anyhow or Thiserror on a monthly basis -- they're just dependencies of other rust crates or apps.

And agreeing with the other reply, nobody jumps up and down with joy when choosing an error handling crate. You pick the right poison for the job and try not to shed a tear for code beauty as you add in error handling.


1=2

1+1 // = 4

Really nice project though

https://numpad.io?#text/IwXgTAUMDUxA


Some people just want to watch the world burn.

No, you're right. I thought I'd prevented it from parsing numbers as variables, but apparently not. It's on my todo list now.


Fixed, thanks for pointing it out :) https://numpad.io?#text/IwXgTAUMDUwARA


Another related project: Wasmtime and Rust+Python

Compile your Rust code to wasm to circumvent having to compile for different architectures.

https://docs.wasmtime.dev/wasm-rust.html


In your benchmarks of insertion/add/remove[1] you use different units of time for each of the three graphs. I didn't notice until staring at them for some time wondering what was up. Maybe you could make it clearer or use the same unit?

I think it is an awesome project and I'm looking forward to trying it out soon!

[1]https://bevyengine.org/news/bevy-0-3/#component-insertion-in...


Sorry my benchmark test suite "fits" the units it reports to the duration. I totally get that its a bit confusing. I probably won't update them for this blog post because generating the graphs isn't fully automated yet (i manually theme the svgs to match the blog style).

But for future releases ill keep that in mind.


> Hyper is a fast and safe HTTP implementation Well.. Hyper does rely on unsafe blocks (14 at first glance[2]), so I don't know if we can just assume that it's safe. When Sergey Davidoff did their big smoke test of popular Rust HTTP implementations they found a couple of bugs[1] (through Reqwest).

I love the idea of a safer cURL, but I don't think you should take this as a magical answer to all of cURL's problems.

[1]https://web.archive.org/web/20200506212152/https://medium.co... [2] I ran `grep -oR unsafe . | wc -l` after cloning the repo


> I don't think you should take this as a magical answer to all of cURL's problems.

Is anyone actually suggesting this?


Well kinda but people are saying that it is memory safe, which is not a guarantee with unsafe code.


I don't know if I think it will work, but it is at least worth it to vote here to remove the FB login: https://oculus.uservoice.com/forums/921937-oculus-quest/sugg...


I don't know anything about uservoice.com, but are they even affiliated with facebook in any way? Why would facebook even care what happens on that site?


UserVoice is basically just a platform that companies (like Oculus) can use to manage customer requests.

If Oculus didn't want UserVoice, they wouldn't have signed up for it.


I thought this was satire


Why not just let the program get that value? If my config has side effects I wouldn't be confident that my program would run the same each time. To me it seems like this would lead to poor reproducibility.


How would the program get the value? It has to pack all of the scraping frameworks and abstract it so it could be interacted enough for text configs? Then it would have more scraping code than whatever program intended to do.

> To me it seems like this would lead to poor reproducibility.

I'm not sure how reproducibility matter here. You're not writing tests - it's a program on your computer for your personal use.


There is a link to a news article from the New Yorker: https://www.newyorker.com/news/news-desk/the-five-year-old-w...


Thank you! I pulled up the site again and am still not sure where the link to that is, so I appreciate the link. :)


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: