skysight-inc/HackerNews huggingface dataset:
The Raku programming language has, with some tweaks:

data.store.book.grep(*.price < 10).map(*.title)

Although personally I would write that as:

data.store.book.map: { .title if .price < 10 }

which combines the filter / map into a single operation.

https://raku.org
A very good bike is AUD$1000, a great bike is AUD$2000, and a super-duper over the top bike is AUD$3000. Anything more is potlatch https://www.britannica.com/topic/potlatch

I'm sorry to say I do understand all these above pricing categories short of potlatch.
Can you elaborate on what exactly you mean by “natively support”?
There’s also an excellent translation by Philip Pullman. My eldest daughter was obsessed with it when she was about 11 or 12.
Why wouldn't you use it again?
I thought the word "mecha" is used to describe devices which are operated by humans, like a Gundam. Essentially mecha is anthropomorphic tank.

"Robot" is used to describe autonomous system, like Marvin or Laputian Robot Troopers
The issue is that’s what it was.

However due to all the shit from developers PHP slowly became a half assed copy of Java. Instead of understanding what it was.

Node is the new php
Interesting, thanks for the link. But by those metrics, Erlang is worse than PHP... Definitely just one data point of many.
It amazes me that every few weeks a new note taking app is featured on HN.

What am I missing? For years I’ve taken notes in the Apple Notes.app on my tablet and phone and laptop and it just works.

Why would I want to switch to a paid app? Or why would I want to run a bash script that puts stuff on GitHub?
You're absolutely right! However, the main difference is that cyclists pose much less danger to other road users compared to motorcycles, cars, or trucks. Of course, there are accidents where a cyclist collides with a person and causes serious injuries, but when a motorcycle, car, or truck collides with other people, the consequences are dramatically more severe. This isn't to justify cyclists doing whatever they want in traffic, but they usually only endanger themselves. If they collide with a car, the car might get a dent, which can be fixed within a few days, whereas the cyclist might struggle with injuries for weeks, months, years, or even a lifetime.
> Jewish students…get a second-class education where they are relegated to their homes

Jews are taking part in the pro-Palestinian protests in large numbers. The idea that Jewish students are treated as second-class citizens at Columbia, in New York City, is simply absurd.
After having been in an abusive relationship for a while, and having liberated yourself from it, I imagine a lot of folks wouldn't go back, even if that other person has presumably improved their ways...
I'm at the other end of the spectrum and am always fettling my bikes and looking to upgrade parts etc. However, I've switched over to just using Squirt lube on my chain (on my road bike at least) as I previously tried the full wax treatment. That involved cleaning a new chain to remove the factory applied grease (using a cheap ultrasonic cleaning machine) and then using a cheap pan to warm up paraffin wax to which I added some micronised graphite (bought off eBay) for extra lubrication, although it turns the wax and your drive-train black. Soak the chain, then pull it out and let it cool off until the wax has hardened. I found that a treated chain would last for about 100 miles or so before needing a top-up (of squirt lube) or another dip in the wax bath, so I was alternating between two chains.

However, when I was topping-up the treatment with Squirt, I thought why not just use the Squirt and not bother with the whole waxing business. The problem I have is not being good at looking after my bike straight after a ride and here in the UK, that means the chain tends to get rusty so I end up getting through more chains than I should.
Looks good, thanks for sharing. Will be trying it out during the weekend.
You sound young, and I would wager you’ve inherited this opinion rather than formed it through experience.
This is excellent! Very good usability solve!
wouldn't it be easier to download whatever your kids like to listen to and have them listen to it offline?

i know i'm not the target for those services that i wouldn't use in a million years, but i just wonder sometimes if Spotify or Apple Music actually provide any convenience or value at all
Is maintaining 30 km/h important? Why not leave a little earlier?
Sounds about right.

I'm very impressed with the best models — but, because I remember how awful NLP used to be, "very impressed" still means I rate the best as being around the level of an intern/work placement student most of the time, and even at their best still only a junior.

It's great, if you're OK with that. I've used GPT-3.5 to make my own personal pay-as-you-go web interface for any LLM that's API-compatible with OpenAI despite not being a professional Web Developer.

It's fairly fragile because it's doing stupid things to get the "good enough" result.

Bu that's OK, because it's for me, I'm not selling it.

(As for the lesser models… I asked one for a single page web app version of Tetris; it started off lazy, then suddenly switched from writing a game in JavaScript into writing a machine learning script in python!)
The Cost of Cashlessness
https://phptherightway.com/#php_and_utf8
> Having user A upload a malicious_file.png and then user B download it

You will usually want the profile image of user A to be shown to user B. Same for videos and other files - users likely upload them so that others can download them / consume them in some way, right?

I think where you need to start is doing some threat analysis, and proceed from there. Hosting user content can be built out from "very small" to "very big", depending on the particular threat scenario/use cases/your particular userbase. With the description that you are giving, I would say you are more at risk of building an overcomplicated ("oversecured") solution which might compromise UX for the sake of some protection that is not necessarily needed.

If you are a small team, likely you could use an image resizing / video thumbnailing proxy server such as https://www.imgix.com/ https://imgproxy.net/ etc. You generate a signed URL to it and then the service picks up the file from S3 and does $thing to it. https://www.thumbor.org/ is another such tool. There are quite a few.

Re. uploads and downloads - you have quite some options with S3. You can generate the presigned upload URL on the server (in fact: you should do just that), make it time limited and add the Content-Length of the upload to the signed headers - this way the server may restrict the size of the upload. Similarly, access to display the images can be done via a CDN or using low-TTL signed URLs... plenty of things to do.
They are cached independently these days to avoid privacy issues. So if websites A and B both use the same JavaScript dependency from a public CDN and you visit them both, you will download the JavaScript dependency twice, even if you have it cached from your visit to the first website.
This is nothing to do with PHP the language. You can have an HTTP server and templating engine in any scripting language. It’s just the way that PHP is distributed is particularly easy. Someone could throw together a “PHPython” from existing components and get the same effect.
That's exactly what the Raku Programming Language does. Except that the "x" is represented by "*", so it reads:

grep(*.price < 10)

This is referred to as "Whatever-currying": https://docs.raku.org/type/Whatever*
The last part of the article, it's good for most use cases. Unless your Google, it doesn't matter. Most of us aren't hitting billions of requests.

What good is it to send ungodly time and effort when you'll most likely never ever need it?
I recently had to work on a large php project with mixed all and new php; it’s very refreshing vs node/react etc. Enough to make me wonder about the choices I made in my work life.

I started with php when it was still a perl script and did it professionally for 10 years after that.
I kept hearing these "PHP doesn't suck anymore" sentiments so in 2019, I started a new project in PHP. I read all the modern books, followed all the recent best practises, used all the sane configuration...

...and PHP still kinda sucked. Maybe it has improved between 2021 (when I last committed to that new project) and 2024, but I'm skeptical.

It was a huge disappointment to me because I really want PHP to be nice. PHP was the second language I learned for bigger projects after Perl, so some part of it still feels like home and evokes a beautiful naive feeling towards programming in me.

Alas, I'm unlikely to try it again in the next decade. I suspect it's slowly catching up to other languages, but at this rate I think more than a few years are needed until parity.
Those CEOs are funny. It would be OK when they would be doing it, but the moment when competition will start striking them back, create alliances and try to utterly crush them, they would be first to run to their government and complaining about unfair trade practices.
> Would there be 10 base-10, or 10 base-12 commandments in the Hebrew Bible?

This is a case where there's no difference. Right now, Wikipedia's page on the Ten Commandments notes 15 different commandments. (Actually, 16, but two of those are "thou shalt not covet thy neighbor's house" and "thou shalt not desire thy neighbor's house", and Wikipedia knows of no tradition that thinks of those two as separate commandments.) Here it is obvious that the number of commandments is significant, at 10, and the content of the commandments is significant, but unrelated to the number. If you want 12 commandments instead, it's sufficient to renumber the existing 15 commandments, and this is clearly how the problem has been approached historically.

The same thing applies to the Bill of Rights; there are a lot more than 10 enumerated rights, but they're bundled into 10 amendments.

> Would we talk about a US president's first 100 base-10, or 100 base-12 days? Would the extra 44 days matter?

This might make a difference; 144 days is close enough to half a year that you might just mark the half year and not bother with the 144 days. Or you might mark the quarter-year, which is almost 100 days.
Spending 25% of your working hours on “paperwork” sounds about correct for just about everybody who’s had a desk job the last 100 years.

I’m not saying it’s a good thing and I’m not saying I’m happy about it. Just that it is so, not just for the medical profession.

So what’s the fuss?
Never did. I've been quietly using PHP for decades on real projects, without the need to seek approval from anyone.
Worst-ever job interviews: 'We had to crawl and moo'
I’m just amazed that this needs a study at all.

Electric means the fire part happens at a coal station, gas means it is in your home. And people are surprised there is more crap on the air of their home? Hardly rocket science is it?
Why would you want to add muscle mass when you've lifted seriously for a decade?
The issue is that we don't assume consciousness and try to figure out whether some animals don't exhibit it, we assume everything is a robot until we can tell otherwise.
There's also the old low-maintenance way that is common for people who commute daily on city bikes - internal gear (or single speed) hub, and just ignore your chain apart from adding oil when it starts squeaking, and get it serviced once a year or so or when a problem appears. A newer variation is belt drive instead of chain.
Very interesting! I would be quite interested to see this implemented as some sort of API for browser chatbots or possibly even local AI powered web games?
If you don't know what Ollama is I suggest checking it out. Also I think adding the phi3 model to this would be a good idea.
“The coming years could see a rise of the population of invasive species like the lionfish, fire ant, venomous snakes, babuvirus banana, cotton white fly, devil weed, and others, since climate change makes this inevitable, …”

I had to look babuvirus banana up and all I could find is that yes, as the name suggests, the author is here is actually talking about a virus and not a species!

If the author meant to say Pentalonia nigronervosa (the aphid that apparently can help spread the virus) then they should have stated as such. It’s errors like this to don’t help the cause.

Oh vey…
Exactly, I used to be much more productive when using PHP because I could simply write some code, put it in a folder and refresh the browser and it would work.

How do you go into production? You put the file in a folder on the Web server. It works everywhere the same.

The code writing part itself is very straightforward and there's nothing counterintuitive as long as you don't try to do something that it's not designed for.

>there's nothing counterintuitive as long as you don't try to do something that it's not designed for.

Maybe that's the key. Instead of trying to write programs with tools that are not made for this but are somehow bullied into doing it, just use the right tools.

For generating HTML based on a request and data in the database, PHP it is. Don't try to make a language made for DOM manipulation process data and generate HTML.

For Web UI, DOM + JS it is. Learn how browser works and write the JS that will modify the DOM as needed which will result in interactive UI. Don't stack abstraction.
When you bought something before prices hike the purchase can’t be impacted by the price hike.
Can always have a look at this https://stitcher.io/blog/evolution-of-a-php-object

Latest code sample is at the bottom, covers a single specific use case (DTO) and it's still old as last update is november 2022.

PHP in general has managed to had great feature while cleaning up and keeping true to its mantra of "it should be simple and easy".

Modern PHP is super fun to use, and whether you like the verbosity and completeness of symfony, the "take a shortcut around the things you don't care so you can focus on your stuff" of laravel, the event based system of swoole or similar, the microframework like slim or just raw php, it's hard not to find a shoe that fit.

What's notably funny is how they managed to do that without breaking bc, and how that is perceived highly depend on who is reading. Take switch(). The original php version of it is rather terrible in what it does in term of "programming language correctness", but it worked and had its use. At the same time, a clean one that did what was needed was really wanted.

So instead of breaking every single software out there, making wordpress and company stuck on old version forever, they added a match(), which is a bit different and much cleaner. It's not really "the broken one and the good one", as their feature is different, but it's obvious that people who look for something bad will see that as terrible. In reality, you mostly don't use switch() in new code, but its behavior is fully described and documented.
Exactly. Being "stuck in traffic" is a car thing. Pedestrians and cyclists are literally never "stuck in traffic".
AI-controlled F-16 takes US Air Force leader for high-speed ride
I take a different attitude towards seeing unruly cyclists - for me, it's about damage limitation. Assuming that 5-10% of people are idiots and behave like idiots on the road, we want to ensure that they aren't behind the driving wheel of a car as that's 2 tonnes of speeding metal that causes a lot of damage to others when driven by an idiot. We want to take those idiots and get them onto bicycles as their speed and mass will be drastically lower and also they'll be likely to reap the rewards of cycling like an idiot which usually ends up hurting the cyclist more than anyone else (even hitting a pedestrian will often result in the cyclist coming worse off).

So, every idiot cyclist you see is an idiot not in a car and thus a reason to celebrate them.
Location: Vietnam
Remote: Yes
Willing to relocate: Yes (worldwide)
Technologies: AWS, Azure, Terraform, CloudFormation, Docker, K8S, GitLab, DataDog, Python, Jenkins, Bash/Shell
Résumé/CV: https://www.linkedin.com/in/h%E1%BA%ADu-nguy%E1%BB%85n-46863215b/
Email: phuchau6797@gmail.com

About me:
I have 5 years experiences in Cloud/DevOps. Seeking a DevOps position where I can leverage my extensive experience in automation, continuous integration, and cloud infrastructure to drive operational efficiency and contribute to the
organization's success through innovative solutions and collaborative teamwork.
I don't know of any other case in modern times in which the British or French promised a country to people who didn't even live there.

British colonial administrators themselves quickly came to realize the insanity of what they were doing. The Balfour Declaration was basically a declaration of war against the population they were ruling over in Palestine, a population whose interests they were nominally supposed to rule in. Lord Curzon, who was the only British cabinet minister with expertise in the Middle East, warned about this before the Balfour Declaration was issued.

> Israeli Jewish people, who are themselves plurality MENA people (contrary to the popular narrative that they're all displaced Europeans)

Israel was founded pretty much solely by European Jews. Arab Jews emigrated to Israel years after it was founded, because the expulsion of the Palestinians and the Arab-Israeli conflict unleashed a wave of antisemitism across the Arab world.
Yet another useless AI spam project, complete with fake testimonials and everything. As if porn blockers didn’t exist already. There’s zero need to throw AI at the problem.
Diversity Makes Us Smarter (2014)
Well then they should be submitting it to a compiler/interpreter first!
Apache knows how to serve php, it is harder with python.
Unfortunately not as Cockroach doesn't support triggers, which is what powers Reshape. We are looking into how to widen support though for our next product, reach out to fabian@reshapedb.com if you'd be interested in something like that!
See my other comment. Unfortunately Cockroach doesn't do much in terms of helping with zero-downtime schema migrations :/
I think the point is that the audience might like to know whether confident claims that something is legal or illegal are backed by actual expertise or just vibes, not that things people say on a web forum are legally binding.
Google lays off staff from Flutter, Dart and Python teams
I don't doubt that php will be with us for many years so any improvements are great.
Personally prefer to use a language like python that has depth of libraries and also useful for non web based apps.
I didn't think PHP sucked in 2012!
My SaaS uses Cloudinary for uploading and storing images.

It’s not particularly cheap. But it is fast and flexible and safe.
> It does smell like someone's pet project.

"Smell" has negative connotations in English. If you say that "this code smells" it means it's bad, and likewise it's very easy to read your "It does smell like" as you meaning it's a bad thing.
I've migrated code to PHP 8 last year. It is not as bad as it used to be but it is still a lot worse than most languages. Meanwhile it left behind its fortes as quick an dirty hack language, and traded it for being a very bad pseudo java.
Exactly, AI support in IDEs useful for more than just producing ready made solutions. In fact, it isn't really good at that because of context size limitations (most non trivial sized code bases are simply too large). And it will make mistakes, omit stuff, etc.

But, I've used it to review, debug, document, test, and explain code. I occasionally use it to stub out a solution but usually it then requires manual tuning. Any modestly complex algorithmic stuff it usually makes lots of mistakes. But it is able to spot uncovered edge cases, or suggest ways to test algorithms.

I think more of it as an artificial pair programmer pointing out my mistakes, and helping me be more productive. It's also good at figuring out syntax issues. Often when dealing with languages I'm less proficient in the main battle is simply figuring out how to do X in a language. If you are trying to learn things like Rust (which is hard to learn), AI is your best friend. Because it can explain you your code, your mistakes, and suggest alternate ways of doing things. All you need to do is ask. Remembering to do that is the hard part.
Recently I was preparing video for my YC application [1]. I've used RecordOnce[2] and actually it worked pretty great - I've recorded my actions together with voice. It transcribed voice to text and then used text to voice again to render the video. For me, as a non-native speaker, this was really great. And I could edit voice description of my actions post-recording - worked like a breeze. It still rough around the edges, but nonetheless I highly recommend it (for reference - until now I've used Screen Flow for multiple years)

1. https://humadroid.io
2. https://recordonce.com
This is the same old story though, and nerds dont get this right: what about all the viruses/child porn games and other heinous shit people will host there? Decentralisation is only as good as its moderation and unpaid moderation is a hell of a weak link
PHP worse energy efficiency than Haskell? Maybe I'm not understanding something.
A curious list about the eternal
While proper description is linked already in neighbouring comment.

TLDR: in 2024 with PHP8 you still need mbstring extension and also you should be careful around UTF-8 if you do any text processing. In almost all other modern programming languages it's just works.
Loseless Image Compression Algorithms Comparison
It's very rare for cyclists to be holding up traffic for anything more than a few seconds and usually only in specific scenarios (e.g. going up a hill on a narrow road). It's far more common for motorised vehicle congestion to be the thing adding delays to people's journeys and bizarrely, there's a common mindset amongst drivers to always want to overtake cyclists even when just a cursory glance ahead shows that they can only make a tiny bit of progress until they join the queue at the next junction. It's referred to as Must Get In Front (MGIF) and annoys me when cycling as often an unsafe overtake will be performed by a driver and then I'll go filtering past them a few seconds later - why overtake when it makes no difference to your journey time?
It's supposed to be this way. PHP allows rather very low-level operations. If it was unicode-only natively, people would be complaining about that.
I used to use PHP all the time. It really was revelatory when it came out.

This article is a little short on explanations or examples, though, so it’s hard to even really know what a lot of this is about, but it sounds mostly like syntax refinements and a few new language features. Which is great. Between that and the performance improvements, I’m glad to hear that PHP is still alive and well.

All that said, my memory of why PHP got such a bad rep was not so much the language itself, but the truly dangerous defaults, magically populated variables and more, that were so embedded into the usage of the language that for years, the maintainers were reluctant to make the necessary breaking changes to address the risks. Those issues drove far more people away—to the emerging frameworks like Rails and Django or all the way to Java or .NET—than the lack of named parameters or the need for the ‘array’ keyword.
Isn't radicle then the easy way to argue that participants actually distribute the program themselves, including an easily trackable IP, so lawyers can just add a client themselves and then sue all IPs that transfer a byte of the (illegal) program?

The same happens to media sharing via bittorrent in germany right now.
Having some site which gets closed instead seems to be preferable to me.

Of course copyright infringement is different from whatever emulators are doing but I imagine the effect might be the same