HNHacker News
TopNewBestAskShowJobs

stupidcar

8,592 karma · joined March 30, 2014

submissionscomments
stupidcar··on Angular 5.2 Now Available – Angular Blog
We've just upgraded from 4 to 5 and not had any major problems. Most of the issues we encountered were with the stricter type-checking in TypeScript 2.5, not changes to Angular itself. It took me about a morning to do the upgrade.

Overall, using the framework has worked out great. The other front-end frameworks we've used (including ng1) now seem rather toy-like in comparison. The biggest stroke of genius has to the hierarchical dependency injection. Letting a UI component provide injectable services to its children and their descendents instantly solves so much of the tension between integration and reusability that plagued us in the past.

And the template language is also brilliant. It actually understands the difference between binding to the string-based attributes of an HTML element, and the object-based properties of a DOM object.

stupidcar··on The State of Atom's Performance
The thing is, are those alternative toolkits better?

Done right, they're faster, for sure. But when you use Electron you're leveraging thousands of man-years of Google developer effort to build a web browser that works consistently and well across different platforms. Although the web platform gets a bad rep for cross-browser compatibility problems and general weirdness, a huge amount of that goes away when you target a single runtime. Suddenly you can use every half-baked Chromium API and prefixed CSS feature without worrying about how it's going to break in IE 11.

In that situation, you suddenly realise just how much power the web platform give you. You can style any element, any way you want. You have you have a complete, out-of-the-box object model for your whole UI, plus developer tools to help you debug it. You have advanced typography control. You can drop a canvas element in and get an immediate-mode 2D or 3D graphics API. You can layout stuff in flexbox or grid, or just as a plain old document (which most toolkits would delegate to an embedded web browser anyway).

There are better languages that JS, that's true. But whether there are truly better cross-platform app toolkits than the web is, in my opinion, rather more unclear.

stupidcar··on The State of Atom's Performance
Does it? I've not heard this myself, and the GitHub page says there's no native code in the main repo: https://github.com/Microsoft/vscode
stupidcar··on North Carolina Is Ordered to Redraw Its Congressional Map
> All political systems with a modicum of success, including ours, have worked to align interests without relying on a moral compass.

I would agree with most of what you said, particularly your diagnosis of the dysfunctions of the US system, but this part simply isn't true. There are plenty of successful democracies (almost all in central and northern Europe, admittedly) where political partisanship exists within a moral framework, and politicians adhere to certain moral and democratic norms, even when it is against their immediate interests to do so.

I think it's easy to overgeneralise the problems of the closest example to hand as being representative of all, and being fundamental and unavoidable limitations of human nature. But there are always counter-examples. There are always places where government actually delivers to people, and where the political system avoids the worst systemic dysfunctions that plague other regimes.

I'm not sure the US will ever reform its political system to achieve the same results, but, at the very least, we shouldn't let politicians (and the people who elect them) off the hook for underperforming vs. what we know is possible.

stupidcar··on North Carolina Is Ordered to Redraw Its Congressional Map
I'm sure I've crossed the line into personal swipes before — who hasn't, at one time or another? I get emotional about this stuff because I care about it, and I'll admit it angers me to see people spreading ideas that I consider not just wrong, but dangerously so. When that happens, its difficult to respond like some perfect critical-thinking debate bot.

But I'm somewhat baffled that you consider what I posted in this case a "rant". Fair enough, saying "total nonsense" was probably unnecessary, but it is still a comment on the quality of the argument, not upon the person, and as such seems to be within the rules. As for the rest, what exactly is uncivil about it? I absolutely would make these same arguments face-to-face if somebody made the original argument. In fact, I'd be probably be rather less civil about it in person.

I consider the post I responded to to be spreading a genuinely dangerous idea. Such ideas need to be rebutted, and, practically speaking, the force of the rhetoric needs to be increased commensurate with the dangerousness of the idea, in order to avoid giving an impression of false equivalence between it and other, more harmless ones. If it isn't commensurate, then surely that is what the community moderation is for? But in this case you seem to have acted unilaterally to hide my post.

I'm all for HN to be a bastion of constructive discussion. But that shouldn't be an excuse to allow toxic ideas to go unchallenged, or to be treated with a degree of respect that they do not deserve. The failure of intellectuals to vigorously contest destructive ideas, confining their criticism to a passionless and academic vernacular, has been a recurring historical problem. In the long term, it contributes directly to the rise of situations and movements that curtail any debate, anodyne or otherwise.

HN does not exist in a political vacuum. The type of discussion you say you want to foster is only possible because of a set of political principles and circumstances that are by no means "normal", historically speaking. Failing to defend those principles, or censoring those who do, helps those who would destroy them, and will harm HN eventually.

stupidcar··on North Carolina Is Ordered to Redraw Its Congressional Map
Total nonsense. While it's true that in a liberal democracy the judiciary is supposed to be a check against the power of the legislative and executive branches, its mere existence doesn't give them carte blanche to ignore basic principles of sound democracy.

These people are representatives. They are supposed to represent the interests of all their constituents. Deliberately redrawing the electoral map in an attempt to help voters only of their own party is a gross violation of basic democratic norms. It is putting party before country in the worst possible way.

stupidcar··on The Fight for Patent-Unencumbered Media Codecs Is Nearly Won
This situation seemed almost hopeless 10 years ago. Very glad to see things have changed so much for the better.
stupidcar··on Birth Order Effects Exist and Are Strong
A possible statistical contribution I can think of is the skewness of the age distribution within the population of readers. Here is the distribution charted:

https://docs.google.com/spreadsheets/u/1/d/e/2PACX-1vRrops3J...

Consider just the bins 20 (ages 10-20), 30 (ages 20-30) and 40 (ages 30-40). We can see that, of the three groups, teens are by far the least likely of these groups to read the blog, and people in their 20s are the most likely.

Now consider two groups of two-sibling families that lie within this range, where one sibling is in one bin, and the other the next. E.g. the first group where one is a teenager, the first-born is in their twenties, and the second where one is in their 20s, and the first-born is their 30s.

Case 1: If you take a random family from the [teen, 20s] group, how likely is it that the reader from this family is younger or first-born sibling? Since those in their 20s are much more likely to read the blog, it is much more likely that the reader is in their 20s, and is the first-born.

Case 2: Now take a random family from the [20s, 30s] group. How likely is it that the reader is the younger sibling or the first-born? In this case, because readers in their 20s are more common than readers in their 30s, it is more likely that the reader is the younger sibling.

However, the ratio of readers in their 30s to readers in their 20s is much closer than that between the 20s and teens. This makes it more likely in that in case 2 that the reader is still the first-born. Therefore, if the number of families in each group is equal, we would expect to see, in aggregate, more first-born readers than younger siblings.

I'm not saying that this is happening in the actual data, you'd need to do more analysis, and probably need more data about the ages of siblings, or that it is a significant enough effect to cause the result found. But it demonstrates that statistical analysis can involve subtle effects that are not obvious without careful consideration. As such, we should be very wary of making any conclusions about causes, either birth order or anything else.

stupidcar··on Birth Order Effects Exist and Are Strong
This doesn't seem to be a "birth order" effect, so much as a "first born" effect. Once you get past the first child, there doesn't seem to be much influence. That makes me very skeptical of any biological explanation, as you would expect to see more of a tail-off.

I think it's more likely a measurement error, or some subtle statistical effect caused by a combination of probability skewing and demographic changes.

stupidcar··on The Empathy Gap in Tech: Interview with a Software Engineer
> Acknowledging that women are 'vulnerable or marginalised' shouldn't remove their individuality, you can easily have both, but that's beside my point here)

I don't think you can easily have both, and this problem underlies much contemporary political conflict. At its core is a pervasive hypocrisy: people readily engage in broad, often negative, stereotyping about groups they oppose, or are not a member of, while aggressively resisting and resenting any attempt to stereotype about their own group, or groups they favour.

So, in the aftermath of a terrorist attack, some people will make broad statements about Muslims, and the need for collective action within Islam to address religiously motivated violence. Others will reject this, and say Muslims in general cannot be held responsible for the behaviour of a minority of extremists.

Then, in the aftermath of a sexual harassment scandal, some people will make broad statements about men, and the need for collective action by men as a gender to address sexual harassment and sexual violence. Others will reject this, and say men in general cannot be held responsible for the behaviour of a minority of harassers.

Oftentimes, the same people will be on the complete opposite sides of each debate. And they will unthinkingly employ language and rhetorical tactics in one that they would utterly reject in the other. This behavior can be seen in almost all discussions across or about political affiliation, race, religion, gender, sexuality, and just about any other cleavage you can think of.

This is the real empathy gap. People reflexively respond to any criticism of their own groups with hostility, while attacking others without restraint, and dismissing hostility from members of that group as an overreaction. They recognise a degree of individuality and diversity within their own favored groups that they simply can't or won't recognise in others. They use tactics against their enemies that infuriate them when used against themselves. In some cases, they may recognise that those tactics are wrong in specific cases, and even in the abstract, but defend their use by themselves or their allies with excuses based on cambatting political correctness or appeals to historical victimhood.

Making all of this worse is that statistical thinking about groups is a necessary of component of any mature political debate. Certain traits or behaviors often are more prevalent within some groups, for a variety of reasons, and being able to recognise and talk about this is basic prerequisite for any attempt to address social and political problems.

In theory, people should have no problem recognising statistical differences in a group, while also recognising and respecting the inherent right and diversity of individuals within that group. In theory, people should be able to hear comment, even criticism, about their own groups, and judge it purely on its statistical reality, without feeling that it is a personal slight upon them. But in practice, this doesn't happen.

Besides the reflexivite hostility discussed, statistical thinking often does give way to blind stereotyping amongst outside observers, and this stereotyping gives rise to discrimination. Causal factors are ignored, or distorted, and adaptive traits are portrayed and inherent, and vice versa. Instead of helping to inform rational debate, this discrimination entrenches and exacerbates division. Soon, any statistical thinking about a group that carries an implied or perceived criticism becomes tantamount to discrimination, and groups become hypersensitive to it.

All of this is probably just an inherent flaw in human cognition, and likely unfixable, without some kind of attempt at species-wide genetic engineering that completely reconfigures our co-operative behavior.

stupidcar··on Intentional Fire-Spreading by “Firehawk” Raptors in Northern Australia
But the opposite view could just as easily be used as a justification: I.e. "We're just animals, no different from any other. So anything we do is a part of nature, and we shouldn't second guess it, any more than any other animal would second guess its instincts."

I think we need to recognise that we are, at least, unique. And that we have a unique ability to affect the world, for good or ill, that sets us apart from other animals. That shouldn't be an excuse for hubris, but it should be reflected in how we view ourselves as a species.

stupidcar··on Reading privileged memory with a side-channel
The victim code doesn't need to have some explicit pointer arithmetic, it just has to have some sequence of bytes, somewhere in its address space (the "gadget"), that can be used to read a memory address based on a value stored in a register that can be affected by input supplied from the hostile process. The branch prediction is used to speculatively execute that code. The "Example Implementation on Windows" section in the Spectre paper goes into more detail about this.
stupidcar··on Reading privileged memory with a side-channel
I don't think so. My understanding from the paper is that you don't need to explicitly send a memory address to the victim, you just need a way to communicate with it (e.g. via a socket or some other API) in a way that causes it to do a branch.

Before you trigger the victim process, you perform some steps in your own, hostile, process that teaches the branch predictor where a particular branching operation will likely go. Then you trigger the victim process in the way you know will cause a very similar branching operation.

Even though it's operating within an entirely different process, the branch predictor uses what it learnt in the hostile process to predict the branch result in the victim process. It jumps to the address the hostile process taught it, and starts to speculatively execute code there. Eventually, it figures out it guessed wrong, but by then it's too late, and the information has leaked via a side-channel in a way that the hostile process can detect.

So, essentially, you're use the branch predictor's cache to send the memory address. And you're not sending it to the victim process, you're sending it directly to the CPU. The victim process will never even know it's been attacked, because when the branch predictor hides the consequences of its incorrect guess from being detected by conventional means.

stupidcar··on Mitigations landing for new class of timing attack
Yes

https://sites.google.com/a/chromium.org/dev/Home/chromium-se...

stupidcar··on If We Can Put a Man on the Moon, Why Can’t We Put a Man on the Moon?
Your analogy makes no sense. America isn't a person, doesn't have a limited working life, and isn't going to "retire".

The solution to an inefficient federal bureaucracy and a large national debt isn't to cut economically irrelevant spending in those areas where the US enjoys an actual advantage over other countries. It's to improve the bureaucracy and balance spending in meaningful ways.

Unfortunately, any sane attempt at improvement is blocked by "small government" Republicans, who deliberately impede evolutionary improvements in government functioning in the hope that, by forestalling them, they can hasten some future libertarian revolution, wherein it becomes politically possible to eliminate all social programmes altogether.

In order to maintain their false image as being in favor of fiscal constraint, these same Republicans attack easy targets like NASA. At the same time, they protect insanely profligate projects like the F-35 fighter, which provide essentially socialist redistribution to defence contractors in their own districts. In your flawed comparison, it'd be like someone complaining about his children's spend on candy, while buying a dozen broken Ferraris every day.

stupidcar··on As crime dries up, Japan’s police hunt for things to do
A well-functioning criminal justice system should always have a high conviction rate, because part of the police and state prosecution service's job is to ensure that they only bring charges and fight cases they think they can win. Given they're experts in criminal prosecution, you would expect them to get it right 90-95% of the time.

But there's still a lot of variation in how you get to that situation. E.g. how willing are the police to investigate cases that have a low chance of conviction? How willing are they to coerce confessions or fabricate evidence? Is sentencing and plea-bargaining designed to encourage early guilty pleas regardless of innocence? At trial, how willing are judges to lead juries towards a guilty verdict? These kind of issues are at play in every country's criminal justice system, but, for a modern democracy, Japan seems to have a particularly pervasive culture of police intimidation and coercion.

stupidcar··on HTML 5.2 Recommendation
The W3C version is a sporadically updated, bad-faith fork of the WHATWG version, created to maintain the fiction that it "owns" HTML, which it deems necessary to maintain the organisation's standing (and funding) in the eyes of other organisations and governments.
stupidcar··on $17B Modernization Plan for Puerto Rico's Grid
It's $17bn over the 10 year projected lifetime of the implementation. So "only" $1.7bn a year (roughly, the projected yearly costs ramp up until 2025, then drop a bit). That's easily do-able through federal assistance funding. Nutrition Assistance For Puerto Rico already gives $1.5bn of federal money every year, for example: https://en.wikipedia.org/wiki/Nutrition_Assistance_for_Puert...
stupidcar··on UK Government Wargame Designer Position
The website for the Connections UK, a yearly "Professional Wargaming" conference has photos and presentation slides/audio that give a good idea what this kind of wargaming involves:

http://professionalwargaming.co.uk/2017.html

Basically, very complex board games that are intended to simulate real-world strategic situations.

stupidcar··on Donald Trump signs directive to send astronauts back to Moon
Have you ever looked at a US budget breakdown? I suggest you do so now: https://www.nationalpriorities.org/budget-basics/federal-bud...

Nasa's yearly budget is less than $20bn. Compare this with the ~$600bn on the military, the ~$1.2tn on social secure, the ~$1tn on Medicare, etc. Space exploration is a drop in the ocean. Yet people troll that it's some huge, wasteful money sink, even when the US government is spending $1.5tn on the T35 fighter jet alone.

Moreover, Nasa's scientific work does help with tackling climate change and pollution. They are the ones launching satellites to monitor the Earth's biosphere, and doing work like National Climate Review[1], even as the current administration is removing all reference to climate change from the output of other Federal Agencies.

[1] https://arstechnica.com/science/2017/11/us-government-climat...

stupidcar··on Donald Trump signs directive to send astronauts back to Moon
"With this directive, Mr Trump abandons plans set by his predecessor Barack Obama, to send humans to an asteroid near earth."

Isn't this the problem? Every President gives Nasa a new set of priorities, which they work on for a while until the next President comes along and changes things again. Back in 2004, George W Bush was also announcing a return to the Moon:

"Our third goal is to return to the moon by 2020, as the launching point for missions beyond. Beginning no later than 2008, we will send a series of robotic missions to the lunar surface to research and prepare for future human exploration. Using the Crew Exploration Vehicle, we will undertake extended human missions to the moon as early as 2015, with the goal of living and working there for increasingly extended periods. "

Jan 14, 2004 - https://history.nasa.gov/Bush%20SEP.htm

stupidcar··on Is There a Limit to Scientific Understanding?
How do you know for certain that the scientific method works? You only know it via anecdotal evidence, because you can't use the method to test itself, since that assumes a priori that it works. So science cannot be used to investigate certain questions about itself. Instead they fall into the topic of philosophy of science, and have no definite answers.
stupidcar··on Portugal’s radical drug policy is working. Why hasn’t the world copied it?
It's hilarious to me that conservatives will talk about political correctness getting "out of hand", while downplaying or ignoring pathologies that result from their own beliefs that have caused, and continue to cause, extraordinary amounts of death, torture, poverty and suffering.

Come back when lynch mobs have literally hanged thousands of people for being politically incorrect. Or when millions of people are being systemically disenfranchised because they're politically incorrect. Or when a US president is about to trigger a nuclear war over "political correctness".

stupidcar··on Parcel – A fast, zero configuration web application bundler
The eternal cycle of developer tool bullshit:

1. "Ugh, OldTool™ v3.0.0 is overcomplicated, bloated, slow and unnecessarily configurable!"

2. "Introducing SuperTool™ v1.0.0, which just does the stuff you really need. No bloated configuration. No huge ecosystem of extensions. Simple, straightforward and fast."

3. "SuperTool™ v1.0.0 is great! But our setup really needs it to do something a bit different, so we've hacked in this extension."

...repeat for a while...

10. "Introducing SuperTool™ v2.0.0, which now has a more flexible API and configuration , allowing many former hacks to be done in a straightforward way."

11. "SuperTool™ v2.0.0 is great! But our setup really needs it to do something a bit different, so we've hacked in this extension."

...repeat for a while...

20. "Introducing SuperTool™ v3.0.0, with a whole new, flexible, pipeline based API. Everything is a plugin! There's even a plugin to send email!"

21. "Ugh, SuperTool™ v3.0.0 is overcomplicated, bloated, slow and unnecessarily configurable!"

22. "Introducing HyperTool™ v1.0.0, which just does the stuff you really need. No bloated configuration. No huge ecosystem of extensions. Simple, straightforward and fast."

stupidcar··on 'Snoopers' charter' changes put forward
The historical problem in the UK has been that surveillance powers that were rushed through parliament to tackle "terrorism" have ended up being made available to every single branch of government. And 99.9% of the time they're used for petty, local government issues, like collecting council taxes or speeding fines, often by people without any law enforcement training at all.

Even if the OCDA ends up rubber stamping requests from the police, it'd be a huge improvement on the complete free-for-all there has been in the past. If they at least reject requests from a guy in the council refuse collection department who wants to spy on his ex-wife, then that'll be an improvement.

stupidcar··on Elite colleges are making it easy for conservatives to dislike them
How are white supremacists a "fringe", when you have a US President who openly supports and defends them? Who spreads their propaganda to his 40 million Twitter followers?

You can argue about to what extent his views are shared within the wider conservative movement, but when the conservative movement's democratically chosen leader supports an ideology like this, it is clearly not a "fringe".

stupidcar··on Understanding Ethereum Smart Contracts
Interesting. So in the case of 1, I guess I could have a function in the contract called something like sellUserXStakeTo(userId Y), that would let me transfer my 50% ownership to another user Y. And that method would be secured to only accept being called by me, or by another contract written by me.

Then if a user Y did come along and wanted to buy my stake, we'd agree a price P, then I would write a second contract that said: If user Y pays user X amount P, then call sellUserXStakeTo(Y). Then, once I'd published it, user Y would verify it, then pay the money, secure in the knowledge that I could not alter or back out of the deal.

stupidcar··on macOS High Sierra: Anyone can login as “root” with empty password
And if you're thinking that manually disabling root might also fix this, it won't. You have to leave root enabled.
stupidcar··on Meshkit
Nice idea, but despite the "Open" in the name of the company, this is all based on a proprietary protocol. The internet has done pretty well so far by being based on open protocols and standards. I don't think it's a good idea to change that.
stupidcar··on Bitcoin passes 10,000 USD
The problem is, the utility has not grown by anything like enough, whereas the speculative side has exploded. And the more Bitcoin is used as speculative instrument, the worse it becomes as an actual currency or a long-term store of value. As a regular consumer, you need to know that the money in your wallet one day is going to be worth roughly the same the next. Likewise, you need to know the gold you're buying to put in your vault isn't being sold at a price 1000x its long-term worth.

Yes, in the short term, it's nice if you have some Bitcoins and they keep increasing in value, but does anybody really think the current surges are anything other than a bubble? If you accept that, then you have to accept that there will eventually be a correction. In which case, accepting Bitcoin in lieu of traditional currencies is like a a cafe letting customer pay for goods using a collateralised debt obligation or some other risky security.

If Bitcoin is going to make it as a digital currency, or even just as the "digital gold" that some of its adherents now seem to settling for, then it needs to get past this bubble phase. And the quicker the better, because the harder the correction, the more wary people are going to be of going anywhere near it afterwards, and the more likely that governments are to introduce hefty regulation to avoid a second bubble.

← PreviousPage 14 of 26Next →