Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
dwattttt
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
65 ms
·
961.
▲
by
dwattttt
4y ago
The contents of the archive could be verified rather than the archive itself, since that's what needs to not change. If the compression level changed the archives would also have a different checksum, but no one would say they require
962.
▲
by
dwattttt
4y ago
I was curious what would go wrong, this just worked for me: py -3 -m pip install tokenizers ... Building wheel for tokenizers (pyproject.toml) ... done Created wheel for tokenizers: filename=tokenizers-0.13.2-cp311-cp311-win_amd64.whl
963.
▲
by
dwattttt
4y ago
Finding where & how to use an installed VS instance (or selecting one) in automated tooling is solved by the criminally unknown, MIT licensed, MS supported, redistributable, vswhere tool: https://github.com/microsoft
964.
▲
by
dwattttt
4y ago
The first quote implies there's more things the injunction requires. Your second quote, the content of the the cease and desist clause, is covered by the injunction. More of the quoted sentence: > ... issued a Section 10(j) injuncti
965.
▲
by
dwattttt
4y ago
The Rust docs for the 'for' keyword do say for loops are implemented as sugar for iterator loops. https://doc.rust-lang.org/std/keyword.for.html Relevant part: > for-in-loops, or to be more precise, iterat
966.
▲
by
dwattttt
4y ago
As I recall, the compiler didn't know it had found undefined behaviour. An optimisation pass saw "this pointer is deferenced", and from that inferred that if execution continued, the pointer can't be null. If the pointer
967.
▲
by
dwattttt
4y ago
> You may wish to allocate a huge amount of address space for convenience purposes, as it could allow you to use much simpler data structures (such as sparse arrays) which can be a lot more performant than more complicated data structure
968.
▲
by
dwattttt
4y ago
> Which function did the error come from? Who knows. And what if canFailA/canFailB return errors from other functions up the stack the same way? Now you've got a massive tree of possibilities to try and work through. A complete
969.
▲
by
dwattttt
4y ago
The first acronym cleverly demonstrates the redesign
970.
▲
by
dwattttt
4y ago
It shouldn't take much more than that, unless you're not using Visual Studio in the first place.
971.
▲
by
dwattttt
4y ago
It's still true today; the current version of 7zip doesn't support Control Flow Guard (validated on Win11), and there's lots of security features that come _after_ supporting that.
972.
▲
by
dwattttt
4y ago
Box::leak. Assuming the object you're leaking contains no references, it can then live for 'static (the lifetime of the process)
973.
▲
by
dwattttt
4y ago
Start making raw edits directly to an ext4 disk rather than using published libs/APIs, and you'll soon find some new horrors to be scared about.
974.
▲
by
dwattttt
4y ago
msvcrt.lib includes things other than direct imports to msvcrt.dll; bugs in that code are going to be linked into your binary at compile time.
975.
▲
by
dwattttt
4y ago
That cuts both days, a Windows developer trying to port a project to Linux would be justified in concluding the filesystem locking semantics are horribly broken and non-existent.
976.
▲
by
dwattttt
4y ago
Multiplying them is another way of expressing them as a unified value. It's not a question of accidental bias, you're explicitly choosing how important one second is compared to one byte. You could imagine there's a 1 sec
977.
▲
by
dwattttt
4y ago
It's not necessarily wrong to add disparate units like this. It's implicitly weighting one unit to the other. Changing to nanoseconds just gives more weight to the time metric in the unified benchmark. You could instead explicitly
978.
▲
by
dwattttt
4y ago
There's a compatibility hack in Windows that causes binaries with "setup" in the name to request administrator privileges, unless they embed a manifest that specifies they don't need it (last part slightly speculative)
979.
▲
by
dwattttt
5y ago
Only if the program doesn't teach you the meaning of the term "opportunity cost"
980.
▲
by
dwattttt
5y ago
That's the default configuration for bitlocker, but there are others, including requiring a password or key provided by USB on startup
981.
▲
by
dwattttt
5y ago
There's an interesting inversion in people's expectations between compiled programs and source. If it's compiled, it should do one thing and do it well. If it's a source package, it should implement as much as it can and
982.
▲
by
dwattttt
5y ago
While this is true, the go vs vDSO stack clash corruption highlights that a C ABI that doesn't specify stack usage is under defined. A platforms libc can be written such that it's aware of these limitations.
983.
▲
by
dwattttt
5y ago
It's not the wording they could use if they were sure that at least one alert was sent in error; then they wouldn't say it was likely, they'd say they know there were erroneous alerts. As it is, they're just speculating
984.
▲
by
dwattttt
5y ago
That's true, but it's true for all non-gc languages, and a problem for gc'd ones too.
985.
▲
by
dwattttt
5y ago
Superficially, you'd wrap the enum in a struct, and put the PhantomData there. I'm not sure that makes sense for this example though.
986.
▲
by
dwattttt
6y ago
You actually can have a single queue that handles the different cases. You want dynamic dispatch for that, the syntax looks like this (quick addition to the playground sample): https://play.rust-lang.org/?version=stable&