HNHacker News
TopNewBestAskShowJobs

wz1000

1,940 karma · joined June 23, 2014

submissionscomments
wz1000··on My Personal Journey from MIT to GPL
GPL is pretty much a "it's the right thing to do" kind of license. GPL violations are widespread and the terms are rarely enforced. Even when they are, in 99.9% of cases there are no penalties(unlike most commercial licenses), just a requirement to publish your code and adhere to the original terms of the license.
wz1000··on Facebook plans cryptocurrency debut
Seems to me that "trust" is the last thing the average joe would associate cryptocurrency with. A database with a public audit trail might be a better idea if you want that, but that certainly doesn't sound as trendy and exciting as "blockchain".
wz1000··on Facebook plans cryptocurrency debut
> blockchains should be replaced with centralized SQL databases

Blockchains whose tokens are subject to the authority of a central issuer anyway should be replaced with centralized SQL databases. Bitcoin/namecoin/etc. can't be replaced with centralized databases. FBCoin can, as can any blockchain that is supposed to track meatspace resources(since physical resources are subject to the authority of the local government/men with guns anyway).

> Git repositories are just like blockchains

Nope, I don't consider this to be true. Blockchains are supposed to have decentralized consensus and allow arbitrary nodes to propose changes.

wz1000··on Facebook plans cryptocurrency debut
Git is "append-only". Just like a normal blockchain, you can't modify an older commit without rewriting all the commits since then.

Git also supports signed commits.

wz1000··on Facebook plans cryptocurrency debut
Every git repository counts as a blockchain by that definition.
wz1000··on Facebook plans cryptocurrency debut
> Also, compared to a centralised database, you have an interoperability aspect - if it's just an organisation keeping everyone's balances, it's hard to make those balances interact with the rest of the blockchain ecosystem (e.g. how do you participate in an ICO, if the crypto balances are stored in one system, and token balances are stored in another? implement APIs for every single one of them?)

I'm pretty sure its much easier to make a single request to a single well defined server, as opposed to connecting with a swarm of peers, downloading the entire blockchain, verifying it, and computing your balance by traversing the entire history.

Its not like there is some universal "blockchain API" that computers come from the factory ready to understand. Specialised code has to be written to deal with every new cryptocurrency.

wz1000··on Facebook plans cryptocurrency debut
My question was "what does blockchain bring to the table compared to a regular database?".

How does using a blockchain/cryptocurrency make it easier to sidestep regulations compared to a regular old database?

wz1000··on Facebook plans cryptocurrency debut
Can anyone explain what the point of a pegged cryptocurrency is? Since you are dependent on the issuing entity to honour the stated peg, why not just have your balance be an entry in a regular database maintained by that entity? What exactly does the blockchain gain you here?

One thing it does _not_ get you is censorship resistance. If the central authority wants to take away coins from a wallet, all it needs to do is to simply state that it will not honour the peg for coins originating from that wallet. This can be tracked by FIFO, dilution or any other stated accounting principle, and renders the balance in that wallet worthless.

wz1000··on Third-Biggest U.S. Coal Company Files for Bankruptcy
> Having a failed business's creditors take away everything because a customer fails to pay a bill in a timely manner and causes a cascade of failed bill payments from the business is crazy... which is the main reason you incorporate - routine business risks are... riskier than most people's personal life.

Bills and other debts can be subject to limited liability when the other party explicitly agrees to it.

My point was that damages to 3rd parties who didn't agree to the conditions of limited liability, like people affected by hazardous chemicals(see https://en.wikipedia.org/wiki/Bhopal_disaster), unsound structures, unsafe workplaces, environmental damage and so on should not be denied restitution because of limited liability. Neither should the taxpayers pick up the tab in such cases.

wz1000··on Third-Biggest U.S. Coal Company Files for Bankruptcy
Society does provide limited liability, without having a stop loss mechanism. You are defending a system where the cost of catastrophe falls on everybody but the ones who encouraged the dangerous behaviour in the first place.
wz1000··on Third-Biggest U.S. Coal Company Files for Bankruptcy
Yes. You can get your investments insured, so that the risk is priced in. With limited liability, it is a viable strategy to invest in things that have a likelihood of a mild reward, but a risk of catastrophic failure that hurts and damages a large number of people(the proverbial pennies in front of a steamroller). And it is society that bears the costs for such failures. However, insurance for such a project would be very expensive or impossible to get.

Also, with pension funds, you generally don't have the power to vote. In the case of an uninsured pension-like fund, I prefer it that the fund manager/whoever holds the voting power be the one that is primarily held accountable. If institution managing the fund is wiped out and the liability still remains, then we can move on to the the shareholders without voting rights.

wz1000··on Third-Biggest U.S. Coal Company Files for Bankruptcy
People can still get insurance that allow the risk to be priced in. Without such a mechanism, the risk is completely ignored, and society has to bear the cost when things go wrong. If taking this risk into account slows down investment, maybe we don't need such reckless investment that puts people's health, lives and the very future of the species at risk.

Its funny that every time when poor people ask for something like student debt relief, the familiar old sermons about personal responsibility are trotted out. But when the rich are asked to be held to the same standards, we are told that it is just not possible, society itself would collapse and so on.

wz1000··on Third-Biggest U.S. Coal Company Files for Bankruptcy
This is why limited liability is a terrible idea, just another way to privatize the gains and socialize the losses.

When you buy a stake in a corporation(especially one that comes with voting rights), and the corporation goes on to cause damages to life, property, the environment etc, you should be held personally liable in proportion with your share(or voting share).

I can see the argument for limited liability in case of debts: the issuer of the debt has the opportunity to do due diligence and take the risk of bankruptcy into account. But in the case of damages, I don't see how limited liability can ever be justified.

wz1000··on What Is the World to Do About Gene-Editing?
Which is why most countries have some sort of public funded compulsory education.
wz1000··on The Lost Futures of Mark Fisher
> I would not claim that Islam is monolithically malign, of course, but someone less constrained by their unconscious sense of ideological appropriateness would ask why interpretations of the faith lead people towards evangelistic violence and puritanical tyranny so much more than interpretations of other faiths.

After WWII and decolonisation, a new breed of educated, progressive and secular leaders arose across former colonial states. In the Middle East, this was characterised by the influence of Egypt's Nasser. These leaders weren't afraid to stand up to religious fundamentalism. Here is a 1966 video of Nasser making fun of the Muslim Brotherhood trying to force women to wear the hijab[0]. There were secular governments across the Middle East, including Iran, Iraq, Syria, and Lebanon.

However, these secular and socialist leaders were seen as too close to the Soviets by the US, despite many of them explicitly participating in the Non-Aligned movement, and America and its allies quickly acted to counter their influence and depose them when possible.

The major political opponent to anti-imperialist socialism across the Islamic world were the religious fundamentalists, so they were the ones who were backed by the West.

Western support for Saudi's and their Wahhabist ideology is well known. Indonesia's Sukarno was deposed in an American supported purge backed by Islamic fundamentalists, described by the CIA itself as "one of the worst mass murders of the 20th century". Hamas was propped up in Palestine by the Israelis as a counter to Arafat's secular Fatah[1]. Western efforts to undermine Nasser and fund his political opponents(surprise... Islamic fundamentalists) are well documented. The crushing of Nasserism in the Arab world with the help of the Saudis and Israelis is regarded as one of the great triumphs of post WW2 American foreign policy. The groups that formed Al Qaeda and the Taliban were supported by Americans as counters to the Soviets in Afghanistan. There is also consistent American support for the Pakistani government, even in the face of genocide of millions[2], in an attempt to counter the spooky "socialist" and secular India.

And all that is discounting the reactionary sort of fundamentalism that might arise as a result of constant war and interventionism by the West in the Middle East.

It makes me sad when I see "westerners" criticizing Islamic extremism without recognizing their own culpability in the current state of affairs. It is short-sighted and illogical to divorce the political and social situation in the Islamic world from centuries of western foreign policy.

[0]: https://www.youtube.com/watch?v=0fswb4a9jcU [1]: https://www.wsj.com/articles/SB123275572295011847 [2]: https://en.wikipedia.org/wiki/1971_Bangladesh_genocide

wz1000··on Valve Breaks the Shackles of Proton
Skyrim has worked via wine pretty much since it was released, as you can confirm on Wine AppDb here: https://appdb.winehq.org/objectManager.php?bShowAll=true&bIs...
wz1000··on Let’s talk about open-source sustainability
If a trusted group of developers is in charge of dispersing funds, why involve a blockchain/smart contracts at all? You can just donate to the developers, and they can disperse funds according to some predefined terms. The DAO or whatever is exactly that, but with extra steps. In either case, you still have to trust that the people in charge of distributing the funds will do so according to the terms that were agreed upon(fixing bugs or adding features or whatever).
wz1000··on Let’s talk about open-source sustainability
How exactly is a "smart" "contract" going to decide if some code fixes some bug? And how is it going to measure someones MRR?

The fundamental problem with "smart contracts" is that they are neither "smart", nor are they "contracts". Contracts deal with ambiguous meatspace issues, and are resolved through courts. Smart contracts are in no form a novel idea, they are just trading/finance bots with some added blockchain to get the suckers to give up their money. They cannot make any decisions on things that can't be verified on the network itself, which includes things like "who does this apple belong to?", "does this code solve the issue?" etc.

wz1000··on Disruption for Thee, But Not for Me
> Is there a more moral alternative to Netflix and Spotify?

Yes. If I had to rank the options in order of morality, they would go like this: Buy DRM free content > Abstain from consuming content > Pirate the content >>> Pay for DRMed content.

Supporting DRM means supporting a world where you have to pay rent and seek permission from corporate overlords to use your own devices in the way you wish.

wz1000··on FizzBuzz in ten languages
Lambda calculus isn't a "solution" to fizz buzz, it's just another language you can implement fizz buzz in, which is what the parent poster was likely intending to demonstrate.
wz1000··on Seemingly Impossible Swift Programs
It works for any decidable/recursive predicate on bit sequences, i.e. one that is guaranteed to halt for any input.

`and` on an infinite bit sequence is not guaranteed to halt because it is co-recursively enumerable, i.e. it will reject bit sequences that contain `False`, but it will not halt on bit sequences that contain only `True`, since to verify that a bit sequence only contains `True`, you have to check all elements of the sequence.

In ghci,

    > and $ repeat True
    <doesn't terminate>

    > and $ (replicate 10000 True) ++ (False: repeat True)
    False
wz1000··on Four Days Trapped at Sea With Crypto’s Nouveau Riche
We aren't supposed to hate them, we are supposed to laugh at them.
wz1000··on How Does React Tell a Class from a Function?
If you're going to be using any language seriously, you better understand how functions and objects and classes in that language work.
wz1000··on How Does React Tell a Class from a Function?
I have written maybe 200 lines of JavaScript in my life, and this article has strongly reinforced my desire to never have to write a single one more. The next time someone asks me what the problem with JavaScript is, I will send them this article. "Scheme for the browser" what a joke.

Some excerpts for those that didn't have the strength to sit through the entire thing without pulling their hair out:

> If you called Person('Fred') without new, this inside it would point to something global and useless (for example, window or undefined). So our code would crash or do something silly like setting window.name.

> However, JavaScript also allows a function called with new to override the return value of new by returning some other object. Presumably, this was considered useful for patterns like pooling where we want to reuse instances:

> However, new also completely ignores a function’s return value if it’s not an object. If you return a string or a number, it’s like there was no return at all.

> And yet I still find it very confusing that a property called prototype does not give you a value’s prototype (for example, fred.prototype is undefined because fred is not a function). Personally, I think this is the biggest reason even experienced developers tend to misunderstand JavaScript prototypes.

> However, some class implementations we wanted to target did not copy static properties (or set the non-standard __proto__), so the flag was getting lost

Edit: And I missed the best/worst one yet: You can have MULTIPLE VERSIONS of the SAME DEPENDENCY running around in your codebase, interacting in ways that only god knows. In retrospect, this should have been obvious from the way javascript "imports" work, but, holy shit! If Satan himself had to design a language, he could not have done a better job. And I'm sure he would not have the stroke of genius required to make it the only programming language you can use if you want to target the most widely available platform for code in the world.

The next time I have to allow NoScript to let some js in, I will wonder how many goat sacrifices went into making the thing work.

wz1000··on Israel intervention in US elections ‘vastly overwhelms' anything Russia has done
Accusations of Russian interference in American elections always reminds me of this Time magazine cover story from 1996: RESCUING BORIS THE SECRET STORY OF HOW FOUR U.S. ADVISERS USED POLLS, FOCUS GROUPS, NEGATIVE ADS AND ALL THE OTHER TECHNIQUES OF AMERICAN CAMPAIGNING TO HELP BORIS YELTSIN WIN

https://ccisf.org/wp-content/uploads/2016/12/201612201405.pd...

From gloating about meddling in foreign elections to declaring Facebook ads an act of war, America has sure come a long way.

wz1000··on Zippers for non-inductive types
No, I believe the formula for multisets would be

    M(x) = ∑n (A*(A+1)*(A+2)..(A+n-1))/n!
since there are (n+k+1)c(k+1) possible unordered n-tuples over a set with cardinality k.
wz1000··on Zippers for non-inductive types
> Set(A) = ∑n A^n/n! = e^A since there are n! permutations to quotient by.

But this is wrong. The number of sets over A={0,1,2} is 2^3 = 8 /= e^3

The actual series should be

    Set(A) = ∑n (A*(A-1)*(A-2)..(A-n+1))/n! = 2^A
This is also consistent with the fact that Set(A) ~ A -> Bool
wz1000··on The Economics of a Commune in the Ozarks
I am not convinced that there is any meaningful distinction between "negative" and "positive" rights. Take property rights, the classic example of a "negative" right. But what are property rights but an entitlement that the government will protect your property? What use is the right to fair trial without an entitlement that the government will provide you a lawyer and select an impartial jury? What use is a "negative" right to liberty or free speech without an entitlement that when someone tries to infringe these rights, the government will protect you?
wz1000··on Microsoft Bug Testers Unionized, Then They Were Dismissed
https://iww.org/unions/dept500/iu560
wz1000··on Swift: When Unused Code Is a Bug
Haskell has no problem with this(though its default Num hierarchy is sorely lacking)

    Prelude> a = 1
    Prelude> a/2
    0.5
    Prelude> :t a/2
    a/2 :: Fractional a => a
    Prelude> b = 1 :: Int
    Prelude> b/2

    <interactive>:6:1: error:
        • No instance for (Fractional Int) arising from a use of ‘/’
        • In the expression: b / 2
          In an equation for ‘it’: it = b / 2
    Prelude> b `div` 2
    0
    Prelude> :t div
    div :: Integral a => a -> a -> a
← PreviousPage 3 of 15Next →