skysight-inc/HackerNews huggingface dataset:
I'm just leaving my current role, a fast growing start up with a completely custom framework. Currently at half a million active accounts but there's really no bottleneck with the PHP. Can easily keep throwing more boxes and hardware at it and I feel pretty comfy that it will be fine at 20 million active accounts. Also background jobs processing which is sort of async cause it lives on top of SQS and fires a sub process for every new message.

My iteration cycle is very fast. No need to sit there and wait for compiles. PHP is C-like and written in C so the hate is funny to me. Our code is unit tested, documented, and extremely well organized. I even connect to our database on my dev box through an SSH tunnel managed by a tool I made for us in.... PHP which uses AWS IAM to authorize a private key for 60 seconds and then auto connect. That's how I connect to our EC2 instances too.

I'm now jumping to another successful start up with a small team running Laravel. Again super organized and well documented.
Have you seen ReScript and/or ReasonML? They are much nicer IHMO, but, yes, not as popular.
Well, yes. There is.

Trying to pretend that the top levels of government are free from corruption and that Pfizer is the one good company that isn't evil and that there isn't a major incentive for Pfizer to ensure approval and mandates, and those imposing mandates don't have incentives to do so, whether implicit or explicit, is simply naive.

So all that talk about the military industrial complex wasting money to waste money to ensure dominance isn't likely, or even possible? Because thats exactly what people believe is happening with pharma. And that's what people believed was happening to pharma until Covid.
Because it's flexible and type-safe. You have both productivity and scalability on both syntax level and infrastructure level. It's suitable for 99% of programmers and the businesses for now.
A language that uses archaic syntax with dollar vars, semicolons, is pretty verbose itself may die before it evolves into something sensible. Not that I believe PHP will die any time soon, but just replying to your "slow is good".
> Between global warming and cancer, I choose global warming. So did Germany and most of Europe. France and Britain need large nuclear reactors for breeding weapons materials, so there's no way around that.

Oh, you will get cancer either way. Every now and then highly carcinogenic crude is spilled into the environment. The ashes from fossil fuels contain heavy metals and radioactive elements, and are much harder to store or reprocess than nuclear waste.

But as you say it's now all sediment(sic). So let's hope we manage to produce enough bateries in time to carry through somehow. Or, more realistically, have enough natural gas.
You mention "principles" but Signal is yet another walled garden.

It does not protect metadata.

It requires a phone number to work.

The servers are centralized and it does not do federation by design. Development is centralized and not community-driven.

Respectfully, please don't paint Signal as some champion of Internet freedom and privacy.
> First comes the shock that somebody would replace nuclear with coal, but when this is refuted

No, my original argument was about stronger reduction of coal by using nuclear, no matter that it's already decreasing. You just didn't understand me (or shifted the goalpost?).

Upd: I see that you avoid answering this question all the time: https://news.ycombinator.com/item?id=29768086.
I worked with Smalltalk for a number of years, and was even present at discussion during the ESUG (European Smalltalk User Group) meetup in 2008 that was the very birthplace of Pharo, though admittedly was a little out of my depth with some of the technicalities (and politics) that caused the rift from Squeak.

I loved working with Smalltalk as a language, and developing inside the fully integrated VM. It's my fondest development experience to date.

I really didn't love deploying Smalltalk applications and even collaborating was more difficult than file based languages/systems. Deployments (at the time) were a practice of shipping the image to the servers that needed to run. There literally is no (separate) "runtime" it's all in the image. This thing got bulky real quick.

I haven't touched Smalltalk in a while, so maybe (hopefully?) things have improved and deployments are no longer a problem.
Non Fungible Talent
> Taiwan and Hong Kong refer to PRC China as ‘mainlander’

It's a general thing in the broad Sinosphere. Even the Japanese refer to (PRC) Chinese as "mainlanders" (大陸人/だいりくじん †) despite, you know, it being a completely different country for much of history!

†: You'll notice this sometimes in Anime. For example, in Sayonara Zetsubou-sensei's first episode the students respond to the teacher's unusual name with "must be from the mainland (=China)".

In modern usage, the "mainland" modifier is often used to get around the sensitive Taiwan issue. Different people may disagree on who is included in "China", but "mainland China" unambiguously excludes Taiwan even in the PRC.

Another fun fact is that English is woefully inexpressive when it comes to the cultural complexities of the broader Chinese cultural sphere. For example, a Taiwanese (or immigrant Chinese) person might identify as "culturally" Chinese (华人) but not "nationally" Chinese (中国人). A lot of this stuff gets lost in translation and ends up offending people inadvertently, because there aren't different English words!

> As a western for some reason I thought this would be the opposite.

Hong Kong split from the mainland in the 1840s and has been largely culturally (not necessarily politically) independent since. Modern Taiwan is the result of the KMT retreat during the civil war a _century_ later, in the 1940s.

A mainlander visiting Hong Kong will feel like an American going to, say, the UK -- it will feel familiar but distinctly foreign. A mainlander visiting Taiwan will feel like an American going to, say, Canada --- it will feel quirky but kind of like home. The mainlander might struggle to chat with a Hong Kong local as many won't speak Mandarin, whereas in Taiwan, they will have no trouble engaging in a conversation, with maybe only occasionally realizing that the other person refers to what they would call a "microwave" as an "electronic range" (this is not a real example. A real example would be something like a mainlander referring to "topping up (a transit card)" as "recharging" the card while a Taiwanese might call it "adding value" to the card).
Except of all the cancer incidence in the wild animal population despite their short lifespans, the massively radioactive furs... Yes it's the biggest preserve because nobody can live there.
Scheme is what JS should have been since day 1.
It's clear that a strong public system is needed, to keep the private ones in check. But e.g. Italy shows that they can co-exist well, and maybe that's a better solution?
I could never figure out why Android did not copy iMessage and offer the same within the Android ecosystem. The Android equivalent of the green and blue bubbles. No one is interested in a carrier driven initiative like RCS at scale.
It's defined in the license.

‘Communication’: any act of selling, giving, lending, renting, distributing, communicating, transmitting, or otherwise making available, online or offline, copies of the Work or providing access to its essential functionalities at the disposal of any other natural or legal person.

Seems to me like it provides protection from TiVoization.
if you are working on PHP projects - dont forget to look into swoole/openswoole. all major PHP frameworks are adopting it now.

this way you can do async and build websocket servers and such and build http applications with event loop and without apache/nginx and such. etc etc
Wordpress is a complex project, but its backend does not require any background processing.
Fine, let's talk about practicality. The practicality of a blockchain protocol which is never allowed to 'update' via a fork is fairly kludgy. So if we allow forks, how can we be sure that in practice, for users, their account balances are immutable?

Well its easy, a sufficiently decentralized protocol, like Bitcoin for example, can have a large group of miners and nodes agree to scam one or more users out of their account balances by simply forking the chain. Anyone not in on the scam, even if it was as small as to take $10 from a single user, has no reason to even consider that fork - the fork which scams any user to any degree is worthless, as well as being provably invalid. It only takes one node with the honest history to maintain what users care about.

Saying this is practically mutable is like saying today's newspaper is mutable because we can all agree to print an altered version of it, while ignoring the fact that it is trivial to find and prove ownership of the original (being generous with my analogy, carbon dating, time-stamping the paper, w.e.).
I'll take this comment as a genuinely curious inquiry instead of the veiled insult that others seem to be taking it as.

PHP is primarily used for web development, yes. That doesn't preclude it from offline processing, however. It's quite nice for quick file processing scripts.

Modern websites do not necessarily require complex backends. It depends on the site and its purpose. A minimal static site is just as modern as an ecommerce behemoth. Or are you using "modern" as a synonym for "complex?"

PHP can compete with languages such as Go, Python, or Ruby in the right circumstances. PHP has a vibrant ecosystem that Go cannot (yet?) match. It has a different feel that may appeal to people that dislike Python's syntax. It can also compare quite well with Ruby, though Ruby on Rails and PHP on Laravel are almost similar enough to make that contest a wash.
Can you go into more detail on the food poisoning risk for hard cheeses? I'd quite like to make some hard cheese, but I'd rather not die.
> It will be a lot of work, but that's what grad students are for.

I really get the impression that a lot of these conspiracy theories are really rooted in an inability to understand how statistics work; and just how much can be legitimately derived from the data.
The big guys, who know what they're doing use PHP because it makes devops stupid simple. Throw it on the server, its ready. That's always been PHP's killer feature.
Here’s why according to their docs:

> Although there are many HTTP proxies available, we strongly advise that you use Nginx. If you choose another proxy server you need to make sure that it buffers slow clients when you use default Gunicorn workers. Without this buffering Gunicorn will be easily susceptible to denial-of-service attacks.

https://docs.gunicorn.org/en/stable/deploy.html
This line of argument also supports the extermination of all living beings because it prevents all future suffering. Think about that before you use it.
Kagi filters all of that out. If an upstart can do it, Google with its unlimited resources can do it too
Jeremy Liu, thank you for this quality article. And thanks to all the commenters. This is the kind of material I love to see on HN.
I don't think it will affect reproductive organs negatively beyond what other infections do, but it is in general a very valid point.
Yes, I mean blocking sync calls from async code.
Its concept of "one endpoint is one script" is one of its biggest killer features

Is that still a thing in PHP world? I recently ended up working on a 'modern' PHP project using Laravel and it was all routers and views and models and auto-generated scaffolding code, just like Rails and Django. There was no sign left of that 'old' approach.
Thanks! Appreciate the kind words.

It was just a passing thought that it would be fun to be able to send money through replies on Twitter, then realised cross-platform with anything that has a mention system haha no big thought process.

Senders, or 'Supporters' can attach a card, or wallet (apple/google) within a minute and it deducts from that. No lock-in, and no charges until you decide to tip.

Thanks for the question!
> A mix of renewables, coupled with battery and hydrogen-from-seawater energy storage technologies, will be cheaper, less capital-intensive, easier to maintain, and far easier to sell politically.

What will make it cheaper than nuclear power? Right now, it's more expensive than French nuclear power. And Germany doesn't even have storage technologies and has mostly concentrated on the low-hanging fruits. Off-shore wind and tiny solar installations on every residential root will be far more expensive that what has been done so far.
My bot averages ~ 3.5 moves, does all in 5, and less than a few % uses 5.

I've tried many, many approaches to get all in 4, and so far none work.

It is very nearly optimal (many of the parts are provably optimal, the only thing not yet optimal is doing an entire tree search, which is likely computationally impossible due to required tree size), using quite a bit of computation, precomputation, caching, etc., for the searching.

Oh, I also have a bot that solves Wordle in one move, every time.

Hint: the source code for Wordle is viewable from the page, and is easy to use to predict the word for each day.... But I've said too much now :)
I think the correct formulation would be that most nuclear production over the year has been replaced by renewables, but on gray wind-less winter day like today I can see you are taking in all the Swedish nuclear power you can get [0].

[0]: https://energinet.dk/energisystem_fullscreen (Danish grid only, couldn't find any similar tools for the wider grid).
> think it's a good time to remind you that nuclear power is still dangerous

In comparison to what? https://en.wikipedia.org/wiki/Nuclear_power#/media/File:Deat...

> and the term "green energy"

https://news.ycombinator.com/item?id=26603464

> Between global warming and cancer, I choose global warming.

If you choose coal, you choose both: https://en.wikipedia.org/wiki/Health_and_environmental_impac...
A typical Java project has way more complexity (and confusion and sadness and pain) than your typical node.js project in the enterprise world. I have stomach cramps thinking about the stuff my eyes have seen. .NET is not innocent either.

For PHP, just look at the Drupal, Joomla and Wordpress codebases to see how many ways there are to include files. For a current example, see the hate Laravel receives on how it does DI from Symfony-likers. There's also the Laminas (Zen) crowd going all-Java.

If something is popular, there WILL be many ways to do the same thing. Look at how Python is evolving.
A million developers are contributing to FLOSS projects (including openssl) and get pennies at best.

The difference is that Signal is a walled garden and suddenly somebody pays for that.
I’ve seen plenty of pom.xml files which are unversioned — not having a standard command to update means less disciplined developers say it’s too much work – but increasingly in other languages (and Gradle IIRC) there’s a distinction between the metadata file listing your direct dependencies and a lock file detailing exactly what was installed. The idea is that (using Node as an example) I’d say “I depend on the AWS SDK” in the main file, which changes infrequently when I add or remove direct dependencies, but my tool would use the lock file (npm-shrinkwrap) to record the exact versions of every package, preferably even by file hash, so you can have a highly repeatable build.

Separating the two is handy both due to frequent churn and to avoid transitive dependencies being kept unnecessarily — I’ve seen projects where libfoo stopped depending on libbar a while back but they were still installing it because someone had copy-pasted that block years before and was just incrementing the version.
> The inflation of the 70s wasn't caused by the cost/availability of credit, it was caused by the fact that oil prices jumped from an average of $4 in 1973 to $13 in 1974.

> For some reason we're supposed to pretend this had no significant effect on prices in an economy largely powered by oil.

Because there are different types, or sources, of inflation:

* https://en.wikipedia.org/wiki/Demand-pull_inflation

* https://en.wikipedia.org/wiki/Cost-push_inflation

* https://en.wikipedia.org/wiki/Built-in_inflation

* https://en.wikipedia.org/wiki/Inflation#Keynesian_view

And not all of them are caused interest rates and the availability of credit.

> It's baffling that educated adults can still take this seriously.

Perhaps the adults who take this seriously have better educated themselves on the topic. If the experts in a field hold a different view than you, it is often prudent to examine whether you're missing something.
I hate people that speak in third person "we" off themselves.

This form of entitlement is more disgusting to me than any snarky comments.
This is in fact an alternative universe I have thought about quite a bit.

I'm more on the strong-typed side of life nowadays. But otherwise I think it is a good choice. Also: HTML could be expressed in scheme as well. Scheme all the way down.
> I wouldn't want to make hard cheeses at home, the food poisoning risk is way too high for me.

Why do you say that? Hard cheese is much safer than soft cheese. Most instances of food poisoining are caused by fresh, soft cheese. Hard cheese is normally aged for a few months after which most pathogens (and most microbes in general) die off for lack of nutrients and moisture. Actually that's the mechanism by which cheese develops flavor as it ages: microorganisms in cheese die off and their ruptured cells release enzymes that interact with the proteins and fats in cheese to create new flavors.

In general, it's a very good idea to be careful when making cheese at home. Your first line of defense against food poisoning from homemade cheese is pasteurisation. Food poisoning risk from pasteurised milk products is going to be very low unless you're really careless.

Your other first line of defense is to have scrupulus sanitation practices. Sanitise every surface that will come into contact with cheese, or with anything that will come into contact with cheese. Boil all implements that can be boiled for at least 15' (that won't sterilise them quite, but it's close). Wash thoroughly everything you can't boil. Use separate utensils and receptacles for cheesemaking and separate ones for cooking to avoid cross-contamination. Use brushes rather than sponges for washing utensils and also keep them separate to avoid cross-contamination. Use clean paper towels, or sterilise your cloth towels before each cheesemaking session. Wash your hands thoroughly with soap and warm water, duh, or use one-use gloves (preferrably sterilised) chaning them every time you handle cheese. That's my regime anyway!

I'm also curious about your comment that making mozzarella consumes too much milk. Normally you should get about 10-15% yield with cow's milk mozzarella, depending on how you make it. Are you making it by directly adding acid to milk (like citric acid or vinegar etc) or are you doing it traditional style? I think the direct-acid method can have lower yields.
People increasingly trust people over faceless corps. Here's why
... even though Google locked-in the entire Android ecosystem by forcing people onto Google's RCS servers because they couldn't wait for carrier implementation?
There is, however, plenty of hydrogen in seawater.
They are effectively sugar on JS promises which are effectively sugar around async event callbacks.

This is why node rose so quickly in popularity as a server. The async IO handling could be leveraged with callbacks to scale low number of processes to handle large number of requests. Plus easy to learn and lots of people knew some JS.

JS always had an event loop (in browser so async events work) and in nodeJS it can be used for async IO. So JS has basically always handled async of sorts (although that has improved significantly).
> unsolved waste question

Why is it unsolved?

https://en.wikipedia.org/wiki/Onkalo_spent_nuclear_fuel_repo...
https://en.wikipedia.org/wiki/Breeder_reactor#Waste_reductio...
If you are calling that "The Ethereum Chain" then it seems your preferred fork won. Those who believe rolling back exploited funds was wrong see what you call "The Ethereum Chain" as the fork and Eth Classic as "The."

Either way, members of each fork kept their account balances, so anyone who really believed in Eth Classic but held their forked tokens is no worse off. If you want to talk about Eth politics and immutability (which is a good conversation) then it shouldn't be applied to all blockchain; not all chains are subject to such political influence if you claim that was a factor.
You mean sites like this one https://www.oekotest.de/? Test results are not free.
Click on any individual mask, and it takes you to a separate page. On most of those pages, there will be a 5-7 minute video showing that particular mask being tested while Lloyd talks about the features of the mask.
Yes, it's called Mastermind [0]. Just fewer colors than letters.

[0] https://en.wikipedia.org/wiki/Mastermind_(board_game)
The Bidirectional Battery Edition
If it can't play doom, it can't run linux.
Ze Amish-Naderite-Quaker-Mondragonz!1!!

Edit: Alternatively Die Schwesternschaft des Heiligen Strahls, äh Scheins.
Maybe outside the EU... Germany doesn't have a positive image inside the EU at all.

A nation of conservative Luddite bureaucrats ruling over the EU, and a puppet for the Americans. Meanwhile they extort and damage other EU nations with the ECB policies and push mass immigration to lower wages and destroy trade unions.
So… many… Star Wars … references, indirectly of course.
I’m in the process of figuring out what to use for my next startup. Have you had any issues with Firebase? If you were to start again, would you still mainly use Firebase on the client or would you have the clients hit Cloud Run endpoints?
I learned to use php when I was like 14. I’m 27 now and still derive such joy when making my own little projects that will never see the light of day. I try to be humble as far as just being a php trash coder, but I don’t feel too ashamed honestly, as it is the most mainstream thing really. I will always be grateful to php for being accessible and yeah, I guess easy. I don’t know why php is the only one I really stuck with exactly, but it is weirdly dear to me. Nearly half my life I’ve never gone too far past being a lowly php coder, and not a great one at that, but I still like what I can make at the end of the day. It’s a side creative thing for me. Laravel was a revelation for me over the last few years, it just makes some things make sense that never did for me as a self-taught hobbyist.
Ruby + Rails is miles ahead of PHP + Laravel.

Wtf are you saying Willis.. but i guess it's a matter of preference, also consider that in PHP you can also use symfony which is my preference, but regardless of everything, you either come here with a list of things that make ruby on rails miles ahead or people is just going to classify your ideas as worthless
What discomfort? My children and I go barefoot and T-Shirt while the rooms have 19°C.
They are slim and muscular, ideal BMI, so spare me any "fat isolates" comments.