skysight-inc/HackerNews huggingface dataset:
If the compiler does global optimizations, it can infer when virtual functions aren't really virtual. For example, if a virtual function is never overridden, or never overridden by any live type (after dead code removal), then it can be implicitly converted to a non-virtual function.

Since C++ doesn't have interfaces, only pure virtual functions, you'll pay the cost of the virtual dispatch, even if you use delegation, won't you? (The context of my comment is the use of interfaces, with implementations using delegation instead to do implementation inheritance)

e.g.

interface I

class Concrete implements I

delegate to Shared

class Concrete2 implements I

delegate to Shared

Yes, if you don't use any interfaces at all, and just a concrete class, then it's a different situation.
I really like that syntax, I think it reads well.

Of course, I've known Perl for 20 years, so that might have something to do with it. :-)
really 22 days---sick days are separate. Plus more holidays than typical in private work
Content Marketing: Promoting Content To Relevant Audience For Higher Conversions
How to Use Google App Engine for Free Computing
Free version of the PDF here: http://www.icsr.agh.edu.pl/~malawski/google-appengine-ieee-2011.pdf
It's true in most jurisdictions, as far as I know. Having a college degree of some sort can help get you on the fast track to promotions and/or investigative positions. At the sheriff's office where I worked in the past, you didn't get beyond Captain without some college (with certain exceptions for under-the-table nepotism of course).
Interesting, if you use the Zynq the system is already designed, get a zedboard [1] (dual core ARM-A9 + FPGA + HDMI). But perhaps what would be a much better project would be the spirit of Amiga on an ARM system with a blitter and a copper chip. (Although jamming copper changes in during the frame for color rotation was fun, and benchmarking with the green pixel line, the chip itself seemed to have limited use)

Mostly I see it as a call for a "PC" for the current generation which doesn't have one.

[1] www.zedboard.org
Looks to be a supply issue for new police officers. I hope the government will create a new foreign worker visa to allow talented foreign peace keepers and law men fast tracked entry in to the US to ensure the safety and prosperity of our citizens and future generations.
"Unlike method invocation, inheritance violates encapsulation" Item 16 of Effective Java 2nd Edition. To the original article, I would improve the wording so that it is clear whether the author is against class hierarchies in Javascript or classes in Javascript. It is not clear to me.

One practical example: In Javascript (CoffeeScript), null values can propagate for a very long time. Calling a non-existent method throws an error immediately, while using a nonexistent field (because it changed in the super class) is not that easy to track down. From my CoffeeScript experience, almost any inheritance brought us a headache when we rapidly iterated on our code - but that doesn't mean that CS class construct isn't useful in defining recipes for well-encapsulated objects.
It's worth paying for good, non-corrupt police officers. Better to pay them well and hold them to high standards than to accept lower standards for lower pay.
The chlorine water solution itself would be unpleasant to deal with. Bleach is more like 10 parts water, and that is still worth handling carefully (at least, I think so).
I think it's fair considering how much it costs to live in SF these days. They also risk their lives everyday serving and protecting. You shouldn't be complaining if a police officer makes more than you. Their potential of making money is actually peanuts compared to civilians. Do you know any police officer billionaires?
Entropy in bostik's example is controlled by the -c parameter to head, not by the size of the destination alphabet. If you increase the number of bytes read you'll see the length of the resultant string start to grow accordingly.
So of course he should not have been treated that way, and he has my sympathy.

But nowhere in his account is any recognition that this happens to lots and lots of people all the time, it's not special.

The cops are surprised that he's expecting to be treated with dignity and respect, because they aren't used to treating people with dignity and respect, it's not what they do. It's just that usually this isn't directed at well-off white people.

So there are two ways your reaction can go, when you're a well off white person who gets caught in that crap. 1) _I_ don't deserve to be treated this way, because I'm different, and I demand justice. 2) _Nobody_ deserves to be treated this way, and those people who normally get treated this way are _no different_ than me and don't deserve to be either, and I'm going to use what I've got to try and make it so.

The OP is full of me, me, I, I, and what makes him such a person that didn't deserve to be treated like this. Nope, he didn't, neither does _anyone else ever_, and _most_ people who are treated like that are not like him, and it's not a one-time thing either, and frequently has worse consequences than a night in jail. You think the officer would have agreed that he "never should have been there" if he had looked like most of the other people in those cells?
a police officer with 5 years experience typically makes over 200k total comp between salary, overtime and retirement benefits. Some make as high as $600k+ a year. Feel free to look up the public records if you don't believe me.

It's a much better paying job on average than being a software engineer

Edit: and I'm not saying whether it should or shouldn't be a better paying job than a SE, just noting the facts. Many are unaware. Sometimes I see guilt threads from engineers who make 150k. They are really behind the times in this area.
So do quite a lot of other people. Consider the rates of fatal injuries and salaries at http://www.businessinsider.com/most-dangerous-jobs-in-americ...
clojurescript's compiler is written in java. I think there are a few obstacles that keep clojurescript from basing clojurescript purley on javascript.

Nevertheless, if this is all that keeps you away from clojurescript -- too bad. Because it is a great alternative to pure javascript.
It's not just the salary that is high - the pension benefit (as is typical for California) is astonishing: Up to 90% of salary at the very early retirement age of 58. These kind of pensions schemes are the reason many states (especially California) are experiencing budgetary crises.
So do members of the military and they get paid half as much.
Intellectual property includes trademarks and copyright.. So what you're saying here is very radical. Knockoff (not necessarily the same formula) drugs sold with pfizers trademark. Gpl'd code used in commercial programs without attribution or contribution of changes. No software licenses.. No ability to sell software at all (since anyone could copy it and give it away for free).. And consumers lose the ability to tell who is selling what (since anyone can use anyone else's trademarks).

I don't think most people would agree with such a radical change.

Edit: even saas would be a problem.. Since a competitor to Amazon aws could call themselves amazonsaws.com, and use amazons logo etc (for ex)
Excellent. I was having trouble following the connection between showing high justice sensitivity being associated with higher order cognition automatically meaning they subjects were cognitively driven. All else being true, they could be cognitively driven when thinking about matters of fairness and justice and emotionally driven otherwise.

Thanks.
8 hours is legal, this is something our ancestors earned hard. Why are we even discussing this as if it was acceptable to work 8+ hours _for_someone_else_ unless you are really-really enjoying it? I say it's reasonable to ask for 6 hours giving the present day commute times.
Seems reasonable to me. Do you want police walking around that aren't well-paid?
The environmental stuff is actually just the icing on the cake - EVs have a number of advantages over internal combustion and the disadvantages keep getting smaller.

-awesome acceleration due to instant torque and no gearbox

-amazing handling due to low centre of gravity (heavy batteries at the bottom)

-quieter

-minimal servicing / repair costs due to much simpler drive train with fewer moving parts and no fluid

-more internal space (no crank shaft etc - especially in the back row this makes the middle seat so much more comfortable without a big bulge between your feet)

-more external space (e.g the Tesla S has a front trunk (frunk) where the engine normally is)

-safety factor - extra crumple space with the frunk and no engine to go into your legs in front on collision

-cheaper to run especially in high gas cost areas like Europe

-some areas have perks like using the HOV or bus lane

-convenience factor of 'filling up' at home

The environmental stuff is all goodness (and other responses have illustrated how this still holds even in coal dominated areas) but for many is not the driving factor.

Obviously EVs are not for everyone. My analogy is that they are like SSDs - better in every way except size (range) and cost, and therefore not viable for some...but that will rapidly change as the technology moves on.
That sounds like me. After that, I went OS/2. These days I fear for any platform I choose.
This should be heavily publicized. Hopefully, by letting people know that they can earn a good living by being a police officer, the quality of candidates will continue to increase. Entering the police force still carries a stigma, IMO, particularly around not being highly intelligent or thinking for oneself. Those are likely the people we want as our police officers; I'm more than happy to have my taxes support such pay levels if we do attract those people to the force.
Ask HN: How do I quit my job? ("unpaid overtime crew" update)
In response to this: https://news.ycombinator.com/item?id=7488305

I have realized I need to quit. My contract is up in a month, but during this month I could REALLY use the time as a bunch of my side projects are coming to an end and there's a few incubators I need to apply to / pitch my startups at a few events, and I can't do it while working at this job.

Monday I plan to quit but how? My manager loosely threatened me with letting my go while still paying out the rest of my contract, which would be ideal.
>I don't lie on my resume (I don't need to, and I'm too much in the public) but I don't think it's unethical to inflate titles, play with dates, misrepresent performance reviews, or otherwise inflate one's status. As long as you're not claiming to be able to do work that you actually can't perform (i.e. actual job fraud as opposed to status inflation) you're OK as far as I'm concerned.

Especially relevant to programming. Though I do struggle with convincing myself to put some things on my resume.

Example: I spent a year messing with front-end web development. Some days I'd just write a few Javascript functions and try to fix/break stuff, other days I would bang out a small project start-to-finish. Total maximum time per week would probably average to 15 hours.

If my prospects ask for 1 year of experience, it's really unclear what level of time spent and knowledge they're looking for. At 780 hours for that year, I've put in 3/8ths the time of someone who works full-time at (supposedly) 2080 hours per year and wasn't also distracted by a completely unrelated job.

Ethical Me wants to be responsible and not misrepresent. Practical Me says I need the money.

Unlike the doctor example, programmers have a lot of time to research and tinker without making someone bleed. It's difficult to be sure of what I can actually do before I've done it whereas doctors go through many, many tests to verify their skills.
I find the Work Smarter, Not Harder meme a little tiresome. How 'bout this - Work Smarter AND Harder. Focus on outputs as the only thing to brag about. Hours put in rarely impresses anyone of significance. Its about the output. Work Smarter, Not Harder is condescension masked as process advice. The truth of the matter is you need to put in the time (read: harder) to get good at just about anything. Only then is smarter an option, but drop the harder at your peril.
Pro Pupppet Second Edition Review
Also, he is preparing to publish a 'What If?' book [1]. Always a good idea to support your favorite authors.

[1] http://blog.xkcd.com/2014/03/12/what-if-i-wrote-a-book/
"Extreme vacations": I think he emphasizes on disconnecting during vacations, maybe doing extreme sports in very unique locations.
The amount of macronutrients to be consumed would of course depend on your weight and activity level. I use this calculator for Leangains: http://sareyko.net/leancalc/

I agree that fructose (whole fruits) is preferrable to starch, and people with colitis/IBD seem to find relief from that: http://www.breakingtheviciouscycle.info

But I'd recommend agains juices - they allow to pour down way more fructose quicker than you could chew in the form of whole fruit.
You're correct that adding interfaces to JavaScript would also require adding optional type declarations. But there are lots of languages based on JavaScript, or which compile to JavaScript, which offer optional type declarations. It seems to me they could have gone down this path.

I don't agree that it's better to have an "interface" which exists purely in the head of every programmer working on the code. Languages can be doing more for us, and it doesn't have to be the kind of verbosity that Java offers.
In contrast Detroit Police start at $30,137. Something tells me the San Francisco police don't have to transport dead bodies in their cars or any of the other horror stories I've heard from the DPD.
You are correct that today, in the US, on average, electric vehicles do not provide a significant improvement in emissions over hybrids like the Prius. [1] However, something to consider is that an electric vehicle effectively decouples transportation from the emissions source, forever. Power generation is projected to continue to get cleaner over time [2], and as power generation improves, the emissions of electric vehicles improve with it, even without any additional improvement of electric vehicles themselves. While US power generation may never be as free as fossil fuels as that of France, it is only getting better, and electric vehicles can ride that wave. If instead, we continue to drive gasoline vehicles (even hybrids), we will never stop pumping out CO2 with our cars.

The only renewable resource that can power a car directly, without transitioning through electricity, is solar, and there just isn't enough power in the solar radiation that strikes the roof area of a car to be practical.

Natural gas vehicles are actually a good stepping stone to reducing CO2 emissions, since methane (CH4) has roughly half the carbon per unit of energy. There is renewed interest these days in developing natural gas vehicles, but I personally think electric vehicles will win the race.

[1] http://www.afdc.energy.gov/vehicles/electric_emissions.php
[2] http://www.eia.gov/forecasts/aeo/MT_electric.cfm
What I meant was that I got a meaningful emotional signal from hueving's comment which I usually don't get when I read complaints about HN banning. That's rare, in my experience, and helpful.

People can find out why they were banned by emailing us. That's been true for a long time. Also true is that we routinely unban them as long as they give us reason to believe that they won't keep doing whatever it was.

What I do think is that we need a better, finer-grained, more proactive feedback mechanism for informing people when their comment crosses the line. If we get that right, it should not only assuage the hurt feelings we're talking about, but improve the quality of the comment threads too.

But this is harder than it sounds. HN has some specific conditions, and we're not going to do anything that violates those. We're also not going to transplant any system that has worked well on another site—systems don't transplant. So what we are going to do first is think about this for a while.
> Anybody have an original source for "prefer composition over inheritance"

It is mentioned in the GoF Patterns book[1], from 1994/1995. that's what I think of when I hear the phrase.

1: http://en.wikipedia.org/wiki/Design_Patterns
I have to agree: police bribery is so common across poorer countries and is so harmful to the rule of law. Better to err on the side of overpaying.
and cops all over the country who on average make 30-40k
tl:dr; pull request gets rejected, author enters a drama queen mode taking it personally and over emotionally.
I think the only way we could to tell if this is too much or too little is if we had a free market for protection services. Since we don't, we can only speculate. Maybe, it's actually not enough. I can't object anyone receiving a high salary, but if this salary is paid out of my own pocket with no consent of mine and with the police force regularly abusing their powers, then yes, I believe this is not just too much - this is outrageous.
All you did was remove the curly braces and take out a comma that probably didn't compile in the first place though. I don't get what's far better about it.

Technically, Coffeescript should know better than to balk at the braces that is abstracting out when they're explicitly declared. And any compiler is going to groan when it gets to that dangling comma.
I also quite like coffeescript for its "everything is an expression" mentality—it makes functional programming very nice.

The absence of this feature is why me and Python don't get along.
I don't see anyone saying people in uniform shouldn't be making better wages.
Installing Ubuntu 13.10 on an External Hard Drive
I think they should be paid the market rate, just like everyone else.
Javascript is fundamentally an object-oriented language, it's just prototype-based rather than class-based.
> typeclasses?

Fixed. Thanks.

I agree with you about Haskell. I almost went into a discussion of how Rust does this. They don't have subtypes, but they do have code reuse if you explicitly declare it. Caution, I'm just an admirer of Rust, not a user. So maybe it sucks too, but this seems closer to how things ought to be.

http://static.rust-lang.org/doc/master/tutorial.html#default...
Awesome, thanks!

Here's another random idea. I think it would be more difficult to code up, but there are certain comments where I think "ok, this is a wrong answer, but in good faith". Those should get "pinned" at 0 karma. Other comments should get pinned at 1 - I wouldn't want to see them cross over into negative territory, but they aren't great either. I would envision this working by clicking a 1 or a 0, and as votes go up or down for the comment, my contribution changes as a consequence. Say I click 0 when it's at 1. It goes to 0. Others pile on, and it goes to -1. At that point my downvote actually becomes an upvote to push it back towards 0.

All those dynamic calculations would probably be a PITA, so I can completely understand something like that not seeing the light of day, but I just thought it was an interesting idea in terms of being able to say "ok, this is not a good comment, but it's not a mean one or anything, so it should have a floor under it".
Western countries where police are paid average wages don't seem to have much problem with corruption. Overpaying seems unnecessary.
Developing a cross-platform game with Haxe, OpenFL, and HaxePunk
Yes absolutely. I don't think these salaries are completely over the top (though a little high for a first job).

The problem I have is with the retirement/pensions. I'm happy to put up with pensions if someone makes $50k a year for 20 years as a teacher. But if you want to make the market rate comparable to the private sector, you live with the private sector benefits.

Can't have it both ways.
Plus most police officers retire after 20 years, so technically the police office could retire at the age of 45.
Better question, is the movie industry doomed (think Popcorn time)?
It seems more like a functional language to me, but YMMV: http://stackoverflow.com/a/501053/5599
The base compensation is reasonable given the high cost of living in SF and the personal risk associated with the job. The pension is tougher to justify. Up to 90% of your salary at age 58 until EOL is likely unsustainable for the city. Cue epic battle between those who support public pensions and those who don't.
A rough, hand drawn sketch scanned to gif or png until the official artwork is ready would be 100x better than a broken link.
Work is in progress to make webrtc implementations work over ipv6 but it's not ready yet.
Chrome 34 will implement it behind a feature flag (googIPv6:true) [1], and hopefully Firefox will follow suit.

When they do, most pain points caused by NATs will go away, and that's not webrtc specific.
While you'll always encounter some (intentionally?) broken network which only allows 80/tcp and 443/tcp from time to time, there's not much you can do about it, and webrtc can't do much about it.

[1] http://code.google.com/p/webrtc/issues/detail?id=1406
Sick days are not vacation.
Clearly in this case for him calling 911 was a mistake, because it made him more likely to be mildly beaten up, arrested, and thrown in jail. The outcome of this particular situation revealed that calling 911 has a bigger potential downside than he had previously fully considered; it's a public service to share that information.

Calling lyft, uber, or any other cab-type service probably would have worked fine in this scenario too. Because cops have a known tendency to be violent idiots who make situations worse by their presence, the fact that calling 911 automatically brings cops along with EMTs is a problem.

Perhaps what we need is to find or set up some sort of emergency number that just brings EMTs but doesn't also bring cops, and program that number into our phones. You might still want to call 911 for a freeway accident where cops are needed to redirect traffic, but not for something like this.
I'd say that the first thing it proves is you don't remember the tech scene in '98. All the comments you brought up in your GP post were reflected loudly by most pundits during that time. Cringley, spolsky, and many others said AOL was doing a fool's errand by allowing the then-unproven open source bazaar model to rewrite the browser. And that they'd be playing catch-up. And that IE would win because nobody would care about the rewrite. Fast forward to 2014, and blink/Firefox fight for first place, while IE continues to lose market share. Mozilla not only caught up, but is now setting the pace.

The second thing it shows is that history repeats itself. The pundits, much like you will prove to be, were wrong. Thanks to the brilliance of jwz, the Mozilla project and the gecko rewrite has outlived both Netscape and AOL. Firefox is a flagship example of how open development can create a superior product that can outlast the companies that make it.

The next thing this proves is that open development is continuing to show that rewriting an engine doesn't require "betting the company" anymore. Mozilla and Samsung are both heavily-invested in Servo, and are expecting this rewrite to be at the core of your future operating system. But if servo doesn't pan out, Mozilla won't be filing for chapter 11 protection
I agree that people should earn a living wage that enables them to live in the community that they serve, but all cops are bastards[1].

[1]: http://www.crimethinc.com/texts/atoz/fuckpolice.php