skysight-inc/HackerNews huggingface dataset:
Would be amazing to have a happy ending here. Such an inspiring story
The brute-force work there is in IntelliJ, not in Swing – they've reimplemented the most broken Swing components, like the menu bar. Other Swing applications are still slow, ugly and buggy. (And despite all their work, IntelliJ still suffers from Swing bugs.)
Guido van Rossum – The ideal of a bug-free program has been abandoned long ago
Building a sustainable business that meets customer demand and is able to pay employees, without the need for growth, is called a zombie and needs to be shut down?

You know, sometimes I forget that this stuff if just a "get rich quick" scheeme, but then an article like this comes along and reminds me.
It is probably a mistranslation, they obviously mean that the "battle royale" theme is too violent: a bunch of strangers are gathered and have to kill each other until the last one.

Personally, I enjoy that kind of games, but the fact that they display smiling cartoon characters killing each others can make some people even more uncomfortable.

On steam, a game where you play a school shooter was recently banned. Can cartoon graphics and absence of blood make a school shooter acceptable?
JavaScript Frameworks: New Design Freedom with Vue – FrontNet Blog
I think the incentive structure needs to change to discourage hoarding. Currently, the payout always increases as you hold onto a scooter. What I think solves the problem is:

* An small bonus for nabbing the scooter while it still has a bit of charge left (<10%). Essentially a quick turnaround bonus. For the sake of argument, lets say $1 bonus + $4 base to match the original minimum if it's back on the street within 24h and never lost power.

* $4 if the scooter lost power, but is still returned within 48h.

* +$1 for every day it's missing after 48h up to $10 total.

* -$1 for every person that visits it's last known location after 2h and reports that they couldn't find it, down to $2 minimum. This is to encourage users to quickly attach the nabbed bird to power and "claim" them as soon as they pick them up instead of throwing it into their garage for a week then claiming them.

* The scooter gets set to $20 "lost scooter" bounty after a month, which can only be claimed once a month per user.

If the chargers want to play games, make it a game.
Not sure if it's analogous. The day care scenario replaced the guilt of leaving your child at day care too long with a fine that removed that guilt.

Clearly, you can fix the daycare scenario by 1) communicating to the parents picking up their children late the pain that causes the workers; 2) Ratcheting up the fine so that it is clearly painful to parents; 3) Ban parents who still flaunt the system.
There is actually a term for this in economics. It's called the "Lucas critique", and effectively states that any metric will be gamed eventually. It's slightly more subtle and is actually a critique about macroeconomic policymaking -- that people's actions are not structural and that making a new policy will affect how people act as they try to (ab)use the new policy -- but that's the basic gist.

EDIT: To clarify -- I'm not an economist, it's just something I read about in my spare time. I'm sure that the Lucas critique was pre-dated by other ideas (it's far too obvious to be entirely novel), and that there's a much deeper analysis that I wasn't aware of.
What you are missing is that, in php-fpm, while the interpreter process itself is not destroyed after every request, it does cleanup everything on the php-side (ie, it closes all open descriptors, it unloads all php code, etc.).

This is awesome ergonomically (because a past request cannot affect a future one in any way), but has terrible performance because all of the PHP code has to be re-bootstrapped for every request (think: read config files, open db connection, setup the injection-container, etc.).

Thus, this thing is like php-fpm but letting you bootstrap once and then just reply to requests within that php-space.

Aside from the "now you have an extra gun to shoot your foot with" issue, the other major difference is that php-fpm can execute any php file, whereas this approach requires a different process for each entry point (aka "front controller" in modern frameworks, aka "index.php").
Including the mobile version of PUBG (it was created completely in-house by Tencent).
Its likely somewhat obvious but "Harmonizing" and "inharmonious" are Chinese Government euphemisms for censorship and banned political speech.
> Company litters thousands of billboards all over streets and sidewalks, creating city-wide eyesore / road hazard

> Citizens remove hazard from streets, profiting at company's expense

Isn't this the definition of poetic justice?
If the post is accurate as a translation/source, I doubt those stated reasons are the true motivations, since citing 'blood and gore' for Fortnite seems absurd.

I speculate it is more likely a way to carefully manipulate the competitive landscape for a highly-lucrative industry (gaming), so as to favor local companies (and yes, I see Tencent is impacted). This should really be brought up in the on-going trade negotiations.
[Off-topic] - What's with all the "China is evil" articles lately ? Are there any websites (non-chinese) where I can find news about positive advancements in the country ? This whole anti-China hype train got me intrigued.
> a very hard problem to solve

Is it? Honest chargers who go out to the boonies to recover truly hard-to-recover scooters will pick up scooters which turn red from all over the place. Dishonest chargers who kidnap scooters will have scooters who all turned red suspiciously in one place (the charger's home).

Developing an algorithm to find the dishonest players should be relatively straightforward, and after dishonest players are found, they should be banned.
Great! What are they?
> youtube will be the only one able to comply with the laws

A properly decentralized system can comply with the laws as well: you know what you put up, so there is a filter - it's just in meat space.
Rumors of Tracking Users Using AI, Zepeto Developer Refutes
Looks like there might be a happy end after all:

http://www.prionalliance.org/2018/12/03/end-of-the-year-upda...
> Unfortunately, a quick guide like this doesn’t seem to exist, so I’m writing one here. You’re welcome.

Well, `go help modules` is a good combination of exhaustiveness and conciseness, IMHO.
Lucas critique is predated by Campbell's law and Goodhart's law.
If the insurance company had to pay out $20B, the plans would either cost a _lot_ or they would have tons of actually legitimate requirements with inspections (like you see with fire insurance of super expensive buildings: you don't get to just buy cheap fire insurance without having tons of procedures in place for mitigating fire).
> jump back and forth between the node and chromium processes

So Electron runs two copies of V8?

Since Electron in control of all the components, why wouldn't they try to merge the Node part into the Chromium process, to gain faster data exchange and lower RAM footprint? Has this been attempted?
Would you agree that more often than not, most ‘revolutions’ throughout history have been members of the ruling elite wielding wealth redistribution as a political tool? I ask this seriously, and if you can point me towards some related literature I’d greatly appreciate it.
Designing an ARM Chip from ARM blueprint and TSMC is relatively simple and cheap for Amazon. And there is enough market and hype to justify the investment as they will probably break even within 24 months. It has become obvious that Intel isn't really willing to lower price that affect margin and sales. So Amazon needs to make a statement to Intel to say they have lots of options, EPYC and ARM.

I don't want to hype Zen 2 / EPYC 2, but I do think it will be very competitive. And that is a Threat to Intel. And fundamentally, the REAL threat is neither ARM, AMD or even RSIC-V, it is TSMC.
> One is to compensate them at a level commensurate with what is expected of them (too few companies do this, even in tech).

Companies don't do this because it's not a coherent concept. No two people see the same workload in the same way.

Payment is based on what it would cost to replace you, not on what you do.
Absolutely. No one is entitled to free content, what's wrong with paying for Netflix/YouTube?
Only remember my preferences when I explicitly ask the site and opt-in to cookies?
Interesting in light of the leaked CIA profile on Xi Jingping (Current leader of the Chinese communist party)

https://wikileaks.org/plusd/cables/09BEIJING3128_a.html

A choice quote:

Xi knows how very corrupt China is and is repulsed by the
all-encompassing commercialization of Chinese society,
with its attendant nouveau riche, official corruption,
loss of values, dignity, and self-respect, and such "moral
evils" as drugs and prostitution, the professor stated.
The professor speculated that if Xi were to become the
Party General Secretary, he would likely aggressively
attempt to address these evils, perhaps at the expense of
the new moneyed class.
https://www.blog.google/around-the-globe/google-europe/propo...
They should use localStorage. Unlike cookies, localStorage doesn't get transmitted to the server.
A C++17 way

template<typename CBT>
void addListener(CBT cb) {
static_assert(is_invocable_r_v<int, CBT, Button*>, "type mismatch");
}
It depends how far into economics you want to get (and remember, I am not at all an economist, just an interested layperson).

A good book for getting started, IMO, is Charles Wheelan's "Naked Economics".

The first thing that I read was "Basic Economics" by Thomas Sowell, which I liked a lot and highly recommend - however, keep in mind that Thomas Sowell is very capitalist/right leaning, and the book is quite "biased".

A great textbook, if you really want to get further into economics, is Greg Mankiw's Principles of Economics (almost all undergrad economics textbooks are called "Principles of Economics", for some reason, so you have to search by author.) That's definitely the place to go if you want to have a more sophisticated understanding of economics than you'll just get by reading books.
This

In a way, GDPR goes in the way of common sense, despite the legalese and FUD

Copyright filter is censorship.
The difference is choice. You can choose not to click. No one's deciding whether something should be clickable for you, which is the point.
My dog's daycare has this system! $35 for a full day of daycare (7am - 9pm). $15 for late pickup (9pm - 11pm).
What Keeps Black Holes from Expanding Everywhere?
What is the solution to China either constantly banning our products and then cloning them or counterfeiting what's not banned? We're losing billions.
Why though? Email addresses are quite obviously "something that identifies a person".
Keeps too many from studying or working I guess..
Here's your one line compliance GDPR course: don't treat customer data like it's something to be sold to anyone that asks for it. PII is not yours.
Thanks. I have this same view for a long time.
Well, in the Xi era China has a) become more of an overtly fascist dictatorship and b) harder for Westerners to make money in, so because of b) there's more incentive to focus on a)

Still lots of great stuff happening there, so long as you're not an ethnic minority, religious, LGBT, disabled, an addict, mentally ill, interested in social change, or too poor to afford your own private oxygen and food supply
Shining and New Standard Edition Is Already Here
TopTracker - Time Tracking and Payments Tool for Freelancers
regime change by cutting off their benefits and forcing unrest seems to be the only way. waaaay too many countries are having their industries undercut by cheap chinese imports that basically rip off products.

the only good thing trump has done is the china tariffs
How is it easy to limit this? It's about how you treat EU citizens, not where people currently are.
Hey Microsofties, did DirectX trace its naming back to Mode X at all?
I am seeing the same thing. It seems to me an attempt to demonize the country for war or "us vs them" purposes. One major focus that i am seeing possibly overhyped is the Uyghur "camps" thing. The US government and its corporate media are suddenly just so concerned about this and i haven't seen many images or anything to really back it up. Anyway, it seems 9/10 articles that make the news now are just negative, and it seems the frequency of articles is suddenly much higher.
n the late 18th century, the newly-arriving Spanish

That would make it the last 300 years, not 500.

The Ohlone hadn't even employed the wheel, let alone other technologies.
I recently started a blog that might interest you. The focus is on technology industry in China, as well as some tech related political issues. Links are in my profile.

I try to be as neutral as possible, but as an overseas Chinese, I can't help but tends to have a slight bias towards Chinese government.
“Embroidery on torn out page from Playboy” by Erlend Helling-Larsen
Perceiving the population of cities with 3D maps
> Germany just

"just": "In the past, [Merkel] and Foreign Minister Heiko Maas have both called for individual EU countries’ seats on the UNSC to be “europeanized.”"

> requested

"proposed"

> that France give up their UN security council seat so that the EU could have it

"To lessen the pain of losing the powerful seat, France could become “the permanent EU ambassador to the United Nations,”"
> classic cargo culting: instead of adopting the important parts, they adopt the visible parts.

This is the most succinct description of cargo cutting I have come across. Thanks, will use it :)
> had a way to get rid of laws made using this tactic, the nations under EU's rule don't

"Under EU rule" the EU is made by its member countries, as opposed to what some people say.

Of course they do. It's an EU directive. Some countries already said they don't intent to move forward with it (Italy and Poland come to mind)

> when it comes to getting rid of EU's rules you need multiple good cycles of elections in numerous nations, then you also need to convince a good amount of bureaucrats, and then you also have to remove the local interpretation of the EU directive

And guess what, this amount of discussion, coming and going is actually helping (people see the BS) in this case.
And it’s worth remembering: Linus Torvalds hates GPLv3 as well.

Meanwhile, updating gnu tools is pretty straightforward with homebrew, so the consequences of this view are minimal—for me, so far.
> Golang's not being an opinionated software [...] "what is the best way of implementing it in Golang?" then unfortunately the answer is "Do as you want".

I'm really not sure. Idiomatic Go is something well covered. Gofmt is ensuring consistent formatting. The official docs have an entry dedicated to this: https://golang.org/doc/effective_go.html.

And what would be an opinionated language if Golang is not?
We're all sales(wo)men
Can you elaborate ? Which compiler flag is needed for compilation ?
You could argue about that but what about blood and gore? There's not even any blood in the game.
The solution is to wrap anything C related in type safe C++ code.
"It was so much better when the 13 colonies would just pay our taxes and not complain"
GDPR is very good in fact. If you read through it as a person, it is basically the way we should have operated from the start. Reading it while wearing the hat of my role in my company, I can see all the points where we are collecting data without a well defined process and clear understanding from the end users. It is hard to fix this, but it is for my own good as a person.
> The general public are apathetic at best.

They are not and impact and buzz around articles like this show it. General public does not know enough about technology to understand the ramifications of what they do. For some it might be shocking to know it is this easy to reuse location data for other purposes, or that by mixing different data points, you can de-anonymize pretty much anyone. These are concepts that are clear when you work with or like technology, but are not natural and need to be explained and learned.
Yes, this seems largely trivial for a moderate sized company.

Will it be perfect? No. Will it be effective? Yes. Will it make a great HN blog post? Absolutely
5 tips for reusable components
David Whittaker was my favorite back in the day. Sometimes I fired up "Feud" simply to listen to the music. It was funny to hear his "Lazy Jones" track later in the clubs, albeit covered by Zombie Nation.
Possibly stupid questions from someone completely ignorant about hardware:

If they didn’t care about backwards compatibility, would it be possible for them to release versions of their CPUs with _only_ the microcode layer? If yes, would a sufficiently good compiler be able to generate faster code for such a platform than for x86?

Alternatively, could Intel theoretically implement a new, non-x86 ASM layer that would decode down to better optimized microcode?
I do not have a specific website in mind. But, there are some news about some cool Chinese accomplishments: they will send a robot on the far side of the Moon soon; they are leading in electricle vehicules and public transport, photovoltaic pannels, electonic payments. They have some promising research in Thorium-based plants.
Ethnic and religious minorities are also persecuted all over the US and Europe, it may not be physically (except if you're black in the US) but there's definitely a psychological warfare being declared against these groups through mass media and culture (movies, tv shows, literature ...). I'm not too sure we can give lessons to the Chinese government on this subject.
"Payment is based on what it would cost to replace you, not on what you do."

I would perhaps rephraze this as 'payment is based on the market rate'. It has more into it than just cost of replacement. The replacement cost becomes a key metric when presenting a counter offer to an employee who got a better offer elsewhere.
Really, though, 99.995% of IT (in my experience at least) doesn't actually require a degree (obviously, since I'm doing it right this very moment without a degree and have been doing so for more than half a decade). It does require a lot of background knowledge that, sure, might've come to me faster had I received a formal education in IT, but I've been able to acquire it just fine through real-world work experience (and have been paid for it, to boot).

Unfortunately, that is not true: you can get by twiddling something, but the software you'll write without formal education in computer algorithms and data structures will always be inferior and often unmaintainable. This is from personal experience debugging lots of code over the years written by people without formal computer science education.

You could attempt to make the argument that not everyone needs to be a programmer, but system administration skills of such people are also subpar: sooner or later one needs to automate, and the shell scripts written by such people are always either hacked together or overcomplicated because the knowledge of algorithms, data structures and common solutions (like this enqueuing scheduler) simply isn't there. It's exceedingly difficult to educate oneself on something one isn't even aware exists.

If you really love IT and love what you do, get a computer science degree which provides a quality, required education (and not just for the paper so you can say you have one).
Positive advancements? From whose perspective? I am sure the Chinese government and many Chinese views these articles positively. The article is pretty matter of fact just listing things that are banned and why. They see the games as immoral and are taking action, now whether or not that’s the real reason who knows.

I mean China state sponsors corporate espionage and supports copyright infringement like no other country in the world. It also has essentially a second internet because it so heavily censors its own. It also locks up millions of a cultural group into concentration camps. I just don’t see a lot of positive advancements in general and I’ve been there as well. This isn’t just from the news.

Sometimes things are reported overwhelmingly negative because they are, in fact, overwhelmingly negative. It’s not always a bias it’s just reality.
Taking baby steps: Kent Beck's TCR discovered in 2012
https://i.imgur.com/qnSbTxM.jpg

rows 1-12: 责令改正 "changes ordered".

rows 13-20: 暂不批准或者退市 "temporarily not approved or leave market".
Why support older browsers?
Just another example of how evolution selects for/against or doesn't select for/against traits. If onset isn't until your 50s, it's plenty of time to reproduce. Granted there might be reduced fitness because older people won't be around as much to take care of children, but back during caveman days, very few people probably lived to their 50s.
The linked post has been updated and now says it's an unconfirmed rumor ; I think it would be better to add this information in the title.
The solution is super simple. Stop paying in direct payout and start paying in riding credits. I sometimes used Bird from the train station to my home in the evening. I would happily charge it in my home during the night and release it in the morning for Bird credits.
But it seems that at this stage since the scooter companies raised so much money, they just have no problem to ignore it and pay directly or just throw more scooters into the pool.
Is Silicon Valley Reproducible? (2006)
Thanks this is the kind of stuff I want to read about. Obviously no country is perfect and the chinese govt have their flaws without a doubt, but politics aside It's still a fascinating country with an immense culture.
I think it is rather more related to team size than codebase size, really.

Think of how much can be done with a small group of people who all speak the same dialect / lingo. If everyone is on the same page WRT code style, then TMTOWTDI is just the magic that allowed you all to arrive on the same stylistic page.

Perl 6 is much better than Perl 5 in this because some of the styles that ossified in the Perl 5 dinosaur brains are truly grotesque to behold when deployed in the 21st century.
What does an agile product roadmap look like?
FreeBSD-12.0-RELEASE available on FTP
So I dragged my tower PC to a "Linux installation party."

Is that what they were called in other places? In SV, we had "copyfests", where people brought computers with diskette drives to help replicate the many disks needed to install the current distro, and "installfests", where novices could bring their desired target computers to have access to distro files and install/diagnosis help from others.
Sorry it wasn't a compiler flag, it was an environment variable.

For Go modules if you don't have 'GO111MODULE' set to 'auto' or something appropriate, your code will whine about not being a module or something ridiculous. It will also cry about pulling in Go code with 'go get' if you don't have that environment variable properly configured.
I think they aimed for that double meaning.
> it... is like saying that Amazon has introduced a server chip that will take over everyone's datacenters from Intel.

AWS is what is actively taking over data centers. If it were to start running on Amazon chips, the result may possibly the same.