Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ChrisSD
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
47 ms
·
511.
▲
by
ChrisSD
6y ago
If you have a stream of random numbers it can be expanded it to a gigantic stream of random numbers. A good pseudo-random number generator can give you a ZiB of random data from a 128bit or 256bit number.
512.
▲
by
ChrisSD
6y ago
Mozilla doesn't develop Rust. Mozilla developers are involved in Rust's development but that's not quite the same thing. Microsoft buying Mozilla would only buy developer time, not Rust itself (and then only if the developers
513.
▲
by
ChrisSD
6y ago
The only intrusive "ad" is their call to action for subscriptions/donations. The others appear in normal ad boxes on the page. The same type you get with most websites.
514.
▲
by
ChrisSD
6y ago
What does that have to do with the Guardian asking their users for donations?
515.
▲
by
ChrisSD
6y ago
I'm confused, what does that have to do with the Guardian's current business model?
516.
▲
by
ChrisSD
6y ago
Asking users for donations is a very different business model to Facebook's history of abusing user data. I'm somewhat perplexed that HN users are apparently unable to see the distinction. Besides which, someone writing an opinion
517.
▲
by
ChrisSD
6y ago
There has been talk on the internals forum of "gating" deprecated parts of the std on a new edition. So the deprecated feature will be hidden for crates that declare `edition = '2030'` but will be available for crates us
518.
▲
by
ChrisSD
6y ago
I think that's a good thing. A C "enum" is just a shorthand for declaring an int alias and some constants. You can do that in Rust easily enough. A Rust enum is an actual enumeration type, which C does not have. This is far m
519.
▲
by
ChrisSD
6y ago
Sure but you don't have to use them, is the point I'm trying to make. They don't affect modern code and while it's annoying they are used in older code there is at least a path forward to "upgrade" the code to
520.
▲
by
ChrisSD
6y ago
I think more interesting would be something we're truly stuck with (at least until Rust 2.0, which may never come).
521.
▲
by
ChrisSD
6y ago
I was not disparaging it. Indeed I commended its theatrics and suggested it may help to make logs less cluttered. As for its supposed security benefits, this is something that needs to be proven by actual security research. Not by anecdotes
522.
▲
by
ChrisSD
6y ago
Port knocking is great theatre but not much good for anything else. I guess it can keep logs clear feom some drive by script kiddies.
523.
▲
by
ChrisSD
6y ago
Ah yes, you can use an IP address instead of a domain! I'd completely forgotten about that because nowadays it's so very unlikely to work with anything.
524.
▲
by
ChrisSD
6y ago
The format of an email address is: [whatever the server accepts]@[valid domain name] No more, no less. Although "server" here also includes anything in-between that may barf on a local part or (sometimes) even a domain name it doe
525.
▲
by
ChrisSD
6y ago
https://support.mozilla.org/en-US/kb/feed-reader-replacement... It didn't destroy them. It turned them static and can also create a `Firefox feeds backup.opml` that can be imported by feed readers. Sure this
526.
▲
by
ChrisSD
6y ago
To be honest programmers have a habit of being very loose with language. Terms like "OOP" and "types" have very context dependent meanings. Given the context, I took him to simply be talking about people coming from &quo
527.
▲
by
ChrisSD
6y ago
The recourse is addons.
528.
▲
by
ChrisSD
6y ago
Just as often I see an engineer or two that already wanted to redesign their architecture but needs an article like this to "inspire" managers.
529.
▲
by
ChrisSD
6y ago
Are we now reinventing PHP but coming from the opposite direction?
530.
▲
by
ChrisSD
6y ago
Considering these repos are meant to be made public within 30 days, I'd hope Microsoft employees would be more careful when pushing. Leaving it to a last minute cleanup sounds like a recipe for disaster.
531.
▲
by
ChrisSD
6y ago
UB is UB. It might work. It might work now but not in the future. It might work in some situation but not others. It might appear to work but introduce subtle bugs elsewhere in the program. Linux, as Linus has said, isn't written in IS
532.
▲
by
ChrisSD
6y ago
I'm not sure I understand you. If it's not dangerous and there are guarantees then there isn't a data race to begin with.
533.
▲
by
ChrisSD
6y ago
But any optimizing compiler is surely going to assume its memory model is adhered to, no? Therefore any "data races" will be undefined behaviour (even if they're atomic on physical hardware).
534.
▲
by
ChrisSD
6y ago
Could you explain that? Surely either it's dangerous to read and write simultaneously to a memory location or the operations are atomic (albeit perhaps unordered) and thus there is no data race?
535.
▲
by
ChrisSD
6y ago
tl;dr: The Windows console uses UTF-16. You need to convert to/from UTF-16 if you want to use another encoding elsewhere in your program.
536.
▲
by
ChrisSD
6y ago
Talking of probably unpopular opinions: I'd prefer that all strings be raw by default so escape characters aren't processed at all. Characters like `\n` or `\uXXXX` can be useful sometimes but I'd prefer to opt in to that. In
537.
▲
by
ChrisSD
6y ago
To expand on that, on Windows it's best to use kernel32 (or WindowsApp) unless you really need the cross-platform convenience of the C lib. The exception being architecture dependent functions like memcmp, memcpy and memset which will
538.
▲
by
ChrisSD
6y ago
Nowhere in my comment did I mention C, Firefox, learning curves or marketing so I'm unsure what you're replying to. To be clear, this issue isn't about Rust, the language. This is about Rust's standard library creating a
539.
▲
by
ChrisSD
6y ago
Calling platform functions are always unsafe. In the case of malloc, the standard library wraps calls using a safe interface. This assumes that malloc is implemented to spec because there's no good way to handle it otherwise.
540.
▲
by
ChrisSD
6y ago
Arch is a rolling release, upgrades are expected to break the system at some point. Windows updates aren't meant to. Most Windows updates are security or bug fixes only. The exception being the twice yearly feature updates. These have
More ›