MurphyA/hacker-news huggingface dataset:
by ddxv | 2025-10-19 04:53:34+00:00
"Do you need >= 3 nines?" No, it's a one person project. I'd be happy with a single 9 or even no 9s just a 99.0 haha

I switched to warm standby to reduce stress on the production db which was in the cloud. There is just a single production server and having it constantly run the heavy data processing MVs + handle queries was CPU intensive and slowed everything down. The CPU was costly.

To fix those issues, especially the CPU, I run the primary on a home server where it can crank the CPU as much as it wants running the data processing MVs and then sends the processed WALs to the warm standby that just handles the queries.

This has fixed those CPU and slow queries (when an MV is updating a table that is being constantly read). But introduced headaches anytime I update postgres.

My understanding is the 'fix' is to move data processing to another postgresql DB or flow? My biggest reason for not using another DB is I didn't like the idea of losing direct relations for keys.

Anyways, I appreciate the input, it's been a thorny issue I hit once or twice a year and am always unsure if what I'm doing is 'normal' or what I should do to fix it.
by chao- | 2025-10-19 04:53:44+00:00
Hmm... I do a decent job at new, exploratory library code with a glass of wine. Not business logic, not exacting data invariants, nothing I would ever ship to production, but exploring interfaces for a library? Yeah. Asking "What does this really need to do? How do I really wish that I could write the calling/collaborating code?"

I wouldn't trust logic I wrote with alcohol in my system, or any tests that I wrote with alcohol, but getting at the heart of "Why does this library need to exist? What should it actually allow?" is enhanced a tiny bit by a mildly-altered mental state.

Over time, I've decided that it is because I get chatty with wine, and designing a library interface feels like a conversation between me and future engineers who might use said library. And then I stash it away to read and reconsider while sober.
by bruce511 | 2025-10-19 04:53:53+00:00
The problem with the "war on drugs" is that it treats "supply" as the problem.

It's always been about blaming drug cartels, smugglers, distributors etc. Drug possession is the crime, drug use is the crime, drug supply is the crime.

The theory seems to be that if only drugs were not available, people would not use them.

All evidence points the other way. Drugs satisfy, but do not create [1] the need. In the absence of illicit drugs alcohol, prescription meds etc flourish.

It seems to me that there's a missing understanding of why people want to take drugs. Is it just addiction? (If so, why not spend those billions on addiction relief?) Is it boredom? Desperation? Something else?

To win the "war on drugs" its important to understand "demand" not just supply. Without demand supply is meaningless. Whereas Cutting supply means nothing. All you do is promote other suppliers, other ways to achieve the same effect.

I'm not against policing the borders for drugs. But watching "border patrol", and seeing endless (justifiably) self-satisfied officers finding drugs, wondering "so what?". Clearly drugs are freely available (despite this bust). Clearly demand is unabated.

To me the key question at the heart of yhe war seems completely unmentioned;

"Why are people using drugs?"

[1] yes, I'm aware not all drugs are the same. Once hooked on heroin you need more heroin. This doesn't negate my root point.
by AlotOfReading | 2025-10-19 04:54:09+00:00
This doesn't match my experience. For an apples-to-apples example, here's the first function I found in numpy, compared to widely used libraries in C++ and JS:

MathJs: https://mathjs.org/docs/reference/functions/reshape.html

NumPy: https://numpy.org/doc/stable/reference/generated/numpy.resha...

Eigen (C++): https://libeigen.gitlab.io/eigen/docs-nightly/classEigen_1_1...

The JS one is simple enough, but even here be dragons. The "number" type supports storing decimals like 2.3. There's an isInteger() function on it that's never used, and the implementation doesn't actually check that they're integers as far as I can tell. It's anyone's guess what happens when you violate the docs-only requirement for integral values only. Moreover, -1 is a sentinel value indicating autosize, so there are non-integral values that are accepted.

The numpy interface is worse. First off, fully static typing would involve dependent types here. We'll ignore that. Then you have the shape parameter, which is a structure of "ints". What do ints mean here? Any number of things, from python native bigints to np machine types. It also takes sentinel values. The order parameter is the real nightmare here though. Using this effectively is incredibly difficult because numpy doesn't want to constrain itself by specifying memory layout. But choosing appropriately here requires knowing that! Of course we could also just look at the static typing annotations for this function, which has 6 overloads for reshape (https://github.com/numpy/numpy/blob/0066c73f573daafa01cbb975...).

I don't see a lot of evidence in either of these that the dynamic typing forced people to keep them actually simple. They're filled with edge cases.

Compare with Eigen, which uses static typing to separate type parameters from runtime parameters. You don't need to worry about non-integral values because they're unrepresentable. You don't have sentinel values, because AutoSize is a different type with a clear name. The layout is specified as a type parameter, so the order parameter is usable based on information available at compile time. The return type is a bit complicated, but no worse than numpy.
by reify | 2025-10-19 04:55:40+00:00
ImageMagick

oneliner batch

avif to jpg for file in *.avif; do magick "$file" "${file%.*}.jpg"; done jpg to avif for file in *.jpg; do magick "$file" "${file%.*}.avif"; done webp to jpg for file in *.webp; do magick "$file" "${file%.*}.jpg"; done tif to jpg for file in *.tif; do magick "$file" "${file%.*}.jpg"; done png to jpg for file in *.png; do magick "$file" "${file%.*}.jpg"; done
by more_corn | 2025-10-19 04:55:41+00:00
The study referenced shows a sudden and dramatic drop in brain activity of people using AI to write an essay when compared to people writing an essay themselves. Writing teaches us to organize our thinking. Failing to learn to organize our thinking makes us dumb. When questioned about the contents of the essay those who used chat gpt to assist were not able to answer any questions about the paper. As though it had never happened.

Imagine waking up one day and realizing this your senior year of college was over and you literally could not remember a single thing you learned that year, as though it never happened. That’s the idiocratic shift we’re seeing. AI is literally causing us to turn off our brains. A whole generation will learn nothing in school. Ask an educator how it’s going. I’ve heard from half a dozen. The consensus is “it’s a shit show”
by Unearned5161 | 2025-10-19 04:56:43+00:00
I see what you're trying to say, the issue with this frame of mind, however, is that it appears rather oblivious to the absolutely central role that oil prices have in the economy itself. The price of oil should be viewed as a proxy for the cost of movement in an economy, and when you recall that an economy is defined by its movement, the ouroborus becomes rather apparent. Money isn't the blood of the economy, energy is, oil is.

To make this clearer we can take a look at historic prices and the journey they've taken coming to where we are now. If you squint your eyes at the crude graph zoomed all the way out, you can piece together 3 general "tiers" in the pricing, levels where prices have oscillated around. Starting with the one from 1950s to the mid 1970s, this was $3, cheap conventional plays, we were swimming in this stuff, the modern world got built with this foundation. Then there's a rise to about $20 that "stabilizes" in the 80s, the hike up from $3 came due to conventional plays peaking in the 70s just as Hubbert said they would and then Alaska came online. The price didnt go back down to sub 10's because this new oil needed a new price floor to justify commercial viability. It stayed at this $20 range. And then Alaska peaked, China industrialized, global demand surged, and you see the long rise in the 2000s, leading to the recession, then shale comes online, this is the third tier. This is where we are now. Oscillating around $55-60, this is the new floor, fracking is expensive as hell, the only way we've been able to keep production alive at all is just by incinerating money at it.

The reason you don't see a clear price increase happening is because we're still on the shale tier. The treadmill is set to fast (check out how many wells need to be drilled for shale production to stay constant). Once this tier exhausts itself, however, that's when the market will correct, the price will rise until the even harder plays become viable. That fourth tier, if it even exists, won't be at a price any of our modern economic conveniences thrive in. It's a ratchet with wiplash, not a steady climb.
by bill_joy_fanboy | 2025-10-19 04:59:32+00:00
> The problem with the "war on drugs" is that it treats "supply" as the problem.

Well, that's because supply _is_ the actual problem.

The real issue is that our government isn't attacking the supply side hard enough. Believe me, if we wanted dealers and cartels to "go away permanently", we could make it happen.

The issue is whether or not we have the will to make this kind of thing happen.
by aantix | 2025-10-19 05:01:56+00:00
I've been pretty harsh on myself over the years.

I started carrying around a photo of myself as a kid. I'm sitting against a wall, by a pillar, at our state capital. My eyes are shut. I was kind of a shy kid.

When I start to get frustrated and talk to myself in that short, abrasive, condescending tone, I think of that photo and of myself, as still that kid.

It helps me to be more compassionate towards myself in those moments. I'm still that shy kid trying to make sense of the world.

I'm 47.
by skybrian | 2025-10-19 05:02:58+00:00
>But, thanks to my CPO and CEO’s support, I can say that we are building software using product bets. We identified a handful to take to the leadership team earlier this year. They estimated the value, then chose a specific set of bets for us to pursue based on our capacity. It’s definitely elevated our conversation around product strategy, and I can see it getting even better as we gain familiarity with the approach.

> What we haven’t done yet is finish any bets. We just started our first formal bets this year. So I can’t yet tell you how it will turn out.

Sounds good, let's check back in a year!
by cyberax | 2025-10-19 05:04:37+00:00
> etcd is also the entire point of k8s. that it's a single self-contained framework and doesn't require an external backer service. there is no kubernetes without etcd.

Sorry, this is just BS. etcd is a fifth wheel in most k8s installations. Even the largest clusters are better off with something like a large-ish instance running a regular DB for the control plane state storage.

Yes, etcd theoretically protects against any kind of node failures and network partitions. But in practice, well, nobody really cares about the control plane being resilient against meteorite strikes and Cthulhu rising from the deeps.
by CuriousRose | 2025-10-19 05:07:29+00:00
I don’t fully agree with the nested view argument. In our context (POS software) we use them heavily to have a single source of truth for a clean transaction view, joining common tables like product, category, etc and then using that as the backbone for all user reporting that might be more/less complex. Not doing this means that we need to accommodate for each where clause in each table on each report. For example eliminating voided lines, voided transactions, returned transactions, etc. Not having this means that a single logic change would need to update 20+ views/stored procs so for our case I think its valid to nest.
by TheDong | 2025-10-19 05:07:49+00:00
Love is a reasonably broad english word.

"I love eating delicious food" is a totally sensible sentence with involves only the self and an inanimate object, and arguably only the self because it is about your own enjoyment and actions more so than the food itself.

"I love computers", etc etc.

Love is broad, it can be shared, it can be unrequited, it can be with an inanimate object or with an abstract concept. The object can certainly be the self.
Programming language agnosticism is the only way to move forward in life
by amano-kenji | 2025-10-19 05:10:50+00:00
I'm not going to speak about specific languages because they will distract readers.

What I discovered over years is that I should just use the right tools for each job. Trying to use a specific language outside its well-established niches resulted in a lot of wasted time.

You can spend years on silencing every little inconvenience and every little noise by trying to use a specific language everywhere. That doesn't work. Resisting every little inconvenience will only result in more friction in life. Ignore little inconveniences and little noises. Just swim with the flow by using the right tools for each job. Don't swim against it by obsessing with specific tools.

If you want to move forward in life, you have to just suck it up and use the right languages for each task.

You may not like the fact that a specific language doesn't have specific constructs, but it can get this current job done quickly without fuss.

Developing attachment to a specific language that's not going to maintain its sharp edge for very long anyway will only lead to time waste and disappointments.

Screw programming languages. Just focus on accomplishing the task at hand quickly.

If your life satisfaction depends on using specific programming languages, you won't have a good life. Just get things done, and move on, and enjoy free time and wealth.

To have the best life possible or even just a good life, most of the time, you will just have to use tools you don't particularly like and have to do things you don't feel like doing.

Are you trying to have fun with programming languages? Or, are you trying to get things done quickly in programming languages? Speed is infinitely more important than fun.
by hakunin | 2025-10-19 05:14:34+00:00
Nice deep dive. On a tangential point: nowadays Turbo Streams are less needed in Rails, because of the way Turbo automatically kicks in by default. And in most (not all) situations, backend doesn't really save much time returning a piece of a page vs a full page, since in most backends preparing data for response takes 10s of milliseconds. So might as well just stick with default, unless you know that you specifically need to serve some granular change. While learning this stuff, I wrote a little FAQ (where I was the frequent asker of questions) that clarifies some things: https://notes.max.engineer/turbo-8-faq
by user_7832 | 2025-10-19 05:14:54+00:00
It can appear a bit counter intuitive because broadly alcohol is a depressant and cocaine's a stimulant.

The primary "risk" with polydrug abuse (especially uppers + downers) is that you end up taking much more than you would normally, and once the upper wears off, the downer depressed your breathing, pote being fatal.

But with coke + alcohol, even a "normal" quantity of both when combined is far worse. It's a bunch of heart signalling stuff that affects blood pressure and a few other things, in ways that really aren't good. Which is honestly pretty impressive because coke alone is an excellent way to fuck up your heart (credits, Rohin Francis/Medlife crisis, a cardiac surgeon on YouTube who posts way too less because presumably the stress of working for NHS isn't good for a doctor's health either.)

(Iirc alcohol and Tramadol are 2 things to typically never mix with other drugs; there's a matrix chart about drug interactions and these 2 are counter indicated with most other drugs. Weed, funnily and unsurprisingly, has one of the least interactions with other drugs.)
by hresvelgr | 2025-10-19 05:17:23+00:00
It's solving problems that are so far down on the list of priorities of a video game project that it will never evolve beyond a mere toy unless they really wise up. "My performance is bad because I didn't design this in a data-oriented way" is a different problem when 65% of your game is finished as opposed to solving it at "Hello, world." Hell, you can't even solve that problem unless you understand what your actually real game is doing at a data level in the first place.

Before software can be reusable it first has to be usable. There is a good reason why every existing popular engine was purpose built for a game in its infancy.
by LYK-love | 2025-10-19 05:18:20+00:00
The research competition is basically a funding competition nowadays. In the 20th century, China had far less research funding for universities compared to U.S.. That's due to two facts: 1. China was poor back then. 2. China had barely no high-tech industries which can provide additional financial support to labs and cultivate talents.

Therefore, people got high-level education who want to pursue a research career would have less chance to get a job in China (at least mainland) and had to go to U.S., EU or Japan to utilize their knowledge.

In fact, until now, U.S. still offers the highest the research funding to its universities. That's why there're so many Chinese students in U.S. schools.
by runevault | 2025-10-19 05:18:54+00:00
Interesting that the ECS you linked beats out Flecs .net bindings. I wonder if it is because of copying to/from the dotnet heap.

Looking over the readme.md I find it interesting they don't list dotnet 9 support but they do list 7 so they do seem to support non-LTS versions but skipped 9 (mind you maybe they just didn't update the readme?)
by hvb2 | 2025-10-19 05:18:56+00:00
> the only way to actually cost reduce is too have worse treatment.

So tell me, why is random blood work billed for over 400$? Just to analyze the sample?

Part of the problem is definitely inflated pricing and no real transparency.

Unless you need that rockstar surgeon for that super specialty treatment that only the US can offer, the US healthcare system is just overpriced, broken and a money grab
by dahart | 2025-10-19 05:22:19+00:00
The white burst generator reduces my tinnitus for a while. It’s less effective than it used to be, but when the silence part of the cycle starts, I can hear my tinnitus drop in volume. https://mynoise.net/NoiseMachines/whiteBurstsNoiseGenerator....

Neuromodulator certainly masks my tinnitus, but doesn’t reduce it. Sometimes I feel like it’s a little worse when I turn off the sound.

Mynoise.net is great though. The speech jammer is awesome in noisy places, and layering noise and thunderstorms helps me work. I’m a happy subscriber.
by optiot | 2025-10-19 05:27:10+00:00
That 'doing it for a while' part is one reason I don't really like the "only as well as you love yourself" truism. One can absolutely care deeply for others without caring much for themself, at least to start. But to your point, unless you can develop [/an awareness of the] strengths that you bring to a relationship, fears of being a burden, failing, or taking too much will put a steady drain on it.

I think the biggest thing that the "self-love prerequisite" idea misses and that the article sort of indirectly gets at is that this feeling of social self-efficacy is something most (all?) people learn through successful relationships with others - sometimes in our upbringing, sometimes not. I don't think it's unnatural at all for others' love of us to outpace our own just a little.
by K0balt | 2025-10-19 05:27:14+00:00
Long form engineering tasks aren’t doable yet without supervision. But I can say in our shop, we won’t be hiring any more junior devs, ever, except as (in my region, free) interns or because of some extraordinary capabilities, insights, or skills. There just isn’t any business case for hiring junior devs to do the grunt work anymore.

But, the vast majority of work that is done in the world is not in the same order of magnitude of complexity or rigor that is required by long form engineering.

While models may not outperform an experienced developer, they will likely outperform her junior assistant, and a dev using ai effectively will almost certainly outperform a team of three without ai, in most cases.

The salient fact here is not that the human is outperformed by the model in a narrow field of extraordinary capability, but rather that the model can outperform that dev in 100 other disciplines, and outperform most people in almost any cerebral task.

My claim is not that models outperform people in all tasks, but that models outperform all people at many tasks, and I think that holds true with some caveats, especially when you factor in speed and scale.
by charcircuit | 2025-10-19 05:28:07+00:00
>solve problems your users are actually facing, not problems you think they have

>You can apply the concepts the author talks about to _literally_ any group

The presentation could have been modified to avoid alienating people if the author had focused on champinioning how open social media allows for the ability to solve these problems.

>I have no idea what niche political agenda you're talking about

Search the page for "Why should anyone care?", and you'll see it. Thos section of the talk he complains that the political situation of America doesn't match his views. Then in the next section, "The capitulation of social media", he complains about how other social media sites don't match his politics. Then in the next section, "The decline of journalism", the talker tries to argue his political opinion that journalists are a good thing. Then in the next section, "The problem is global", he explains that more places than just America don't share his political view.

I'll stop here, but it goes on further, even to the very last sentence. I thought this was supposed to be a technology keynote, but this talker turned it into a place for him to complain about the political situation of the world.
by zarmin | 2025-10-19 05:29:34+00:00
was it chatgpt who told you, because it's an obvious fucking load of bullshit lmao. why on earth would you believe that?

https://openai.com/index/how-people-are-using-chatgpt/

https://www.nber.org/system/files/working_papers/w34255/w342...
by stubish | 2025-10-19 05:30:08+00:00
Partial hearing loss is a not uncommon side effect of COVID infection, and tinnitus a not uncommon side effect of hearing loss. Anything that causes inflammation in the wrong areas can do it, but COVID is the main one right now and why audiologists are busy. There is a steroid treatment that apparently can help if prescribed almost immediately (48 hours?), but it didn't help in a family members case.
by golson_kindmind | 2025-10-19 05:30:21+00:00
A perfectly valid comment, no critique.

The way I see it / choose to live my life, not that it’s the “right” way: I enjoy certain things, like wine, in moderation that may have some detrimental health effects. However, a glass of wine and a nice sunset is something that brings me a lot of joy. I’d argue that a certain degree of “ah, fuck it” is psychologically healthy which can improve overall health.

I also have a bourbon and cigar on Sunday nights, usually paired some Jazz or an old movie. Sometimes I put butter on my bread even though it’s “bad” for my arteries. Let the chips fall where they may.
by dahart | 2025-10-19 05:31:09+00:00
Typing in BASIC programs from magazines… brings back memories. Remember the Mad Magazine that had a program to draw Alfred E. Neumann? Here I just found it: https://meatfighter.com/mad/

That and going to the weird room at the dept. of education across from the library that kept drawers full of floppies and sifting through all the random public domain code & shareware.