skysight-inc/HackerNews huggingface dataset:
Once you are somewhat experienced with optimization, the difficult part isn't getting into the mindset of optimizing, but in holding off on it until your features are in.

Before you have the features, you mostly want to find the boundaries on the problem so that you can slice it up into modules and optimize those independently. It's unusual in contemporary programming to have to do a whole-program micro-optimization pass, but that's the only kind you can do within a small program, so it's common to get the wrong idea and start shaving off bytes and cycles before the architecture is ready for it. In a large program, it's specific combinations of features that create performance spikes, and those tend to be addressed by building a new custom code path. When you scale up the data changes, so your view of the problem changes too, and you start being able to optimize by creating a codepath that combines a whole bunch of specific processing steps.
Funding my 401k.
Disclaimer: Although I come from China, I never worked for a Chinese company. All of my opinions were gathered from internet and friends. And definitely not all companies are like this.

One of the reason that they need to work long hours is because they need to constantly change requirements to cater to market demand. The competition is always fierce in a country with 1.4 billion population. If your competitor come out with a good feature that you can't duplicate in a few days, you bleed out user base really fast. IP laws are hard to enforce here, companies copying each other all the time. Tech giants like Baidu/Tencent have extremely low bar of integrity. If you can't grow you user base to the extent that it's cheaper to just buy you out. Those big boys will just copy your product and promote the shit out of it in a few months. You won't stand a chance against them with the uneven playground. On top of that, poor planning and the fact that PM often come from non-technical background definitely doesn't help either.

Because of the demanding hours, developers are expected to change career path when they pass 30. It's really hard to keep up with the pressure when you have a family. As a result, coding is not seen as a craft but rather a mere part of a feature development process. Quality is generally considered less important than feature completion. Copy pasta code is prevalant among smaller startups because they would rather spend money on marketing rather than on good developers. Users are to be blamed for this as well. Regular Joe's care more about features and who's advertising for your product(hiring celebrities to promote apps/websites are a common thing in China) rather than how polished and well thought your product is. These are definitely not issues unique to Chinese companies, but it's just much worse.

Saying all this, just like in western countries, if you know your stuff, you will be paid very well. Big companies like Alibaba/Tencent/Baidu can usually pay 50k USD or more per year for new grads. Not Silicon Valley good, but will definitely put you in middle class in China.
Well, I'm super eager to see more clasp/cando videos on frontpages.
Ask HN: How do you handle your depression?
If you talk to enough homeless people, you will definitely find some who chose where they live.
I think they were referring to the fact the air has to move out of the way, and in a tunnel there's less space for the air to move to, thus the drag is higher especially if the cross section of the vehicle is near the cross section of the tunnel.
Raw takes including stuff that was edited out of the uploaded video seem like a simple way for many types of video.

I think the real problem is that evaluating such proof would need to be done by a human, and YouTube want a completely automated system.
Rethinking the future of plastics [pdf]
From what I heard, scooters can very quickly slam you in to the ground if you hit a hole/rock or if the front wheel turns 90 degrees which many of the company's scooters allow. Bikes seem much safer than scooters to ride helmetless.
Superficial or Substantial: Why Care about Microplastics in the Anthropocene?
I talk to plenty of homeless people. I'm well aware they often choose where they live.

They are not the target market for a service I want to charge money for. So my awareness of that is not really relevant to my feeling that this would not fly, at least at the time and under the circumstances that I was doing the initial research.
Its not so much of an issue if you own the bike. How many people work at a place that has literally nowhere to place a bike inside and no free power points to use. I have always placed my bike next to my desk.
'My favorite' != 'most important'. I'm glad the author is having a good time combining socializing and gaming but this is a nonsense article.
>And what's the biggest issue: as a consumer, you do not have a choice when it comes to shipping - I'd gladly pay 1€ more a package if that would ensure that the delivery of my parcel is at least not outright exploitation, but Amazon (or any other web shop, food delivery service or whatever) do not offer this option, and are thus limiting the consumer power over where to shop based on moral ground.

i see this claimed very often by the same people that laud the free market. realize the irony: if ethically sourced good were desired then Amazon would indeed offer this option. in fact they are a luxury good (read: small minority) and so to first approximation you're the only person that wants this.
Ask HN: Subcontracting – pressured to move from percentage to flat rate
About a year ago I began taking on some data analysis clients as a subcontractor. The contract I signed has me receiving a percent of whatever hourly rate the firm I contract though bills that particular client. Six months into the gig, the firm asks if I would be willing to change from a percentage to a flat rate. I know that the rate they bill varies, considerably greater for short term contracts, so I said no and explained my reasoning. There was a little hemming and hawing, but they dropped the request.

Well, they brought it up again this month. Again, I said no. They said they could have one of their full time people do the work. I said that was fine. They said they want to discuss again in the new year.

So my question is: beyond increasing the margin they make off my work, why might they be so insistent on changing to a flat rate? And, any thoughts on how we might resolve this in a way that is mutually beneficial?

From a negotiation perspective I don’t need the money. I’m more worried about being fairly compensated for my work.
It happens even when they are part of an internal company office and not a contract shop.
There was a project on HN sometime in the last year where someone was broadcasting the WWVB signal indoors at low power. It would be a loss for this station to go off the air, but unless you’re in a remote location with no internet connectivity to broadcast the time signal yourself at low power, the world will go on.

https://hackaday.com/2014/03/22/build-your-own-radio-clock-t...
Its always nice to see a developer realize this concept on their own. Self discovery is a sign of acquiring experience and a great thing. Don't mind the others putting you down because you didn't reference the rule of three.

I like the WET acronym counterbalancing DRY. Nice touch.
a well trained knight's horse i think would be harder to spook than the most of the human drivers we have around.
Chinese pay less than you expect == Chinese win

Got it.
Most of the world is not dense but most of the population is. Especially if you look outside of America.
Starcity (YC S16) Is Looking for a Lead Software Engineer
Wow good to know. What’s a good starter sales job for a recovering software engineer? What do you search for on monster.com?
A wild idea appears:
Lets just put a horsehad in a amniotic fluid tank inside the car and give it steering capability for the car - voild we are done with it.
I was finished HS seventeen years ago, about an hour northeast of where the author was delivering packages. I distinctly remember an English teacher, trying to get us excited about the possibilities of longform print journalism, breathlessly telling the class how some of the best writers in the world work for Sports Illustrated, and that they make "good money."

I feel a sense of loss when the "biodiversity" of what appear to be financially viable careers is declining.
Imagine working for the state. Your non technical boss comes in and asked why you have a holiday theme on the page when policy is to not show celebration on state websites.

He asks you why you put this code in. You tell him you didn’t write the code. He asks who did. You tell him it’s open source, many people contributed and someone put this in without telling anyone. At this point, you’ve lost all credibility to you non technical boss and all of his non technical execs. You put a strangers code on the state run website, without reviewing it and without knowing what’s in it.
The reviews would show you that it no longer works at all for iOS 12 and beyond.
Corrupt and selective-outrage motivated Judiciary systems in China, former USSR republics and many countries in Africa -- is exactly what will continue to prevent citizens of these countries to want to stay there.

Corruption of law enforcement (including FBI), pay-to-play corrupt politicians, and selective-outrage judiciary system -- is causing enormous damage to US credibility (and to continuing dominance of US dollar as peg currency).

This is one of 3 reasons why Trump was elected, and this is what he is fixing as well (and it is hard).

(the other two are: a US president must put US citizen's interests prioritized first.

Second, is that policy and economic decisions MUST be based on merit, not wordsmithing exemplified by the smoke and mirrors of political correctness).
It's not hard, past a certain age, it's pretty much impossible to get anywhere near proficiency.

And, since cultural aspects inform the language, it pretty much depends on what you want to say, whether the machine can translate it or not. Hence, machine translation is missing a large part of the reason to learn another language, and I don't even subscribe to the sapir-whorff hypothesis.
I don’t know about the prevalence of any of them in theoretical CS (I’m not in the field and only know about them from university), but LOOP is equivalent to primitive recursion, and WHILE is equivalent to μ-recursion. If not LOOP, WHILE and GOTO themselves, maybe the recursion are prevalent? I imagine they are a bit more convenient for proofs and the like.
Not sure I'm on board with the premise if the article. Author presents duplication of HTML elements as a commonplace exception to DRY; This is not what DRY is.

Can't agree to overturn a tried and true best practice, in favour of the opposite, as the article suggests. While easy to play around and adhere to the dogma of DRY at all costs; namely making code difficult to reason and taking ages to do it; we just call this premature optimisation - DRY done with no critical thought about priorities.

Tldr; don't optimise for DRY too early or at the cost of what's most important or expedient. Use common sense and adopt DRY only as far as necessary for your team and to help others extend and be efficient working with your code.
Not a bad article but maybe just complicating what we already have a name for.
The annoying part is that ML is not sold to the world like this. I would say the truth (I believe) in this comment is the "dirty little secret" of our industry. Everyone working on it knows this but the research and VC dollars are flowing in so no one wants to talk about it too much.
Another corollary: 50% of the things people tell you are true, are things they wish were true but know are not.
How is the surface line for writing code using a pen? I hear they are the best note taking devices but does that apply to code too? What are some other options for writing code?

What I'm looking for:

1) natural writing feel

2) low response times

3) easy erasing (software)

4) optional: Digitization/handwriting recognition
> It barely learns anything given the amount of computation effort an data that goes into it, but it just happens to be good enough to be practically preferable to old symbolic systems.

I don’t follow this. Are you implying there haven’t been absolutely massive gains in computer vision, nlg, nlp, etc?
> attempting to fob Matrix development off on them is really not on.

My point is that if you have requirements for a bridge (eg configurable scrollback retention), you should submit a feature req to let us know about it at the time rather than ragequitting and telling people that matrix is broken.

Anyway, point taken that we need to make scrollback retention configurable (whether for bridging or in general); have bumped it up the todo list.
Maybe the concepts of “cognition, reasoning, modelling, creation of counterfactuals” etc. were not well-formed to begin with. Maybe intelligence, like gravity, is nothing like what we came up with using intuition. The fact is that black-box function approximators regularly beat systems designed around intuitive notions of cognition on observable metrics. Yes, the function approximators are bad. But the fact that they do better than more intuitively-satisfying symbolic systems suggests that our intuitive ideas about intelligence are even worse.
We had the neural networks, and the language. The problem is with the rebranding and the amount of marketing bullshit comming with it.
The null hypothesis is that apl of that most of it is a pile of crap, for an overengineered, overoptimized solutions that are probably applied at abstraction layer different from one they are marketed on. There may come solution out of it, but it's more wishfull thinking than not.
Traditions always start somewhere!
Even addition, subtraction, and variable assignment are unnecessary. All you need is succession:

https://esolangs.org/wiki/Restricted_BlooP/FlooP
You either don't understand the point of the theorems or are being contrarian.

In the context for the Incompleteness theorems, there are two 'kinds' of truths: a more informal kind used by all of us everyday and the mathematical kind as in, proven true under a given system.

The entire purpose of the theorems is to establish that there exists theorems in the first set that are not in the second set, while being expressable in the system. To deny the existence of the first kind of true statements ignores the entire purpose of it all.
This is definitely not the case for China.
Gender and pain: thinking beyond sex differences
https://fs.blog/mental-models/
#1 in terms of volume and revenue, sure I believe so, but quality? who are #2 or #3? The buses in questions are claimed to be not up to par.

Credit to China for taking the lead in pushing EV -- as opposed to the current US administration. However click-bait title such as "leapfrog" is misleading. Pointing that out isn't racism. Not sure why you need to hide behind "racism" when facing criticism.
Are they paid better than burger flippers in California?

Absolute numbers, not relative. Discount team doesn't really need to care about your problems.
There’s going to be people plugging their ears and shouting “but it’s just nonlinear function approximation!” all the way into the singularity.
Those massive gains have yet to considered reliable enough to be considered trusthworthy. Would you consider them trusthworthy in court, where lives are at stake? Gains are nice but we are still so far from the essence of AI systems and considering how much resources we are pouring into learning, at this point all of them appear as nothing more than massive fat expensive toys
Whilst there is very little evidence on how to increase intelligence, we know a lot of things drastically reduce intelligence. Generally, once that happens, it cannot be undone:

1) malnutrition at a young age. Meaning under 3 years old or so. Malnutricion during breast feeding or pregnancy is the most damaging. After a few years it mostly stops mattering.

2) some chemical contaminants, most notably (and commonly) lead. There are others (and worse ones), like Cadmium, but they're not very common at all.

3) genetic predisposition. Most pronounced, but far from the only effect, is Down syndrome. Of course there are genetic problems, like epilepsy, that are bad enough to make you an idiot.

4) any contact whatsoever with child services has a strong negative effect. If the child is removed from their parents, the effect magnifies dramatically. But children treated do far worse than untreated children in the same situation (and if you look at what happens in practice in such treatment, such as removing the children from school for years, this cannot come as a great surprise)

One almost-exception: voluntary treatment involving the mother (mostly by the mother) has only a slight negative effect. Father does not seem to matter if they're part of treatment. Still does not have a positive effect though. (Absense of a father has a strong negative effect though. I would love to see studies on if you see the same with mothers where the father is the primary caregiver)

I would say that attempting to fix children, in whatever way, other than advising the mother without any other option, is the negative. Children do best when following through on whatever way they develop. Attempting to change things is really bad.

5) drugs, and psychoactive medication are a strong negative, if taken over longer periods (obviously for strong drugs, longer period can be months. For most psychiatric drugs the period is something like a year)

6) lack of attention is a strong negative. Less so than attention by youth services, but it is decisively not good.

That can mean by parents, by peers, by teachers, by ...

At this point though we're talking about things that will definitely leave your IQ at over 90. It won't be catastrophic, whereas child services sometimes produce from normal children that people that have problems like not being able to count at age 17.

And then there are things that don't matter, but are widely perceived to matter.

(All of these have the same caveat. Make them bad enough and of course it will matter. If abuse means you don't survive, of course it will affect you. It essentially never does)

1) getting abused does not influence intelligence (Concrete example: getting scolded daily from age 3 by your mother for not cleaning your room because she's drunk will not make you an idiot)

2) quality of life does not matter. If anything it has a slight negative correlation: worse living conditions will actually make you (a little bit) smarter. (again, there is a level where is most definitely does matter, but that level is very low)
New Customer Offer Save $20 Off Your First Purchase of $100+ at Jrcigars.com
There is also another issue with “just works” and meeting specs: specs are almost universally under constrained.

I might describe an admin interface in terms of what it controls but implicitly I want large choice sets to have search functionality and dates to have calendars and so on.

A large choice set implemented as a massive drop down technically works but I don’t have to explain why it’s just wrong. The “practical” programmer may say hey it works and let’s move on. The “clever” programmer wants to impress with a new widget that is intuitive to use. In this particular case (interface design) I’d prefer the clever coder over the practical one.
work as an independent consultant. same jobs, 5x the pay.
Carnivore diets can help people with damaged guts. But you’re much better off fixing your gut than adopting a diet that is longer term going to cause a lot of other serious problems.
> This proved problematic when my wife and I decided to refinance our home. Although Gina, an attorney, earns plenty, we needed a bit more income to persuade lenders to work with us. It quickly became clear that for us to qualify, I would need more than occasional gigs as a freelance writer; I would need a steady job with a W-2.

He's working for amazon to get a loan so he can refinance his house. I think that's half-true, and I suspect the other half is that he got a job there so he could write this article.

Either way I liked the article - it's a little misleading though.
>Can China do really reliable, trustworthy, user friendly software?

You should try WeChat, the most popular Chinese chat application. Apart from the legally-mandated spying, it's super user-friendly, and quite lightweight compared to the likes of MSN Messenger, Skype, Facebook messenger and Slack (uses only 10s of MBs of ram).
>Are the Chinese cars superior to a Tesla in any way? (No details)

You could question if it is accurate for sure, but from this comment it appears that you have not even read the very first paragraph of the article.
I worked for a corporation for a few years. We had strict rules about not downloading anything to our work computer because they did an internal study and found that 98% of all malware came from employees downloading music apps and that sort of thing. So they forbade it all wholesale. Breaking that rule could get you in trouble, up to and including being fired for it.

So, sure, it's possible that in some cases people were fired because this Easter Egg outed them for violating some rule. And it's entirely possible that some of the cases of "I got fired for this" are that kind of scenario.

But if this is not against the rules and the firing is actually because it is Christmas-themed, that's a different situation.

I'm also aware that it could be a cultural thing where someone has to be the fall guy and heads will roll to prove our innocence. I see that as deeply problematic. If you didn't forbid open source, firing someone for using it as the "first offense" penalty is not a good policy.

I realize we likely have very little information at this point in time about the details behind the firings and it is the norm for early reports to be wildly misconstrued, which is one of the reasons saying anything at all here is potentially something I will regret.
Companies, and often just about any type of business, will often seek to convert variable costs into fixed costs because they are more predictable and easier to plan for. It means they can project out over a given time frame and know what their costs will be. Variable costs are harder to plan for.

It's not unreasonable that they are seeking to make such a change. It is unreasonable if they expect your net income to decrease as a result. If you can, determine what your average weekly/monthly rate was over the past year, and then try to negotiate a fixed cost that is at least that much. Maybe a little more: you can argue the justification that you're giving up the possibility of making more should the % split fall that way. This could make it a win-win situation, where in effect you both get the benefit of stability in planning on fixed costs, and in your case fixed income.

Of course they may not be willing to negotiate, and then you need to decide if it's worth the possibility of lesser income, which of course depends on how easily you might find comparable work with comparable compensation.
Humans are often not considered trustworthy and reliable in court.
Fixing the gut is impossible in certain cases. And carnivore diet has be shown to cause no long-term problems in subjects before.
>(though maybe if marijuana becomes legal nationwide that will no longer be part of the test)

The test isn't going anywhere until there's a reliable field sobriety for weed. Companies don't want employees operating heavy equipment stoned, and unfortunately there's no way to test that somebody smoked in the last day or two, only that they've smoked in the last X weeks/months, depending on their habits.
Why argue with the guy? Logic will not win an argument with someone like that. He is literally saying if the body isn't doing it already, we shouldn't do it - he is saying medicine is a bad idea.
This is the opposite of a Christian nut, although just as uneducated on evolution. He thinks it's a guided process that comes with a perfect being, not something that ends up with the highest population.