Better HN
topnewbestaskshowjobs
Log inSign up

ComputerGuru

32,405 karma · joined Jan 3, 2008 (18y ago) · 8,297 submissions

mqudsi on most sites.
Submissions

comment 6y ago · link · parent

> You can slap on features on a bad language and make it good language.

I believe you meant to say “you can’t ...”

comment 6y ago · link · parent

It depends on where you’re from and what sort of upbringing you’ve had and life you were exposed to. Just like most common knowledge.

comment 6y ago · link · parent

One of the algorithms could be capped at $1000 for their inventory.

comment 6y ago · link · parent

That’s what hotels do. It’s kind of a secret but basically every hotel lets you keep your luggage past checkout and pick it up later that day before you leave for the airport.

comment 6y ago · link · parent

My point is that even that basic functionality a) did not extend to all of git's core functionality, and b) went unused by major players in the industry self-procaimedly responsible for "optimizing" the internet.

comment 6y ago · link · parent

I have always done —depth=1 for projects I am not a core developer of, but ran into an issue with it being seemingly impossible to do the same with submodules.

Golang should have figured this out from day 1 before shipping with a release system built around cloning a repo in its entirety, history and recursive submodules, and all.

comment 6y ago · link · parent

The never-ending Skylake is/was a real problem. Intel was slowly adding features in a manner where it made sense to target last n generations but then all that came to a perpetual stop and suddenly we have this new extension that you can only really use on the very latest and most expensive, with virtually no backwards compatibility.

The instructions are sufficiently different from AVX2 that any appropriate use is not as simple as sticking it behind a gate and using a smaller block size, it basically requires a completely separate (re)write to properly take advantage of.

comment 6y ago · link · parent

It does not. They use old footage of models indefinitely and can be accused at any time of distributing such materials even after they’ve stopped distributing it when clients are found in possession.

comment 6y ago · link · parent

The actress had to fly from Spain to the United States to testify all because an “expert” said she appeared to be a minor in the material in question, iirc.

comment 6y ago · link · parent

They’re priced by different algorithms that “outbid” each other.

comment 6y ago · link · parent

The filesystems aren’t synchronized, though. Quite misleading! I’m not sure there’s a technical reason why they couldn’t theoretically be synchronized (either in real-time via a custom fs layer or as cron task, etc).

comment 6y ago · link · parent

Which is a bit weird since .NET Core has standardized on the open source SignalR, which is really good. It would make more sense to build on top of that.

comment 6y ago · link · parent

Anything could have happened. (But I agree, the title is a bit of a stretch.)

comment 6y ago · link · parent

There was a test message sent last year when the system was first implemented. It has significant news coverage at the time (most of it along the lines of “Trump wants to send notifications you can’t block to your phone”) but it was definitely heavily featured that they aren’t blockable.

comment 6y ago · link · parent

Yes, one of my favorite bloggers for more years than I can count. What is crazy isn’t just how crazy the stories he has to share are but also just how many of them he has. You’d think with the craziness bar set so high he wouldn’t have this much content, but he still manages to be one of the most prolific bloggers!

comment 6y ago · link · parent

I believe the issues you (and I) have had with ports are not fundamental issues with ports, which is to say that they are actually illegal changes in release repositories and would have been reverted if called out during development and testing.

comment 6y ago · link · parent

Even with interleaved insertions and lookups, there are common scenarios that make a sorted vector still significantly more performant. I wrote about it when we published our open source SortedList<T> implementation for .NET and .NET Core [0], specifically comparing it to AVL and Red-Black trees.

[0]: https://neosmart.net/blog/2019/sorted-list-vs-binary-search-...

comment 6y ago · link · parent

If it were a simple website it wouldn’t be broken. The over-complication here isn’t in the browser, it’s in the website.

comment 6y ago · link · parent

Statically linked processes can’t share dependency pages with other, different processes. Multiple instances of the same process or multiple threads don’t have to incur that same penalty.

comment 6y ago · link · parent

I think the Onion does the same thing ;)

comment 6y ago · link · parent

Every time a BBC link is posted this comes up. BBC does not use scare quotes but BBC prefers (requires?) important/central descriptive or modifiers to be directly quoted, even when they’re single words.

comment 6y ago · link · parent

Holy backwards compatibility, Microsoft!

comment 6y ago · link · parent

It is because condition variables have no state, i.e. calling signal without waiters is equivalent to doing nothing and does not affect a future wait. The concern is that a thread is switched out after it checks the condition but before it calls wait, and in that moment the condition variable is signaled. The thread then calls wait and is not awoken (potentially never to be awoken). If the predicate is not altered without the mutex and the waiting thread has the mutex at the time it checks the predicate (this latter part is a must in all cases), then it is guaranteed the predicate will remain unmet at least until the thread has switched to a waiting state.

So simply using an atomic (even with a full release-acquire memory barrier) is not necessarily sufficient as that would only enforce the coherence but not prevent the scheduler from interrupting at the wrong moment.

comment 6y ago · link · parent

No, it definitely does. I’m not talking about the old “everyone’s income will just go up” defense. There is a “time added” cost that is a part of the price of any good or service (which may comprise only a part of the value added measure). Imagine a product that is created from raw materials so abundant as to be in and of themselves worthless. Its cost is purely the cost of the time (and effort, which is actually convertible into time) that went into it (amortizing the cost of tools and equipment, overhead, utilities, etc). This “time cost” is a component of any product or service for sale. If the wheel on your car used the same exact materials and the same exact manufacturing process but took ten times longer (just stretch every step out) it would cost more, and not only because they can make less of them.

This time cost cannot be less than a factor directly proportionate to minimum wage (local minimum wage or global minimum wage depending on economic policy).

In a sense, minimum wage is the cost of (human) time itself. You’re saying “regardless of the labor involved or otherwise, the skill involved or otherwise, the care involved or otherwise, the social skills involved or otherwise, the know-how involved or otherwise, this is the lowest you can pay someone to do something on an hourly basis (with many caveats, such as allowing employers to deduct the cost of services they provide their employees from said wage, etc). You can’t raise that cost without the cost of everything else shifting upwards by some extent with it. No one that understand economics debates that. The question is just how big this shift is.

comment 6y ago · link · parent

I’m all for fair pay, even if it means things (products or services) become more expensive. But therein is the problem: If the minimum wage is ten dollars an hour and you’re making twelve dollars an hour, that’s very different from minimum wage being twelve dollars and you’re making twelve dollars. Raising the minimum doesn’t just give minimum wage earners more money, it simultaneously devalues the money they receive. Does it devalue it at a rate proportionate to how much more they now make (on paper)? I don’t know. We almost certainly have to increase it (x+n)% to realize a benefit that on paper would come from an x% increase alone.

Globalization and protectionism also play a role here, and are a critical factor in the answer (think global minimum wage vs local minimum wage).

comment 6y ago · link · parent

Perhaps I was a little too optimistic ;)

comment 6y ago · link · parent

It depends on if the predicate can (also) be changed without the lock being held, as otherwise the release/acquire ordering semantics are not guaranteed. So long as items are only every enqueued with the lock held, it should be ok.

comment 6y ago · link · parent

The exception I guess is when paired with a condition variable, since CV waits are not guaranteed spurious and necessarily must be combined with another condition. The caveat being that the variable being tested upon wake must not be modified without the lock held (presumably to prevent reordering).

comment 6y ago · link · parent

The C++ spec simplifies what is basically an abstraction over the posix layer. I dug into this very deeply a long time ago, there’s a lot nuance there and documentation is confusing: https://github.com/neosmart/pevents/issues/2

comment 6y ago · link · parent

*autobiography
1
137138139
277