skysight-inc/HackerNews huggingface dataset:
>The caller should make this decision explicitly.

Isn't it too low-level? Why not define instead cleanup/recovery through RAII and occasional try/catch for maintaining tricky invariants, and have no need to manually propagate errors?

>`.map_err(Wrapper)?` is way more convenient than catching and throwing a wrapper

If you only wrap exceptions on the API boundary it might be more ergonomic than having to manually propagate errors inside the API implementation and map them anyway.

>you're in the middle of modifying it and currently it doesn't hold its own invariants because you haven't finished restoring those yet

Sometimes it's better to call throwing functions and get needed data before modifying the private data, sometimes it's time to use try/catch. Is it happening often?

>Exceptions make the other error handling patterns too unergonomic

But so does packing valid data and errors together. Imagine you need to call f(h1()) and f(h2()) where h1() and h2() return the same data type for valid data but different types of errors. What do you do?

>the post lacks a concrete example

Yes, having a specific example seems to me to be the best way to discuss design tradeoffs, but you did the second best thing -- you started with declaring your assumptions (exceptions are disguised return values and optimizing ergonomics of passing errors through f(g(x)) is important) with both of which I happen to disagree)
That's nice. But it has nothing to do with what OP said.
For reference, the biggest competitor is Brave, which costs 5 times less ($5/1000 compared to $25/1000).

Can anyone from Kagi help us understand the reason for the difference? All things equal, I’d love to use Kagi but I can’t tell my client that their search costs went up by 500% for no reason.
Auto-RAG
Is this happening because of N Korea troops in Ukraine and people disagreeing about what to do about it?
i have one question, for me emacs have only 1 major flaw (or you can call it drawback) , its slow, some extensions are very very slow , magit for me is the prime example , json-navigator is another

will this make emacs fast , i understand guile is a nicer language than elisp, but if its not significantly faster, this i think will go nowhere

(the second but minor flaw, it need better graphics, nicer ways to represent directory trees or git branches, other than ascii, but if emacs becomes fast, i can live with that)
No, I'm describing the first bullet point of the Outer Space Treaty:

"The exploration and use of outer space shall be carried out for the benefit and in the interests of all countries and shall be the province of all mankind."

Outer space meaning the universe beyond Earth's atmosphere, and Province of all mankind meaning an area of special knowledge, interest, or responsibility belonging to all mankind. Perhaps others don't read it this way, but this is the meaning of my comment.
Photographer Captures Mysterious Blue Light During Avalanche
Perhaps this is just me, but in general I feel like Kagi is holding itself back with its pricing structure. 300 searches a month is not enough for me, and $10/month is too expensive for something I can get 75% of the value of for free elsewhere. I would have adopted it a long time ago if it were $5 a month, or you could pay per search.
I'm not familiar with the situation but reading the article, this sounds very similar to Netanyahu in Isreal, using the excuse of the opposition to stay in power.
When someone declares martial law, that means that they intend to use the military to enforce their rule. At that point the military has been told to take a domestic political role - it wasn't the military's choice.

Of course, the military could refuse. In the abstract, I think that might be ideal. (I don't know enough to say whether that would be ideal in this situation.)
Correct, they tried to make this a narrative happen through the Durham investigation and it failed miserably. Turns out the incoming and former president is deeply intertwined with Russian interests, a throughline of his presidency including his first impeachment
Is there a specific Trump policy you're referring to? It sounds like the reverse to me.

The dems falsely painted him as alternately sympathising with / controlled by Russia. I may have missed it but haven't seen him do likewise.
The Case of SailPoint Built in Admin Accounts: Full Tenant Access Granted
> Why are you pretending this is a binary outcome?

You seem confused. My argument is not at all concerned with outcomes and is not binary in the slightest. My point is clearly spelled out:

> Comparing LLMs to random humans is the wrong methodology.

I’m not saying LLMs are never useful or anything of the sort. What I am saying is that defending LLMs on the basis of “some random undefined human would do the same” is a poor argument which shows a deep misunderstanding of human collaboration.
Nice!! We are working on a higher level library over at https://github.com/gregpr07/browser-use.
Dan Moore: Building Developer-Friendly Authentication Solutions [audio]
This comment is dismissive and needlessly insulting. Calling people crazy is a surefire way to stop them from listening. But I get some amusement from imagining the look on my wife's face if she saw me leaving a vomit-covered rug to go and take some vitamin pills.
Neat stuff!

(The aliasing seems brutal now though with all that detail. Need to figure out how to boost the resolution / do some type of MSAA.)
Prisma ORM migrating from Rust to TypeScript
According to the announcement:

> Prisma’s architecture has historically limited community contributions. Core functionality—such as query parsing, validation, and execution—has been managed by our Rust engine, which has been opaque to our TypeScript-focused community. Expanding capabilities or fixing core issues often fell solely to our team.

> We’re addressing this by migrating Prisma’s core logic from Rust to TypeScript and redesigning the ORM to make customization and extension easier.
for a second i grokked "NWS" as "Not Work Safe", and thought of that website from a long time ago that was like thef-ingweather.com , which gave you a very salty forecast
Someone here convinced me to try Kagi. It's top, 10/10. Good to have good results again.
Yes

See the following:

https://en.m.wikipedia.org/wiki/January_6_United_States_Capi...
>Orwell being so right about governments using the constant threat of a virtual enemy has got to be one of the all time top on the money predictions ever.

The way modern states leverage external threats to justify abusing people or waging their own external wars is fairly parallel to how the less top heavy kingdoms of the middle ages and early modern period used religion as a justification for comparable atrocities.
The whole BBC “news magazine” with multiple themed blogs operation is interesting - they’re toeing a fine line. I think it was spun off into the BBC Worldwide commercial arm from an obscure section from their online news operation.
I don't use or trust Kagi but based on what I know about them from my research, this isn't true and sounds like thinly veiled racism because the founder is Russian.

Edit: I was corrected. The founder is Serbian. My apologies.
I feel like I'd seen absolutely nothing about South Korea in the news for a long time, and then suddenly woke up to this, with zero context.

Do folks have any recommendations for how to keep up with global news at a high level so that you're not completely clueless when something like this happens? Like I mean some sort of "international edition" of an aggregator like Google News, I guess.
How is it that Kagi and Brave seem to have working micropayment systems but such are not implemented everywhere on the web so everyone who provides value can receive compensation?
Only if there is no policing of it. Natural preservation from mankind's industry is possible. It's quite a depressing thought that anything belonging to humanity is doomed.
https://privsec.dev/posts/android/banking-applications-compa...

Seems like some banking apps are working. I haven't personally tried this though.
yeah but now i have to trust some random magnet link and hope it's not gonna drop some sort of rootkit on me. and yeah okay there are ways around that like using an old laptop or heavily sandbox'd VM.

but now i'm not just snagging a file, i'm creating an entire workflow. i'll just pay for the actual, clean binary
Any ideas why people are relying on distro packaged Rust for development instead of rustup? For Rust it feels weird making development choices around several year old versions of the language.
I interpreted it as being Trumpian to perform a coup in an otherwise stable democracy. But YMMV on interpretation
Previous attempts at guile-emacs weren't faster: fixing the impedance mismatch between elisp and guile ate all the speedup that guile would bring.

Also as a significant change since the last attempt, elisp got a proper native compiler.
In this case you're probably better off thinking of these things in roughly logarithmic terms rather than absolute. By the time you're up to 20,000 servers, you are going to have roughly the same issues to solve as a 10,000 server install and a 30,000 server install. In absolute terms there may be VMWare installations that seem much bigger, but in logarithmic terms there aren't that many more classes above them, and they get rarified quickly. The same ways that you're telling this customer to get stuffed are going to be affecting even the bigger guys in a way that you can't necessarily compare the experience of this customer to the "10 VMs on one server" customers. It's risky to do that. I'm not sure there's as much differentiation in the market to be exploited as Broadcom thinks. Even their larger customers are not just going to sit there and take it... they're just going to move more slowly. But at that scale, VM migrations have a very natural granularity to them; you move them one at a time. You don't need to drop VMWare next quarter; you can just begin your migration project and move away at a pace of your choosing.

But then again, Broadcom may well be explicitly viewing this internally as "we no longer have a competitive product, there is either no way to differentiate it again or we're not willing or able to invest in what it would take, and so the game is just to milk all the money we can out of this", in which case this is pretty close to what I'd expect to see. Where I personally sit in their customer base now, VMs are a commodity and I've got no reason to pay for them anymore. That's been true for a while. I'm speaking here just as A Guy, not as an employee of anyone, but I would expect that this reality has been slowly but surely crawling up the market from where I sit at the bottom.

(This is just discussion, not "disagreement".)
"AI Bubble Sort" surely?
Welcome to 2024, where we somehow managed to fuck up society so hard that racial slurs are "based" and funny.
I'd read things written ~1880, which was the last time economic concentration in the US was generally recognized as toxic.

Different technologies and world economy but same underlying issue: concentration of capital being leveraged to artificially protect profit from competition.
I use a private submodule (hosted on my own infra) for the inputs, which addresses point 1. But I get where you're coming from.
I'm very good at SQL. I still use LLMs to write queries for me on a daily basis because they are faster at it than I am, and I can very quickly review their work to check that they didn't make any mistakes.

Same applies for JavaScript and Python and Bash and AppleScript and Go and jq and dozens of other programming languages.

If you're going to use LLMs as a productivity boost you need to get good at quickly verifying that they've done the right thing. Effectively that means investing more in QA skills and habits, which is generally valuable anyway.
But % “decrease” is just as bad as percent “increase” that OP is railing against.

Whereas the inverse of 3x is (1/3)x and still far clearer (three times the size and one third the size).

Meanwhile 3x “smaller” is the inverse of 3x “bigger”, not 300% “increase”, which is mathematically different. The adjectives break our brains. Much easier to comprehend if we don’t use them, using “the size” instead.
Since I last checked, the API is still in beta. One major difference is that it's open to business clients, where before, it was invite only.

I wonder what it would take to use Kagi together with something like SearXNG: https://github.com/searxng/searxng
It's frankly nuts that we don't make preventative medicine for transmissable diseases free in the rich world. It's so obviously in the collective interest to reduce prevalence.
Arthur Anderson.
Possibly all lisp combined!
Well, I would guess the knowledge is burned into the mind of the students?
This conversation we are having right now, and the other arguments in other comments, is itself the evidence that you are not correct, or if you prefer, correct enough.
Elon Musk's $56B Tesla pay package rejected again by US judge
There is the textbook "Computational Complexity: A Modern
Approach" by Arora and Barak with a freely accessible draft:

https://theory.cs.princeton.edu/complexity/book.pdf
It would allow using any language that runs on the Guile VM. Guile has a compiler tower model where you define languages and their path towards being lowered to bytecode. The main language, Scheme, lowers to the Tree-IL language (high-level intermediate representation), then to the CPS language (low-level IR), and finally to bytecode. Elisp lowers to Tree-IL, which means from there it takes the same path as Scheme does to reach bytecode, so it gets to benefit from all the performance optimizations happening in Tree-IL (like partial evaluation) and CPS (which are numerous, like common subexpression elimination, contification, dead code elimination, etc.) It's a pretty neat system where all these different languages can intermingle in a pleasing way.
The UK government doesn't mandate units for reporting your own weight. The examples listed are required by law.
..because it reinforces what Wall St. wants to hear.
Star Wars, Harry Potter Trivia:) please try my new game
You are not alone. Even South Koreans are clueless.
Compile_commands.json Gallery
If you've ever tried to use any Clang-based tooling such as clangd, ccls, clang-tidy, include-what-you-use and many others, you probably had to figure out yourself how to generate the compilation database within your setup.

This post describes my attempt to generate compile_commands.json database from as many C/C++ build systems as possible (I've managed 17 + plugins). For each build system you can find steps how to setup the same reference Hello World C++17 project, generate the compile_commands.json and verify whether it works with clang-tidy and discusses issues (if any) and how to resolve them.

The list of build systems covered in the post include: B2, Bazel, Buck2, build2, CMake, Clang++, FASTBuild, Make, Meson Build, MSVC, Ninja, Premake, Qbs, SCons, Waf, XCode and xmake.
I mean, it is supposed to be verbose for descriptive clarity.
Worst case, South Korea starts a war with North Korea so the president can cling to power.
Not just link in France. France is in the midst of a government fall, but this is something built into how they do democracy and so a new one is expected to form in a few months on the backs of their democratic process.

This is instead a rejection of the democratic process. I don't know enough about SK's internals to say if the democratic process is already dead because of corruption (as the leader claims), or if the leader is trying to kill the process using corruption as a scape goat - but everyone should strongly lean towards the later.
Also the British, we're metric on paper for most things but in practice we use both systems interchangeably for a lot of things. In a few cases like the roads and draught beer imperial units are mandated.
Indicators.

Little flashing orange/yellow lights that give other road users a hint of what the driver intends.

If the light closest to you on the car you're looking at is on, they're probably going to cross your path, and with roundabouts, you ALWAYS give way to the right.

Each one of those junctions is a mandatory "Give Way" so it's pretty easy so just scan right and if there's nothing there, proceed.

The first time I drove a magic roundabout (in the 90s) I was a fairly new driver, not in my own city, in a pretty busy part of the day.

Not overthinking it helped. Treat each mini roundabout like a new junction; watch for the road positioning, 'head on a swivel' for the usual last second lane changes from unprepared drivers.

You're right in what you say about British drivers being mostly prepared to give way to a mistake. People generally don't want to foul up their day by having an RTA. There are hotheads though, and bullies. Being prepared to let these idiots do their thing without antagonising them is essential to incident free motoring.

I'm from York, in the north of England. It's a tourist city where people get lost and confused easily. Just letting them merge and figure it out is better for your stress level than leaning on the horn and barging through the gap they're trying to get into, plus it helps traffic stay moving. That one idiot who can't read signs and the paint on the road will hold up a whole junction if someone doesn't let them in, so just do it for everyone.

When I travel south it's observable how the attitudes change. More expectation that a gap will be filled quickly, rather than hesitantly, more use of the horn, more amber gambling.

It dawned on me a long time ago that at a junction, it helps the whole traffic system flow if each driver on the main road let one driver join in front of them.
Frankly, reading through that discussion, it doesn't seem like it's actually being seriously considered by them. It's just being advocated for by some users with them explaining why it's not really realistic to introduce.
Likewise. It’s a wonderful QoL improvement for a few bucks a month.

I’ve been using it for about a year and Google makes me wince now, in much the same way as using a browser without an ad blocker. Plenty of people do that every day just fine, but I’m glad I don’t have to.
This doesn’t surprise me. The customer in this case is in the hosting business. They are likely fairly expert at infrastructure and devops and are operating in a super competitive, commoditized, price-sensitive corner of the market. Broadcom probably always expected to churn customers like that. But they knew that for every customer like that, there would be 3 or more Fortune-500 type companies that don’t want to risk any disruption and have big IT budgets that they can divert into covering the increase if they have to. They might even make plans to gradually move away over a few year period, but if they are charging 10x more than before, the profit they make in the next couple years will more than make up for it.
1. Very low trust in politicians after it was revealed former president Park Geun-hye was secretly a crypto-Christian cult member despite claiming to be atheist.

2. South Korea has a bizarre large-scale "gender war" going on that extents into mainstream society. Imagine the Western online MRA/redpill/incel vs. radfem circles but as core identities in national politics.

For some reason a high-trust society has decided to become an ultra-low-trust society where trust is being eradicated all the way down to the nuclear family.
The latest release is almost 3 years ago, but the repo has commits a month ago. So I guess it depends on your definition of "alive". As "stable" software, I'm fine with it not having a ton of active development. It's been a real workhorse for me, I've got it running on 2 clusters of 6 physical machines each (1.4TB total RAM, 50TB disc, each).

~6 years ago I went to a local Dell dog and pony show where someone at the next table was poo-pooing on "those greybeards that run Debian and ganeti" instead of VMWare. But, this shit works...
> however they left it on US soil.

No they didn't! :-)

The soil they left it on became US soil much later.
Has anyone tried its suggestion API? I've been looking for a web search suggestion API that is free on a low quota for a long time
This is a parody apparently

https://bsky.app/profile/molly.wiki/post/3lcdqpash6q2a
It says "most", not all.

This seems like evidence of an interesting new phenomenon to me, as the guidelines specify.
People with something valuable to trade don't have dirt aired in public -- they just barter changing their behavior on certain matters into everything being kept quiet.

Consequently, if anyone does have skeletons in their closet, they'll just suddenly decide to do things more favorable to those who could have power over them.
I've found the same. I've been interested in smart homes stuff for 10+ years. My dad had z-wave in his beach home 15 years ago (not exactly an early adopter, but it was pre-HomeKit and pre-influx of cheap wifi devices).

Between flaky software/firmware, fear of network security, device incompatibilities, and the slow but steady enshitification of all the things, the industry has been a real let down.

I have a Smartthings hub, 4 z-wave switches, 2 z-wave wall warts, a handful of Sonos speaker (pre-voice assistant models), 2 HomePod Minis, one old Echo mini, and an Apple TV.

The Sonos and Echo pre-date HomeKit. The Echo only exists to add voice control to Smartthings and Sonos. "Alexa, play music in the living room" "Alexa, turn on the outside lights". Sadly, Sonos's software has been on a downward spiral for a few years now. The latest iOS app is less intuitive and reliable than the previous. And my wife's iPhone 16 Pro wouldn't connect to the network for months - I eventually had to shut it all down, hard reset everything, and rebuild the Sonos network. I'm done with them.

The Apple TV was bought for TV (duh), but serves as the Homekit base station. The HomePod Minis replaced a couple of Sonos in our bedroom (see above). But, Spotify doesn't play natively on the HomePod because Spotify and Apple seem to be in a state of corporate Cold War. So, that kinda sucks.

I'd love to add a few more light switches, but I'm reluctant to add any more Z-wave since it doesn't talk to Homekit (without rolling some sort of 3rd party bridge, which means adding another device to my network and managing it manually myself). So, I'm kind of stuck with what I have until I find the gumption to replace it all with Caseta or similar.

It's all a big old mess. But at least the shitty ecosystem has kept the house relatively uncomplicated. My wife manages to use all the things without much trouble. So I guess that's a plus.
And it’s always the others who are doing it. Our government would never. I mean, they did, but that was at least… dozens of years ago. And got forcibly declassified. They would never today. I guess. :-)
If you haven't already, you should check out Daniel Dennett's "From Bacteria to Bach and Back". I think you'll be susceptible to "catching" a lot of the ideas in there :)
never thought i'd support bernie ecclestone in anything, but it's currently just stupid F1 drama bullshit every month. constant noise means i dgaf 99% of the time. bernie was right in his more limited marketing approaches.
I dunno, I've seen more and more people referencing the crash bugs in the latest gens and how Intel lied about it through their teeth. And Intel having lost to Apple on the CPU front, never having caught up to Nvidia on the GPU front, and basically just not doing anything for the last decade certainly hasn't helped their reputation.

Let them die. Maybe we'd actually see some new competition?
I use Reuters to keep a non-US eye on the news. I didn't see this coming from there either, though...
Compare it to a bashism like

find . -name '*.py' | sed 's/.*/"&"/' | xargs wc -l

But instead of using | to tie the different functions together you're using . and the order is reversed.
Few vendors attract the fervor that network dudes carry for Cisco. It’s a weird and unique phenomenon.
Martial law being declared in a developed democracy is sufficiently unusual that it works for me.