skysight-inc/HackerNews huggingface dataset:
Small question, I don't really see how switching to unordered_map solves the locality problem that the author mentioned...
unordered_map most likely uses chaining, and even if we were allocate a continuous block of memory for each bucket (as opposed to having a linked list), we'd still have a locality issue.
See: https://news.ycombinator.com/item?id=11791832
In 1960s there were 237,292 Chinese-Americans. In 2010 there are 3,794,673. I suspect that increase is due to new wave immigration rather than natural population growth. So I don't think the poorer old time families are a factor.

https://en.wikipedia.org/wiki/History_of_Chinese_Americans#S...

>It would be more like if you cherry picked out the current class of very rich Chinese who send their kids to Uni in the US and buy up investment visas, and then were surprised when their descendants were richer.

Actually, I think if we included the super rich mainland Chinese who buy their way in we'd see even lower declared incomes.

Study reveals awfulness of Canadian investor immigration [most of whom are Chinese]; income tax averages C$1,400 per millionaire

http://www.scmp.com/comment/blogs/article/1929324/study-reve...
I think they have to produce different code by definition, because these two have different meaning (in C++, at least).

In the prefix form (the first one) the expression's result is the incremented value, while in the postfix form, the expression's result is the value before it was incremented.

However, compilers are so crazy with optimizations these days that I wouldn't be surprised if they can figure out that the code isn't actually relying on the semantics of the postfix form and convert it to prefix form.
If you take a group that's not representative of the population and you know nothing about the underlying distribution - that's not giving you better information it's just letting you be mislead into making statements which are erroneous.
Why Your Product Needs an Intelligent Data Visualization Design?
Montessori school?
:thumbs up:
Software such as fail2ban that bans harmful IPs and spam filters that learn over time would qualify as antifragile. I can't think of anything at the system security level.
They usually tend to be quick to run too; integration tests are rarely fast enough to run during development.
The hamburger menu icon is about as old as GUI based interfaces[1]. That said, it's about time and context... knowing and having the website's logo in the top left actually be a link to the homepage and getting people to understand that took a bit of time. Also, the phone icon is probably the worst example today... most people born after 1985 have never seen a phone that even resembles the common icon/glyph (I'm a bit older than that, but still).

I do feel that the swipe from the side menus are really unintuitive, and better left tethered to an on-screen (even if it scrolls off) button/icon in addition to swipe interaction, at least until it becomes very common.

A lot of the changes are because of size constrained devices, and a return to the concept that someone can only really see or think about a few things at a time. Then again, using OSX, Windows and Linux UIs on a regular bases, along with differences in apps that are cross platform, I may be too lenient of a judge here.

[1] https://blog.placeit.net/history-of-the-hamburger-icon/
No one is arguing that family wealth is "necessary" for financial success, just that it's a strong predictor of it.
Hahah, nothing in what you just said adds up to censorship. Since the direct marketers are paying for it, I guess they're the mother? Is the government the lollipop? Is censorship the grocery store?

Ahem - "You have a duck in a pond with a frog, and an elderly couple is throwing bread... Who threw the bread?" Lol.
...or at least to get away from the techniques of the Yahoo.
If hard work made ou successful old women in 3rd world countries would be billionaires.
> Unfortunately, when it comes to science, this is NOT a good thing.

A Short History of Nearly Everything by Bill Bryson is an awesome book.
I'm really annoyed there is no date and no way to date when this was written. Coplien has been around for a long time, this could have been written yesterday or thirty years ago.
> 3. No one dares to refactor anything ==> Code rottens ==> maintenance hell.

In my experience, with enough poorly written unit tests and a hard line policy on unit test coverage (which often results in poorly written tests), the unit tests often turn out to be as much a barrier to code maintenance as the regular code is.

I'm an advocate of judicious unit testing, but taking it too far is worse than not doing it at all if you have integration or system / functional tests IMHO.
In Silicon Valley, yes.
> Unit tests are not albatrosses around the neck of your code
All code is a liability. The less code usually the better. KISS principle.

> writing your code in a why that makes it easy to test generally also improves the API and design of the entire system
You can get the same result applying SOLID principles, without the cost of maintaining extra code. The presence of unit testing doesn't guarantees easy to test code either (and this is the worse case scenenario, bad designed code with a lot of test coverage that is broken in each refactor).

> is it possible that tests get in the way of completing a project in a timely manner?
Are you dismissing this as a point? Time is a resource and writing unit tests adds to that cost.

Unit testing needs to:

* Make you faster because there are less bugs in the long run.

and/or

* Prevent money loss caused by bugs compared to the money lost caused by the opportunity cost of writing unit tests instead of new features.

Also when writing unit tests developers are less prone to refactoring when requirements change as it will require to refactor also all the unit test affected.

You can agree or disagree with the points int he article, but it is NOT just "bullshit".
It's not a proof that your work is correct.
It's a proof that a few cases, out of potentially millions, or billions, work.
Serve your WordPress blog via HTTPS on NameCheap (for free)
The creation date of the pdf is August 5th, 2014. That doesn't necessarily mean anything, but it might :-).
Facebook also has RSS feeds for your 'Facebook Notes'
The development of space devices of the CubeSat class in Russia
Collisions should not be common enough to have chains (or skip patterns) of 20 elements, in an (unordered) hash map. It should be more like, one jump to the hashed index, and then maybe another jump or two if there is a collision. That's significantly fewer jumps in memory than for a balanced ordered binary tree.
Thumbs up if Silicon Valley brought you here...
I think C++'s built in unordered_map has to use chaining due to restrictions on iterators mandated for standard library containers, which is a drag. You've still got to roll your own open addressed container. :( This comes up in one of Chandler Carruth's talks [1].

[1] https://www.youtube.com/watch?v=fHNmRkzxHWs
The problem with VR is that it's useless. It's a narcotic distraction.
Well I think you're overthinking that right now, I think this is "traversing a tree" O(log n) vs a "hash table lookup" O(1)

But the main thing is that the hash table lookup mostly is in the same memory area until you try to get the actual value out of it. Also the author mentions as a side note the problem with them "(though they do have their drawbacks in the worst-case scenarios, so you need to be careful)"
Your reasoning is mathematically correct, but your assumptions man... just make me sad.

Quoting wikipedia:

> "The current scoring method for all IQ tests is the "deviation IQ". In this method, an IQ score of 100 means that the test-taker's performance on the test is at the median level of performance in the sample of test-takers of about the same age used to norm the test."

Now, you are comparing average IQ over a large population size (mean IQ in Ghana normalized over mean IQ in the entire world) against average IQ over an even larger population size (mean IQ over the "entire world"). You get 70 vs 100.

How can that difference be explained? Well, there are basically two ways:

1) People in Ghana is extremely dumber because of biological reasons. They are just very inferior in this regard.

2) IQ tests are rigged by education. Better education leads to better IQ scores, and Ghana's average education level is just worse than the world's average education level.

You chose to believe hyphotesis 1 is true. That is the part that makes me sad.
Ah, I meant "alternatives to HotSpot" which is what the parent was implying.

I've read the Graal papers and part of the source code. So I am familiar with PEA. It's too bad that optimisation didn't make it into C2 yet. I wonder if it ever will.
You can achieve this with non unit tests as well.
From the readme:

> Let's Auth 1.0 will ship as a single, statically compiled binary. Pre-1.0, we will use a variety of dynamic languages for prototyping.
Ask HN: Good alternatives to screen/tmux to persist long term jobs?
> If it's unit testable, then it has decent separation of concerns

But then the separation of concepts is driven by the testability, not the problem per se. It means that there's possibly a lot of complexity just for supporting testing.
Obligatory: "What's dead may never die"
I worked on the ATLAS experiment for 6 years. The article gives a reasonable description of the management structure and the unique upsides of that way of working. However it mostly skipped over the negative aspects.

Possibly due to the described desire for consensus, I found the organisation to be incredibly bureaucratic with incredibly lengthy processes. Releasing a paper usually involved around a dozen rounds of review with various groups, often arguing for days about linguistic style more than Physics content.

The lack of clear top-down control makes resource allocation very challenging. There were frequent complaints that Higgs analyses had too much manpower while less "sexy" tasks were chronically understaffed.

The lack of clear assignment of responsibilities also leads to lots of nasty internal politics between institutes. Especially the Higgs analysis where people were eternally engaged in attempts to land grab so they could claim responsibility for bits of the eventual discovery.

Overall, I enjoyed working there a lot. It is a unique structure and the sense of teamwork and lack of hierarchy is very nice. But this article is a bit of a whitewash. I don't think it should be lauded as some incredible model, it has at least as many problems as any other organisation of its size.
I'm not a strict TDD follower, yet a byproduct of my development process leaves me with unittests. They give me confidence that the code I just wrote behaves the way I want it, and deleting them after that just ensure that refactoring isn't on the table without a significant time investment.

The drawback of this, is that the test suit grow fast, and need to me groomed pretty often, but it's a fair price to pay and in the end it's faster for me, and produce far less bugs.
People start writing tests like they start coding - badly. They forgot all the DRY principles and don't architect their tests to reduce their coupling on the code they are trying to test. The result is tests that are a drag on additional new functionality. Even these are better than no tests as you can refactor the tests to reduce the coupling.

The debate about whether UT or system tests or something in the middle is better is missing the point. A test should be understandable at any level. 5+ mocks per test generally doesn't help the next guy understand what you are trying to test.

If you can abstract your system behind an API to drive and test it, you'll have much longer lasting tests that are more business focused and importantly are clearer for the next person to understand.

I can see great value in identifying the slow and rarely failing tests and running them after the quick / more information producing tests. Aee there any CI support for such things? I know TeamCity can run failing tests first...
That applies to most of the information on this website and in the upcoming book. It's labeled as for Game Development, but most things also apply to network programming in general (e.g. implementing RPC systems, message brokers, protocols like HTTP, ...). It's a great resource!
You don't just not use nulls, you replace them with something like Optionals. With a bit of language support, they can compile down to nulls but provide a layer of type safety and convenience functions.
Googling and searching on Twitter both suggest 2014, which is also when the previous HN thread was posted, so we'll go with that.
Curl and libcurl vulnerabilities chart
Be Chinese.
UI Scripting capabilities were quietly blocked from being used with Messages.app in OS X 10.11
It's perfectly fine to use nulls in languages that encode them in their type system, e.g. Kotlin.
This PR piece is utterly misleading. CERN copied and implemented matrix management, essentially what drove NASA JPL to the ground (ask Ron Garret, lisper). For a hint on NASA's future (not talking of the military) recall the name of the new space telescope. SLAC essentially closed down along with most other labs.

Those who are at the receiving end of the job delegation process report to several managers, none of whom need to take responsibility. Therefore only the one who reports can take hits, as in hightail (see win-win analysis of The Office on ribbonfarm). Obviously success is management's success, not least of the DG.

CERN management proper on the other hand is a tightly knit group (not talking about external contributors, “users” in CERN parlance) with the same level of transparency that need-to-know mechanisms allow for. There are even line-managers and the whole lot. Gianotti was earmarked for leadership position two or three decades ago and has been at CERN since her early twenties. Her external institute affiliation is just a mere formality in the sense that Italy has financially contributed to the CERN budget.

Make no mistake: there is a chain of command, but one that is heavily concealed behind a thick layer of administration (see ribbonfarm) protecting management. There are whole departments and groups devoted to implement the five questions you are wondering about.
A tree access is ~log n memory lookups and every one of them can miss cache. A hash map access is ~1 memory lookup, which can miss cache. Even when you have cache collisions and need to do a linear search in a bucket it's not going to cause additional cache misses if the bucket is allocated as an array.
TinkerCAD is great in terms of both function and usability. The core problem with it, being both closed and cloudy, is that it can just disappear one day and leave you unable to edit anything you made, or losing it entirely if you forget to export it. Unfortunately, many of the "grown up" CAD packages are the same way, with version-specific DRM formats and cloud activation. They're expensive enough that the customers have some power to demand continued availability and access, but the only way to be safe is either to use non-networked local software or software that is open/free enough that it can be hosted by someone else if the vendor or their post-acquisition owner decides to not give a shit about you anymore.
Something Something Blockchain: Yay, We Don't Need Politics Anymore
When in 2009 I was calling it "Fragile," not "Agile," people were laughing at me as yet again I wasn't politically correct!
Yesterday, didn't happen for me in the new Mumbai T2 domestic terminal.
Yep, that's exactly what I did (because of the same concerns) in one of my projects, which is why I was initially surprised to see them recommend unordered_map. But, as the other commenter pointed out, unordered_map has way less "hops" and thus provides a significant improvement over a search tree in terms of locality.
A Tesla's motor saves 200 lbs over a 4 cylinder engine but the battery pack adds 1000lbs over a 12 gallon fuel tank which would allow you to drive that 4 cylinder car twice as far.
AWS have their Simple Workflow Service[1] which is an API providing a set of primitives designed to build arbitrary pipelines which you then plug whatever language you want into to consume messages from the workflow asking for work to be done. I've not used it personally but it looks like it could work for you.

[1] https://aws.amazon.com/swf/
This quote keeps on showing up out of context. Edsger and I got along quite well. He loved to be the way he was and pushed it. His friend Bob Barton (the great genius of the B5000 design) was very similar in loving to push buttons and being very critical of the not-quite-a-field that we have. When the U of Utah faculty complained to Dave Evans about Barton, Evans said "We don't care if they're prima donnas as long as they can sing!" This was a general attitude back then. Dijkstra was much more funny than annoying for anyone who had any sense of self. The two biggest problems in our not-quite-a-field were those who listened to him too carefully and those who didn't listen to him carefully enough. In any case, in the research and faculty worlds of the 60s -- where the funding from ARPA was very very different than funding is today -- consensus was not very important: really capable people explored without worrying so much about what others thought (this is hard to explain to people who've grown up in the intensely social and identity seeking world of the last 20 years or so). His comment about OOP (a rather different kind of thing at Xerox PARC than what the term means today) did not bother any of us at all -- it was rather a compliment even (which was also not a big deal) for those of us who liked the way California worked in the 70s. His comments helped when they helped, and they mattered not at all when they didn't.
People start writing tests like they start coding - badly. They forget all the DRY principles and don't architect their tests to reduce their coupling on the code they are trying to test that they learned to do as coders. Scrappy test coding doesn't save time. The result is tests that are a drag on new functionality. Even these are better than no tests as you can refactor the tests to reduce the coupling.

The debate about whether UT or system tests or something in the middle is better is missing the point. A test should be understandable at any level. 5+ mocks per test generally doesn't help the next guy understand what you are trying to test.

If you can abstract your system behind an API to drive and test it, you'll have much longer lasting tests that are more business focused and importantly are clearer for the next person to understand.
Being able to system test without undefined behaviour isn't easy - you have to be able to get to and reset to a known state. Containers / images help here a lot.

I can see great speedup in categorising the slow and rarely failing tests and running them after the quick / more information producing tests. Aee there any CI support for such things? I know TeamCity can run failing tests first...
Started reading from Chapter 1. This is beginning to sound like HP's "The Machine".
The weird part, though, is that I can't find any articles about how such sounds might affect other things.

Like, what if a team of SCUBA divers had these high powered megawatt level infra-sound transducers aimed directly at them, and felt the brunt of such a wavefront at close range?

Would they even hear it, or maybe just feel it? Would they get a concussion? Would it shake them so violently that maybe they suffer massive full-body bruising, and even hemorrhaging or worse?

This is the part that seems unclear. How do these noises compare to something like the shockwave of a depth charge, in terms of energy imparted on other objects suspended in proximity? What happens to, oh I dunno, fine structured ballistics gel replicas of sensitive organs?
I went to a Waldorf school up through eighth grade, and it was wonderful. Then I went to a run-of-the-mill private high school, and it was hell.
I was just considering this - is the topology on sexually explicit nouns the discrete topology, or indiscrete?
How Zika virus infiltrates the placenta
Looks quite nice! I've always found Chrome/Chromium OS a pain as a developer due to the amount of effort required to get a suitable development environment working.

How are you handling updates though?

Ubuntu is very much a release based distribution, and Chrome OS is rolling release.
I agree with this idea; the view that invasion of Poland was start of this global war is rather Euro-centric.

However, as you said it is fuzzy: the hostilities were still somewhat limited even after the invasion in Manchuria; but total war broke out in July 1937 after the Marco Polo Bridge incident.
That would be true also if the next one trying to understand what you are trying to test is actually a girl.
Lakme Eyeconic Curling Mascara and Water Proof
Thanks, you got me testing rustlang testing facilities. Very enjoyable. Makes you want to do low level programming 10x more than with c/cpp.
I would agree it's not income. That's just correlation.

It's whether your parents taught you to read by age 5, cooked vegetables for dinner, encouraged you to play an instrument, drove you to tournaments on weekends, picked a neighbourhood with an IB program even if that means no yard, paid for braces, etc etc.

Patents with low income can choose to do formative things, with personal sacrifice.

Anecdotally, social mobility happens when your parents choose to prioritize you, and you also somehow get introduced to the good life and determine to 'make it' at whatever cost.
Another problem with food is that there are too many people writing not scientifically researched opinions on how to lose fat and get more healthy at the same time. After going through a lot of pub-med researches about decreasing my blood triglyceride levels, I found out that I have to get rid of sugar and saturated fat completely, and eat foods with low glycemic index. Still, I don't want to binge, so I found Tim Ferriss' slow carb diet much better than the popular and dangerous low carb diet. All these things may be in the media, but a lot of false things as well.

Now I'm eating eggs without the yolks, red lentils (very easy to make) and falafel (fried in the oven), and my triglycerid levels and weight are changing without me trying to binge at all.
I doubt 10 billion will fix it. Unfortunately, AFAIK coral reefs are sensitive to rises in ocean temperature. And so climate change is killing them & will kill most warm water surface coral around the planet. The same thing is playing out in the caribbean, and in Thailand.

Also, judging by our progress on controlling CO2 emissions, and by our not so great understanding about how fast greenland / antarctica will melt, we may need to put particulates into the atmosphere one day. This will help prevent runaway climate change, but will do nothing to stop the buildup of CO2.

This extra CO2 will cause oceans to acidify further. Hopefully we don't reach the point of acidification which will prevent the basic food chain creatures such as krill to stop forming exoskeletons.
An App Store for podcasts
It's magic!

http://www.catb.org/jargon/html/magic-story.html
You can have all three. Prioritizing quality from the start, by doing design reviews, pair programming, tdd and so on, will actually reduce time needed to deliver fully functional software, and therefore lower overall cost.
Is Siri really Apple’s future?
Python Dev has his baby taken by the French government
Highly targeted ransomware campaign hit Swedish Telia customers