Better HN
topnewbestaskshowjobs
Log inSign up

zigzigzag

1,415 karma · joined Aug 11, 2016 (10y ago) · 572 submissions

Submissions

comment 9y ago · link · parent

I wouldn't say that's "cool", that's just what browsers could do 20 years ago with Java applets and ActiveX. Lots of languages target the JVM and you can compile C to it as well if you're willing to treat memory as a large byte array (there is a project that runs JIT-compiles LLVM bytecode on the JVM even).

The article shows that WebAssembly implementations often struggle to match Java. I see no reason to believe that browsers are actually easier to secure than a JVM, especially Firefox which doesn't even really do renderer sandboxing. They seem about the same level of difficulty. All the browser guys have done here is reinvent the same concepts of 20 years ago with a different instruction set that has "Web" in the name.

comment 9y ago · link · parent

It depends a lot on things like how long the program runs for, and whether you consider spare cores on the machine to be "taking up CPU" or not.

Profile-guided optimisations win you about 20% in most industrial Java, apparently. So if you have a server that starts, warms up in say 30 seconds, and then runs for a week, you can see that it is easily profitable. For a command line app that lives for 500 msec, not so much.

comment 9y ago · link · parent

Avian can compile AOT to a single executable.

comment 9y ago · link · parent

You aren't comparing the same program written in two languages. Seastar stuff is written by C++ performance experts who are fanatical about tuning, and does all kinds of unusual far-out things that Cassandra doesn't do to get high performance.

comment 9y ago · link · parent

The actual HotSpot JVM itself is about 10mb, but that includes 4 GCs and 2 JIT compilers.

The Avian JVM can statically link an entire program and widget toolkit with itself and produce a 1mb binary.

It's not that big a deal. The space gets taken up by all the libraries. But then you'd want to compare a JVM against e.g. /usr/lib on a fresh Linux install ...

comment 9y ago · link · parent

Please re-read my post.

I say explicitly that both sides in the civil war were being supported by US/UK and Russia respectively, with soldiers and equipment. However, this does not mean the USA invaded Ukraine, nor did Russia invade Ukraine.

Perhaps you guys are all using the word "invasion" to mean something different to what I'm using it to mean, but in my book a country can't quietly invade another. Especially not countries with wildly superior militaries. Invasions are kind of hard to miss. Nobody in Iraq or Afghanistan was in any doubt that their countries had been invaded by the USA.

comment 9y ago · link · parent

I did read the sources, at the time it was happening. And I, too, am shocked at the total and successful rewrite of recent history the western media and government establishments have pulled off. It is stunningly Orwellian and extremely scary.

Now. Please show me where a shot was fired during this so-called "invasion" of Crimea? Please explain to me why all the evidence suggests that the people who live there are happy to have been "invaded"? These are simply not normal uses of the word "invasion", which normally involve shooting rather than voting.

http://www.forbes.com/sites/kenrapoza/2015/03/20/one-year-af...

2. How can I be so sure? I remember what was reported at the time. There were plenty of news stories that covered what was happening. I remember fact checking and them often discovering blatant propaganda inside, but the whole "Russia invaded Ukraine and Crimea and you're crazy if you remember otherwise" line didn't start until long after the events in question. If you go back and read the stories in the press at the time they only talked about "pro Russian forces" or "pro Russian rebels". No invasion, no army.

I remember noticing newspapers just starting to repeat one day that what had happened was not in fact a civil war between pro-EU and pro-Russian forces, it was an invasion, but that happened after Ukraine had dropped out of the daily news cycle. I remember at the time the sequence of events that led to the breakout of civil war there. The overthrow of the rather poor but still democratically elected government by people who wanted Ukraine to align with the EU, the outbreak of fighting, the supposedly free and fair "elections" that happened whilst the revolutionary government was busy shelling its own citizens. The flight of refugees from east Ukraine towards Russia instead of away from it.

What actually happened is not a secret. You can go re-read original coverage, original sources, go do some research. Here, I'll help you. Here's a story from 2014 in the fanatically pro-EU and anti-Russian Guardian:

https://www.theguardian.com/world/2014/may/10/donetsk-refere...

Read this article and observe the following things:

1. The fight is described as being between Kiev and separatists/pro-Russian forces, or in Kiev's term, "terrorists". Not the Russian army.

2. The only mention of Putin or the Russian government is in a paragraph saying the separatists had possibly wanted to delay the independence referendum they were trying to organise there, because Putin was signalling he was not willing to lend them military support or absorb the region.

Where in this story is there discussion of a Russian invasion? It isn't there because no such invasion ever happened. At most, small groups of special forces were sent in to aid the rebels covertly in a proxy war, which is no more than what the west did (the US and UK sent soldiers and equipment to support the Ukrainian army). Talk of an actual invasion appeared much later.

Now, saying my viewpoint is the accepted perspective of the Russian government is pure ad hominem. So what? By stating that my views are revisionism and that in fact there was an invasion, you are doing the same thing: repeating the words of clearly self interested parties, namely the western governments and the media who support them, who want Ukraine to have close relations with the EU instead of Russia.

You can read an essay with a similar viewpoint by an American journalist here:

https://consortiumnews.com/2015/02/09/wretched-us-journalism...

comment 9y ago · link · parent

I don't think fake news is a useful term, it never has been. The media has been flooded with both outright fake news and more importantly missing news for years, when it was supporting the Democrat world view.

For instance, just go look at how often you can read the Russia "invaded" Ukraine or Russia "invaded" Crimea. The Russian army is huge and what's left of the Ukrainian army is made of fresh conscripts. If those events had actually happened then the Russian flag would have been waving over buildings in Kiev within 24 hours, there would have been videos of it all over the world. You can't hide an invasion of an entire country, that's not what the word means. Yet these conquered cities are mysteriously missing.

What actually happened is a civil war in Ukraine with two opposing sides from the same country who hate each other, one side trying to break away by force. The west supports west Ukraine with materials and training, Russia probably supports east Ukraine/Donbass in a similar way, although the west admitted they were doing it and Russia never did. But let's put that to one side and assume both were at it. That's not an invasion, that is at most a proxy war.

And what happened in Crimea was even simpler, they had a vote and voted to join Russia just like they did twice in the 1990's (but were ignored). Western/Ukrainian polling and journalists have visited since and didn't find any evidence that the vote was not representative of what people there actually think.

Yet fake news stories that talk of invasion, literally fake as in "reporting on things that never happened", goes largely unremarked, especially by the kinds of people who hate Trump. They usually aren't even aware how thoroughly they've been fooled.

If you want an example of how people are manipulated through missing news rather than fake news, the recent Greenwald article on a SEAL Team raid in Yemen and how CNN reported it is a good one.

So "fake news" is the kind of thing that both sides can levy at the other, with some justification, but trying to claim one side or another is smarter than the rest is not going to work. People will just tune it out, exactly as you report.

comment 9y ago · link · parent

I think the more interesting thing about these ancient programs is the question of why projects to modernise them fail over and over again. Of course we can already guess many of the answers without even reading any post-mortems, but obviously these organisations were able to execute complex IT projects once upon a time and over the years lost that ability, leaving them stranded with ancient systems.

In the case of MOCAS I'm going to assume it's all of the standard reasons: weak management, absence of competition, over-reliance on the same small pool of defence contractors that know how to navigate byzantine federal procurement rules, etc.

comment 9y ago · link · parent

Slightly non-trivial? :)

comment 9y ago · link · parent

I think unfortunately the conclusion reached by the non-Hacker-News world will be "the solution to all of this requires banning Bitcoin".

This explosion of ransoms is getting nastier and nastier. It appears to have no end. Bitcoin's block chain has been stalled at 1mb blocks for a year now, it isn't adding users and their plans to make it scale aren't implemented. At what point do the political winds shift and the cost/benefit ratio of keeping Bitcoin around, at least in the USA, tips over to cost > benefit?

I don't want to see Bitcoin exchanging sent underground in the west, but it's clear that community has no intention of getting ransomware under control.

comment 9y ago · link · parent

You just committed the inverse fallacy of appeal to authority.

The parent observed that writers in the NYT, whether opinion writers or not, have an established track record of crying wolf in this regard. Pointing out a group or even an individual's track record is not an ad hominem attack because it's an argument about their argument, not their person.

comment 9y ago · link · parent

> Those who study the decline in standards of evidence and reasoning in the U.S. electorate chiefly blame politicians’ concerted efforts from the 1970s to discredit expertise, degrade trust in Congress and its members, even question the legitimacy of government itself

Really.

An academic blames politicians for the fact that academic's opinions aren't automatically accepted as fact. He then says politicians made concerted efforts to degrade trust in ... themselves.

I have yet to see a politician make a concerted effort to argue that all politicians are untrustworthy, including themselves. And I have yet to encounter an anarchist politician. I clicked through the link to see what the cited evidence was for this dubious assertion, and found a paragraph in a book about Newt Gingrich that says, in the opinion of the author, Gingrich "won control of the house by eroding public faith in institutions". No evidence is offered there either.

So in the span of one paragraph this author manages to make wild and dubious assertions without any meaningful evidence beyond citing "those who study" i.e. people exactly like himself.

At this point, self-proclaimed experts have a long string of high profile failures under their belt. Most recently, predicting the UK economy would enter recession after a vote to leave the EU which turned out to be the opposite of what really happened.

Instead of looking in the mirror and asking why trust in academic expertise is declining, he chooses to blame other people. And so the downward spiral continues.

comment 9y ago · link · parent

Kotlin does it more efficiently. But you wouldn't want it to be an error to use get without calling ifPresent. Sometimes you know that the type system is wrong and that in fact, although this thing is optional, it will in your case always be there. So being able to rapidly convert optionality into an error (we might call it a NullPointerException) is important. Kotlin has the !! operator for that.

comment 9y ago · link · parent

IntelliJ's debugger has decent support for working with functional code. Also the IDE can convert between map/filter/fold type functional pipelines and imperative loops automatically.

comment 9y ago · link · parent

That takes you down the road of arguing the USA isn't a democracy, which is a fine semantic argument of little relevance to current events.

If this starts a movement to abolish the electoral college, great, but the core problem here isn't a few million votes. Even with a different system Trump could still have won. The core problem is that such a guy was able to even get close to the White House and the root cause is a dire failure of all the other politicians to address the concerns he addressed.

comment 9y ago · link · parent

Well, but how is it not democratic? Didn't Trump say many times he'd do exactly this, and he won?

Arguably executive orders should not exist, nor should a powerful President. The Swiss system of a rapidly rotating presidency and strong "state rights" seems preferable to me. But the USA has strong elected Presidents and I never saw any American seriously challenge that setup, I hear more talk of states seceding than I see talk of changing the constitution to limit the power of the POTUS.

So I don't see your point. The people were given a (fairly crappy) choice, made it, now their preferences are being implemented. That's democracy.

Don't get me wrong. I think locking people who live in America out of the country because they happened to be on vacation at the time is outrageous, stunningly stupid. But maybe if prior generations of politicians had been more responsive to anti-Muslim sentiment things wouldn't have got so extreme now.

comment 9y ago · link · parent

But we aren't talking about the short term, or are we? 50 years in the grand scheme of things seems quite short term when discussing such extreme cases as a communist country that was starving only decades ago and Switzerland: they are two polar opposites.

But fundamentally wealth is not a zero sum game. Countries have internal markets too. The idea that China can only grow if the rest of the world gets richer too isn't right: they can achieve enormous growth by selling things to themselves as well. That wasn't their primary economic model so far but that has more to do with the political priorities of the CCP than anything else.

comment 9y ago · link · parent

You just proved my point.

There is no actual evidence that Switzerland is a good place to live because of "stolen" money - in reality, in the American case, not even slightly stolen money but legitimate money owned by legitimate expats that the US Government somehow believes it owns by birthright. In that case it's America stealing from the Swiss, in fact.

There is plenty of evidence that it doesn't matter though, like the fact that the country is still the same even after eliminating all financial privacy rights for non-Swiss. Note that Swiss people still have very strong privacy from the Swiss government by law, a position that puts the Swiss government in a weaker position than most governments are, as tax investigators have much less power. It's only foreigners where the Swiss financial privacy has been dropped. Yet they still manage to make the system work well.

comment 9y ago · link · parent

That's obviously unknowable, but I present evidence that the model has scaled. I see no reason why China couldn't become as wealthy as Switzerland if it followed the same models (but I doubt it will any time soon).

comment 9y ago · link · parent

But if the export markets were as rich as Switzerland, they would buy even more luxury watches. So I don't see how your point makes sense.

The Swiss model does seem to scale. The population has scaled from 6.2 million in 1970 to about 8.2 million today. GDP per capita also went up significantly during this time, and outpaced GDP per capita growth in the USA.

You can find a lot of people who write off the Swiss example by just handwaving and saying things like "well it's all stolen money". But the Swiss economy is diversified. The entire financial sector including insurance and pensions is about 10% of the GDP. Private banking is far from the entire financial sector. And in recent years the Swiss have started to give other governments lots of surveillance data on their citizens. You can't get numbered accounts for many many years now, and since FATCA Americans trigger so much reporting that they're being turned away from banks due to the compliance overheads alone. EU governments have benefited from Swiss cooperation too. Still, Switzerland hasn't got poorer since these changes came in.

I suspect the reason so many people ignore Switzerland and fail to learn lessons from it is because one of the most obvious and important causes of Swiss wealth is their rather unique system of government. Lots of people in America in the UK are doubting democracy entirely right now. I see totalitarian worldviews put forward quite openly all over the place in these days. The Swiss have a very weak federal government, a rapidly rotating presidency and a vast number of referendums. It leads to a very stable sort of society with few political issues compared to other western countries. Compare to other parts of the world where often apparent stability comes from simply ignoring political problems in the hope that they'll go away, instead of addressing them early.

comment 9y ago · link · parent

It was remarked on, just using different terms that weren't in use back in 1948 and generally not by the media who were complicit in the manipulation (and frequently the target of it).

The whole phenomenon of political correctness and the flattening of unrelated things into hate words e.g. how dislike of Islam (not a race) is now routinely called "racism" is all very reminiscent of how Big Brother set about restricting the space of what citizens could think by changing the language. Of course the strong Sapir-Whorf hypothesis has largely been discredited now, but the basic tendencies still exist. And lots of people have been expressing frustration with a PC culture for years, Trump simply realised that giving lip service to the concept of being anti-PC was far less effective than actually being anti-PC.

The way the administration manipulated the media through controlling access to press conferences, and then eventually abolishing media Q&A entirely, was remarked on at the time. But it was a subtle move that most people were not consciously aware of, they just felt at a subconscious level that the telescreens were more overtly propagandistic than in the past.

comment 9y ago · link · parent

The Stasi were simply a recreation/extension of Soviet secret police tactics.

comment 9y ago · link · parent

This is a perfect example of why downvoting shouldn't exist. None of the things you think you saw in the OPs comment are there. He is expressing an opinion that is widely held, here is a good essay on the habit of anti-Trump people of crying wolf:

   http://slatestarcodex.com/2016/11/16/you-are-still-crying-wolf/
Trump's spat over crowd sizes is stupid, but reflects someone terminally thin-skinned rather than a cunning well thought out attempt at mind control.

Meanwhile, those of us who have read it will remember that 1984 dwells on hard-left totalitarianism and its habit of doing things like censorship, the desire for unitary thinking, interfering with disagreement by controlling the language and so on.

Your comment doesn't actually rebut anything about what the OP said, but does try to lower the visibility of his views (suppressing speech) and does attack an entire class of speech on the grounds of "divisiveness" and "destructiveness" (unitary thinking).

Trump is many things but hard-left is not one of them. Stupid phrasing today by his press guy aside, Trump's path to victory was built on a repudiation of 1984 style tactics:

• Language control: political correctness, where words and phrases are redefined or suppressed through taboo

• The 5-minutes hate: the establishment against Russia

• Loyalty to the party: in our world the closest equivalent to a vast unaccountable power structure would be called "Washington" or "the elite".

The parallels aren't perfect by any means; Trump loves surveillance just like Democrats do.

comment 9y ago · link · parent

The JVM has tons of concurrency tools, it's absolutely designed with concurrency in mind. You can write code in the channels style if you want too.

comment 9y ago · link · parent

I absolutely agree. Unfortunately convincing governments to roll back anti-money laundering laws would be like pulling teeth. They only ever make them more aggressive.

comment 9y ago · link · parent

caught laundering money[1] (or at the very least not preventing it)

Those are of course two totally different things. Money laundering has a very vague definition in law. So banks can never prevent it entirely. That makes a huge difference.

comment 9y ago · link · parent

Anti-money laundering laws explicitly do not require a criminal standard of proof. This is by design - governments and in particular the US government which insists on all this stuff regardless of what other countries thing absolutely love a system that fights crime, as they see it, without all the hassle of due process and court cases.

AML account closures only require 'suspicion', for example, a name match against a blacklist compiled by a government agency is 'suspicious' even if it wouldn't hold up in a traditional court of law.

comment 9y ago · link · parent

It is probably a question of money.

The testimony of the leaker is full of references to the Americans supposedly doing things better and more professionally. If true, that is surely a funding issue.

comment 9y ago · link · parent

How is the correct and safe functioning of the system they are voting to renew "orthogonal"?
1
567
20