Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ChrisSD
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
51 ms
·
541.
▲
by
ChrisSD
6y ago
Be aware that Testing may get security updates much later than Unstable or Stable. https://www.debian.org/security/faq#testing
542.
▲
by
ChrisSD
6y ago
Most platforms have have system level C APIs that are exposed to userspace. When using these APIs it's necessary to layout structures as they expect. Therefore all compilers on the same platform (OS+arch) would usually produce the same
543.
▲
by
ChrisSD
6y ago
I believe adrianN was suggesting that it would be useful if you could opt-in to automatic reordering on a per struct basis. Currently C doesn't give a choice other than to do it manually.
544.
▲
by
ChrisSD
7y ago
At some point a Rust program does have to run on a real platform. Anything interacting with that platform will be `unsafe` because Rust cannot reason about things outside itself. You'd usually wrap these unsafe things in safe functions
545.
▲
by
ChrisSD
7y ago
> ...giving incremental compilation speed-ups of up to 13% across many benchmarks. It also added a lot more comments to explain what is going on in that code, and removed multiple uses of unsafe . I wanted to emphasize that last point
546.
▲
by
ChrisSD
7y ago
Tbh I found OpenSSL to be its own world of pain. And that was from using it in C. ;)
547.
▲
by
ChrisSD
7y ago
Just to be clear, you never HAVE to update your code. Rust 1.0 code still works just fine. The consensus with error handling is that the limitations of std error trait have now been sufficiently fixed so as to be usable without anything mor
548.
▲
by
ChrisSD
7y ago
In its consumer operating systems, MS used to not consider it a bug for a process to exploit other processes on the same machine. After all, why would you be running untrusted code? I'd also add that Microsoft used to be notoriously ba
549.
▲
by
ChrisSD
7y ago
> The Chromium sandbox on Windows has stood the test of time. It’s considered one of the better sandboxing mechanisms deployed at scale without requiring elevated privileges to function. For anyone who is interested in the history, this
550.
▲
by
ChrisSD
7y ago
How can you rename them if you can only use unicode paths?
551.
▲
by
ChrisSD
7y ago
Sure we could declare that but then what? Non-unicode filenames won't suddenly disappear. Operating systems won't suddenly enforce unicode. Filesystems will still allow non-unicode names. Simply declaring it doesn't help anyb
552.
▲
by
ChrisSD
7y ago
The closest I could find to a recommendation for UTF-8 is in UWP design guidelines: https://docs.microsoft.com/en-us/windows/uwp/design/globaliz... However it's not quite unequivocal. Windows still
553.
▲
by
ChrisSD
7y ago
Is the issue HackerOne, or is it HackerOne doing as Valve (their client) instructed them? It seems Valve were aware of the issue for weeks or months before he reported it and still hadn't added an "s" to "http" afte
554.
▲
by
ChrisSD
7y ago
If it were written in Python that particular category of bug simply could not exist. The human perceived block level always matches the machine read block level. In short, there's no issue to fix.
555.
▲
by
ChrisSD
7y ago
Whitespace is always significant. At least indentation is. If not for the program, than for the programmers. Apple's infamous "goto fail" was in part caused by a mismatch between how the computer understand the block level an
556.
▲
by
ChrisSD
7y ago
I don't think the 6 weeks vs. 3 years tells the full story. C++ collects up a whole truck load of changes and waits up to 3 years then dumps all of them in one go. Whereas Rust releases them individually, waiting up to six weeks after
557.
▲
by
ChrisSD
7y ago
> I wanted to read a file. It's probably too late to help now but I recommend the official documentation[0] and book[1]. They both have examples. [0]: https://doc.rust-lang.org/std/fs/struct.File.html [1]:
558.
▲
by
ChrisSD
7y ago
Rust isn't even five years old yet (its birthday is in May). It's not entirely surprising that it has gained a few major features in its early years that weren't ready for the 1.0 release, or were found to be useful once more
559.
▲
by
ChrisSD
7y ago
This is being worked on. See the Try trait in std::ops. It's implemented for Result, Option and Poll (the `try!` macro only ever worked with Result). Implementing it for your own types is currently unstable because sorting out all the
560.
▲
by
ChrisSD
7y ago
Weird. It's just a plain .txt file. There isn't a HTTP Content-Type though, which might be what's tripping some browsers up.
561.
▲
by
ChrisSD
7y ago
`match` ergonomics don't affect already working code. Ok-wrapping isn't a change that's been made. At best it's a hypothetical change that one person wanted to have a calm, rational discussion about with the community. I
562.
▲
by
ChrisSD
7y ago
"Too fast" is relative but the Rust language has had few changes since the 2018 edition (and even that can work alongside the 2015 edition). The pace of change has slowed significantly in recent years. The standard library has had
563.
▲
by
ChrisSD
7y ago
For those not familiar with the Rust drama, it should be emphasized that this blog post is very much a reaction to the linked blog post advocating for "Ok-wrapping": https://boats.gitlab.io/blog/post/why
564.
▲
by
ChrisSD
7y ago
The full extent of Wakefield's abuses didn't come out until later but it was clear at the time that the research did not support Wakefield's claims. Even if you ignored the methodology and simply accept the study's resul
565.
▲
by
ChrisSD
7y ago
Suggested standards have existed but they are routinely flouted in practice. These packaging systems make it much easier for developers to do the right thing and harder to do the wrong thing. And it gives the user confidence that they can e
566.
▲
by
ChrisSD
7y ago
It should also be emphasized how game changing proper packing is in itself. Historically Windows scripts, installers, applications, etc could liberally spray the filesystem and registry with their content. Cleaning this up was rarely easy a
567.
▲
by
ChrisSD
7y ago
I think you're mixing up your timelines. ES5 brought `Object.create` and other prototype helper methods. This was a heyday, of sorts, for JS as a prototypal language with Crockford and others trying to explain how prototypes differ fro
568.
▲
by
ChrisSD
7y ago
Presumably that's for the HTML template. The article has a citation from November 2002.
569.
▲
by
ChrisSD
7y ago
~2003, assuming its related to the paper[0] of the same name (and sharing an author/diagrams). The paper was very influential and helped change minds on the subject. [0]: http://srl.cs.jhu.edu/pubs/SRL2003-02.pdf
570.
▲
by
ChrisSD
7y ago
Sure I don't want to diminish its use in business but my point was that its continued use by academics is what made it viable for some businesses. It likely would have died out if it relied on business (and other non-academic) users.
More ›