2,676 karma · joined Nov 28, 2019 (7y ago) · 1,131 submissions
comment 1y ago · link · parent
comment 1y ago · link · parent
> Performance or Benchmark Testing. You may not disclose the results of any benchmark test of either of the Windows 95 Software Components to any third party without Microsoft’s prior written approval.
Wasn't that an Oracle sin? I guess Microsoft didn't want to miss out on the dickery.
comment 1y ago · link · parent
I see your point, but my point is that implementing this is either impossible or would require changing how networks are used by programs at a fundamental level.
A middle ground might be to create a distro that uses something like SELinux to prevent all network access to non-system processes. Then each package would have to be audited to determine which addresses it can bind to, and/or which name lookups it can do, and how those capabilities are connected to actions performed by the user. Then there is still the question of what to do about software that accesses the network independent of the user, but maybe you can argue that shouldn't exist. How do updates work? Besides, if I allow Slack to connect to mychats.slack.com, nothing prevents the software from sending telemetry to that endpoint. You would need an army of manual enforcers, and that's not to mention non-free software.
comment 1y ago · link · parent
comment 1y ago · link · parent
while ((message = map.get(key)) == null) {
long now = System.currentTimeMillis();
if (now >= timeoutTime) {
break;
}
wait(timeoutTime - now);
}
If I had my way, then all "sleep" APIs would take a deadline time point, not a time duration. Also have the API do nothing if the deadline is passed. This way, getting the subtraction right need only happen in the lowest shared part of the library. Then it's a lot like the original example: while ((message = map.get(key)) == null) {
waitUntil(timeoutTime);
}
edit: Oops, my last example has a pretty bad bug. The author's point stands, and I need coffee.You could have waitUntil return true or false to indicate whether the wait occurred or not, but then that loses the opportunity to convey whether the thread was awakened due to an operation on the map.
do {
message = map.get(key);
} while (message == null && waitUntil(timeoutTime));
Author's original example still wins.comment 1y ago · link · parent
Hygienic macro expansion is one of the things I still haven't implemented before. I remember a [talk][1] where Matthew Flatt illustrates the idea of sets of scopes, and choosing the largest intersection. I see in your implementation there are sets of "marks" in syntax objects, is that what's going on there?
I haven't played with rust, but when I do I'll be able to play with this scheme too.
comment 1y ago · link · parent
It's not time reversal symmetric, but it's probably [CPT][1] (charge-parity-time reversal) symmetric.
If you forget about quantum field theory and consider classical physics in Minkowski space (or Cartesian space), then t -> -t indeed doesn't change the physical laws. You could tell the two apart, though, provided that the system is far from thermal equilibrium (e.g. "why is this egg uncracking spontaneously?").
comment 1y ago · link · parent
The UX benefit is that I figure out what I want to watch by browsing the web, then pick a download (lots of seeds, decent size), and before long I can start watching. Usually I queue up a few options in case my mood changes.
It doesn't matter which service owns the rights, or which devices I'm using, or anything. I can watch the downloaded content whenever I want, forever. No trailers or unskippable notices. I'd pay money for this flexibility if I could.
comment 1y ago · link · parent
I'd prefer a formal language with a parse tree and all that, but I think the spirit of the nginx code is "just what you need and nothing more."