skysight-inc/HackerNews huggingface dataset:
Selfish genes can result in completely altruistic and sacrificial behavior in an individual.
This problem happens when a leading company decides to use contractors to lower its cost. All other companies that are competing with it now have to do the same or they operate at a disadvantage. The workers then lose any leverage because they now can only pick between multiple contract jobs.
If I hired thousands of people who under my supervision committed millions of crimes I would expect to be held accountable. Furthermore questions of fact such as Wells Fargo's claims are the kind of thing you expect to be settled in a court or least a pretrial hearing.
Or take that even further and allocate a slab that's big enough to last the entire runtime and send malloc on vacation. It's worth repeating, with todays focus on web-frameworks, cloud-providers and dogmatics these ideas are slipping into obscurity; which is a shame given how beneficial they can be if your program fits the use case.
>E.g. in emergency coding I automatically assume I'll inevitably make mistakes due to haste, so I run a lot of sanity "is 1+1 still 2, do I remember that right?" checks.

That's a great point. I've been in such emergency situations multiple times earlier in my career, when I was a system engineer (mainly Unix field support work) at a large hardware vendor. I used to do the same as what you say (double-check many things, sometimes even triple-check, particularly the more important changes I was making via some script or command), and I know it helped prevent me many times, from making mistakes that could have been serious, in a high-pressure and high-stakes situation (where said situation was often because of data loss with no backups or something equally bad). And in many cases, I was successful in solving the problem / restoring the data / etc. Also saw, and in some cases, prevented colleagues from making, such mistakes. Was too late to prevent them in other cases (sometimes by a few seconds, like once when I was a bit too late while trying to grab a colleague's wrist off the keyboard when they were typing a command (as root, natch) that could cause irrecoverable damage (and sometimes did). And this in live production environments on multi-user Unix systems, e.g. in a factory environment.

A real-life example of what I said in the last few lines above:

A colleague and me were in the computer room of an auto parts factory that had such a multi-user Unix system deployed in production. As part of some maintenance / problem-solving procedure, he types (as the Unix superuser):

# init 0

(which shuts down the Unix system automatically, with no delay or warning) on the main console, without thinking of informing all the live users in production to stop and save their work - on the shop floor, stores, accounts dept., etc. You can guess what happened next - dozens of calls on the intercom from highly irate workers from all those depts., in colorful language ...
"Also you have the option to move to socialist/communist countries whenever you see fit, they exist."

Actually, most folks don't really have that option. Not legally, anyway. And honestly, I think your statement is pushing a horrible ideology on others as well - capitalist societies have the same sort of hangups on closed-mindedness you fault communism on, evidenced by people's outcry that national health care is a socialist policy. It makes actual fixes nearly impossible.

More to the first point, it is expensive for folks to move, and expensive to find housing and work enough to meet immigration requirements. Even planning for schooling is expensive. Not to mention the fact that in many professions, you need to speak the local language. It is even an expensive prospect when you are moving for marriage (I've been through it, and it is still expensive). Sometimes the education from the US isn't quite good enough to transfer to the same job. Not really an option for large swaths of population making minimum wage or slightly more. Not when a flat tire messes up your finances for weeks or more.

This advice is as bad as telling jobless folks they should just move to a part of the country with jobs. It isn't reasonable or practical.

I was freaking lucky to be able to move out of the states and into a socialist democracy (Norway).
Reminds me of this anecdote I came across on the internets one time: https://groups.google.com/forum/message/raw?msg=comp.lang.ad...
Those factor into total comp. Ie. they can buy health insurance and take unpaid time off, which would be equivalent to a significantly lower salary.
After evaluating various Linux solutions, then FreeNAS, I went with SmartOS (an Illumnos variant) at home because it was the only one with rock solid secure containers, virtualization and zfs.

Unfortunately, I never managed to get single node docker compatibility to work, and then there was a design flaw in the inexpensive atom server processors that it runs well on that leads to failure after a year or so.

Faced with a >>$1000 hardware expenditure to get a reliable replacement NAS that's compatible with SmartOS, I jumped ship to Synology and haven't looked back.

My Synology box is way more available than my ISP or Amazon Cloud Drive, and I reproduced months of setup work from SmartOS in an afternoon with the Synology.
If people are paying for a subscription then the market is clearing. Or in other words the customer has decided that they are better off with the service than without.

I think part of why people dislike subscription models is due to the reduction of their personal consumer surplus. Under a one time purchase model, power users who get value out of a product for many years get a nice windfall. Users who only need or use the product for a shorter period of time have a smaller consumer surplus since they're paying the same price.

A subscription model almost functions as a form of price discrimination. You end up charging more to those that get value out your product for a longer period of time. I'd imagine this has the effect of increasing producer surplus at the expense of consumer surplus.

In theory every consumer has a one time price such that they would be indifferent between a perpetual model and the subscription model. The issue is there isn't a way for the supplier to segment the market in a way that is as efficient as the subscription model for every user. If you offer the two models together you create an adverse selection problem where only consumers who estimate a greater consumer surplus from the one time price will choose that option, lowering overall revenue for the supplier.
That would have been terrible (and pointless for RedHat anyway). RedHat already owns the entire enterprise Linux market.
I dunno :-( I think there's a permanent tension between creativity and norms... But my guess is that not everyone is wants to cope with that. Not everyone wants to discover yet a new solution, yet a new style each time he reads some code. Personally, I love that but given the success of, say, Java, I'd say there are people who prefers more guidelines. And this has nothing to do with IQ or coding skills or anything, it's just personality I think.
Most countries just give cash to people without income, they don't bother with a separate food program. That seems to work fine.
Ethanol: A Lethal Injection for Tumors
Learning to ranking with xCLiMF python
Be very careful with potassium. In large doses it is a poison.

Here's a cautionary tale:

https://www.reddit.com/r/keto/comments/6hhzxh/morton_lite_sa...
It's not true within Asia, either. Japan, Vietnam, Korea, Malaysia...WhatsApp isn't #1 is any of those places and neither is WeChat.
400k is not quite 40 cars level of income though. 4 million might be more in that range.
Interesting project!

The C++ version uses many memory allocations. Using allocators some in the C++ program would certainly cut down on the number of allocations. It would also be interesting to see if doing so also improved performance.

Similarly, it would be interesting to see if using the C++17 string_view (or the gsl version if C++17 isn't available to you) instead of `const string &` parameters affected performance.

Finally. I see that in most (all?) cases, objects are returned by value, not returned through reference parameters or pointers. It's interesting to see that that choice didn't compare poorly to a C implementation.
These are not the same. Promise.all guarantees a is executed then b then c.

Your version guarantees the three are executed before moving forward. The order may differ on each run.
This. The follow up article notably discusses how newer Samsung / apple OSes are including SOS features.
Yup, I don't enjoy coding interviews, but the number of people I've interviewed with ostensibly many years of programming experience who can't actually write some basic code with a for loop and a couple of variables makes me extremely hesitant to hire without a coding interview. If you haven't run across people like this yet, you simply haven't done enough interviews yet, or have somehow entered into an alternate fairytale land where everyone is honest (and if so please take me with you!).
Sooner or later all the de-risking stops being de-risking and starts creating new forms of risk.
Sage advice.
I wonder if using the --init flag would also fix the docker issue with bash scripts getting in an infinite loop when the script catch signals:

# Run with care...

$ sudo docker run -it docker.io/ubuntu:14.04 /bin/bash -c 'trap x EXIT; x() { echo exit; }; while sleep 1; do echo sleep; done'

^C

[bash enter in infinite loop]

I'm asking because my Fedora 25 install does not include docker 1.13 yet.
Indeed, the value of keeping toilets sanitary is far greater than that of creating the next web app.

"This work is essential to the health of the population, but because of something to do with marginal economics and supply and demand and weak labor laws and class power and reserve supply of labor, I don't have to pay a proper wage, or even treat them like human beings!"
سعر ريسيفر بي ان سبورت
>What makes it particularly difficult is that I was working really hard the whole time

If working hard made a difference by itself, tons of minimum wage workers will be rich by now...

>In retrospect, being lazy isn't too bad.

Money isn't everything, especially "success" in the BS way the US rat race defines it. You don't need millions, heck not even one million. 99% of the world, and most of the US live their liveσ without ever having one in the bank anyway.

Find something you love, whether it's work related or something you find fun, and enjoy it. And/or enjoy the company of people, family, etc.
Seen as a market mechanism, it is really weird that when a service is most needed, it becomes free.
World's biggest X-ray laser opens vast research vistas
So what happens when your app isn't compatible with the newest OS version? Do you charge for the "feature" of compatibility or do you give it away for free? Maintenance of apps cost time and money. How do you recover those costs?

I like the JetBrains "perpetual fallback" subscription model. After paying for a year, you get a perpetual license to the version that was current at the beginning of the 12 months plus all bug fixes for that version.
So this is the end of the road?
Economic mobility is fairy well measured, and has been decreasing for decades. The US tends to not rank terribly well, putting a bit of a damper on the whole "land of opportunity" thing
Says a person who doesn't (yet?) make $400k a year. This too shall pass, once you start making more money.
How Federal Flood Insurance Puts Homes at Risk
El Compilador, a Compiler for Emacs Lisp
I seriously doubt you actually use php and the ecosystem if you feel that way. As long as you pick a reasonable framework and leverage composer, php is fine. Yes, the standard library has some weird functions in it. Don't use them. If that's what upsets you about a language then you clearly have no idea what working with a competent team is like.
Good point - in the race to offer superb benefits to its best employees, companies made it harder for themselves to directly hire low skill and low pay employees. After all you can't afford to offer free massages and laundry to the guys delivering groceries for you making $15/hr or the receptionist making $20/hr.
according to dan saks, who apparently to some people is famous c++ is faster than c (well in the test setup he describes below)

https://accu.org/content/conf2015/DanSaks-Embedded%20Program...

Language Design Implementation Relative Performance
either any inline 1 (fastest)
C++ polystate non-inline 1.56 x fastest
C++ bundled non-inline 1.65 x fastest
C polystate non-inline 1.70 x fastest
C bundled non-inline 1.79 x fastest
C++ unbundled non-inline 1.82 x fastest
C unbundled non-inline 1.95 x fastest

He furthermore argued that the biggest mistakes C++ developers did to kill the adoption of C++ for C programmers was to diverge from the previous line of "C++ is a better C" to "if you're using C++ as a better C you're doing it wrong"

https://www.youtube.com/watch?v=D7Sd8A6_fYUI

(I have no skin in the game, I was just curious to see if it's worth looking at rust for embedded when I came across that talk)
It should read "MariaDB forked from Oracle MySQL at the last moment".

(And I think Oracle MySQL is still alive/supported)
Introduction to Scala: Basics of Scala Options
So, IOW they cherry-picked what was likely the most driven of the janitors in the past and compared it to a random one today. That seems honest.
Back then, stacks (and the private namespaces resulting from the use of functions/methods in most modern languages) were probably considered a superfluous resource indulgence: 1970s bloatware.
Kodak died because invested heavily in a technology that became obsolete (analog film), not because they treated janitors well.
Yeah, extraordinary claims and all that.

Especially as this guy has a credibility problem in the first place because of the ML cheating scandal from a few years ago (1) he was in the middle of.

15 tflops of even 3x3 stacked in 5 watts? 'Taped out by Feb' - I am sceptical to say the least.

(1) https://www.enterprisetech.com/2015/06/12/baidu-fires-deep-i...
true, the effectiveness of this scheme was slowly eroded beginning shortly after it was enacted. '86 was the knife blow that killed it for good with it's "revenue neutral" rebalancing of the "loopholes" and deductions available for reinvestment tax treatment.
Check my website
https://www.channelshunt.com/subcategory/Programming/
True, but also for multiple homes, fancy cars, world travel, etc.

When I worked at a hardware store we had a brochure we could order in a gold-plated Ducane grill for $4 million.

That recent graph showing the top 1% having a 6% wealth growth rate is wholly unsustainable for any society. So there's something to be said for trying to level it off.
Morally perhaps, but not legally.

It's sad really. It seems to me that the whole Wells Fargo scandal is ultimately a lesson about how this company abused their employees and set them impossible tasks like "each customer should have X credit cards and Y accounts."

But that's not what people seem to have taken from it. Instead, the whole incident has been presented as "just another big bank defrauding its customers." In reality though, the goal of the fraud was not to enrich anyone, it was just for these employees to keep their jobs.

It feels like this whole incident could have spurred a conversation about the toxicity of these kind of unrealistic sales goals that provide no benefit to the customer, but it didn't.
> As for the "memory leaks" --- I haven't looked at the source, but something whose runtime is very short-lived, like pkg-config, may be very well justified in allocating and never freeing, letting the process exit itself be the "ultimate free". I've seen and done this many times myself.

This makes sense, and then somebody has a vision for a use case beyond the original imagination, goes to turn the code into a library and spends countless hours smartening up lazy resource management. Whether the original author should be "more responsible" is open for debate, but I've personally run into the above situation, and only mention for another perspective on The Life of Code.

Edit: s/coffee/code/
Off topic: What is this site? An off-brand neoliberal center-right Jacobin Magazine?
Unless of course you specify hex or base64, in which case it does refer to the encoding of the output string

I've seen this... questionable design decision in another interpreted/scripting language too. Those are encodings, but clearly not encodings at the same "layer of abstraction" as e.g. UTF-8 or Shift-JIS or UTF-32 or UTF-16, because you could have a UTF-16 string containing "base64" or "hex".
"It's actually quite terrifying that people would advocate for taking up to 90% of someone's income."

Interestingly, the top U.S. tax rate from 1951–1963 was >90%, and it was >50% during the half-century from 1932–1986 – https://en.wikipedia.org/wiki/Income_tax_in_the_United_State...
One thing i've been reading about is game AI that despite not being very technologically challenging, they are more designed to provide a certain experience for the user/player be it fun, hard etc.

I think a lot of modern AI misses this where they just make a better version of the automated phone redirecting thing (Dont remember the name for this). They should include more ways on actually designing the whole experience and make the users actually enjoy using the AI.
Well, it was a number of terrible calls by their management that put them where they are now. Your example is just a tiny piece.
>you actually mean state police going door by door and confiscating any valuables you have. Maybe lynching some property owners along the way.

You misunderstand the concept of property. I have written about it here: https://news.ycombinator.com/item?id=15160835 as an explanation.

>A. You don't actually own it the state does.

No; Communism is an anarchist ideology, and the workers through voluntary democratic institutions manage the means of production - so you, by extension manage the means of production.

>You do not have any economic freedom under communism because you cannot sell what you supposedly own.

No. These is no sale in Communism because the conceptions of freedom have changed, society adopts a different set of needs, namely, goods are not imbued with exchange value, as they are not commodities. It doesn't make sense to sell things in Communism. This is what Communism is - the bringing about of the condititions such that the current ones are obsolete. As Marx said, Communism is not an ideal to be achieved, but the constantly existing movement which abolishes the present state of things.

>Even under communism you do not have the option to sell your own labor freely.

This is a very good thing! You don't have to sell your labour to survive! And even if you wanted to, you can get higher returns by owning any more labour you do.

>What occurs is that you are assigned work that the government believes that you are most suited to.

Hilariously false. Please actually read Marx; I'll quote the relevant part here:

"He is a hunter, a fisherman, a herdsman, or a critical critic, and must remain so if he does not want to lose his means of livelihood; while in communist society, where nobody has one exclusive sphere of activity but each can become accomplished in any branch he wishes, society regulates the general production and thus makes it possible for me to do one thing today and another tomorrow, to hunt in the morning, fish in the afternoon, rear cattle in the evening, criticise after dinner, just as I have a mind, without ever becoming hunter, fisherman, herdsman or critic. This fixation of social activity, this consolidation of what we ourselves produce into an objective power above us, growing out of our control, thwarting our expectations, bringing to naught our calculations, is one of the chief factors in historical development up till now."
I wait for the 13 atoms version.
Reading this made me realize that my regret usually targets the previous hours or day. Generally, if I look at the last month or year or decade, I'm impressed with what I've accomplished. And yet I'm always disappointed with my immediate past. I think this short-term regret may be the reaction mass I'm igniting to propel me forward.

To borrow a phrase from finnthehuman above, this short-term regret is the fire lit under my ass. I think I'd better ignore Zack's article and keep feeding it. It drives my overall happiness.
while there is no chance of the kind of advancement that Evans had, plant staff (janitors, landscapers, etc.) at univerisities occupy an interesting space.

In particular, they're full time employees, get good vacation and benefits plans, and (at my R1 school), their first two children, if accepted, get 4 years of undergrad tuition each.

This is an astonishingly strong incentive, and it shows. Retention rates are basically 100%.
You can't compare the costs now since Rochester is a shell of its former self.
I just _had_ to rebut some of these:

Apple got initial funding of only 250k, and that was split between equity and loan, very feasible even with a 400k yearly cap. (And I'd also note that 10% of "any money over that" still adds up given some of the salaries paid to top execs)

Secondly, Google's initial funding was only 100k in 98` dollars. The significant 25m round was from kleiner perkins and sequoia, and I certainly imagine that corporate funds for investment would not be held to the same limits as personal income tax.

Finally, facebook was bootstrapped out of their own pocket until they got a 500k invesmtent from thiel in 04 $'s. Once again the "big" investment a year later came from a firm.

In all of these cases the initial seed/bootstrapping money would come FAR under the 400k limit expressed, adjusted for inflation, and that assumes people wouldn't both save over multiple years, or that we wouldn't see more reliance on companies rather than individuals in early stage investment if the tax code shifted such that it was more advantageous.

I defend this largely because in my own readings of history I've attributed a large amount of the current economic state to events of the late 70's and 80s, the tax code changes being a major one of them, and I think your points unfairly detract from the validity of reintroducing such tax structures.
Kodak died for the entirely unrelated reason of not pursuing changing markets and trying to hold onto their core business even though it was dieing.
And developed on a PDP-11 almost too the end of the company...
It looks like the Soviet Union lost the Cold War on economic grounds, but won it overall by turning Americans to socialism.
As much as I enjoy making fun of JavaScript, it seems more likely to me that the reason JavaScript uses UTF16 internally is the same as for most other languages that support Unicode; it's more efficient and convenient to process. UTF8 has variable character boundaries, which means that indexing/counting requires decoding char by char; but it works wonders as an exchange format since it's compact and mostly any language can deal with it.
I've been arguing the gov use that threat for a while now, nice to see I'm not the only one. I got the idea reading about the British and Dutch east India companies, as the charter was the sword of Damocles the gov had over the companies.
Well, his family's cult of personality ensures that the military will tow the line.

It's not unheard of in history for one person to have absolute control over a large military force. Hitler comes to mind.
What makes you think the government would be better at job creation through confiscating more capital than individuals who created the wealth redistributing it through investments and purchases? Every summer home or car bought puts people to work as well, its not like the money disappears.
Embracing a new Mac app distribution channel