Hacker Newsnew | past | comments | ask | show | jobs | submit | dizzant's commentslogin

Wasn't WSL1 an attempt at your "reverse of this project"? It didn't work out too well, the compatibility layer had too much overhead and WSL2 just went back to a standard VM setup.

coLinux well before Microsoft did WSL1. It even had a distribution for it, andLinux.

At some point in time it was possible to install KDE natively on win32 too, but I never got to replace the win32 shell entirely with KDE.


WSL2 is not supposed to be a replacing version to WSL1, just a different variant. But yeah I think they do not invest much resources into WSL1. But did they ever? I thought it was just the repackaged Android implementation.

Yeah, I thought the same thing -- I like this better.

However this project is hosted on GitHub so now Microsoft owns this opposite codebase too.


MS "Hosts" not "owns" it. It's still LGPL

Technically that is true. Respectfully, you're missing the nuance of what I said. Because, you're ignoring the fact that Microsoft uses, among other things, the very projects that are hosted on GitHub repositories (which they own) to train their own AI models.

Once that code is refactored inside those models the copyright becomes debatable.

This is something RMS noted too, see:

https://news.slashdot.org/story/21/09/18/0432224/richard-sta...

So, yes, they don't own it, but they might as well, because attribution after being refactored inside the AI model becomes vague.



I couldn’t disagree more! Doing a bad thing is a bad way to spend time by definition; therefore “no bad way to spend your time” suggests there are no bad actions.

History is replete with truly abhorrent counterexamples. One can certainly spend time badly.


If nobody had ever created a computer virus we’d be far less prepared for people to start writing them.

As such even ‘abhorrent’ uses of one’s time can have long term positive outcomes. Which means we don’t have enough information to actually rank outcomes only heuristics.


> If nobody had ever created a computer virus we’d be far less prepared for people to start writing them.

First, this argument is neutral to the morality of the action. If nobody had ever created a cure for cancer, we'd be far less prepared for someone to create it. That's not the reason to cure cancer.

Second, we can and do go quite far to consider the consequences of imagined future actions without actually taking them. This is arguably one of the major purposes of fiction. It is not necessary to do bad things to know that they are bad and prepare to respond to them.

Third, the potential for someone else to do a bad thing in the future, does not justify anyone doing a bad thing now. It's still a bad thing.

> even ‘abhorrent’ uses of one’s time can have long term positive outcomes

Intended long-term positive outcomes certainly don't justify near-term atrocities. If that were true, mercilessly killing the Jews could be justified to establish prosperity in Germany.


> First, this argument is neutral to the morality of the action. If nobody had ever created a cure for cancer, we'd be far less prepared for someone to create it. That's not the reason to cure cancer.

You missed a core aspect of the argument.

Cancer is inherent in our biology, computer networks aren’t inherent. An earlier cure for cancer is a net positive because it cures cancer earlier Without investigating any secondary effects.

The harm from early computer viruses was many orders of magnitude less it would be if we’d built the current systems without any defenses whatsoever. Therefore objectively the benefits have massively outweighed the harm.

> Intended long-term positive outcomes certainly don't justify near-term atrocities. If that were true, mercilessly killing the Jews could be justified to establish prosperity in Germany.

Your timeline is off, actually killing the Jews happened well after German prosperity was declining in the war. The underlying economic engine had transformed into stealing from other countries at that point and was in obvious decline.

More critically the argument was about measuring the outcomes of those actions of an individual. Antisemitism predates the Nazi by literally thousands of years. We can’t literally rerun history and look for the maximum destruction traceable to any specific individual, but it’s likely large scale mechanized slaughter was effectively inevitable by 1900. Eastern Europe had the relatively tiny but even more recent Bosnian genocide, but scale it with population and you get a different perspective.

On the flip side abolitionism (anti slavery movement) lead surprisingly directly into far more deadly (vs holocaust) famines in Russia and China etc via the Communist Manifesto written 13 years before the US civil war began. Objectively judging outcomes is beyond us.


> Jiff is pronounced like “gif” with a soft “g,” as in “gem.”

A masterclass in viral outrage bait. Not a Rustacean, I clicked the link exclusively for this nugget and will probably tell my Rust-loving colleagues about it tomorrow.

For the record, I like the converse better:

> Jiff is pronounced with a hard “g”, as in “gif”.


I'm sorry you don't like std::regex. That isn't a problem with C++'s specification practice.

C++'s separation of spec from implementation is clearly functional. There are several major open-source standard library implementations that compete on the basis of performance, ABI stability over versions, quality, etc.

C++'s core ethos is "only pay for what you use". std::regex does this. In my experience, the "problem" with std::regex is that it provides more features by default than most people want, and you pay for using those features. Specifically, std::regex respects the runtime locale. There are good reasons a standard library feature might do this (e.g. it simplifies the interface, it's broadly applicable, etc.), but it's obviously not going to give optimal performance. This is a necessary tradeoff for any standard library.

Locale handling requires dynamic memory allocation, virtual function dispatch, sometimes system calls. Locale handling also prevents some low-level optimizations based on the character encoding. If you need that kind of performance, std::regex probably isn't for you, go grab a non-standard library that suits your needs.


locale is a great example of a concept that is catastrophically bad, provides zero value, and shouldn’t exist at all in the spec.

std::regex is so worthless that no one uses it. My codebase gives CI warnings when it’s used. so it’s not even really a problem. It is indicative of a larger problems.

> C++'s separation of spec from implementation is clearly functional.

Your bar of “clearly functional” is is not a compelling or meaningful bar. What a weird fallacy.

C++11 was pretty great and meaningfully modernized the language. The amount of useful good things in each following release got smaller and smaller. Maybe just one or two useful improvements in C++20. Almost nothing in C++23. And now C++26 has failed to pass. It’s grinding to a halt. The biggest recent features such as concepts and modules have been catastrophic failures.

Those failures aren’t all due to my specific complaint of “battery specs are a bad idea”. But “functional” is the lowest possible bar. And one could argue that as a whole isn’t being met.


> catastrophically bad, provides zero value, and shouldn’t exist

Again, if you don't like it, don't use it. Can I assume that you would agree that `std::format`, which does not use locales, was a good addition in C++20?

> Your bar of “clearly functional” is is not a compelling or meaningful bar.

I pointed to the existence of multiple widely adopted, successful, competing implementations as evidence that the standard does functionally achieve the explicit goal of standardization, i.e. to support multiple implementations.

> Those failures aren’t all due to my specific complaint of “battery specs are a bad idea”. But “functional” is the lowest possible bar. And one could argue that as a whole isn’t being met.

You recognize that you're moving the goalposts here, right? Your overall point appears to be that the benefit of multiple implementations is not worth the costs of standardization, and that centralizing to a single specific implementation would be better in certain ways. In particular, it seems you think that more features per release ("each following release got smaller and smaller"), different features that what we got ("just one or two useful improvements in C++20"), and less community input about proposed changes ("C++26 has failed to pass") would be better than the status quo.

That's a fine opinion, but it's not an argument that standardization isn't functional.

> concepts and modules have been catastrophic failures

You're right about modules. C++26 failed to pass because some in the community don't want to repeat the mistake with contracts. This is a victory for standardization, not a loss. Further evidence that the process is working: the other improvements in C++26 (like reflection) are so desirable that this delay meaningfully hurts. If nobody wanted the changes, we'd all still be using C++11. And as always, if it's C++11 you want, the existence of the standard makes it possible.


I'm surprised that 10 years later, the article still teaches an incorrect conceptual understanding of "quantization".

The context heavily implies that quantization is "discarding information" generally (e.g. clipping, masking). The wikipedia article he links in the footnote disagrees, and so do I:

> quantization is the process of mapping input values from a large set (often a continuous set) to output values in a (countable) smaller set, often with a finite number of elements.

Quantization is a function over values, or the image itself. Clipping and masking, by contrast, are functions over the space/frequency dimensions, i.e. the pixel indices ("preimage"). A rule like "apply a circular mask" or "drop the first quadrant" does not depend on the values!

The most extreme example of quantization is a threshold filter. Regardless of location, output "1" if the pixel is brighter than X, or "0" otherwise. This depends only on the value, not on the location. He also misses the opportunity to point out that chroma subsampling is another application of quantization, this time to chroma values (drop the low-order bits).

Codecs like H.264 and JPEG use spatially-varying quantization rules to effectively discard more information at high frequencies, so his explanation of H.264 is spot on, but a non-expert encountering quantization for the first time would probably come away with the wrong idea. For an article explicitly targeted to non-experts that goes out of its way to introduce the term, it's a pretty important oversight.


Consider me confused. Isn’t quantizing a value, e.g. reducing the number of bits in an int, a form of discarding information from that value? Isn’t your comparison just about discarding information on another level (discarding entire values)?


I think the GP's point is, if you don't know what quantization is, the article gives the impression it consists of discarding some of the values, which is where the compression comes from. This is a good "0-th order" intuition, but quantization is a softening of this; instead of fully retaining or fully discarding a value, there is a sliding scale of how much information to discard. If you already know what quantization is, it's easy to see how discarding is a special case, but the article gives the impression discarding = quantization.


Exactly correct. Quantizing is like rounding. This is the same notion as in quantum mechanics: the values aren’t any real number (a huge input space), but rather integer multiples of some constant (a small output space). Quantization is “rounding” to the nearest allowed output.

To build on the example used in the article, you could quantize an image by dropping the lower half of the bits of every pixel value. This discards half the information by mapping the larger input image space (e.g. 8 bits per pixel) to a smaller output image space (e.g. 4 bits per pixel), effectively scaling/rounding the original values.

The fact that higher frequencies can be quantized more intensely with relatively little image quality loss is a completely separate idea from quantization itself. In this context, high frequency masking as described in the article could be accurately described as a spatially dependent quantization to zero-bit output values. But the quantization part is the mapping, not the shape of the mask, and I think the article is misleading about the distinction.

In real codecs, there usually isn’t a hard boundary like a mask, but instead an empirical table of how many bits to keep based on the perceptual value of the information at each frequency.


The definition you quoted explains why quantization discards information: multiple distinct input values map to the same output value. Once that happens, you can no longer determine the original input from the output alone. The distinctions between those inputs are the information that has been lost.


I’m not saying that quantization doesn’t lose information. Instead, I’m saying that every step to lose information is not quantization. Functions on the preimage (clipping, masking) are not quantization.


Transparency has a cost. There are several good reasons, but my favorite is intellectual freedom. Policy makers would be much less likely to explore bold reforms or risky bipartisan compromises if their draft quality notes and correspondences were publicly tied to their political reputation. It takes significant work to produce successful legislation, and much of that work can be productively and safely done without direct public oversight. This is the same reason an individual might value a private journal.

If you have a problem with your representative’s behavior, call their office and ask about it. They will certainly have a reason. Tell them if you disagree, and vote when you can.


> Policy makers would be much less likely to explore bold reforms or risky bipartisan compromises if their draft quality notes and correspondences were publicly tied to their political reputation.

Only if those bold reforms weren't in the interests of the people they serve. Risky bipartisan compromises should still be transparent along with what was gained in exchange for them. If the people feel that the compromise wasn't worth it they should be empowered to vote accordingly come election time. It's the job of representatives to assure the people who elected them that they are doing a good job and if they can't do that they deserve to lose their position. Refusing to support bold reforms that the people they represent want, or refusing to compromise when it would be beneficial to voters would become just as costly to their career.

> It takes significant work to produce successful legislation, and much of that work can be productively and safely done without direct public oversight.

Often most of that work is done entirely for them by corporations and lobbying groups and "law makers" just vote how they are paid to vote without even reading the bill put before them. Just because something can be done in secrecy doesn't make that the ideal way to do it. We've have extremely poor results with the system as it stands right now, so a change to introduce more transparency and accountability seems like a very good idea.

> This is the same reason an individual might value a private journal.

A public servant representing the people by making edits to laws and performing the duties they were elected to carry out is nothing at all like someone keeping a private journal. Their work is not their personal affairs, it is the public's affairs. How that work is being done matters to the public. Legislators would still remain free to go home at the end of the day and write in their private diary all they like.

> If you have a problem with your representative’s behavior, call their office and ask about it.

When their behavior is conducted in secrecy behind closed doors the public doesn't have the ability to hold them accountable for it, which is exactly why it takes place in secrecy. Increasing the public's ability to hold elected officials accountable by increasing transparency can only improve outcomes for voters, and it would certainty be inconvenient for elected officials who want to put their own interests above the interests of the people who elected them.


> Only if those bold reforms weren't in the interests of the people they serve.

This is my point exactly: the creative process is impossible to do perfectly. If you want to find potential policies to enact, you need to examine very many policies that don’t work and aren’t in your constituents best interest. Those get left on the table and not advanced to actual congressional actions, sparing the legislator scrutiny for their creativity.

Some creative solution-seeking will happen in a bipartisan way through negotiation. I understand the desire to see the whole process, but removing the veil would change the behavior the participants. If every word were subject to partisan scrutiny from the wings, how could congresspeople possibly get anything productive done? See as evidence congressional committee hearings, in which the members spend significant time grandstanding for C-SPAN sound bites instead of productive questioning.

> When their behavior is conducted in secrecy behind closed doors the public doesn't have the ability to hold them accountable for it

This is obviously not true. Every bill has publicly documented sponsors and goes through a lengthy, public process with several rounds of procedural votes, committee approvals, amendment debates, etc. At some point there must be a minimum granularity of attribution. Track Changes from blank page to finished law would be useless anyway, because it would show some unpaid staffer actually typed most of the changes. Even Git history uses commits, and very mature projects like the Linux kernel revise their patches rather than keeping a detailed history of the patch creation. The champion who landed it and their reviewers are credited with the patch, as also in Congress.

> Often most of that work is done entirely for them by corporations and lobbying groups

The drafting and ideation? Sure! I wouldn’t want it any other way. It’s much better that we have an entire industry of people studying the law, finding solutions, and advocating their preferred options, rather than a group of Philosopher Kings making the law in isolation. You’re also dramatically downplaying the effort of coalition building, balancing constituent pressure, and passing procedural hurdles that is required to take a bill all the way from draft to law.

I think we may agree that provenance of bill text originating from outside of Congress could potentially be more transparent. But then again, the relevant interest groups are usually very well known by the time a bill reaches the floor anyway because that is their whole purpose, and they want to take credit for their victories. And “Monsanto drafted these provisions” is pretty far from the vision of absolute transparency and zero congressional privacy that you seem to be suggesting.

Do you have other specific ideas to increase transparency? If bill sponsor attribution, public debate and amendment, and recorded voting record are insufficient to understand a legislator’s actions, what would you suggest instead?



Would you disagree that, given the choice, a solution to every problem is strictly better than a solution so only some problems?


No. Because for let’s say the halting problem the general case says it’s unsolvable, but each specific case is solvable.


1. Not all specific cases are solvable.

2. That the worst-case is very hard usually tells you that many instances will be hard (unless you discover an easy subclass), as is the case here. And when many "natural" instances are easy, that means that the problem is more interesting than perhaps previously thought, and it requires and receives more research, not less. If most instances are near the worst case, it means you know all there is to know about the problem; when they're not, it means there's more to study.


Can you give a specific finite program which is undecidable?


A program that enumerates all theorems in ZFC and stops when it proves a contradiction (e.g. true = false). Encoding a program that is equivalent to that directly as a Turing Machine in merely 748 states: https://www.scottaaronson.com/papers/bb.pdf (meaning that we cannot prove an upper bound on the 748th Busy-Beaver number, but there are probably even smaller undecidable TMs).

But my favourite example (shown here in Java) demonstrates the difficulty of analysing simple, realistic programs without necessarily being undecidable:

    long foo(long x) {
        if (x <= 2 || (x & 1) != 0)
            return 0;
        for (var i = x; i > 0; i--)
            if (bar(i) && bar(x - i))
                return i;
        throw new Error();
    }
    
    boolean bar(long x) {
        for (var i = x - 1; i >= 2; i--)
            for (var s = x; s >= 0; s -= i)
                if (s == 0)
                    return false;
        return true;
    }
Even in this case where even the input space is finite (and so everything here is definitely decidable), we simply don't yet know whether there is some x for which foo(x) throws, let alone if we made the input unbounded by using BigInteger instead of long.


Yes I disagree, because the algorithm to solve every problem takes longer to run than the remaining age of the universe.


A real treat for all the pilgrims on the Camino this year


Pronounced like “groom” makes for a nice analogy with slimming down the model size too.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: