skysight-inc/HackerNews huggingface dataset:
It doesn't matter what it's named. It matters how it's passed. Python, Common Lisp CLOS, ScriptX, even NeWS's object oriented PostScript, all pass "self" as a first explicit parameter.

C++ does it behind the scenes, but it's just a hidden parameter, not a property of the hidden "virtual machine", because C++ doesn't have a virtual machine. But if you look at the C code generated by the CFront C++=>C compiler, you will see that every method has an explicit first "this" parameter whose type is the class it's defined in.

The way "this" is defined in JavaScript unnecessarily exposes the internal implementation details of the first JavaScript interpreter, which all subsequent JavaScript interpreters and compilers then had to be compatible with.

Simply knowing about normal function parameters and lexical binding like in Python is not enough: There is an invisible a VM interpreter thread somewhere that you have to know about, which has a "this" property (or "horrible global object", as Douglas Crockford puts it), and the only way to change it is indirectly through method applications with ".", or by using call and apply. So JavaScript "this" is a magic keyword, not just a normal parameter like all the rest. In the same way JavaScript "arguments" is magic, not just a normal argument like Python or Lisp &rest arguments.

And this needlessly adds to the complexity and surface area of the language, and bakes in unwanted behaviors like dynamic binding, when most of the civilized world agrees that lexical binding is superior, less surprising, and easier to reason about, and dynamic binding should be the exception that you have to go out of your way to use, not the default behavior for the implicit first argument of every method or function.
Coyotes are pretty adapted to city living. I know in my city (Vancouver) they are not uncommon to see, even in some pretty densely populated areas of town. I once had one walk right in front of me in a residential area one night, it wandered by so casually that I was sure it was a dog until I was about 5 feet from it.
I believe HN shorts out when the sarcasm detector reaches about 30%
Fiat is controlled by governments, governments are controlled by humans, humans are often irrational and there are many more examples than just Venezuela which is the only thing you could think of.

Bitcoin is governed by math and that’s why it’s valuable to me.

Bitcoin is beneficial to society because it provides choice. I don’t care if you don’t get it or if you disagree.
Except that in Airbnb speak, „fully stocked kitchen“ usually means a half empty humidity caked jar of spice a previous guest left behind, two cracked plates and one fork, and hotplates.

Most places also never looked as advertised: they’re way noisier, dirtier, low quality, and as others have said you have to trek 5 blocks to get and return the key to an automated 7/11 mailbox.

And should you report it to Airbnb, be prepared to stay 45 minutes on the phone every time you call, starting over from scratch because the agents can’t read previous calls notes, to eventually be told that they’ve checked you out, refunded, and good luck finding another place to stay tonight.

I’ll take hotels any day. Fuck Airbnb.
Think at scale. Ignoring the very real human benefits because humans are impatient, a system where a single job run takes an order of magnitude less time to run has a much, much higher throughput overall, with much lower penalty when there are errors. And tired over-worked humans make mistakes. Given the extreme shortage we are under, I'd expect any of the room-sized Roche machines to be running 24/7 if there is no other bottleneck like reagents. The quicker the test, the more tests per hour or per day can be run.
Consistent Hashing – An Efficient and Scalable Data Distribution Algorithm
The entire milky way galaxy being swallowed by a super massive blackhole would have absolutely no effect on the vast majority of the universe.
How New York became the epicenter of America’s coronavirus crisis
Is there a source for this that isn't random twitter accounts?

Looking at the Senate record[0] I can't see anything about the Senator and there doesn't seem to be any news coverage of his involvement in the bill other than the fact that he missed procedural votes for the initial draft.

[0] https://www.congress.gov/bill/116th-congress/senate-bill/354...
NYC publishes this kind of data ("Daily Syndromic and Case Data Update"): https://www1.nyc.gov/site/doh/covid/covid-19-main.page
Because Teams actually has a decent privacy policy:
"As a customer of Office 365, you own and control your data. Microsoft does not use your data for anything other than providing you with the service that you have subscribed to. As a service provider, we do not scan your email, documents, or teams for advertising or for purposes that are not service-related. Microsoft doesn’t have access to uploaded content. Like OneDrive for Business and SharePoint Online, customer data stays within the tenant. You can check out more about our trust and security related information at the Microsoft Trust Center. Teams follows the same guidance and principles as the Microsoft Trust Center" https://docs.microsoft.com/en-us/microsoftteams/security-com...
It has a lot of required components, however I ran most of them in a single-component setup (e.g.: 1 zookeeper server , 1 kafka server; using only their provided containers) and got extremely far (think 1 billion rows a day ingested, then transferred to pgsql and s3) with some extra overhead still.
Real estate is a lagging indicator, meaning it lags quite a bit behind changes in the economy. I suspect home prices will drop after this crisis. Probably 1-2 years from now. The economy is going to take a big hit, maybe the largest since the great depression.

I'm not qualified to offer financial advice, but that's what I've been thinking for myself personally. I don't have a crystal ball though.
Wrong. Read Microsoft's policy https://docs.microsoft.com/en-us/microsoftteams/security-com... "As a customer of Office 365, you own and control your data. Microsoft does not use your data for anything other than providing you with the service that you have subscribed to. As a service provider, we do not scan your email, documents, or teams for advertising or for purposes that are not service-related. Microsoft doesn’t have access to uploaded content. Like OneDrive for Business and SharePoint Online, customer data stays within the tenant. You can check out more about our trust and security related information at the Microsoft Trust Center. Teams follows the same guidance and principles as the Microsoft Trust Center."
Here’s a scenario. Every morning and evening when you brush your teeth, you also do your covid-test. It’s that simple and that cheap.

If everyone could do that we can live with this virus.

We don’t have to run and hide from it in our homes. We can go back to a normal life, while waiting for a vaccine that can take years.
I'm sorry, I didn't think it was controversial that Trump did that kind of stuff, and it made a perfect metaphor. But even if you disagree about Trump, I think you can still understand the metaphor about JavaScript fat arrow functions. Can you think of a better metaphor?

Edit: I added "(or Obama)" for people who are offended by me pointing out what everyone knows about Trump.
Lights out seems like the ideal human-powered game, though probably a bit advanced for a two-year-old. But it would be interesting to see what a hex-based variant of it looks like.

https://en.wikipedia.org/wiki/Lights_Out_(game)
A prisoner's dilemma, and let me tell you, everyone is going to defect. My money is on the strike never happens.
Lots of people still buy cameras, photography is still a popular and interesting art form.

I got a Nikon Z50 a few months ago and love it.
Connecton contribution to Covid-19 crisis: Reduced price and free trial
if we're using deep learning anyways, might as well use a u-net (ie. pix2pix) to add the bokeh directly - this would require pair training data but would probably look a lot better visually.
Collabora and Microsoft to Bring OpenCL 1.2 and OpenGL 3.3 to DirectX 12 Devices
Ritual I've had since at least 1994: naming a new hard drive volume under MS-DOS/Windows "PLEASE_WORK"
The only thing that stops me from using CotEditor is the inability to open a directory rather than individual files.
I will warn that it starts off pretty dry and slow but it all comes together in the end and I am so glad I pushed all the way through.
> Simply knowing about normal function parameters and lexical binding like in Python is not enough: There is an invisible a VM interpreter thread somewhere that you have to know about, which has a "this" property, and the only way to change it is indirectly through method applications with ".", or by using call and apply. So "this" is not just a normal parameter like all the rest.

That sounds like an unnecessarily complicated and possibly wrong way to think about it. `this` acts exactly like a parameter in ES5 strict mode (`x.f()` being `f.call(x)` and `f()` being `f.call(undefined)`), and does not act like dynamic binding.
What Are Laravel Resource Controllers
Of course passing laws about that is a great solution. This is how society defines what is and what isn’t acceptable behavior for corporations. Are you also typing up rallying paragraphs against laws that dictate how companies have to adhere to food safety? Would your suggestion then be to “get mad at Burger King for not allowing you to perform chemical tests in the restaurant”? “Everyone does it”, like everyone used asbestos and lead pipes in the past?
You obviously need be a highly technical user, but it ought to be fairly easy for most people here to run a packet capture on their phone:
https://developer.apple.com/documentation/network/recording_...
People are getting sick, but most people less than 70 years old recover fully. The odds of people >70yo who have a symptomatic case of this virus for recovery aren't so great, but we don't know how many asymptomatic cases there actually are among the older portions of the population.

Tom Hanks says he's survived his infection with the super-virus [0]. Wikipedia says he's 63 years old. If there was no test for this specific virus, Tom Hanks would have attributed his symptoms to a common cold (Covid-18, maybe) and done just fine.

[0] https://twitter.com/tomhanks/status/1241919151829954566

The only advice I notice about this particular virus is that we must "flatten the curve" by wearing invisible bubble suits. There is nothing about how to be proactive in becoming more resilient against this virus and all viruses.

The experts could give us something to do (presuming Science has learned something about viruses in the 100+ years since the great outbreaks), but all the media says is to make an effort to prevent your own infection by washing your hands, not touching your face, keeping your distance from everyone else, and "shelter in place". Various other websites say it's important to flatten the curve by preventing your own infection, so that you won't pass the virus on to some already-old/sick person who certainly wouldn't survive.

I am using this year's cold season to adjust my health model slightly. The media is using it to stoke fear/panic: good lemmings know there's nothing you can do for your own health without a doctor's permission.

Is this helplessness training?
The CDC recommendation to not wear a face mask in public is insane!

This is a pulmonary infectious disease. Meaning that the virus is airborne.

If you are infected, then every breath you exhale, every laugh or word you speak, every sneeze or cough you make, can transmit the virus into the air, inside the room that you are in. And it may take 3 hours before the virus particles settle on the ground.

And you don’t know who is infected.

The only way to be safe, and conduct some sort of normal transactions in public, is if everyone wears a mask while in public, and maintain some distance between each other. That way, the mask keeps the virus relatively contained to yourself, while providing some minimal barrier of protection from others.

The reason why the CDC does not recommend this, is because of the mask shortage. They want to keep enough available to the health care workers. Which I understand, but if the public also uses a mask, then it would also minimize or slow down the infection rate.

If you are working in public, or even if you are doing grocery shopping for yourself, then I highly advise to protect yourself, to take this issue seriously, and wear a mask.
Yup. For every loss of a dollar there is a gain of a buck in a short position somewhere.
This is a factor in me holding off from switching to mirrorless. Currently using the Nikon D50 which is dated now, and a handful of lenses which I am loath to give up on.
Sorry, I meant amid the crisis. The camera division was about to see a major downturn on devices sold for the next two years as society in general avoids travel.
Marseille’s fight against AI surveillance
I think I'm missing the part of my brain that lets me understand why bokeh selfies are even a thing. If you're going to remove your surroundings from the picture, why even bother taking a new picture?
And they moonlight as dumbbells in a gym.
Is there an alternative that provides a similar service?
I had symptoms, and had even been traveling in Europe, but since I'm not elderly and haven't recently been to China, no test for you. Stay home and get bed rest. OK, I guess we're still pretending you only get it from China? This is a major health care provider in the Bay Area. Still coughing after 3 weeks...
Linear Logic / Session Types seem interesting. I've poked around some of the papers, but I'm not sure how to approach the subject yet.

https://homepages.inf.ed.ac.uk/wadler/topics/linear-logic.ht...
Sibling comment seems to indicate the data was digital. But interesting a lot of probes from that era were actually analog, and better technology now allows revisiting the recordings with some pretty spectacular results. See, for example, the Lunar Orbiter Image Recovery Project:

http://www.moonviews.com
What's the smallest country that can fit everyone standing six feet apart?
I’m honesty quite fed up with how people are treating this like a fun vacation. I’m a wedding photographer. This is going to ruin me financially, the same year we were planning on doing IVF after trying for a baby for over two years.

In addition, my father is in his late 60s, has lupus, and recently finished cancer treatment. My mom has an “essential” job so there’s a risk of transmission from her.

In short, everyone please be aware of how this is affecting people. Don’t complain if you’re still getting your paycheck. It’s fine to make jokes, but for god’s sake if someone is talking to you about how it’s going to make life hard for them don’t say “yeah, it’s going to be hard on everyone.”
Where would be a good thing to read about that?
Microsoft acquires Networks to deliver new opportunities for global 5G ecosystem
Did you switch from another camera? I use the Nikon D50, an older camera but still functional with a number of lenses, and have been eyeing a switch to mirrorless, particularly to the Z50.
I am pleased that it pleased you, but allow me to correct the misconception arising due to the parallax between your view of me and my view of me.

Quantum Entanglement is computation, which makes me a monist and a materialist/physicalist. Computers reify our formal languages by manipulating matter.

https://www.quantamagazine.org/landmark-computer-science-pro...

In the language of comp-sci: Code is data - data is code. Homoiconicity.

In the language that has fallen out of fashion as of late...

In the beginning was the Word, and the Word was with God, and the Word was God. —John 1:1
BBEdit probably isn't the best choice for code by modern standards, but it's super good at being a fast Swiss army knife for text.

This is a frustratingly hard assertion to defend, at least in very short form, but I've been a technical writer for years now, mostly working in Markdown, and I keep coming back to BBEdit. It's not one huge thing that it does better for me than other editors, it's a collection of little things: every editor has some kind of "open file by name via fuzzy searching" command, for instance, but BBEdit lets me open multiple matching files at once. (Yes, this turns out to be immensely useful for me.) It keeps a search and replace history and lets me save patterns with a meaningful name. Its "multi-file search" window isn't as fast as some other editors, but it's insanely targetable, and again, lets me save my criteria with names (i.e., "All but JSON"). The "Process Duplicate Lines" command lets me easily find "duplicates" defined with a match pattern in a 75,000-line JSON file (don't ask). I can build complex operations up and save them as a text factory. I occasionally do operations with its "Shell Worksheet" capability, sort of a weirdo hybrid between a built-in terminal and a persistent text file. (I also like that every project gets its own persistent shell worksheet and persistent "scratch file," which you can set to be any language type.)

I've tried a lot of other editors over the years, including VS Code, and either they don't have features that I use in my technical writing or they don't, at least to me, implement them as well. And as lame as some people undoubtedly think "it works like a Mac app" is as a feature, well, it's actually kind of refreshing to have a full-featured text editor that does that BBEdit works like a Mac app. It seems almost quaint to have an actual preference window come up in a text editor when you select "Preferences..." these days, but it turns out they're actually really good at, you know, setting preferences. (Modifying keyboard shortcuts is so much nicer in BBEdit than in any other editor I've used.)

Again, for coding, BBEdit has fallen behind the times; the structure is there for it to mostly keep up, but the ecosystem just isn't there and, barring a strange resurgence, probably never will be. Personally, I use MacVim for coding bigger projects now -- although I'll generally use BBEdit for short shell or dynamic scripts if it already happens to be open. But for managing huge honking websites with thousands of Markdown source files -- or even just dozens -- I just haven't found anything that beats BBEdit.
Brendan Eich, known for opposition to same-sex marriage
And ES5 strict mode was retroactively designed in 2008, in a way that had to maintain backwards compatibility with the mistakes of 1997, 11 years earlier. By then the mistake was already irreversibly baked deeply into the language.

JavaScript will always suffer from that mistake, no matter how much they try to paper over it with strict mode or TypeScript. It's way too late to remove non-fat-arrow functions from JavaScript, so they will always be a foot gun, whether or not you're using strict mode.

If you define a non-fat-arrow function and mention "this", and then pass it out to somebody you don't know or have any control over or contact with, who calls that function without going out of their way to properly bind it with call or apply, then they will be screwed.
If the public used cotton masks, it would help and wouldn't take masks away from health care workers. If this were more normalized, the rate of spread could be lowered.
Other delivery services don't have the problems of Instacart. My CSA delivers me a custom food order once a week. They leave a box at my door, stand across the street, call me, and wait until I come out and grab it. And their workers are getting paid fairly. And they don't screw over local businesses. And they get me what I actually ordered. I just have to wait a whooole week for this amazing convenience, and pay less than Instacart charges for delivery.

Gig working will continue to exploit businesses, workers, and consumers until we solve the problem that made it a viable business model: income inequality.

If people didn't need multiple part time jobs to survive, they wouldn't be working these terrible conditions. And when that stops, businesses (like restaurants) will also stop being abused by predatory gig-fueled companies (like grubhub). And if people didn't need to make extra cash with Uber, there'd be enough tax money to fund better public transit, which further levels the economic playing field.
I heard of someone being successful by calling up the hotel a week before and saying they’ve been to Italy/Wuhan/wherever they have a high number of cases and asking to extend their stay because they need to self quarantine. Apparently that worked and the hotel canceled with full refund.
VS Code is the proverbial exception that proves the rule. :) It's kind of frustrating that there seem to be so few Electron apps that live up to its standard.
The real Trojan war was an uneventful raid on a coastal city, one of hundreds that happened in that region and era. Just one that happened to inspire a particularly gifted poet...
That commit is a fascinating illustration of how pipes allow a model of inter-process interaction that goes beyond what you can do with temporary files, as well as how much further things have evolved from the days of the "very conservative locking" in readp/writep from the 6E Unix kernel.
This is definitely not true. Value can be added to the economy and value can be lost from the economy. The size of the pie is not fixed.
> You're willing to sacrifice a million people to keep your house of cards economy going

This breaks the site guidelines, which include:

"Please respond to the strongest plausible interpretation of what someone says, not a weaker one that's easier to criticize. Assume good faith."

I realize the GP comment was provocative but taking this big a step into total flamewar makes things clearly worse. Please don't do that here.

https://news.ycombinator.com/newsguidelines.html
Please don't do flamewars on HN. It's not what this site is for.

https://news.ycombinator.com/newsguidelines.html
How to Run a Command with Time Limit (Timeout) in Linux
I think you need an antibody test for that, which apparently you can buy for $20 starting on 4/1 (there was an article about it on HN this week).
AFAIK no formatting can understand intent. Example. I want my canvas.drawImage calls that take 9 arguments to be formatted with arguments 2-5 on one line, and 6-9 on another line because 2-5 are sourceX, sourceY, sourceWidth, sourceHeight, and 6-9 are destX, destY, destWidth, destHeight.

That's just one example of 100s where an auto formatter can not figure out intent.

Another example, I often align numbers and width and height

// convert from screen coords to clip space
clipX = mouseX / screenWidth * 2 - 1
clipY = mouseY / screenHeight * -2 + 1

Another example would be how to format an if block. Depending on your style guide

if (cond) single-statement

might be ok. Or maybe you want them on different lines. Or maybe you require brackets. Or maybe you don't. But there will almost ways be some place in the code where an exception to your style guide makes the code more readable. Auto formatters don't understand those exceptions.

This is why AFAIK many major projects do NOT use an auto-formatter. Firefox, Safari, Chrome for example. Because there are places where an auto-formatter will make the code far less readable. They'll give the advice that you are free to run an auto-formatter on your own changes but adding an automated one is a no-go. Even the Flutter team does not use an auto-formatter

https://github.com/flutter/flutter/wiki/Style-guide-for-Flut...
But then the economy goes down the tubes.
Constantly having to be in a war against my own phone's operating system is exhausting. These days I absolutely refuse to buy any brand that makes me jump through hoops just to get root on my own silicon.
I just bought my first SLR thinking now is a good time to learn a new hobby.