Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ChrisSD
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
45 ms
·
481.
▲
by
ChrisSD
6y ago
If you use the DeleteFileW function then it handles all that for you, including setting FILE_DISPOSITION_POSIX_SEMANTICS. At least it did the last time I tested it. But sure, don't take my word for it. Test it. Edit: Just tested again.
482.
▲
by
ChrisSD
6y ago
That does depend how the file is opened. If it's opened with full file share rights (read/write/delete) then it won't block access. Delete is different in the sense that deleting a file is just adding a flag which tells
483.
▲
by
ChrisSD
6y ago
See also: Document when we do guarantee that drop runs[0] [0]: https://github.com/rust-lang/nomicon/issues/135
484.
▲
by
ChrisSD
6y ago
Though it is somewhat ironic that this post is prompted by an advertisement for a Warner Bros movie.
485.
▲
by
ChrisSD
6y ago
Can I ask why it's considered "ugly" now but wasn't before? Isn't it just a few pixels bigger?
486.
▲
by
ChrisSD
6y ago
Rust supporter: Build times are comparable to C++. Rust critic: Build times are comparable to C++!
487.
▲
by
ChrisSD
6y ago
That's the PRO version. As flipbrad said, it doesn't appear to be available yet. At least I can't find how to purchase one.
488.
▲
by
ChrisSD
6y ago
Note that they can potentially change with every single update to the OS. That's why that site lists the syscall for every update. They are not stable.
489.
▲
by
ChrisSD
6y ago
No FIDO2 so it won't work with everything. No NFC.
490.
▲
by
ChrisSD
6y ago
Note that a "syscall" means calling into the kernel directly. Only Linux has stable syscalls. As mentioned below, on Windows syscalls are highly unstable. They change with every single update to the OS. You have to call functions
491.
▲
by
ChrisSD
6y ago
With Windows "libc" is split in two: ucrt and vcruntime ucrt is available on all modern version of Windows (since 7) and doesn't need to be statically linked or distributed with the application. It has most functions needed f
492.
▲
by
ChrisSD
6y ago
Sort of. Many NT functions are officially documented. But they're also officially documented as unstable. They probably won't break many of the oldest functions but they reserve the right to do so at some point.
493.
▲
by
ChrisSD
6y ago
I think EDIT.COM was 16-bit so couldn't survive the 64-bit transition.
494.
▲
by
ChrisSD
6y ago
It sounds like you can pay extra for security patches until 2024: https://access.redhat.com/support/policy/updates/errata/#Ext...
495.
▲
by
ChrisSD
6y ago
Sure but RHEL 6 has Extended Life-cycle Support until 2024.
496.
▲
by
ChrisSD
6y ago
On the other hand Python 2.6 will be supported on RHEL 6 for as long as RHEL 6 is supported. Of course this still means having to switch again in a few years time but that's a problem for future JP Morgan.
497.
▲
Tell HN: forbes.com/sites is not the Forbes magazine
8 points
by
ChrisSD
6y ago
|
0 comments
498.
▲
by
ChrisSD
6y ago
KeePassXC, LastPass, Bitwarden and 1Password are the major ones.
499.
▲
by
ChrisSD
6y ago
If there is malware on the pc then the browser itself must be assumed compromised. It's futile to half plug one small hole while a million others exist. And by attempting to plug that hole you've added an inconvenience that may en
500.
▲
by
ChrisSD
6y ago
That ends up being misleading though as it ignores optimizing compilers. A pointer isn't simply an integer address of memory. It's tagged (by the compiler) with information about e.g. which allocation unit it came from and what ex
501.
▲
by
ChrisSD
6y ago
"Backend Development" is basically anything that happens on the server side. That covers a multitude of sins, from the lowest levels to the highest.
502.
▲
by
ChrisSD
6y ago
To be clear Mozilla first mentioned starting sponsorship for something called "Rust" a few months after Go was publicly announced. However that prototype "Rust" was a language almost entirely unlike Rust 1.0 (which didn&
503.
▲
by
ChrisSD
6y ago
That Flash should be deprecated wasn't controversial (at least amongst tech savvy people). What was controversial was not supporting it at all, because doing so locked out a lot of the web of the time. Especially certain enterprise sit
504.
▲
by
ChrisSD
6y ago
Implicit clones are enabled using the `Copy` marker trait in Rust.
505.
▲
by
ChrisSD
6y ago
I'm curious, if you install a desktop distro like Ubuntu then what choices do you have to make?
506.
▲
by
ChrisSD
6y ago
I think the maintained equivalent would be in the Rust API guidelines: https://rust-lang.github.io/api-guidelines/naming.html#ad-ho...
507.
▲
by
ChrisSD
6y ago
"Ownership", "move", "lifetimes", etc have nothing* to do with what happens in the compiled program. It's a kind of static analysis. The closest analogy from the JS world would be what Typescript is to JS.
508.
▲
by
ChrisSD
6y ago
Tbh, I'm not sure that reading a list of falsehoods is the best introduction to actually programming in a language.
509.
▲
by
ChrisSD
6y ago
C array access syntax is just syntactic sugar for pointer arithmetic. The array decays to a pointer so `t[i]` is interpreted as: *(t + i) So you can see how swapping that around to `i[t]` is effectively the same operation: *(
510.
▲
by
ChrisSD
6y ago
Perhaps Rust should make clearer that `String` is a string buffer and not just a string type. Other than that I think Rust does need different string types for different situations. As to the standard library, I've actually started to
More ›