skysight-inc/HackerNews huggingface dataset:
Actually, you did remind me that I did run into a type inference bug: the original ScopeGuard implementation ( http://www.drdobbs.com/cpp/generic-change-the-way-you-write-... ) relies on binding a temporary object to a const reference to guarantee that the destructor doesn't get elided. So changing ScopeGuard foo = MakeGuard(...) to auto foo = MakeGuard(...) does change the meaning of the code, and you may have the cleanup code optimized away.

An updated version of ScopeGuard doesn't have this problem ( https://github.com/facebook/folly/blob/master/folly/ScopeGua... ).

So, yes, I'll concede that code that expects you to cast some kind of proxy type to a different type (e.g., the vector<bool> example, or the original ScopeGuard, or perhaps valarray) isn't ready for type inference. But that kind of code is pretty rare, so the list of exceptions to the rule should be short.

Besides, if you want to swap two elements, use std::swap.
Your logic applies equally to private jets. Guess what? There are other modes of transportation than cars. Shhhhocker.

Reality: This will harm middle class people who live paycheck-to-paycheck, not struggling families.
My friend and I hacked an API to run background checks. We wanted to show it to the HN community and get your feedback on it. You can run 1 background check on yourself for free.
An alternative interpretation might be - JavaScript, the high level language language that's so awesome that it can out perform native code*

* as long as you make it do less work
How much does a parking meter cost in San Francisco normally? (Honest question, since I don't live anywhere near there.)

Frankly, if private prices for parking spaces really did start to soar, that would be an Enormous Clue for the city, though I fully trust them to bitch about the market long before they actually listen to it. (And by "listen" to it, I do not mean "mindlessly obey it"... I mean, listen to it. It would be trying to tell you something. Perhaps something you already know, but with fresh volume and urgency. But, of course, far better to just crucify the market, then live in a world of myth and mystery where things Just Happen and The Rich are mysteriously behind every bush and every lamppost keeping down The Good People via entirely mysterious and inscrutable magic mechanisms that can never be studied or understood by Good People lest they become Tainted and Unclean....)
Writing certain windows apps?

The paper states that C++ must have done something right, as it is still consistently popular. If ms didn't go all in with it though, I think it would be a footnote in history.
I think you missed his point. He said "relative" amount of Peetime. Meaning if a 2-hour movie has 1 hour of Peetime, you may want to pass on that movie altogether.
"open source the requirements for accrediting a specific course."

Isn't this MIT OCW and a zillion competitors?
Great app, created my first interactive story. Its cool
Zeit Online on Encrypted emailers
The last I read, only the top ten or so teams turned a profit.

I am somewhat embittered though, as during my time at university, my tuition went up by $500 for the explicit purpose of funding the football team. And I was paying cash.
PR Lessons: The Difference Between Good and Great
Other than the money going to private companies rather than the city, how is it any different from a parking meter? In my city, there are no parking spots that are walking distance from downtown that do not cost money to use.
Paying Back the Alma Mater with a Tree
My grandma lives in a small town called Lake Mills, Iowa. It's a town with about 2K residents. I cringe every time I go there. I always see these decked out these military looking police cars and cops in them that look like special forces. These cops for the most part don't even live in that town and have no connection with the people there, except for their us against them mentality.

I think the main issue with law enforcement today is that most police departments require a college degree, but then only pay like 20K - 25K per year. What kind of person would want to go to college to get dangerous job that pays about as much as a cashier at most gas stations. I think that's a real important question. It seems that most younger cops entering forces today are action junkies looking to bust someone. They don't have a protect and serve mentality, they look at everyone as if they are a criminal and just need to catch them doing something. It's really disturbing to see in big cities, but even more disturbing to see in small towns.
Looks interesting, as we have so many sites, which are used to create stories but those are very static and some are complex, but it is really very simple for users to create interactive stories here. Can anyone tell what are other benefits of it ?
It's not draconian; it's counter to the goals of paid public parking.

Public parking is designed to ensure spots are available. This is why many cities have meter parking with a 2 hour limit; to discourage people from parking on the street all day long (there are garages for that).

This type of app encourages people to occupy spots by camping out in them and selling them to the highest bidder. If your goal is to ensure parking spots are available to people that need them for short-term parking, allowing that behavior seems counter-productive towards your goal.
Leaked Images of Android ‘L’ Reveal Flat New Look for Chrome
'Native' in V8 also does not always mean 'implemented in C++'. The readme mentions `Array#forEach`. This is the V8 implementation:

https://code.google.com/p/v8/source/browse/trunk/src/array.j...
Cross platform applications? I know that C# apparently has cross platform support but I met with limited success on Mac OSX (perhaps I didn't try hard enough).
It is fairly easy to get a cross-platform library and use C++ to write for the main OSes (Mac OSX, Windows, Linux, in no particular order) and then you can also take the same code and compile and run it on your Raspberry Pi and ARM systems.

I know you could probably do the same with Python but I think small systems would suffer a speed penalty (I even find desktop Python applications slow so I dread to think of GUIs on an ARM written in Python). I reality I have not ever come across a piece of paid software that included a runtime of Python or some scripting language other than Perl, and that clearly wasn't for a GUI app.

What else would you write for all three platforms in? Java? I am curious.

(I suppose if you are targeting one platform only, then it might make sense to write in languages typically tied to that platform, eg. Obj-C / Swift / VB / C# (as is vastly popular in Windows land)).
Ruby parsing gotcha
And that is better how?
It is sad that it wasn't already the law, or so ingrained in all that it wasn't an option to begin with.

That being said I attended several schools in the UK and I, and those that I know (some attending schools run by the Church of England), was never really taught about creationism or anything of religious affiliation outside of RE lessons. YMMV.

It seems to be part of the media-induced fear of creeping extremism in schools after a alleged "plot" by a small number of Islamic extremists trying to take over schools in the Birmingham area (see "Operation Trojan Horse"). I am glad however that legislation is targeting broad strokes religion in the science classroom as opposed to just targeting Islam.
Why "should" SF be auctioning off these spots? To maximize revenue? Is that why public services exist? Are they doing a larger disservice to the people of SF by NOT auctioning them off, thus raising the price to park, over having a lower price solution to $25 parking garages? Maybe SF should build a couple of public parking garages themselves if they, as a public service, wish to continue to offer more affordable public parking. The residents of the city need affordable parking. Unless, their goal is to get less people to drive in the city and take public transit. There are so many factors at play here. So many agendas and concerns. So I repeat my question... for what reasons "should" SF auction off the spots? What are its ramifications? I have no skin in the game, I'm just an east coaster. These issues are hardly ever so cut and dry as to whether a market exists or not.
"In companies like Google, Microsoft, Apple, more experienced developers (in their 40s and 50s) are pretty well represented"

For sure, that's one of the prime reasons I moved to a tech megacorp from the startup world, I wanted to be at a place where I wasn't the "senior developer" at the age of 30. Smart companies value experienced engineers.

I think a lot of the people who got the short end of the stick are the ones who followed the traditional path of staying in a single company forever and developing their skills in a single area - specialization is a blessing and a curse.
I really don't understand this mindset.

Parking spaces are a public resource. The city sets tariffs at a level it feels reasonable.

Why should this public resource be priced at the highest rate the market will bear? Why should everything in the world basically only be available to those who can pay the top possible price for something?

Why do you want to live in that world?
I don't think there's anyone writing better, more actionable advice on this particular transition than Michael Lopp at http://randsinrepose.com

I'd read everything on that site.
Unfortunately, the full quote is bigger than HN's 80 chars limit, so I had to butcher it.

"Quite simple, and it is usable, but not generic. For a library it has to be designed way further".
You can book a table at restaurants. Maybe booking a parking would be a thing to look at instead.

Being paid for leaving the place actually creates market for people who would bend the rules for profit. For example get a low-mpg/electric car that you drive around, take any space, then immediately resell it. Even worse, if you get together with others, you probably could create enough artificial resource scarcity to lift the prices to the level that makes doing this all day long profitable.
> due to a vulnerability in the extract() command

No.

This is due to insane usage of the extract() function. Not a vulnerability with the function itself.

You can pass user-supplied input directly to plenty of other functions which have equally idiotic outcomes, it doesn't mean that they have vulnerabilities, it means the author is a liability.
The number of uses we put Javascript to is indeed frightening, given its "fragile" nature and heavy criticism it attracts every now and then.

There is a great, amusing, borderline sci-fi talk by Gary Bernhardt about the future of Javascript and traditional languages compiled to Javascript. My recommendations: https://www.destroyallsoftware.com/talks/the-birth-and-death...
nice blindfolds you have there. Guantanamo Bay, Abu Ghraib, the largest prison population by far among rich countries, institutionalized rape, drone executions without a shred of legal process, militarized police and you're still making excuses for what was not so long ago the beacon of modern civilization and democracy.
A decent transportation infrastructure -- whether it's cars (with associated parking) or trains or buses or bikes or footpaths -- is an essential function of local government.
Stumbling into ancient codebases is always an impediment to understanding the language properly. Like reading C++ from before dynamic_cast was available, and spotting macros to do the same thing littered around MFC code.

I also find that the ancient developer's design style and implementation left a lot to be desired, and if someone came across that as an introduction to a language, I think they would have hated the language too. That's why we should always write beautiful code and occasionally throw in obscure language features to force them to learn them :-)
CryptoLocker Variant Found with Weak Encryption
The very first F82 BMW M4 crash on a public road in Germany
Let's be fair though. I knew one person, personally and closely, that went to school full time, worked a full time job and raised two girls (they weren't babies or toddlers though) and managed to get a 3.0+ GPA, but that doesn't mean everybody can do it.

I tried (not the raising the girls bit), with a full time job and going to school full time and my grades plummeted for that semester (which caused me to have to retake a couple classes and delayed my graduation a semester).

Even in a Mid-Missouri small town, making 7-8 bucks an hour working ~24 hours a week, it wasn't enough to survive, let alone survive AND pay "cash" for classes and books.
> In fact, native functions often have to cover complicated edge cases from the ECMAScript specification, which put them at a performance disadvantage.

What. Is. This. I don’t even.
The truth behind that six-figure deal for Harry Styles fan fiction
I see it as something very close to protection racket. This app creates an incentive to take the space for longer than necessary and get paid for freeing it up. Maybe as an add-on you won't get your car scratched for an extra payment?
Is it because everyone was thrown by the syntax of function pointers (for no good reason, other than they never encountered them)?
> What if the company wasn't based in California?

The article says it was built in Rome, Italy.
I don't read it as condescending. I read it as representative of the response of the average educated person to a degree whose accreditation is supported mostly by the opinion of recipients of the degree. If you educated yourself, say so, and provide evidence of your own knowledge. That way, you'll be one more person who shows the validity of self-education, and you'll make it easier for the next one.
The problem here is that "trusted" is not intrinsic to the character of some third-party. I might trust someone with $100, but does that mean I would trust them with $1,000,000?

The better solution is to not to rely on trust or semi-trust (i.e. trust multiple parties not to collude) at all. Instead, incentivize people to act in their own self-interest (the same game-theoretic assumption underlying the blockchain). This is how TruthCoin incentivizes voters to adjudicate decisions (voters are analogous to miners): https://github.com/psztorc/Truthcoin
Agreed. The sane alternative is to extract specific, expected inputs to scope once they have been filtered and escaped. Any API I've written has this sort of validation built-in.
Is go really suitable for system programming as defined in TFA?
Are there not meters for these spots, for which time the squatters need to pay? It seems like this is a problem of arbitrage. The spots are worth more on the 2nd hand market than they cost in the first place.

Supply/demand problems really pricing problems.
Is that a problem though? Wouldn't you be happier knowing that portion of the language, despite the difficulty in learning and understanding it to begin with?
> Streamlined language with carefully-chosen syntax and keywords (there aren't 10 different meanings for "static", for instance);

I'll concede this point. I can't imagine learning modern C++ as a complete beginner, even if I know why the Committee overloaded keywords like this (or worse, at least to me, overloaded symbols): the general assumption that any good new keyword has already been used as a function or variable name in somebody's code, so that changing the meaning of that word would break their code.

We'll have to see whether the Golang designers follow in the C++ Committee's footsteps on this. I remember when Java was described as a clean and simple language. I would laugh at anyone who claimed modern Java was clean or simple: adding features to the language without breaking old code is a very difficult dance.
Definitely... We get around 50M page views/day in our website. And since we are a media company we need to have a storage of images from celebrities, sports and news in general.
Not all restaurants. Maybe that lunch place that's real popular, you know the one, where seating's unreserved. I could really draw out my meal until the right person comes along and pays me to move on.

But yes, I agree, this whole thing creates incentives that add up to a bad situation for an allegedly public resource.
Aren't the places made for,and maintained with public money though?
Summer Games Done Quick
I always thing his prog-rock 70s haircut makes him look like one of Robin Hood's merry men or a medieval archer.

Not that this is a bad thing.
Well even in the screenshots it says you can go pee in the first few minutes of X-Men because it is "just silent exposition".

Now I haven't seen the movie, but that doesn't sound unimportant...
Looks like they provide solution for creating interactive story. They have good tools and other stories are also pretty. They give some good templates also to create beautiful story also we can start with blank canvas. Its kind of a tool to craft your creativity into web, in form of interactive stories.
So if you simplify the implementation, it gets faster but more fragile. Why is that confusing?
When I had my car in the city, I took public transit every chance I could because I didn't dare lose my parking spot. I only used the car for out of town trips. Then I realized how ridiculous it was to own a car that I was stressed out to use. I switched to Zipcar and never looked back (in fact, my local Zipcar garage is closer than how far away I normally had to park).
You can get paid for the spot when you leave it in the same way you paid for it when you took it. So I don't see how this is supposed to disproportionately affect poor people.
Parking varies greatly throughout the city. If you are downtown, it is really difficult to find a spot at all, so garages are usually the main option. Garage runs around $2 for 20 minutes, but then rate declines over more time with typically a $20 cap.

If you do find a street spot, its probably metered which now has adjustable rates depending on location and time. A meter will run about $1 for 15 minutes, but no upper cap and most of time limits.

If you get out of downtown, there is street parking in most neighborhoods for free, but typically with 2-hour limits, permit zones or weird street cleaning hours which if you leave it there you will get towed.

The app will probably benefit the neighborhoods the most, since a
free spot with no street cleaning the next day is a gold mine.
I'm glad you mentioned HomeKit, because at this point, I'm really starting to fight my desire to go out and hook all of these things up to make sure they work with HomeKit. Apple doesn't exactly have a history of really releasing the standards they say they will (looking at you, iMessage), but I'm all for the idea of standardized home automation.
Only the top few athletics programs turn a profit. About half of D1 football teams turn a profit.
Do you have documentation on the differences in behavior?
Parking is a service, provided by the city. The people who pay taxes have already paid for that parking spot. If you, or somebody else (Even the city!) try to profiteer in excess of that, it's predatory and against the rules.

If this was in a private parking lot; knock yourself out. Charge whatever you want. Charge a hundred dollars a minute. But it's public space, and you cannot hold public property hostage and expect me to pay. You would be no better than a group of highwaymen holding up a bridge for a "crossing toll". It's not yours to profit from!
My guess would the third of your options, it feels like a scanning tool artifact.

However, my point was that even given the age of the OWASP Top 10 and its incredible brand recognition among developers globally, the IBM bulk application scans are still finding (At least some of) these issues.

Interesting point about taxonomies of security flaws, similarly taxonomies of security attacks are also hard (Wicked maybe). This may be due to the difficulty of fully defining the world of unexpected or unwanted application behaviour. There is something complex about the space of possible attacks (or flaws) that resists classification at anything other than at such a level of foundational definition to be practically useless in the real world.
Perhaps regulating a cap is better than banning the practice outright. If the max price is equal to the minutes left on the meter * fare per minute, the seller will never get back more than they put in. They will just be selling back the unused minutes, which can be useful if someone puts a few hours on the meter because they don't know how long they will need it. This would prevent scalping, and if parking is considered a public good, it will bring the minutes paid for / minutes used ratio closer to 1, which should be the goal. I understand that it's probably not the goal of the app creators, but it is a reasonable compromise. Of course, this type of efficiency means more social benefit and lower revenues for the city, so that's not likely to happen.
Again taxi drivers strike and/or block several European cities over uber
Traffic problems all around.
Parking is an inefficient use of land in a dense city. Cheap parking just subsidizes this inefficiency.
The Basics of Inbound Marketing – The Offer Levels
The article has a weird tone.

Why is he being so agressive against people who think the opposite of him? I mean if you are tolerant against people whose religion place the women in a submission role and restrain to nothing individual rights, you can be also tolerant to people who think the earth is not warming up.
Click4Surveys – Get Paid Cash To Take Surveys-bestcbstore.com
I assumed that California couldn't issue fines against a company unless the company is based within its borders. Every app is de facto international nowadays, so does that mean California can issue fines against any company with a popular app? I'm rather ignorant of the legal dynamics in play here, so it'd be wonderful to hear from someone with experience.
I was just quoting the stats Google gives in the play store.
Because you need a smartphone with the appropriate app to be in the market in the first place!
Won't dense, affluent neighborhoods mostly be natural gas for heating?
Programming on a Piano Keyboard
In this case, you have someone pay a small parking meter fee and then they sit in the public spot waiting for someone to offer them more than their original meter fee.

This is very similar to domain name registration. You have someone pay a small registration fee (~$12) to register a domain and then they sit on that domain waiting for someone to pay them substantially more for it.

If it is ethical for a domain name market to work this way, why is a parking meter market different?
How is it a problem that the public entity responsible for the property charges rent to individual users?

EDIT: Or is the problem you are referring to what the app is doing? I read it as that the app wasn't the problem, but that the underlying idea of paid parking which it sits on top of is wrong, but I realize that it might also be read the other way.
This linguistic social relativism you state is complete bs.

I do agree the moral judgement of a person holding a currently repugnant view of course must be weighed by historical and social context.

Words to describe a belief or set of behaviours, however , are context-free.

Do we claim Henry Ford wasn't antisemetic because almost everyone was in his era? No.
Do we claim slave owners weren't racist in the 18th and 19th century because everyone was racist back then? No.

Same for our racist grandparents (I had a Nazi in the family until recently). "Oh that was a different time". Sure , it shapes the broader moral picture of a person. Doesn't make them less racist.

Same for homophobia. Not everyone was homophobic in Nabokov's time. The definition has nothing to do with why one may hold the view. It's just a statement that they did.

One might critisize that the word fuses a clinical term "phobia" so casually, when "anti-homosexual" might be more accurate... but that ship has sailed.
Sounds an absolute blast!
HN does not care.