93 karma · joined Jan 2, 2020 (6y ago) · 33 submissions
comment 1y ago · link · parent
That's a misrepresentation of what's actually going on in the R4L project. Volunteers are enabling support for it within the kernel to allow for rust drivers in a way that explicitly does not require existing maintainers to change how they maintain their parts of the kernel. Maintaining rust support and the APIs consumed by Rust is the job of R4L and doesn't require any work from the existing maintainers who are allowed to make changes to their C that breaks Rust where the Rust will then be adjusted accordingly.
comment 2y ago · link · parent
2. And how many times have we seen 20 lines of C backfire with some sort of memory safety issue.
3. First off, i'd go out on a limb and say the number of attacks from a well-established (or even a naive one) rust json parsing library is dwarfed by the number of attacks from adhoc config parsers written in C with some overlooked memory safety issue.
4. Usually being the key word, tons of adhoc config formats have weird shit in them. With json (or yaml/toml) you know what you're getting into and you immediately know what you're able and unable to do.
comment 2y ago · link · parent
comment 2y ago · link · parent
If MS got the scope what would happen to the packages in that scope, or if MS didn't get it what is done to clearly communicate that this is an unofficial account (presumably) asking on MS' behalf? In this early on period I'd expect a lot of people to claim the scopes of notable companies and these companies might take issue with that if they choose to use jsr down the line.
comment 2y ago · link · parent
comment 2y ago · link · parent
Very cool library for read-centric use cases but I'd be very careful using this for use cases with frequent writes.
comment 3y ago · link · parent
I'm hopeful something like watt (https://github.com/dtolnay/watt) will land in Cargo that'll allow us to ship pre-compiled wasm blobs for proc-macros so we can just have sandboxed binaries.
comment 3y ago · link · parent
comment 3y ago · link · parent
I 100% agree that we should have ways of getting rid of these warnings on our own devices, but this isn't a simple problem.
comment 3y ago · link · parent
comment 3y ago · link · parent
comment 3y ago · link · parent
comment 3y ago · link · parent
comment 3y ago · link · parent
Mhm and no major third party reddit app is going anywhere near that with their 500 requests per day per user.
> An app aggregating many users, if reasonably efficient, would be expected to have an average per-user rate over time much much lower than the single-user, single-moment absolute limit.
The per user rate of these apps is 500 a day, which is reasonably efficient. Your point of them being "grossly inefficient" is just false.
comment 3y ago · link · parent
comment 3y ago · link · parent
comment 3y ago · link · parent
And now that your app is using one of these frameworks, you probably need some sort of API for whatever. There's a lot to be said about designing a REST api just being exporting an JS function in a file in a /api folder or whatever. If you are already using a hosted option for these frameworks it's an incredibly simple solution that doesn't require to you mess around creating a new project, making a docker image, going to a different cloud provider and giving them your credit card, etc. And depending on your scale that might genuinely be cheaper than running a container 24/7 on a public cloud.
comment 3y ago · link · parent