skysight-inc/HackerNews huggingface dataset:
Not to be too pedantic, but most of those things have nothing to do with JS.

> figuring out which events are listening to a given DOM element at any given time

This is part of the DOM Specification, not JS. You may be using JS to manipulate and listen to the DOM, but the reason that browsers don't support doing thing X natively is because the DOM Specification does not specify it.

> * sane debugging for things Facebook Coonnect, which had a really confusing implementation at my last company

Again, this is about a Facebook client library, not Javascript.

> * no magically defined functions or variables (i.e. foo["bar"+ someId] = eval("function () {...}")

If you mean the use of eval to change the runtime environment, pretty much every dynamic language supports some form of eval. It would also be impossible to write certain types of code without eval.

> * keeping CSS out of JS, and JS out of HTML

Not sure how this is a criticism of JS.

> * dealing with features tightly coupled to an ancient jQuery plug-in

Again, this is a common software engineering problem, and has nothing to do with Javascript.

I think you've illustrated some of the reasons that Javascript is so apparently unpopular -- often (but not always) people reference some aspect of the DOM, or jQuery, or whatever vendor-hacked snippets from the late 90s that they remember, without considering that the "bad" parts of the language are by now well known, and there exist extremely efficient and standards-compliant, double-JIT'ed runtimes for JS.
Sounds like you might have an unusual sensitivity to exaggeration. It is a symptom which affects a small percentage of the population, and is treatable. Talk to your comedian or an entertainment specialist about treatment options.

(In fairness, I strongly dislike soda. I can imagine worse things, of course, but in the universe of commonly consumed beverages, bubbly sugar water is pretty close to the bottom of the list for me. Another water, coffee and almost nothing else person.)
>Applications with native UIs also tend to give a better impression of responsiveness

Not just an impression. They often are actually more responsive. Except when they hang, which does happen sometimes, but then so do web apps.
It's okay that the marginal successes don't upend the world, the writer simply is asking if those of us in the valley are "disrupting" the right problems for the right populations. A marginal amount of time-savings for a high-income earner in having their car parking woes solved might be economically more viable than working on a problem that is less sexy but potentially has significantly less impact on actual improvement to people's lives.
I wonder if the tolerance, and then the love, of highly sweet things is acquired. And mostly probably, it is acquired when one is a child.

I have met and worked with many East Asians and Europeans who came to American in their 20's or older. Almost everyone of them thought American pastry and deserts are unbearably sweet. Most of them shun from soda drinks and other "food" containing high amounts of sugar. If they drink soda, they choose low- or zero-sugar kinds.

Related or not, a big percentage of American look overweight when compared to Europeans and East Asians.
I think they overcorrected. They want it to run on a phone, fine, but a phone app can easily dedicate 100MB of ram to verifying blocks.
No, you just sometimes issue twice as many flush requests as necessary. You can't flush or invalidate half a cache line, since the data is stored in units of cache lines.

In theory I think you could just invalidate the addresses byte for byte, ignoring the cache line size, but I assume the performance hit would be noticeable.
Rather than just "believing," can you please provide evidence that "white, male and safe" people do not detect and put their energy into treating the kinds of problems you're alluding to? (In fact I must have missed the specific untreated problems that you and the author mention).

I fail to see how skin color, gender and "safeness," whatever the hell that is, implies someone has a "reduced" ability to detect and solve important problems. If you actually look for it, you will find many examples of people with the superficial characteristics you describe, and find that not only are they an extremely "diverse" group of people -- in the characteristics that truly matter -- but that they are doing precisely the kind of work that I think you speak of.

Why stop at people in "our field"? What about all of the people who possess the superficial characteristics you mention, but who also share an extraordinary amount of "diversity" and have had extraordinary success in treating important problems -- outside of "our field"? Doctors, scientists, engineers ... all over the world ... truly seek to make the world a better place.

Frankly I'm sick of the notion that "white, male and safe" implies a lack of diversity and a lack of ability or desire to detect ... whatever problems you have.
But what about the time cost/opportunity of a single full-time phd versus 10 minutes a day for the 253 million cars on US roads today? Globally?

Assuming parking only once a week for each vehicle, that's over 60,000 hours of saved time per day. That engineer's time investment is virtually free in comparison.

Of course these savings will only materialize after parking technology becomes commoditized. Commoditization is part of tech progress.
Wow, I really hope they can deliver. This really completes the low-cost rapid-prototyping lab (joining affordable laser cutters, 3d printers both FDM and goo, ShopBot, etc.)
Possibly a contamination. The article mentions they had to use lots of bleach to prevent outside contaminants.
I can't wait to see what innovations we get from this rivalry of intelligent machines.
I don't see what's wrong with building businesses which serve niche desires. Does she not understand that surely there's somebody somewhere who desperately needs their car parked, that without the internet people already had beer delivered to their door?

She just seems to have such a curmudgeonly attitude, where all people must be working to solve her favourite enormous issues and never to slightly enhance the lives of some customers.
I fail to see a single original thought in this article. This same article could have been written 10, 20, 100 years ago, about the stupid ideas from those times. There is no shortage of stupid ideas and there never has been. (If you think those periods didn't have as many stupid ideas, it's only because of survivor bias.)
Migrating a Leiningen Project to Boot
I was basically joking.

The joke is (I hate explaining these): the most overdone app, exemplifying the NYtimes article, that I can think of is a photosharing app.

And then I worked back into how a photosharing app is what the article is encouraging us to create.

Although a dating app joke would have worked just as well, and I suspect wolfgke was implying that.
Facebook is Not a media company
None of this is going to change unless capital miraculously grows a conscience. As an entrepreneur seeking funding you can't afford to solve problems for the poor because there's no way to raise money for that, and there's certainly not a lot of disposable income available to bootstrap from.

The problem with this type of article is that it conflates all the struggling little startups with the unicorns who are actually making a lot of money. These big companies probably should grow a conscience, but it's not really in their DNA, because if they had been socially conscious from the beginning they never would have succeeded. Meanwhile, all these little companies are in a life or death struggle on a daily basis, so they have to do the thing which gives them a chance to survive til tomorrow. Don't get me wrong, I recognize the privilege of people who get to join a high-risk startup, but just because they are individually privileged with that freedom does not mean that they have the power to actually push our culture to a more socialist mentality. I don't use the word "socialist" as an epithet here BTW, despite American political dog whistles, I think the growing income gap is evidence that we have a real lack of social conscience throughout society.
That's them, not us, but you're right that's a problem with the fashion industry. I don't think it's caused by the fads though; the clothing industry would still exploit the cheapest available labor, even if they were making the same garments all of the time.

The problem here is that Bangladeshi children are cheaper than machines.
> Most VC funds entitle the GP to earn a carried interest — a portion of the profits of the fund — of 20%

Unless you are A16Z and then it is 30%
As much as I've been complaining about Vim in this thread, I don't think it's evil, or anything. But I do love Emaca as much as you love Vi, for much the same reasons (although some of those one character commands make me envious). You could always use both (the non-religious option).

Come to the dark side. We have macros.
Well, yes kind of.

type foo struct {
a int // "private"
B int // "public"
}

You cannot specify default values and Go refers to them as "exported" not private, but technically they are "private" in the sense that they can only be accessed via methods.
Java and C# were both designed to be used in language specific IDEs (C# inheriting that from Java). Using Java outside of a Java IDE is insane.

C, C++, Python, Ruby, JS, Erlang, Perl, etc, just require a relatively sane text editor, no full scale heavy weight IDE features needed. So, yeah, vim does everything I need there.
> Question: Can s-expression list-of-lists really be used to represent an unordered map when it comes to operations like equality?

With the right predicates, anything is possible grin

I think that context unavoidable: one can't just read a JSON value into a generic data structure, or even into a typed structure: one has to apply the types of one's business logic (e.g. 'user-id' must not only be a string, but a string beginning with either 'E' or 'C'). In that context (pun intended), then it makes sense for equality comparisons to be at the business-object layer, not at the freshly-deserialised JSON object layer.
I'm amazed how low-quality this MS landing page is.

- The "How it works" tab is just a huge image.

- The search box ( top right ) has some problems with the border. Both in Chrome & Safari.

- It uses `font-family: 'Segoe UI';`, which makes all elements with that font on my Mac "serif"
But you really can't.

I can stand here today and say that chattel slavery in the antebelum was wrong. But I'm saying that today, with today's morals. Time machine back to the 1840's, the moral landscape is much different, and slavery is accepted. There's even moral justification for it. Standing here in 2016 I can see that that justification is bunk, but back then it stood.

It's the same issue that researchers run into when talking about the acceptability of cannablism in native cultures. Once your removed from the act, both in space and time, you've lost the moral context.

To bring us back to our original topic, one of the purposes of codified law is to place a moral stake in the ground that serves as a reference point for everyone. You can judge people by those laws/morals after they were created (and before they are superceded by a new set of laws/morals), but you can't judge those that came before by a moral stake that didn't exist when they acted.
First off, see [0] for a very helpful insight into the rebase command's syntax.

With multiple team members (each on their own feature branch), I encourage what I call the "pitchfork" approach [1], where the feature branches get stacked up into an integration branch to preview what the master branch would ultimately be when all the feature branches are merged in via pull requests.

A key part of building and recreating the pitchfork structure is git rerere [2].

[0] http://matthew-brett.github.io/pydagogue/rebase_without_tear...

[1] https://gist.github.com/dkaminski/c8e59221bea74ab1fea615a468...

[2] https://git-scm.com/blog/2010/03/08/rerere.html
We've converted all our JS to TS, huge timesaver.
> People are willing to put up with a lot to be part of something cool.

Funny enough, this is exactly how Facebook first marketed itself: only for students of Harvard, and then only for college students.

Once it had enough on-board members, it pivoted and started allowing the general public, until today where even your grandmother uses it.
Probably 90% of .NET/JVM apps, you can hitch a decompiler up to and "View Source".

Patching the byte code and having it run is a little tougher...
Not exactly sure why this is a Hacker News thing but...

Godel, Escher, Bach had a whole chapter on translation, and of course the topic keep cropping up after the specific chapter. So if you agree that Hofstadter's work can be discussed on HN, than translation should be ok.
So, anybody else notice the somewhat limited skin palette they seem to be working on?

I'd be very curious what it does with really dark skin.
What's ambiguous? If you don't like that it's using a list to represent a map, you could always use:

(map (foo bar)
(baz (quux 1 true)))

But you might reflect on the fact that JSON uses an ordered sequence of bytes to represent an unordered collection of properties and values.
Reminder: The downvote button isn't to show disagreement.
The real issue is the reliance on authority rather than actual evaluation of the merits of the papers by everyone.
There are, actually --- any field which begins with a lower case letter is private, any field which begins with an upper case letter is public. (Don't ask me what happens if the field begins with a letter which has a single form and does not have an explicit upper or lower case.)

Privacy is only enforced between packages, so anything in the same package as the struct can see the private fields.
Web development is eventually going to collapse under the weight of itself. This just seems so ... sloppy.
They have cameras and radar currently, I'm not sure what you're referring to?

I'm pretty sure anyone sane realizes that the current production shipping autopilot hardware is not capable of fully autonomous driving ie: 100% humanless. I also think that no one is handwaving anything as it is a problem that as of yet, has never been solved. However, data is an enabler for this and having more of it means Tesla is uniquely positioned to crack that nut before anyone else. Teslas are collecting data even when AP isn't enabled. That doesn't mean the cameras are off or the radar is off (they aren't). This simple fact gives Tesla a leg up over virtually all of the competition and until Uber has the same or superior tech on all of the uber fleet, they'll be lagging.

So... When the tech is capable of full autonomy, Tesla will be sitting on an absolute treasure trove of fleet data, which they'll be able to exploit.
Developed world is dying of obesity, diabetes, suicide and depression. Are those problems less severe than under developed countries, without access to vaccination, medical care and nutrition?

All problems are relative to your frame of reference. For someone who always lived with access to basic needs, some problems might be crippling enough to cause significant impact.

Yeah you can have food, medical care, and a house, but if you take 2h commuting each way to work you'll probably feel miserable. If you have a crippled or distant social network, despite having all physical basic needs, Social Networking tools might be lifesaving for you (eg. depression, isolation).

And I've heard this quite some times:
"Todays developed world problems, are going to be tomorrows developing world problems."
Not many people would literally declare "I confidently believe that airplane autopilot is a turnkey solution". But perhaps the point is that a lot of people would vaguely feel that way without exactly crystallizing it as a thought. And those vague feelings would be what the branding is seen to be playing off.
Help me out here, I really never got wash.io or rinse or any of those services. I'm assuming the target audience was millenials who have never stepped foot inside a dry cleaner and realized that many of them offer "pick up, wash & fold" services. No fancy app I'm sure but the core of the service existed. The comparisons made to "Uber" were not applicable in my opinion because there wasn't some type of laundry cartel controlling laundry medallions resulting in poor laundry services at high prices. Anyways, I'll go back to washing and folding my own laundry which provides some zen time in an otherwise hectic day.
Software Engineering – Drawing inspiration from Nature’s bag of tricks
The interesting thing about technology is that it has proven to be so powerful that when people do mundane things with it, it is viewed as a failure (maybe rightly so, to some degree).

But, and this is a big but, the vast majority of people go to work every day and do very little of importance. 99% of people are not changing the world, for the better or otherwise. All the people making coffee, serving food, pushing paper at the DMV, driving trucks, driving cabs, trimming trees and mowing lawns, writing articles for the NYTimes, etc. they aren't changing the world and they aren't making a significant difference in the lives of the least privileged (except maybe themselves and their own families, if they're in that category).

No one writes articles lamenting the fact that a barista isn't changing the world. So, why do techies get blamed for lack of world-changing work?

I'm not saying I disagree, per se. I just wonder what makes us (in the broad use of "us" here, to mean anyone who builds technology for a living) that we get tasked with fixing the world? Maybe it's the way tech entrepreneurs often hype the products of their labor as being world-changing...even while probably knowing it's merely a historical footnote, if even that, in the grand scheme of things.

I want to make a positive impact on the world with my work, sure, but I also find I have to make economic decisions not unlike people who go to a regular job every day. I have to work on problems that I don't consider important, sometimes, just because I know it will keep my rent paid and food on my table this month. I'm not gonna feel guilty for that, but I also would love to know what the author proposes be done to make it so I don't have to worry about stuff like that and can go back to important but not profitable problems.
Nope :D

But truth be told, I only drink black coffee. Now. I used to put lots of sugar and cream in coffee. I simply started cutting back slowly. I got rid of the cream first, and when it got to the point I was wanting less than 1 package of sugar in a McDonald's large coffee, I just stopped using it, though I could have cut down a little more.

For the first week or two, the coffee seemed a bit bitter, but in the years following, it has been just fine. And much easier to order.
Apple Maps Vehicles
The "right" problems for the "right" populations is a silly formulation.

First of all, the implicit idea that the founders of these companies are all like, "Oh, hey, I have ten really highly functional business plans for bringing an app to profitability, and I'll reject the ones serving population X because I think it's 5% less profitable than the ones serving population Y" is dumb.

Second, the idea that that writer can identify the "right" populations and problems is risible.

And, to be clear, she absolutely is complaining that people are attacking small problems instead of global warming. She explicitly calls out rising sea levels.

And while a few of the services he identifies are targeted to a rich userbase (such as: locating rentable yachts, and probably the drone filming service, and the valet parking one), plenty of others aren't. The one about renting driveways is probably mostly enabling people who are relatively low-income for the area they live in to monetize an unused asset. Getting a new toothbrush addresses a need everyone has. Getting killed by the police is a problem faced disproportionately by lower-income people and minorities.

There are lots of false steps towards progress, and like I said, probably most or all of those will fail. But we've seen time and time again that top down direction to only focus on what some member of the cultural elite deems important is a recipe for disaster.
Agave or Honey although they do impart some taste to the coffee
People downvoted you, but that's not a bad example. Cocaine is an early (modern) example of the food industry taking a natural product that's been used forever, coca leaves, and processing it to produce a much more dangerous food additive.
The Case of the Headphone Hijack
> You can show Braveheart or a video of a street mugging to a bunch of 8-10 year old kids at school but you can't show them a movie where (god forbid) a pair of tits appears on screen.

Braveheart has nudity and violence, and we don't allow 8-10 year olds to see it.
Facial recognition is pretty much solid for most cameras now, though. Face registration, which Sony have been rolling into some E-mount cameras, would be more impressive.
So food with sugar but also a decent amount of fiber is fine? Like vegetables, certain fruit and whole grain bread?

What should the fiber:sugar ratio be? Broccoli has 1.7g sugar and 2.6 fiber per 100g. Bananas have 12g sugar and 2.6g of fiber. I guess you should avoid food that goes below 1:1?
> - few clever algorithms used in day-to-day work

With amount of time we spent on Big-O and multiple classes involving algorithms I thought that if I ever had to do this professionally I would spend all day cooking up all sorts of cool algorithms involving recursion and graphs. It turns out that the biggest fight I have in my day job is not that but herding people to pump out readable code that is relatively performant.
Another idea how one could solve this problem by a clever kernel interface. This idea is probably a better than the approach in my post above, since this enables to migrate threads from big to little cores and vice versa except for critical regions.

Add an interface to the kernel/scheduler

void lock_cacheline_size(...)

void unlock_cacheline_size(...)

Calling lock_cacheline_size tells that from now on the thread must stay on a core with the same cache line size. Consider it as locking a mutex on the cache line size.

After this you can run critical code that depends on the fact that the cache line size stays constant for the whole time.

After you are finished with it, you call unlock_cacheline_size (as a kind of unlocking the mutex on the cache line size) - from now on the scheduler is free again to migrate the code again to cores with different cache line sizes.
Nice vector for maliciousness.
they didn't pick the most in-focus frame for the still picture in the pix-enhanced version
I couldn't say this more. I had to cut everything[1] except raw food (meat, carrots, tomatos, salad) and it's true that within a few days you start to feel the sugar in these even in small forms. You also recognize how sugary processed food is, and how it affect your mind.

In all honesty since I was able to eat anything again, I surrendered to a junk food from time to time. I know how to keep it small; but I have to admit how hard is it when your body allows it.

[1] my brain / heart / veins reacted wrong to any fat, sugar, too much salt.. so I was highly driven into avoiding them. That made the need for will power irrelevant at the time. A bonus.
When would anyone use a union? (C++)
I would define caloric density as the ratio of calories to weight. Refined sugar has a caloric density of 3.87 (387 kcal per 100gr), which is quite high. Most vegetables and fruits will probably have a caloric density <= 1. But I would also classify something like chicken breast (1.65) or turkey meat (1.89) as "low" in terms of caloric density. But it's not really about setting a threshold. It's more about being aware of how many calories you actually get per gram of food. It can make quite a big difference.
You should state how old you were at the time.