skysight-inc/HackerNews huggingface dataset:
I came to make a similar observation re guide comments, with the difference that guide comments with inline code is better in most cases than a sequence of small function calls.

I've often wondered why my code style is moderate inline blocks with guide comments when I know about the benefits of good naming and self-documenting code. In the end, I find it more effective. By encoding in function names, you've (technically) eliminated comments but now buried what it actually does somewhere else meaning the reader must navigate to verify it does exacty and only what each reader infers from the name. I much prefer having a function of a small-medium logical size that I can hold in my head all at once and see relevant details without navigating away from where I'm reading/editing.

My experience is that less depth and fewer single-use functions aids overall comprehension similarly to how flattening as in list comprehensions or filter/map pipelines buys more headroom. I can imagine building/using DSL where everything is well-named and free of guide comments but I have never encountered such a thing where there are multiple committers using a procedural language.
Yahoo pipes had a very similar thing long back !
The scope of engineering talent in China is hard to contemplate. Because of the, on average, higher quantitative talent of Hans Chinese over gentile whites and much larger population, China has, on average, at least 10 times the number of people capable of high-level engineering. This is not a false alarm like India. India's talent pool is proving much shallower than people expected - though not to the people politically incorrect enough to keep an eye on PISA scores.

This just is not the case with China. Chinese human capital is more plentiful and of higher quality than that of any other country on earth. An additional multiplier is an almost fanatical work culture that is comparable to that of Japan.

Combine this with local governments that are as competent as the Bay Area government is incompetent, and there is finally a threat to America's domination of tech. My money is on China, or it would be if it was possible to get exposure.

I sort of wonder what the comparative advantage of the west will be when this all shakes out.

This old comment from nopinsight goes through the scores:

Key competitive advantages of China are their strength in quantitative skills as well as huge population and the hard working and competitive culture of its populace. An objective measure is PISA results [1]. When comparing with even the best performing US state, Massachusetts, China has many more top performers in Math, as a proportion of population [2].

(In 2015 only four provinces of China participated, but their combined population was 230 million vs Massachusetts's 6.8 million. The math result of Shanghai (24 million pop.) alone would show an even larger gap.)

Since PISA results are scaled such that OECD country's mean is 500 and standard deviation is 100. China's 531 math score implies country mean at 0.3 SD above PISA mean, and US' math score at 470 implies 0.3 SD below mean. If people capable of doing AI research or proper AI implementation need to have math skills at, say, 2 SD above PISA mean, then there will be a tremendous difference in proportion between two populations with 0.6 SD difference. My back-of-the-envelope calculation, assuming above figures, is the difference in proportion will be about five times. But China has more than 4 times the population of the US, so the difference in potential numbers of AI-capable natives could be over 20 times. (Since other provinces may drag down China's mean, it could be a bit less. We'll see soon since China as a whole will participate in 2018.)
Can you provide example code of the latin1 trick?
They used to not even offer a demo, and on the phone they were pretty glib about paying for a year to try it out. The fatal flaw was that since it’s not part of an HRMS system it’s not integrated into the whole employee lifecycle, so other solutions made more sense. We went with BambooHR which also has ATS along with everything else you need and was pretty cheap.
Hence understanding the need to, and wanting to, do research for hard evidence relating to my so-called anecdote.

Also, do you realize you just gave a very short, one-liner anecdote - "The fact is, for the vast majority of depressed people (including myself), anti-depressants work." - while calling my long post, an anecdote? Interesting to say the least.

I'm curious, if you're open and willing to share, what else you tried relating to helping depression prior to trying medication - and what life circumstances were you in or had happened previously?
This article paints an entirely bad picture of Soviet Russia working conditions without going into the improvements they made over time. Working hours were not all that much different than modern USA, however they seemingly had better benefits.

https://nintil.com/2016/04/03/the-soviet-union-working-hours...

>Then, in 1961-1967, they switched to 5 days per week, 8 hours per day, which finally gave the Soviets a real weekend, like those in the West.

>In 1987, the maximum number of hours was limited to 40 per week, with more in some sectors (agriculture, construction, transport), and less in others (education, art and culture, or coal mining)

>Soviets had 15 minimum days of paid holidays per week by then and 75% of workers had more than that. Workers younger than 18 were entitled to twice that. Working mothers with more than two children and less than 28 days of holidays per year, had three more days of holidays. Additionally, women had partial paid leave for infant care (<1 year), and they could take additional unpaid leave (<18 months)
This is exactly my view. I see medication as the nuclear option. It's important to have it in reserve, since it can work, but you should try everything else first because of how badly the medication route can go. The "first do no harm" doctrine is violated by taking a medication-first approach.
If you don't collect data you can't give it to the authorities.
I wonder if the Canadian government can get an exemption for national security reasons. (/s)
Yes. I do find we would be better off if these places were closed on Sundays. But this hardly compares to the forced labor of the USSR.
One possible option is to sell VPN service to friends/family/acquaintances, for a price that is (clearly to them) cheaper than comparable commercial VPNs, in exchange for a promise to not do anything that would get you in legal trouble. You can trust the promise more than you could trust standard terms-of-service because you know them, and hopefully the lower price means they see it as you offering them something as a convenience from your side project instead of a "real" business and the problems of doing business with friends don't apply as much.
The Ninja Build System
Sidewalk Toronto has only one beneficiary, and it is not Toronto
Thanks to capitalism, TOTAL numbers of people living in poverty are decreasing at an unprecedented rate. Every global measure we look at shows quality of life improvements like this, as capitalism and democracy have spread. https://ourworldindata.org/extreme-poverty

Also, I do regard starving and enslaving constituents as much worse ethically than conquering another tribe or nation.
> Once a company gets to this level, they need to recognize the role that luck played into their original product and design. They hit a resonance with people, and it was probably more luck and timing than anything else.

Perfectly stated. "Pivoting from something shiny to an actual business plan" should be SV CEO's prime skill.
Uh... I'm convinced that you both are very wrong (both you and the comment you're replying to). We approach to this problem entirely wrong. Nobody needs to be convinced that capitalism is bad or socialism is good, or that socialism kills people or whatever. This sort of ideological/political discourses that usually emphasize Great Men (like politicians who convince people best about why capitalism is good/bad) are the very center of the problem of both (1) authoritarian governments like USSR killing people (2) social injustice killing people. The real real problem is always the actual materialistic forces that drive people. I'm a software engineer because I like the job, it pays very well and lets me live comfortably. I got this job because my family was rich enough to send me to university where I studied CS. When you're talking about the inequality between me and a poor person, this is the real difference, not my ideology or a poor person's ideology. This fundamentally means that ideologies -- authoritarian or not -- like Marxism-Leninism are not an answer to the real problem, nor is talking to people about your religion, Jesus Christ or evil capitalism. The heart of the problem, as always if the material conditions in which people live, the condition of the workers.
Don't forget the long, free vacations to Siberia for saying something bad about the government near your neighbor.
Whatever that validity of the metric itself, it's an interesting idea that if a market is different "enough", standard market metrics fall short of their goal.

On the website design, a fixed-width font would be helpful for the numbers. Currently, ETH at $22,898,033,476 looks one digit larger than BTC at $113,768,712,510.
Lots of those details are vendor-specific. Really the specifified behavior exists in the modern world not to enable "boot" (which as you point out is mostly the job of firmware running on the ME and not the application CPUs), but to clearly define the initialization sequence for SMP startup (i.e. how do the auxilliary CPUs start -- Yes, that's right, they start in real mode) and some other minutiae like mode switching for legacy interaction with BIOS calls.
The answers to moral questions ("what is right") are found at the intersection of sociology, psychology, and biology - which are all very well established sciences.
Ask HN: How to be a Head of Engineering?
As my career progress, I am currently looking for the next big challenge. As a software developer, how can I progress to a HoE role? I know that it's more than just an engineering role, but how do I get there? I'm thinking to take some break and see how other companies are running their engineering teams and bring the lessons to my current company. Or is there any other path that I could explore?

I'm not planning to quit my job, just looking for the next challenge. For some reasons there's no HoE at my current company, only CTO. So hard to do a benchmark.
I don't know how many registered users there are on HN, but I seem to recall my user number was about 1000. Maybe there are about 3000 on the site now? I don't think you could break even with those numbers.

So, no. There is no market for this phone.
Title sounds like you need to get out more.
> He also took a $500mm bonus for successfully executing the IPO at a time when the company lost over $700mm in 2017.

So part of that $700mm loss was his bonus? Meaning if he hadn't taken a bonus the loss would "only" be $200mm?
All this may become much easier when we manage to merge proof assistants with automatic provers.

Here is how you can prove the first theorem in Dafny.
https://rise4fun.com/Dafny/GxplK
You realize you have always been able to call a cab in low density areas right? Ride-sharing eliminates the dispatcher. It doesn't change the economics of a taxi service in lower density areas. Those higher costs are shifted to the gig employee. Last I checked a driver doesn't get any extra fee if she has to drive 5 miles vs 500 feet to get to her next fair.

At least until recently these services didn't even seem to help with the utilization problem where drivers would be sitting for periods w/o a fair. At least Lyft now will schedule a drive with their next rider while the current one is in the car.
The instruction pointer is the IP register. It is zero. It does not contain -16 or 0xfffffff0. The linear address is a different thing (computed from the CS base plus the IP/EIP/RIP content), as is the physical address.

Unless something has changed in recent hardware, there aren't 12 address lines just asserted. This is a side effect of the CS base being a particular value.

An important thing to realize is that x86 has hidden registers associated with segments. These registers get set when a segment selector register is loaded, not when it is used. The CS base is one of these hidden registers. If CS is loaded in protected mode, the base comes out of the descriptor table, and it remains when switching back to real mode. (this is the "unreal mode") If CS is loaded in real mode, the base comes from the selector shifted left, and this base remains even if you switch to protected mode. Switching modes doesn't change a segment base. Loading segment registers is what changes a segment base.

So initially, the CS base is not set in a way that matches what you would get if you loaded the CS selector value that is seen. It is set to a value that is possibly 0xfffffff0, 0x00000ffffffffff0, 0x0000fffffffffff0, or 0xfffffffffffffff0. The older documentation I've seen would use the largest of those values. I suppose it could then be cut down to 32-bit by the bottleneck that is normally a part of addressing when not in long mode. This is the sort of area where Intel, AMD, and others may differ.

Perhaps there is a hardware debugger for x86 (like a JTAG debugger) that would show the initial CS base. One could also guess that Simics or VMware might be correct, disassembling them to find out what they use. Another idea is to examine the badly-documented state used by the virtualization instructions.
What people continuously insist on not understanding (both self-claimed socialists and capitalists) is that capitalism is supposed to be much better than earlier systems. This is the central argument of Marx. He claims the world is in a never-ending struggle between social classes. It's very obvious that capitalism is better than older systems because it's the product of earlier conflicts; so your argument does not mean anything to me. The idea is to make it even better.
Ask HN: Help Me with Few Mock Interviews
I am an MBA graduate specialising in marketing at e-commerce (and FMCG industry with 6+ years of work ex.) and have been finding it very difficult while preparing towards such interviews.

It has been over 14 months since I left my last job to take a break and start a married life, but since then it's been difficult being considered and barely received any replies to my over 200+ applications in the duration. Some recruiters have even been rude in stating that women should not state having taken a break or lie about it.

At the moment, I am working to make my application stand out and creating a presentation with ideas and strategy, and some growth marketing experiments that I have been working on to pitch my candidature at a well know fitness & healthcare unicorn.

I believe a few mock interviews and some constructive feedback would be really helpful in my efforts. I can use all the help with either mock interview, feedback on my resume or presentation.

Please let me know - https://goo.gl/forms/jyN9ej8GMZG0JLqL2

Thanks You!
About Glocalzone – Peer to peer delivery platform
the CIO would frequently refer to the tech staff as “the factory”. I often encouraged this CIO and others in the management team not to

At least he was being honest in revealing management thinking. Worse would be a guy who said the company was like a big family, while planning which kids to lay-off next quarter.
But retirement started at 55 for women and 60 for men. Russia changed that just recently.
We are building a peer to peer delivery platform with my partners, can you please sign up and give feedback for our new product? Now, we are in beta version but we are building our new mobile apps, that's why I need your advice :)
The problem you've identified can only be addressed at the individual level, which socialism eliminates as a possibility because there is no individual, only group identity.
And the need to use special libraries to handle objects that have been strings since the dawn of Unix is precisely the kind of mess the poster is talking about. Yes, yes, everyone agrees that these problems "can" be solved in Python. The question treated is whether or not Python (and modern utf8-centric string libraries) solves them WELL.
It depends a lot on where you live. I've yet to meet anyone from the former Eastern block who was an adult by the time it collapsed.
About books, that's the problem, they're all biased in one way or another. Some will depict East Germany as a police state living hell, while others describe it as a paradise as long as you didn't get involved in certain things. It's difficult to figure out what was it all about.
Based on a quick google search (e.g., https://stackoverflow.com/questions/46673751/nutch-vs-heritr...), their existing product appears to be a hosted solution for crawling the web.

This new product sounds like it is just a query language that can be used on top of what you yourself have paid them to crawl. I don't believe they've actually crawled the whole web and are providing an interface to that. Their website says things like "the entire web" and "trillions of rows", but I'm guessing that's only true if you pay them a few million dollars to do that.
Thanks. Marshall Rose said in reply "That is a very good analysis about the traffic pattern. You are right about the batching of ballots for a similar publisher. That is an optimization to reduce the total voting period."

We will work on improving the system. Please mail me first at brave dot com if you want to correspond further. Thanks again.
Perhaps because it's well known that China will gladly go to extreme lengths to force the company you work for to fire you, even over something as innocent as liking a tweet. Think your company won't bend over? How about when they DDOS attack all the company's resources? Or force your company's partners to sever ties with said company? You even have to fear you'll be blacklisted from ever visiting China (even if it's a dystopian shithole then it would be shortsighted not to consider the consequences of getting blacklisted), or worse, arrested/kidnapped/sent to a "reeducation camp" after visiting the country.
Still better death than being dragged out of house in the middle of night to work in gulag and end up getting shot in the back of ones head.

In this nasty capitalism you can at least have hope, in soviet union there was no hope.
The total fucking insanity of people in this thread defending a polygraph because they get their checks from the person giving it to them. “Yeah they don’t work but whatever just take them and forget about how pointless and absurd it is.”

Reminds me of the attitude around school shootings.

Grow a fucking spine you cowardly weasels. Frightening to think most of you work in intelligence/defense. What a crock of shit the whole thing is.
An interesting way to enter the search indexing space.
It's not like the purges or the genocide of the Kulaks or the labor camps are heavily disputed subjects that may not have happened.
> He shrugged and showed me what he was working on: task scheduling in Microsoft Project.

Right, that's not an "architect" then. That's a manager of some sort.
Google most certainly does not use this extremely SMB tool to recruit and hire for themselves at any relevant scale.
I find the opposite. Take the hand wavy eatimate at face value and just move on, update it as you do the task and discover the reasons the estimate was bad.

The other failure mode, where the team spends time discussing every ticket, wasting N people’s time when only 1 or 2 people have the expertise on that topic to debate the estimate, is way worse. It wastes more time, makes people act petty about who is doing more fictitious Fibonacci units of work, bikeshed over meaningless things like if a ticket is a 3 or a 5, and can make work scoping way more antagonistic than it needs to be.
Yeah, the vanishing act of the proletariat was hilarious. I was shoked thinking Bloomberg might be writing an article from a left-wing point of view. It took 1 line to prove myself wrong.
I would like 15 days of paid holiday a week.
The timing of your comment couldn't be better.

Only yesterday I kinda messed up in an interview because I wasn't good at SQL. Just cursorily checked the link you posted and it is looking good. Thanks for the suggestion.
Thanks to Capitalism, those people were put into extreme poverty in the first place. How many millions need to continue dying from poverty, war, and poor hygiene for Capitalism to get the same nonsense thrown at it? It's only $30 billion a year to end world hunger, but world capitalism won't step up to the plate, instead spending it on new military toys to bomb those people in extreme poverty. How much food is wasted on top of that?

http://www.fao.org/NEWSROOM/en/news/2008/1000853/index.html
Don't most factories work like that?
@foota says 'easier', not 'possible'. And the S6 doesn't have a removable battery, so what does that tell you about how Samsung felt about the engineering compromises they had to make with the S5 and all the rubber grommet-ing around its removable battery?
I'm so happy to hear that things are looking up for you. I remember when you posted the first time, and I was really hoping things would work out.

As someone prone to depression throughout their entire life, I have to agree that a bad job situation can make a depressive-leaning person's life really bad. I've been going through similar things for the last few months.

I think this is also pushing me to get my own therapist lined up again, as it's been a while. Like you, I know that there are some things I need help with, and there's no shame in that. But god, finding mental health professionals is so hard! Just don't slide back, it's so easy to do, and it can really hurt for a long time.
Me too! I think it's an error :)
Some Amazon Workers Fear They’ll Earn Less Even with a $15 Minimum Wage
Yes, just below is a comment where you said you "already explained that the majority of ad-supported content is hot garbage, more clutter than content." I won't quibble!

But in the interest of greater knowledge, I'll try one more time to get something less broad that addresses risk. Here is a top-by-revenue-and-subscriptions publisher trade group. They get 80% in aggregate of revenue from ads, are shifting away from ads, but cannot drop ads. Ideas other than high dose rad & chemotherapy (to use your "cancerous" trope) welcome.

https://digitalcontentnext.org/membership/members/
No, wrong way to interpret that.

He just received a massive bonus in $ value. It was massive because it was lots of Snapchat stock back when it was expensive.

Although it’s quite normal to sell such stock award as soon as they vest, in this case it looks bad.
Reminds me of YQL, https://developer.yahoo.com/yql/.
I was a little off on the numbers.

Snap posted a $2.2B loss in Q1 of 2017, it's first quarter as a public company. A lot of that was one-time stock payout to various employees, including a massive bonus to Spiegel which was 3% of Snap worth roughly ~$550mm at the time. If you take out all the one time stock compensation from that quarter, the loss comes out to $188mm.

Here's a Recode article with some sources: https://www.recode.net/2017/5/10/15617740/snapchat-two-billi...

The $700mm loss figure I initially stated for 2017 is likely the loss figure with the one-time stock expenses deducted: https://investor.snap.com/news-releases/2018/02-06-2018-2116...

This stock award made Evan Spiegel the highest paid CEO in America in 2017, that's the kicker.
How. You are forced to work or you lose your job and your house, food, etc. Please tell me how our system was so much more moral than theirs. Where working at Walmart for 40+ hours a week still isn't enough to make rent. Where many people are working 2 or 3 jobs just to have a roof over their head and food on their table. Let me guess, you are a middle class white guy who never had to experience that, that's why you think our system is so much more moral.