skysight-inc/HackerNews huggingface dataset:
> I miss early return dearly, and understand why it isn’t a thing (except if you have a MonadZero at hand) but I know it’s a syntactic transformation that won’t make it in.

Early return is mandatory for readability sometimes. I suggest using ExceptT for this: https://www.stackage.org/haddock/lts-21.8/mtl-2.2.2/Control-....

You don’t even have to expose ExceptT in your interface; you can just use it internally for early return and have your function return an Either.
We found the excessive amount of poorly designed sensors and monitors also forced her to be on her back. And significantly limited movement
I would worry that the baby would fling out randomly and get a serious injury.

And, don't forget that a lot of women poop during delivery. I wouldn't want to get hit by any of that.
What are you into? Language, technology, purpose, provenance, etc?
In the US, both east and west coast, my wife was never told anything like this. In both scenarios, the OBGYN doctor group had a rotation of doctors on call. You likely will not get your specific doctor, but my wife was seen by every doctor in the OBGYN group over the course of the pregnancy.

Lots of resources were provided for vaginal childbirth, and the hospital had dedicated birthing suites with hot tubs and yoga balls and all sorts of equipment you could use. There was zero pressure once admitted too to take medication.

However, the fetal heartbeat monitor or whatever they strap to the mom is annoying as hell because it slips off constantly since it is positioned on a rounded belly and a nurse constantly having to come in to adjust it because I presume the hospital is covering its ass from liability.
Interesting. I use Haskell professionally and this article doesn't touch on the most fundamental problem I have with Haskell at all: Function coloring. Basically every monad transformer is different. Just calling basic function from somewhere else can involve lifting. Refactoring is a total pain. Oh you just want to log here but your concrete monad doesn't have a logger? Too bad...

I understand an effect system alleviate this somewhat, so I hope to try this in the future. But holy shit is working with monads annoying.
I'm sorry these are videos, but your question made me think of these.

If you're looking for programming inspiration I love these videos

Jon Bentley - Three Beautiful Quicksorts
https://www.youtube.com/watch?v=aMnn0Jq0J-E

Bret Victor - Inventing on Principle
https://www.youtube.com/watch?v=PUv66718DII
That's simply because I talk about my personal experience, and there's only so many languages you can experience professionally over a few years.
Equity variability is why TC always uses the price of stock at offer unless you're trying to brag on the internet.
Oreo cookies are 160 calories per serving but double stuff Oreo cookies are only 150 calories per serving. How is this possible? The serving size for regular Oreo cookies is 3 cookies, for double stuff it is 2. Tricky.
Kubeflow Joined CNCF, ML on K8s
This is a nice idea to check if any dependencies are there on the table.
The article is very confused in general about multidimensional arrays (which are really just arrays of array references in Java). It’s badly written and IMO doesn’t deserve to be on the HN front page.

The author seems to have expectations that Java multidimensional arrays violate, and seems to assume the reader would also have those expectations, but they just seem confused to me.

Except for TFA’s mention of the bytecode instructions and trailing comma, the classic tutorial article is much better: https://docs.oracle.com/javase/tutorial/java/nutsandbolts/ar...
I'm an F tier programmer but I think the Simpson's Hit and Run game has some really great code. Its easy to read and well organized in my opinion.

https://github.com/Svxy/The-Simpsons-Hit-and-Run/tree/eb4b34...
Give up on “good code”. Its pursuit is how junior devs pesters senior devs based on a delusion that such a thing is possible.

Good code is working code, code that pays the bills. Focus instead on writing code you can throw away easily, code that you are wholly unattached to and is isolated enough that rewriting it won’t cost absurd hours.
Hashtags are also there.
There is not even one that would have half that.
Ok, looking into it.
>>> Now imagine a cyberpunk version of Frankenstein

https://en.wikipedia.org/wiki/Astrochicken
TOFTS

Too old for this shit.

(yes, that's a personal problem and doesn't relate to the merit of the technology)
I won't deliberately use AI for programming
I was about to say this.

To folks starting out with Elixir, I suggest reading its standard library. From my experience, there was this aha moment when I started reading `Enum` module.

Also, Elixir's documentation is one of the best out there.
Probably not, if the releases
come from scene groups they follow the standard.
The way you wrote this resonates with me. I've noticed the "pressure," internally sourced or not, that comes with building a persona in a community of peers you (for the most part) respect.

It's good in some ways because it drives behavior I would consider healthy in a community--thoughtfully reviewing a post before hitting 'reply,' respectful discourse, and thorough fact-checking.

But I also find that same pressure convincing me not to post, especially if I'm a novice in an area or need help. I understand this is egotistical in many ways, and managing it by "staying anonymous via a new stage name" is a really interesting idea.
So much this. Good code is code that delivers business value.
What does a write in this context mean? I still need to execute the actual update clause to change the relevant data.

EDIT: Since you control object auditing by granting/revoking permissions to the relevant relations I don't think it's possible to have another category there since Postgres itself doesn't differentiate between UPDATE and SELECT FOR UPDATE on permission level
Then tell me, what is new about starlink? You just refuted it without naming one thing.

They did not make a profit. That was a speculative article and nobody knows how they're accounting for starlink costs.
It the difference between length and indexing. The new int[0] is providing the 0 as length. Mostly when seeing the construct arr[i] you might think of ‘i’ as the index.
Oracle being Oracle. Don't use Oracle products!
That's not how VC investments work
More than 200 ships are in a traffic jam outside the Panama Canal
I don't know why this oversimplified rethoric is so popular. No, nobody is dumping free money into the stock market. What happens is that the money is taking a very indirect route through the economy and then it slowly ends up with rich people.

I swear Austrian economists have rotten people's brains with their cantillon effect rethoric. They never described the mechanism that somehow wires the money straight to the bank accounts of the rich, they simply assume that this happens without any evidence.

What really happens is this: Lindner introduces a so called vehicle fuel rebate. This fuel rebate lowers the cost of fuel by 35 cents. Gas stations pass some of the rebate but not all of it onto the customer. If the price was kept identical, then demand wouldn't change but if the company lowers the price, there will be additional demand and it will end up with more profits overall. In other words, some companies have a degree of pricing power that they use to increase their profit margins.

When the money supply grows, even if it was paid out fairly to everyone as a UBI, it would slowly end up in the hands of companies with pricing power and this pricing power has absolutely nothing to do with the money that is being used. A gold standard or Bitcoin wouldn't save you from this. It will just mean they have all the Bitcoins or all the gold.

Edit: I would also mention that in a zero lower bound system, it is impossible to pay off all debts without debt deflation which in turn means that you would have to design your monetary system around the expectation that not all debts will get paid and that you will have to do regular debt jubilees. The real world isn't a permanent competitive equilibrium.
I think it is also about seeing the most difficult cases and having them stick in your memory as a med student. I have friends who practice medicine and they show the same behavior even when there is no monetary incentive at any stage for them. They do this even for their own parents and kids.
Off-topic: When I open that page, my email address shows up in the text input for subscribing. How do they know my email? I don't remember ever going on that website.
https://qntm.org/clean has a great discussion of all the things that are wrong with Clean Code.
Thank you. I find it absurd that it is viewed as a coup attempt when it seems clearly targeting Gerasimov and Shoigu.

Nevertheless, Putin was clearly not swayed.
Personally I have noticed "File explorer apnea". When I need to navigate to a file or folder very deep into the hierarchy, starting from the root. I know exactly where it is but still need stepping into the hierarchy of folders, clicking on the right folder at each step as fast as possible.
All I know about Ruby is that I always seem to download three versions of documentation
> fills the parent folder with countless files

macOS unarchivers don't have that issue. Extractions always create a single item: either extract the single item in the archive or create a folder with the archives’s name before extracting.

two-files.zip creates two-files/a.txt and two-files/b.txt

one-file.zip creates a.txt
I for one found the thread very interesting. Why must HN always be so negative?
Show HN: AI-Driven Personalization in Direct Email Marketing
Separately, if you won’t be dissuaded from this pursuit, check out redis.
There are different aspects of how an LLM can be used; allowing the user free-input of English is clearly one way that those sorts of interfaces can be significantly improved.
FWIW, the thing which really sucks about cargo is how it handles cross-compilation. Most "professional" workflows are always cross-compilation: even if you are technically on Linux already you don't want to build for the exact version you have so you create a sysroot and cross compile towards it... and cargo is somehow so bad at this that increasingly large numbers of projects are being forced to turn on a environment variable that has in the name of the variable DO_NOT_USE to shift cargo stable into accepting nightly flags so we can activate a patch that they begrudgingly committed to fix the behavior of targets to not get infected by host configuration if they happen to look similar. The goal was that this would eventually become the default but it's been years now and the related bugs are just stacking up. As a package manager I'm sure it's great... as a build system? Not so much.

The situation frankly really just sucks: as far as I am concerned--from the shear number of bugs I have run into trying to do what should be table-stakes, and which even autoconf handles trivially: doing deterministic builds across platforms of a library to be embedded into another language's build system--cargo optimizes for extremely simple use cases (hell: ones so simple they lead to the wrong mental model of compiling in the first place! like, people seem to seriously think you need to compile for old systems ON old systems using old tools as cross-compilation is somehow treated as esoteric) while throwing the people who know what they are doing under the bus, which isn't at all how one should build tooling; instead, the goal should be to make extremely difficult things easier to pull off, even if it means the simple things have to be a bit harder, as your overall workflow is then easier to manage and you can better grow with your tooling rather than having to eventually throw it away entirely.
The TLAB is the Thread Local Allocation Buffer.

In short and a bit simplified, normally when you allocate memory, the allocator needs to synchronize between threads because RAM is a shared resource. This means that a thread that allocates a lot can disrupt the performance of other threads, among other weird effects. But there's a small buffer called the TLAB owned by each thread where this isn't true: Allocation in the TLAB doesn't require synchronization. The TLAB makes allocating small ephemeral objects much faster.
I disagree with you, simply for the fact that artists have been learning from one another for thousands of years.

We can see a clear timeline of art and it’s progression throughout human history, and it’s often clear how a later work took inspiration from an earlier period.

Art school teaches techniques and methods pioneered by earlier artists, for the express purpose of their students to know how to incorporate them into their own original work.

Yet, no one is arguing that Van Gogh’s descendants should be paid a small royalty anytime a variation of on of his painting is produced, or even just when a painting in the style of one of his is produced.

Were all visual artwork to disappear from the world and collective human memory today, then the first new pieces produced by artists would look dramatically different - and likely much worse - than they do today.

What AI is doing is no different. Perhaps faster and on a larger scale than how humans learn from one another, but principally it’s the same.
> We hope these stories will take over the internet, impact public policy, and expose bad actors.

I think one of the main problems with modern journalism is that it has ventured too far into activism. Journalism is there to report on politics, not become a political actor.

I think a mistake that has been made is paywalls - if you don't get your story out there, somebody else will with their agenda on top. Make your content as shareable as possible and 1:X consumers you can convert into a customer. Once you have more users in the comments section, you could prioritize paid users.

You have a techy edge anyway, assume everybody runs ad blockers and can use archive links. Believe it or not, hosting images of ads bypasses ad blockers, protects privacy and cuts out the likes of Google (see top of EEVBlog [1]). Once you have a niche audience you can advertise a niche product quite effectively.

Good luck!

[1] https://www.eevblog.com/
>Giving birth is similar to the act of vomiting in the sense that you don't have to do anything, it happens to you when the circumstances call for it.

Is it? I imagine the mortality/morbidity rate for women before modern medical interventions during childbirth was much higher.

My wife had to have her amniotic sac manually broken by the doctor after 12 hours of labor to resume her dilation.
I applaud all that with the possible exception of the routine blood draws. Not for childbirth but both my wife and I have been in the hospital and appreciated the monitoring. Things can go south quickly on many medical issues, wouldn't a timely blood test catch things early?
Tangentially related but I embarrassingly recently made the off-by-two connection between the later English month names and their numbers (September, October, November, December). I think the discrepancy is because of a calendar
change at some point?
It means that the `FOR UPDATE` part in `SELECT ... FOR UPDATE` causes a disk write, because it locks that row. It bumps the MVCC metadata, the transaction ID on the tuple I think(?) in order to prevent other transactions from modifying it. While the data hasn't actually changed, the availability of that data has changed, so I think it's reasonable to consider that a write from the database perspective.

Although FWIW, I do completely understand your use-case of trying to quieten down logs for a queue!
> JavaScriptCore doesn't have WebAssembly enabled on Windows yet.

I got JavaScriptCore compiling with WebAssembly enabled yesterday, but I don't know how long it'll take to get it to actually work.

The bigger problem for Bun is that JavaScriptCore doesn't have the FTL JIT enabled on Windows [1]. It's going to be much slower than other platforms without that final tier of JIT, shows up pretty dramatically on benchmarks.

[1] https://bugs.webkit.org/show_bug.cgi?id=145366
I've noticed that humming or singing along to music while sitting at a computer is a fairly good solution for forcing myself to breathe.
Atlas: Declarative Schemas for SQL Databases
Language is a product of history and does not necessarily have a logical explanation. The answer is "because" and the theory is usually that numbers bigger than the ones we use our fingers to count were not usually dealt with in pre-the literate societies from which our languages derive. That seems reasonable, since without writing it is difficult to keep track of large numbers. But it's just a theory!
I'll shoot with two examples:

(Tooting my own horn) A Fitbit watchface that I wrote a few years back: https://github.com/GWBasic/Binaryish-Clock

An event/threading library for C#. I keep a fork in my Github because the original source was archived: https://github.com/GWBasic/retlang

Note that both examples are "functionally obsolete." The Fitbit studio environment is deprecated in favor of Android Watch; and if you're using C#, you can should be using Tasks to get similar functionality to Retlang.
Also, good code is code that respect constraints and objectives from test suites
As a student it’s useful if only because professors don’t freak out if you say you got your answer from Google, vs. saying you got it from ChatGPT.
Sshbbs?

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

Ssh chat?
https://news.ycombinator.com/item?id=8743374

Ssh tron?
https://news.ycombinator.com/item?id=11234702

Devzat?
https://news.ycombinator.com/item?id=30688691

Sshtalk?
https://news.ycombinator.com/item?id=15829206
tldr: mounted a volume instead of copying the application's files into the container...
"science denier" sounds like it's language the flat earth folk et al use, coined (I'd imagine) to speak to them in their language, or by themselves as a positive trait?
For schema matching, we leverage embeddings. We create embeddings for the tables within the database and generate one for the natural language question provided. We then calculate the cosine similarity between these embeddings to determine a relevance score. This score is then forwarded to the agent, which uses it to identify the pertinent tables.

To minimize the token count used by Large Language Models (LLMs), we've designed our tools to handle most of the computational work internally. Consequently, only a small number of tokens are transmitted to the agent. The agent focuses solely on decision-making, while the tools handle the heavy lifting and similarity assessments.
I have used both SQL and NoSQL databases in the cloud. My sense of the situation at the moment is that some NoSQL databases have begun to focus on AI and LLM applications, apparently in order to provide scalable storage to these applications, which can be used for things like the persistence of state across many interactions.

However, there are always going to be legions of use cases for traditional database use, and the question continues to be, should everything that could need to scale massively use a NoSQL backend, or can some applications get by with something that looks like a traditional SQL architecture in 99+% of cases?

I think that many applications could be constructed with a NoSQL database as the backend for applications that are primarily reading content, while the applications that require the greatest access to CRUD functionality could interact with a SQL database using connection pooling to minimize resource utilization or latency at scale.

With this in mind, I could see applications where editing the backend is done in a SQL-based version of the database, while rendering content from the backend is done against a NoSQL version of the same database. There would probably be some momentary differences between the two, but the interface between the SQL and NoSQL version of the database could be a pipeline and therefore, could be optimized.
Taken at face value, this advice is probably just as bad as the opposite ("write perfect extensible modular code with 100% documentation and test coverage"). There is a lot of room in between where the enlightened developer can find happiness.
The sqlite code base is really well done. Lots of documentation.

https://github.com/sqlite/sqlite
Implication is that time passed more slowly at that time in the universe.

Or that light travelled more slowly at that time in the universe. I don't think we have conclusively proven c to be a constant, right? Or is this a case of "c and t are so inextricably linked, it doesn't matter in practice which one changes, the result is effectively the same"?
Lemon markets can be fixed by regulation, because regulation effectively sets a floor to cheating.

And it's cheating (or buyer perception of cheating) that increases the discount the lemon market takes to true value, which leads to lemons dominating non-lemons in that market.

The more you can do to keep lemons out of a market via regulation, the less of a discount the buyer will demand relative to true value.
My partner stops breathing while deep into computer use. I just nudge them and they start breathing again. The watch could just vibrate and I'm sure it would help.
Just had a baby at a hospital (wish we had had nearby birthing centers).

Ideally, the wife is in a focused state of mind with as little anxiety as possible (and as much rest as possible).

We had previous births before at this hospital, but with midwives who were banned during Covid (they aren’t as profitable) - so not this time. Without the midwives there to block unnecessary questions, we were bombarded with so many questions and suggestions for interventions we weren’t interested in. Very distracting (everyone should count how many questions someone about to be in labor has to answer - even those with detailed birthing plan documents).

The strangest was my wife being woken at 3AM by someone asking for two more blood draws because they wanted to be extra certain they know her blood type. With our history at the hospital (multiple births, growing up in the town), this was probably going to be her 10th draw in history to answer that question.

Wide politely declines and the technician is shocked.

That’s when I realized that there is probably some actuary in Chicago or somewhere whose excel sheet says the risk of the wrong transfusion goes down by 0.02% if you draw blood before labor. Unfortunately the excel sheet doesn’t optimize for anything else.

My takeaway was that we need to change from saying “this reduces risk” to something with analogies. Risk reduction along one axis at the expense of all others seems to be a critical failure of the current western system.

“Drawing blood now is like wearing a life vest while you are driving a car next to a river” (or is it like BASE jumping without an instructor?)
What's hole area? Windows and exterior doors?
I would amend this just to “delivers value”.
The DOJ itself is framing it as Insider Trading, even when that's not what they charged him with. It's disingenuous and fear mongering.
Is Computer Hacking a Crime? (1989) [pdf]
Wut?

You dont need multi year projects

Just show PoCs of complex stuff

Simple distributed apps? Compilers? Uefi drivers? Or small Libraries?
I have to agree with the parent that on an intuitive level a single-sentence text message ending in a period conveys something pretty strongly. It does a couple things to me: indicating finality, turning an informal comment into a formalized sentence, and just feeling unnecessary thus prompting analysis. furthermore from a grammar perspective most messages are not proper sentences e.g. "yup" or "on my way". In the end we have to adapt our writing to the context, and texting has much more tonal analysis put on fewer symbols —
FYI, be careful, see my other comments in reply but I think this is working correctly, and due to the fact that a `SELECT ... FOR UPDATE` is a write.
The vast majority of people don't care about truthfulness which ChatGPT doesn't care about anyway. Entertainment is a way bigger driver of usage than utility.