skysight-inc/HackerNews huggingface dataset:
I'm a PHP "hater", so take this for what it's worth.

You are very close to implying that the language doesn't matter if you can hire developers and there are a lot of good packages in the ecosystem.

Having worked on several PHP projects (Most being version 7.0+ and zero of them being older than 5.3), the languages is STILL full of gotchas, and it's a huge drag on productivity. I assert that this DOES matter. Even basic stuff like trying to use the default "array" as a dictionary has absolutely ridiculous issues like if you try to use a string as a key, but it is a string of digits. It will automagically convert your string to an int and totally F-up your dictionary.

I've actually been bitten by that one. And it showed up in production, because I didn't know or care what the string keys might be. Who the hell would've guessed that behavior after working with non-broken languages before?

Inb4 "That just means you're dumb. Just use SPL. You can write bad code in any language."

I've used Symfony. It's good. I haven't used Laravel. I assume it's also good. I still don't know why you'd choose to start a project in PHP today when there are great libraries in many other languages that are not as broken as PHP.

Honestly, PHP 7+ is not horrible, but it's also not better than anything else... In fact, the very best PHP code you can write today looks basically the same as the best Java code you could've written a decade ago.
Sonic Pi is an instrument designed for optimal usability by a ten year old, while using text-based syntax just like a normal programming language.

I have seen a 9-year old reinventing nested loops with it, just because that's what she needed to make a tune.

The install and learning curve is as flat as it gets, there's no excuse for not trying it if you are curious.
This is absolutely true. The university I went to is known for its commercial aviation program, and draws students from all over the nation and world to learn to be airline pilots. So many of them end up with huge debts, because flight school is crazy expensive, and eventually take non-aviation related jobs out of school because they just can't afford not to. Only those that were probably already very well off, or have connections, or are extremely driven, will ever sit behind the stick of a commercial jetliner for one of the bigs.
Request processing in Java (or any other sane language) is Request-scoped.

The Request is a variable, the Response is a variable, they're only in local scope?

And any data the developer uses will also be local -- and thus stateless -- unless they go out of their way to share something. (Caches are a common example, but harder in PHP since nothing by default is shareable.)

You don't need to deal with threads if you're seeking PHP-equivalent functionality.

And if you did need to deal with threads, I find your claims about overheads & difficulty hard to read without a little skepticism. An idle thread is faster to start than spawning a process, an uncontended synchronization takes only 20-250 CPU cycles (ie. a modest number of nanoseconds), and a thread pool can be sensibly managed in 2-3 lines of code.
There's no way you're gonna get these devices unlocked if they're from a company that has gone under,

You can always find an edge case but in general we are better off if these devices can't be stolen.
YEC was always based on a lot of supposition and poor science and was mostly a reaction to the rise of evolution as a replacement explanation for the origin of life. Whether you believe Genesis or not YEC doesn't hold up when examined critically.
You're not asking to socialize the roads. You're asking to socialize the cost of the cars and the gasoline.
> No, because the word "directly" is not in the law.

"Direct" is the term the judges have adopted to refer to the infringement that is explicitly defined by statute, due to the necessity of distinguishing it from the common law derived categories of contributory and vicarious infringement. The statute does not need to use the term "direct infringement" for that term to have real legal meaning.

I've already quoted the Supreme Court on this elsewhere in the thread. The MGM v. Grokster case (2005) included:

> When a widely shared product is used to commit infringement, it may be impossible to enforce rights in the protected work effectively against all direct infringers, so that the only practical alternative is to go against the device’s distributor for secondary liability on a theory of contributory or vicarious infringement. One infringes contributorily by intentionally inducing or encouraging direct infringement, and infringes vicariously by profiting from direct infringement while declining to exercise the right to stop or limit it. Although “[t]he Copyright Act does not expressly render anyone liable for [another’s] infringement,” Sony, 464 U.S., at 434, these secondary liability doctrines emerged from common law principles and are well established in the law, e.g., id., at 486. Pp. 10—13.

( https://www.law.cornell.edu/supct/html/04-480.ZS.html )

The court is citing and quoting an earlier decision, Sony v. Universal City Studios (1984), the landmark case establishing that it was legal to use a VCR for timeshifting. That decision made numerous references to a distinction between direct and contributory infringement, such as:

> Justice Holmes stated that the producer had "contributed" to the infringement of the copyright, and the label "contributory infringement" has been applied in a number of lower court copyright cases involving an ongoing relationship between the direct infringer and the contributory infringer at the time the infringing conduct occurred. In such cases, as in other situations in which the imposition of vicarious liability is manifestly just, the "contributory" infringer was in a position to control the use of copyrighted works by others and had authorized the use without permission from the copyright owner.

( https://www.law.cornell.edu/supremecourt/text/464/417 )

And that's referring to a 1911 decision by Oliver Wendell Holmes Jr., Kalem Company v. Harper Brothers ( https://www.law.cornell.edu/supremecourt/text/222/55 ).

So "direct infringement" is a pretty well-known concept despite not being named as such in statute.
Nintendo is a conservative company with strong, well known brands (Mario, Donkey Kong, Legend of Zelda, etc.). I'd be surprised if they rolled over and let this slide.

I'd be doubly surprised if they ever open sourced anything.
This jives pretty well with my (admittedly little) experience with Istio. It's certainly frustrating at times, but I still find the documentation is actually pretty decent.

It's just that everything seems to lead down a rabbit hole. But this, I think, is just a Kubernetes thing in general. I had the same experience they did with a monitoring stack. But that's because you have to ramp up on some many additional technologies (Prometheus, Grafana, Kiali, etc...). And not just ramp up on their usage, but how they work, interact, and are configured. For Prometheus, for example, they suggest using a federated setup, which adds additional complexeties.

I messed around with strict mTLS for quite some time before simply giving up - it just wasn't worth the time sink.

But in general I agree with the conclusions. Most things are pretty straight-forward and the documentation has really good examples (using their "Bookinfo" project). It's just the "going off the beaten path" thing they describe when things become difficult.
But planes do get stuffy very quickly, especially when they don't turn on the engine for a long time.
The prime cellular targets for Covid-19
It's a great idea, and should not go to billionaires and other affluent-alreadys whose receipt of the fund will devalue the Scottish dollar.
People moving to help families. People moving for new jobs. People moving for work. People do still need to move, even during a pandemic. Supply chains do need to keep working at some capacity, otherwise society will actually collapse.

Edit: I should specify that I am indeed pro-lockdown, just wanted to point out that in order to continue our comfortable, convenient lifestyle the cogs need to keep turning.
> What is the problem with making all roads toll roads?

It's literally regressive.
Nintendo "suffering" a leak is one (very pro-corporation) take on this. Probably not the one most people would have on hearing about this though.
I don't have a problem with the dialogue but Twin Snakes had all of the cutscenes totally re-directed from the original Playstation version. The cutscenes in Twin Snakes feature ridiculous stunts and out-of-character overreactions.

I consider the gameplay to be superior, but it might not be worth it when it ruins the game's storytelling.
Yes, most roads should be toll roads. The benefits to society would be enormous.
Facebook, Slack, Etsy, the list goes on. In fact, I think all thosr companies are actually hiring right now, unlike many of those advanced non-PHP shops.
The N64 GPU Verilog has been circulating for like 10 years, that's not new in this leak.
I hate it when people ask for an email for something free; feels the same as those annoying pop ups when reading half of the world’s blogs these days. If I want to follow someone I’ll find an RSS feed :P
Safe Rust only protects against data races (which imply memory unsafety, hence a "bug") not general race conditions.
Some new 10xfx effects (aftereffects, openfx)
I was at a FAANG for years. I was the ONLY ONE on my team in the office - the rest of my team was in London. So I would literally drive to the multi-million dollar office on multi-million dollar real estate then dial up some people in London from my laptop.

During my exit interview after I resigned, I told my director I was leaving partially because I wanted to work remotely more and that they should either encourage or at least allow more WFH. She laughed, said they don't do that there, and told me that I'd be back.

Now they're all working from home and I'm with a new remote-friendly company with no plans on ever going back to the FAANG world. Good riddance.
Didn't he want to be made head of ATI at the time though, as part of the deal?
This is not an excuse. They can start with the parts they do have access to, while the community can work on (legally) getting the other information from the relevant rightsholders at SGI.
If Nintendo can prove they used it as a reference, that's evidence for a nasty lawsuit.

There's a reason why people go to these lengths:

https://en.m.wikipedia.org/wiki/Clean_room_design
> Don't write unit tests.

I have written personal projects both with and without tests and every single time I don't write them I wish I had, usually pretty quickly. The time you save by not writing those first few tests always seems to be lost, and then some, pretty quickly in the extra manual testing that is required.
I don't know how the mass of the solar system figures in their calculation, but you can say that the total mass of meteorites so far must be less than the current mass of the sun.

The energy of a meteorite falling into the sun should be about 1/2 its escape velocity squared.

>>> sun_escape_vel = 617.5e3 # m/s
>>> sun_infall_energy = 0.5 * sun_escape_vel**2 * sun_mass # kg m/s^2 or J
>>> sun_infall_energy / sun_output / year
31586055.04077674

(This is a loose upper bound, because I'm assuming the same escape velocity the whole time but the sun would have started at lower mass.)

So mass falling into the sun could sustain its output for 31 million years.
And indeed there is little to do except discharging responsibility:

>> all developers were made to sign an agreement committing them to comply with the project's policies on reverse engineering. Contributors to its development were not affected by these events, and all access to the software development tools was restored

Also relevant:

>> the 2004 leaked Windows source code[38] was not seen as legal risk for ReactOS, as the trade secret was considered indefensible in court due to broad spread.[39]
An argument can be made that you risk losing the talent to lead these companies to much more economically viable industries. I'm not sure I completely subscribe to the argument, but I think to some degree corporate welfare is as necessary as general welfare to help give a leg up to industries that are necessary but would otherwise have a harder time being successful.

Hot take, I know. That said, I do agree with your premise and think a disproportionately high government stake in a bailed out company makes a ton of sense.
"His" potential future Nobel, maybe.
I have often observed outsiders making sweeping generalizations regarding the shortcomings of the USA based off of a few internet postings.

So many of my friends and neighbors came here voluntarily- They seem happy, but deep down they must be filled with so much remorse!
Because 'good' is relative and conditions can always be better.

Software engineers at Google were fired (allegedly) for attempting to unionize (https://www.washingtonpost.com/technology/2019/12/06/ex-goog...). Google jobs are some of the best jobs in the industry, in terms of benefits, base salary, and stock compensation.

Unionization isn't always about jobs being good enough. It's also about being able to set up a collective front for the workers to negotiate their arrangement with company owners. That's something every employee can want and can benefit from.
Coming from Java, the one pet peeve I have is the automatic type conversion. I just find that I never really know what my variables are _really_ holding.

It's one of those foundational issues that I just can't get over.

...but it's my personal problem - I don't hate PHP.
Corporations are just legal conctructs to easily define rights and powers of their owners. So property rights of companies are just property rights of their owners.
Not the author, but there's no config that needs to be generated. Just run a HTTPS server with a wildcard cert that serves all traffic from a wildcard 'vhost' *.example.com to your application code. Then, your application can just look at the Host header to see which 'endpoint' it should serve.
Like the ‘zeroday vulnerability’ of users pasting commands into a prompt.
We have no reason whatsoever to think infection doesn't confer immunity. All other human-infecting coronaviruses do. And with no confirmed cases of reinfection yet, there is no evidence showing that this virus breaks the norm.
The emulation community seems to have never cared all that much about legality, given their relationship to the warez/cracking scene. I know WINE has been quoted as an example a few times here, but that's a slightly different case --- that's the free software/GPL community, which is far more uptight about legal issues.
As in exigent circumstances?

That could actually fly if the officer had a reasonable belief the trash contained relevant evidence, and the trash collector was going to take it away before a warrant could be acquired.
It's not really comparable. It is legal to rip ROMs for your own use. Distributing ROMs discreetly is illegal, but also basically impossible to prove. If reverse-engineered, the hardware ABI that the cartridge uses to converse with the system is not copyrightable[1] so you can distribute an emulator that you developed. Meanwhile it's pretty trivial to prove that some code is derived from some other code or some internal docs. The legal risks are wildly different.

[1] At least for now; burn in Hell, Oracle.
> It says they can't disclose any additional information and not to contact them.

I think this is the most troubling aspect of Google (free) services. This is why I bit the bullet a couple of years ago and started running my own mail server. The buck stops here :)
Ask HN: How would you convince a teen to stay home during isolation
Tolls were once difficult to enforce — collection infrastructure was expensive and slowed down traffic. Modern technology offers new ways forward, at the price of destroying privacy.

Or you could just impose a gasoline tax as a proxy for travel (oh hey that's exactly what they did.)
I hope you share that writing here in the future then. I look forward to reading it. Cheers.
Looks like requestbin will only keep 20 requests for 48 hours. Currently, endpoints.dev will store an unlimited number of requests for 30 days. The plan is to add user login, and lift the 30 day limit for authenticated users.
I don’t think YEC existed in the mid-19th century. It was (and remains) very much a deliberate reaction to evolutionary theory.
I don't know about git-send-mail, but mainline mutt has oauth2 support for imap4, pop3, and smtp.

I haven't used it but it looks like it pushes the oauth2 token refresh off to an external script.
Map of Minerals on the Moon
> Language improvements

A.k.a., Kotlin. :p

In all seriousness, though. The only thing PHP still has over Java is that when I say my function takes Foo type, you can't give it null instead.
According to Amazon reviewers, your book would be much better than mine if you just add an index :)
Supreme Court of the United States to Live Stream Oral Arguments
One time, I wrote a small network protocol stack to handle some proprietary UDP-based protocol that supported fragmentation.

Since the header on each fragment contained the total message size, I was able to pre-allocate the full size of the message upon receipt of the first fragment.

Then, as fragments arrived, I would copy their data into their respective areas of the message.

Typically, everything would arrive in order, so the message would be copied from beginning to end, piece by piece.

However, since this was Ethernet/UDP, it was possible for frames to arrive out of order.

This would result in the message being pieced together, with each fragment filling in its hole until all fragments have been received.

I guess this is a form of a data race? Or rather, a case where a data race at least wasn't detrimental.
> There's such a simple solution: don't buy an iPhone.

Is there a platform that gives me the freedom to run what I want, provides a decent security model, doesn't spy on everything I do, and if you squint just right, 'just works'?

If not, there is no simple solution, there's just different tradeoffs in a huge pile of poop.
Personally I've always found the constant airflow starts to dry out my eyes, making it very uncomfortable
That sentence has no scientific meaning whatsoever. In January China had 99% of all global deaths. But hey, Kieren McCarthy from San Francisco is an "Inter all-rounder" journalist and surely a person with profound insights into virology to make grand remarks like that.
Well, naturally it could not appear in Genesis, lacking any reasonable epoch point relative to which it could be defined. The 6000 year figure, at least in the Anglosphere, most likely derives from Archbishop James Ussher's genealogical calculations in the 17th century [1]. However, I don't think that has been any sort of common belief before the modern YEC movement.

[1] https://en.wikipedia.org/wiki/Ussher_chronology
Maybe interesting to the HN crowd: https://www.20tree.ai/. Startup doing ML on satellite images to recognize trees, crop health and a bunch of other stuff.
Lots of great comments here and on the gist. My 2¢:

I graduated CS in 2000, and from 2007-2010 worked at Google. Towards the end of that time I was struggling hard to get anything done; even just dragging myself into the office was difficult. I began to believe I really was an imposter: good at programming contests, interviewed well, but incapable of actually accomplishing anything. That spring I quit, and spent the summer volunteered at a dance camp, where I worked 12h a day doing mostly manual labour. I had never been happier or more hard-working; the only thing that could dent my productivity in the slightest was if the kitchen ran low on grub.

I seriously doubted I would ever go back to working with software again. I had no desire to do it whatsoever; indeed, I had lost confidence in my ability to hack any kind of actual job.

For the next seven years I did a lot of dancing, traded my skills as a photographer for passes & expenses attend events I wanted to go to, volunteered doing manual labour and A/V work in the summers, and eventually started teaching dancing locally. The latter at least brought in a little income, though not nearly enough.

During those years I did (checks spreadsheet) a mere 18 hours of coding spread over a dozen days - mostly writing small tools to automate my photo editing workflow.

Then, in 2016, a good friend of mine proposed to more or less create a job for me, working on what might be described as a modern rewrite of LambadMOO. It was my dream job, offered to me on a plate, but I wasn't sure I dare take it. Fortunately he didn't take no for an answer, started back in 2017 and three years later I am doing better than I have in a long, long time.

Sure: I'm still a lazy bugger (here I am on HN instead of coding!) and there are days when I don't get much done. And I'm more like a 1x programmer. But I love this project, have worked harder on it than anything else I've ever had as a job, and am so grateful to have been reminded how much I enjoy programming (at least when I am working on something that I care about).

Because of the economic situation my contract is likely to end in the autumn. I am genuinely doubtful about finding something else as fun and motivating as this has been—but I no longer worry that no tech work will ever interest me again, or that I'm no longer capable of feeding myself with my technical skills.
Ah I just close my eyes and go to sleep on flights.
having a car is a privilege, not a basic need. don't have a car? don't have to pay tolls.

norway has an interesting model which i don't agree with fully - new roads are toll roads until they pay for themselves. i guess support after that time is paid by fuel tax?
Transparently Tracing Covid 19
Algorand's blockchain approach.
I have no particular opinion on what the share price "should be", but apparently the analyst (MD) making this prediction is ranked here: https://www.tipranks.com/analysts/duane-pfennigwerth

I quite like this idea of ranking people based on their prior predictions! Again, no idea about any of the specific subject matter or the people covering it, but certainly an interesting site.
This isn't pro-corporation at all IMO. It's acting like this is something that happened rather than an action someone took.

Headline should be closer to "Hacker leaks Nintendo source code ..."
This is a great read! It summed things up quite nicely with some good graphics as well. Cheers.
Coronavirus What to Do and What Not to Do – Covid 19
Find out what to do and what not to do during the #COVID19 pandemic in this hilarious, WWII propaganda-style puppet satire video.

Get the latest information from the #CenterForDiseaseControl about the #Coronavirus: https://www.cdc.gov/coronavirus/2019-...

How to protect yourself
To protect yourself from the virus:
Try to avoid contact with people who display symptoms similar to those of pneumonia or the common cold, like coughing or a runny nose.
Don't touch your eyes, nose, or mouth with unwashed hands.
Wash your hands frequently with soap and water, and scrub for at least 20 seconds.
Use alcohol-based hand sanitizer when possible.
Avoid animals and animal markets.
The only current treatment for Coronavirus being offered is Supportive in Nature. If you notice any of these signs and Symptoms please contact your nearest Professional Healthcare setup. Share this video to help spread this information to those you love.

Created by Connor Asher, Sydney Alexander, Caelan Cavanagh.
Puppet created by Creventive Puppet Company, LLC

--------------------------------
www.creventive.com
--------------------------------

©2020 Creventive Puppet Company, LLC. Creventive's mark & logo, characters, and elements are trademarks of Creventive. All Rights Reserved.
Show HN: Easily Create Custom Alerts to Track Coronavirus Stats
Prototyping condensed state machines. Probably not the code you'd leave in the release version, but can provide an elegant form of experimentation.