skysight-inc/HackerNews huggingface dataset:
So, in summary, ORMs are only bad when you use the ORM parts and not when you mostly ignore the ORM parts and only primarily use the query generator and basic abstraction parts.

Well yes, that's because whenever things get hairy, you're no longer dealing with an ORM, you're dealing with the query generator. You don't have to translate your complex graph queries into their relational variants by manipulating the output of an ORM.

And I have to agree that query generators have a hell of a lot more value and are way less likely cause trouble than ORMs.

So yes, ORMs are no longer an anti-pattern, because most modern ORMs aren't really ORMs anymore, and when they are, they either swallow the performance hit and resulting issues when trying to compensate or don't encourage you use the ORM parts except for very specific cases, and instead encourage you to use the far more powerful query generator parts and all the random mild abstraction parts.

The question left is, is it better to just learn SQL including the specific variant of SQL you're targeting, or is it better to instead learn a specific query generator and its database specific parts?

Addendum:

Really, at this point I don't think it matters what people use, the number of people who actually know how to design a database is insignificant compared to the people who are tasked with designing them. I am now all but convinced that the reason ORMs are popular is because they make it slightly quicker and easier to deal with a fucked up database design than having to do the same with pure SQL or a query generator.
Well... what would be interesting isn't how people justify WFH to themselves but some provable correlations.

I could list my reasons too but I'm pretty sure that wouldn't be it for real. We're good at making up reasons for ourselves.
It's also the tax breaks https://www.bloomberg.com/news/features/2023-02-21/another-t...
A second edition is coming?? Awesome!
What AQMs are you finding for <$100?
Oh no my chicken is dead. LOL
It only gets that long if you include the LSB dependency nonsense. Look at Slackware's scripts and tell me where those hundreds of lines are hiding.
Got to the final answer but then I had to re-enter my password before a bomb blew up and it wouldn't let me copy my password. Anyone manage to do that last part? Is it even possible e.g. if you copy your password before that's disabled?
recent Zen chips can even function without a Southbridge

Does this mean the processors have built-in USB and PCI controllers? Or is this more a case of "if you don't need many peripherals, you can do without a southbridge"?

I suspect the reason they can do without the southbridge is because many high-speed connections are PCIe these days (including storage and networking). But I don't see a good reason why Zen would have on-chip USB or RS232 controllers.
It's almost like saying that Covid is not less dangerous than the plague…

They both have issues, but the latter is still worse than the former.
Plastic overuse/overproduction needs to die.

What Microplastics Might Be Doing to Our Intestines https://now.tufts.edu/2023/06/09/what-microplastics-might-be...

Nanoplastic Ingestion Causes Neurological Deficits https://www.the-scientist.com/news-opinion/nanoplastic-inges...

Microplastics can stick in human airways, new study finds https://www.ctvnews.ca/climate-and-environment/microplastics...

Many BPA-Free Plastics Are Toxic. Some Are Worse Than BPA https://www.discovermagazine.com/health/many-bpa-free-plasti...

Plastic pollution is so bad for animals it now has a disease name — 'plasticosis' https://www.cbc.ca/radio/quirks/research-ocean-plastic-birds...

Microplastics found in every sample of water taken during the Ocean Race https://www.theguardian.com/environment/2023/jun/05/micropla...

Secret industry documents reveal that makers of PFAS 'forever chemicals' covered up their health dangers https://phys.org/news/2023-05-secret-industry-documents-reve...

Forever Toxic: The science on health threats from plastic recycling https://www.greenpeace.org/usa/reports/forever-toxic/

Microplastics detected in meat, milk and blood of farm animals
https://www.theguardian.com/environment/2022/jul/08/micropla...

Yet Another Problem With Recycling: It Spews Microplastics https://www.wired.com/story/yet-another-problem-with-recycli...

Tiny Polystyrene Particles Detected in the Brain Just Two Hours After Ingestion https://neurosciencenews.com/polystyrene-brain-23079/

60% of home ‘compostable’ plastic doesn’t fully break down, ending up in our soil https://blog.frontiersin.org/2022/11/03/60-of-home-compostab...

(... thousands others)
https://www.adafruit.com/product/4632
> Those sites are for hotels.

I've actually booked apartments via booking.com

Though they're not as extensively listed as on Airbnb.
That's pretty odd to assume. All but Debian are running more or less the latest, and Arch is on the "fresh" track.
It's actually gotten a lot better in the last 3 or so years. Especially with power-profiles-daemon. I think it's pretty much at par with windows at this point. Assuming you are running an up to date kernel.
Blueprints for C++ Libraries and Pybind11
>We've come so far

Well... We're still using overlapping windows we shuffle around like it's 1984. I guess we now have tab widgets and hot corners. Are there any alternatives to windows (the rectangles on the screen, not the os) yet?
One important note here is that one of the reasons we use plastic so much is because it is not biodegradable. Any material that would replace plastic packaging, for example, has to at least be less biodegradable than the contents itself. For food that's probably relatively easy, but less so for many other items.
Thanks for the awesome DIY version of the air quality monitoring solution. Due to this nice guide I already built 3 of the basic sensors and I just purchased one pro to support your cause.
> There might be external forces...

Seems reasonable to upgrade "might" to "must". The article is quoting drugs with a sticker price of $6. It isn't reasonable to say that drug manufacturers would rather let the market enter a state of shortage rather than price their drug at $12 and see what happens. On a bad day I can buy bottled water at insane markups at these sort of prices, and water is much easier to compete with. Drug companies could easily be charging $10 for something that usually costs $6 and that would push the market towards a profitable equilibrium price. People aren't that picky about their purchases if there are no alternatives.

My money is on it being illegal to charge the real market rate if it involves raising prices.
Even with the "cross-eyed" trick to overlap the left and right sides, I could not spot the error. How in the world did he find it!?
Indeed! Mike has been really helpful :)
> Why does it seem basically impossible for a Linux desktop environment to not look like it’s frozen in time from the early 2000s in terms of sharpness/polish/slickness?

Have you seen modern GNOME 44 or KDE 5? This is just patently false.
KDE 3.x was really great, at 3.4, pretty much all the bugs you'd hit were gone, not that earlier releases were mega buggy, but one did encounter bugs here and there.

I dont feel like we have moved 20 years forward, even though plasma is good and all
I read this New York Times piece [1] and “submit[ted] the original source” per HN Guidelines. It’s a creative reading of the rules, but I think it works.

[1] https://www.nytimes.com/2023/06/27/world/europe/pizza-mural-...
Leave home at the start time, such as 9am. The rest is the outside world and not up to you. Maybe one day traffic will be bad or trains will be late or whatever the commute variability is. That's the employer's risk to incur by forcing office attendance. Leave at the most reasonable time you are likely to arrive home by finish time, such as 5pm.
Prisma-GPT, query your database using natural language
Hey,

I wanted to share my first Prisma extension I built over the weekend. Prisma-gpt extends the prisma client to give you the $queryGPT method which you can use to run "SELECT" commands using plain English.

The tool is obviously not meant for production, but rather a fun project which could potentially serve as a helpful tool in dev environments.

I was planning on maybe adding a cli and/or local FE you could spin up to replace prisma studio. So, if anyone wants to help contribute and work on those things, please reach out!

It's also my first npm package and open source project so any feedback is appreciated!
I agree with this point and often see in the language used. Most companies seem to think we are all on the same page but we aren't.

I bought a tool recently and it came with a registration card. All I had to do was scan it. The problem was scanning it took me to what looked like an error message but maybe it wasn't. Maybe it was search page. I have no idea.
Is every car expected to support both Tesla's new standard and the existing standard? Or is there expected to be a transition to this new standard, making all existing EVs giant expensive mountains of e-waste? Or will this just contribute to a non-interoperable charging network where you have to find a charging station which works with your particular car?
This is an example of "normalization of excellence".

A modern car has several thousand moving parts, high temperatures, high pressures, an oxidizing environment, and is subjected to potholes and wide temperature swings. That it is expected to survive 200K miles is a miracle.

Before the model T, a car that would last 20K miles was a considered a reliable car. The model T pushed those expectations up to 50K. Post-war expectations increased to 100K and the Japanese pushed expectations this millenia to 200K.

At the same time that lifetimes went up, maintenance went down. You used to have to regularly inspect tune and replace stuff like timing chains, spark plugs and seals.

A couple of comparisons: a computer fan has an expected lifetime of 10 years, and it's way simpler than a car. A fighter jet needs 16 hours of maintenance for every 1 in the sky.
You're also paid to tease out the REAL requirements out of PMs/management/users/etc.

Most of the time, what is being asked for, on its face, is not what is actually wanted, not as simple as spelled out, has some A-B tradeoffs to decide, or maybe not worth it given the side effects.

If a developer isn't asking multiple questions per feature, they deserve to be replaced by an LLM.
Ok, we've replaced it with the subtitle, which is cromulent.
Yes, and you are free to use a better bank that sucks less.

There is no escaping the need for identification. The easy approach is probably debit card number which most accounts already have and is check summed to catch most input errors. QR codes could be used to transfer the info easily between friends and eliminate input.

If banks won't address this properly, 3rd parties will step in and add this on top of the underlying payment rails with wallet apps. Obviously, the essential thing is to get the rails in place first.
> IMHO GNOME looks more modern and refreshing (and definitely more innovative) than macOS or Windows

Agreed, I prefer GNOME to anything else.
Goodkind certainly didn't want to hear that he was a subpar example of a human being. And he wrote fantasy, regardless of how much he whinged that he absolutely didn't.
The consumer versions last half as long but that is a fun rabbit hole to go down, an adventure into the oil industry lobbyists, emission controls, etc... but it's a taboo topic here on HN. I do not try to red pill anyone and rather let them venture down the rabbit holes and do their own testing where it is safer to do so.
> and back when fan noise was more directly correlated with system load).

This affected me about 5 minutes ago so this drew my attention - I find this more directly now. Fans had increased, but I've plenty of cores so nothing else was slow. I then checked and found some linting process that I'd killed was still running in the background using up a couple of cores.

I do kind of miss things like dialup tones and knowing how things had gone wrong by sound. I wonder if there's other fun ideas around that. I'm picturing either a ferrofluid or textured display that becomes more grumbly as my computer works harder. I can't hear disks thrashing now we're on solid state but big steady waves of water vs turbulent waves feels like a good analogy.
when you choose to deliberately expose yourself to vulnerability and walk barefoot, you take that responsibility onto yourself and can't blame others for what you stand on. the same would be true in nature
Related:

Show HN: CookLang – Recipe Markup Language - https://news.ycombinator.com/item?id=28997309 - Oct 2021 (146 comments)
https://youtu.be/RTXszRHc0qs

And IMO also the James Brown scene in the church where they see the light?

And that Ray Charles demos the instruments in his store is the plot, but that the whole street is dancing along makes it a musical.
Trouble in Paradise (2008)
There's a high resolution (30,000 × 23,756 pixels) picture of it on Wikipedia [1] - thanks to the Google Art project [2]

[1]: https://en.wikipedia.org/wiki/File:Van_Gogh_-_Starry_Night_-...

[2]: https://artsandculture.google.com/asset/the-starry-night-vin...
FTX Stops Sale of $500M Stake in AI Firm Anthropic: Report
The desktop switching animation is the reason why I don't use Spaces at all. I just can't force myself to "be along for the ride" every time I switch, which I might want to do very often.
> What part of this culture would make it more competitive than any remote-only equivalent?

Hiring, the same way RO outfits can access unique talent, and information transfer, particularly to newer team members. Also, in industries where over-documentation is an unnecessary liability.
I think the person meant it is too late to avoid consequences, but not too late to take action.
I's like to hear some arguments pro-PHP-in-browser first.
Same issue here, just posting to let you know this is not just you.
Up is the dividing line; I believe any concept after that would have been developed post-merger with Disney. It’s about as simple as that.

I’m not a Disney hater to the extent of some, but any weak film before Up and any strong film after are the exceptions.
You are a detective. There is a purported victim in front of you IRL. Can you verify said victim is the person in the picture? The decision you make may tear apart a family and destroy a persons life.
same same yo. I'm in the uk
Ahrefs was using recaptcha until recently, I wonder if that was abused in the same way or whatever the reason for them switching up was.
I've heard this too, but my employer is 99% remote and we've made some excellent hires over the last few years. It's part of my responsibilities to do ongoing mentorship, after others do more intense onboarding, so schedule regular (~monthly) video chats, and be available to work on incidentals together. No office required.
Sioyek is fast cross platform PDF viewer.
I'm confused as well. This is just a random person's rant about Pixar movies.

Meanwhile on the second page of HN there are far more interesting articles about tech.
Not sure exactly what you mean here but most of the quantum mechanics calculations in material science and chemistry applications can now be done at dramatic speedups using such approximate models. It has been exactly this Bloom Filter moment a few years back and the complete transformation of how people in these domains work is well underway.
You can get URLs to the high resolution images using the network inspector. E.g. https://iiif.micr.io/TZCqF/full/1800,/0/default.webp
https://archive.ph/BIuQR
Tesla on Autopilot crashed into stopped truck during highway lane closure
What kind of situation would have a producer push into a queue but not care about the output ? The only one I could come up with, is doing some computation in advance that would otherwise need to be done just-in-time when the result is requested later.
C++ makes writing simple code easier than C.

It also makes writing big old messes easier than C.

Writing simple, elegant and efficient code is hard. It takes "polish", which usually means not stopping the moment as you have "something that works", going back, refactoring, shaking out those TODO comments...questioning all the assumptions and abstractions you added earlier, etc etc.
This is basically the approach I've used. you want good memory bandwidth and latency as well as good single-threaded performance over lots of ram and lots of cores, which is what server-grade hardware optimises for. The main concern with really pushing it is the risk of transient errors causing faulty output.
I believe the underlying truth and cause one uses an ORM is the implicit mapping from tables to models/types and the near hidden exposure to the database.

There is, I believe, a positive gain with the use of a slim ORM which at the same time exposes an API for querying with real SQL.

Dapper/Linq/Fluentmigrator is my favorite stack for interacting with a database from system code. It's slim, fast and very near the database.

Whatever the arguments are around SQL and hiding it, I believe that to be the real anti pattern. If you must interact with a database in your system, make the use of SQL as absolutely easy as possible. It's a great nd immensely powerful language which no ORM can substitute in a nice manner.
Wait, no; you're describing the exact opposite of what happens. If a sysv init script gets messed up that service fails and the system trundles on. When a unit file is wrong the whole server just sits there refusing to do anything while it waits for 30 seconds, them 90, then 120...

OpenRC is closer to systemd than sysv in that regard, though at least it logs sanely
> it's only losing money because of maintenance

The "grand carénage" isn't maintenance, it's an investment to extend the lifetime by 10 years. Operations and maintenance are factored in electricity prices and aren't the reason these plants were shut down in 2022.

> I don't understand why this is so difficult. [...] I mean, you need to pick a side.

It feels like you're misinterpreting my position. My point is that 1) production costs are low and well reflected in consumer prices and 2) the business is viable.

It is completely unrelated to whether EDF is a private company or a state-owned company, whether the leadership and shareholders and are making sound decisions or whether the money made from current operations will be reinvested into new production facilities.
I’m not the GP, I was just pitching in to answer the question about how electric bills can be that low.
Maybe you are looking for a tiling window manager.

https://en.wikipedia.org/wiki/Tiling_window_manager
If you're using a square root anyway it's also possible to only fit the part between 0 and pi/4, and use the square root to calculate the sine or cosine (whichever is greater).

However you need to be a bit careful that you return exactly sqrt(1/2) at pi/4 otherwise you get a discontinuity.
They look more like telephone poles, and if my google-fu is serving me, it's unlikely that large scale power distribution was around in Paris in 1887:

https://histoire.bnpparibas/en/the-compagnie-parisienne-de-d...
It is unfortunate. But Alex does sound pretty good! Not up to 2023 standards maybe but still pretty good.
Another milestone was when Google started offering personalised results, based on things like your behaviour when logged in or geography, instead of just serving up the results like before.

I remember PG quipping words to the effect of "google searches are like scientology, what's true, is what's true for you" so the trend was clear even at that time (maybe 10-ish years ago?)
I've been lucky enough to spend some time in Auvers-sur-Oise back in 2012 while at the same time jumping to Amsterdam to van Gogh's museum. It was an interesting experience.
This would only work in an application where it's acceptable to run a place-and-route pass for every device to account for the different failures. I don't think it's something anyone has bothered to try to do.
Didn't know I was inadvertently saving the environment. This shouldn't continue. Will buy a pet today while not biking back from work.
You need to learn to scrape better: https://iiif.micr.io/qDCTO/full/1800,/0/default.jpg
Or a brain surgeon who could give him a lobotomy so he could declare himself mentally incompetent to stand trial.
Or WinDjView. Still has that brand MFC look. Still blazingly fast.
I was using a throw away monitor the machine shop my dad was working at gave him, and it could do 1280x1024. I’m not sure everybody was stuck at 800x600.

1080p was hardly any extra vertical space, and which was does a page go?
yep desktop Teams is not loading any chats on the right panel
The website is dead. Verified by `curl`.
Not just the US.

New Zealand has free health care, but there are a variety of drugs you can’t get prescribed easily (often because the system is trying to prevent drug-seeking). However it regularly ends up that necessary medicines are legally unobtainable (two situations recently in my own family). I have seen friends turn to illegal sources, or seek substitutes (especially “alternative” medicines and/or internet bullshit).
Sway or hyprland
I don't particularly appreciate calling people or getting called. But when we built our house, I fucking loved it. I could reach anybody I needed to and could solve problems right away. It was really powerful, from having a problem to talking to someone and fixing it within hours and not having to send an email, not hearing back, and having a bad night's sleep.
What is the thinking on paying to keep the lights on long term?

Seems quite bandwidth heavy so presumably some sort of monetization will be necessary even if following a fairly open model
Good idea, i will patent it first though.
>> Houses that are paid off and have no mortgage and have been built efficiently can easily get to 1%/year

Property taxes differ by state, but the median is around 1% a year of the property value. So for most people, taxes alone will get you to 1%. Illinois is 2.3% a year, New Jersey is 2.5%.

Insurance also differs by state by 0.5% to 1.0% is typical, higher percentage for properties with lower values.

Looking at how much a new roof or HVAC system costs, you're likely going to have at least 1% a year in maintenance if not higher in the long term.

Most people even with their mortgages paid off will pay at least 3% a year without including renovations.
> It’s the worst of a leaky abstraction

This stems from the fact that SQL itself is a very leaky abstraction: each RDBMS implementation is different, and the common part is shallow. There is no way to optimize a query in an RDBMS-agnostic way.

Actually, ORMs are worse than a leaky abstraction: they border on cheating! They actually abstract the easy, boring part away, but they run with their tail between their legs as soon as the issue becomes interesting.
Teflon Aka Polytetrafluoroethylene cookware represents a health hazard. The stuff contains a great deal of Florine and breaks down at 300C, but that’s not purely binary instead it becomes increasingly unstable as your approach the temperature. Further no manufacturing process is perfect, I wouldn’t therefore assume eating significant quantities would be safe.

That said, it’s generally used as a coating rather than a structural element so there’s less of it in the environment.

PS: Toothpaste which you should mostly spit out generally contains less than 0.5% fluoride compounds such as sodium fluoride NaF or tin fluoride SnF2, the F in both being Florine.
I recently discovered snippet-management tools, which I didn't know I needed. I'm trying Maccy and Paste. Curious which ones others love.
Pilkington was acquired by NSG [1].

[1] https://en.wikipedia.org/wiki/Nippon_Sheet_Glass
Don’t be so sure. I have a friend with a “normal” BMI, who started taking Mounjaro. Last photo I saw of her, she was looking like a BMI bordering underweight. Lots of social pressure built up in people’s minds, and this is an easy button to “fix” what they think is wrong with them.
I think you need to reread the post you’re complaining about