MurphyA/hacker-news huggingface dataset:
by pseudocomposer | 2025-04-29 13:53:49+00:00
Couldn't you just do this with a regular for loop and a few datatypes/functions? (This pseudocode is an Elm/Haskell/Rust/TypeScript-inspired abomination, but pretty portable to any language...)

type Node = { value: Any, left: Node, right: Node } type Direction = Left | Right type TreePosition = { root: Node, currentNode: Node = root, position: Direction[] = [] } # Implementation left as an exercise but should be obvious and run in O(1), I believe. Returns Nothing when we're out of nodes. function nextPosition(position: TreePosition): Option<TreePosition> # The tree you want to iterate through const myTree: Node = ... # The loop for(let position: TreePosition? = TreePosition(root: myTree); position != Nothing; position = nextPosition(position) { node = position!.currentNode # Your loop code }

I'd argue this doesn't belong as a language-level feature, but maybe an API/stdlib-level feature.
by ceejayoz | 2025-04-29 13:53:58+00:00
Supply and demand can both be impacted by perception, which can be tweaked by humans.

If tariffs increase the wholesale cost of an item by $1, but you can make consumers think $5 retail is what the increase should be, that’s an extra $4 in your pocket.

Economics education doesn’t stop at 101 for a good reason. “Supply and demand” is like “veins carry deoxygenated blood” - it’s largely true, but further learning reveals complexity.
by davidvgilmore | 2025-04-29 13:53:58+00:00
named Memex because:

(1) We are fans of the ethos of https://www.theatlantic.com/magazine/archive/1945/07/as-we-m...

(2) We are most excited about helping to accelerate technical progress by making science and engineering more productive. While we are not the same thing as a Memex, it was designed to help improve the productivity of science.
by bhouston | 2025-04-29 13:54:20+00:00
My suspicion is that the use of plastics with food is also the main contributor to the fertility crisis (declining sperm counts, etc) we have. Wouldn't be surprised that this then also contributes, through sperm quality degradation, to the increase in autism.

And it isn't just my suspicion, see links below, but we haven't yet forcefully moved away from plastics around food. If RF Kennedy could do one thing, I would ask him to focus on plastics and food, rather than the more nutty stuff.

Side bonus: it may help raise the low fertility rate that Trump and Elon are so concerned about as well.

https://cancer.ca/en/cancer-information/reduce-your-risk/myt...

https://pmc.ncbi.nlm.nih.gov/articles/PMC9134445/

https://pubmed.ncbi.nlm.nih.gov/35134716/
by bluedino | 2025-04-29 13:54:42+00:00
Machines were often so slow back then, 30 second logins were 'normal' (or maybe even quick), especially once you load a bunch of crap like AV and other enterprise crap.

If I had dollar for every minute of my life I spent troubleshooting random group policy quirks during my previous life as a sysadmin...

> Personally, I use a solid color background. It was the default in Windows 95,¹ and I’ve stuck with that bluish-green background color ever since.

My thoughts exactly, but I think it goes back to the Mac LC's we used in a school computer lab, and the palette of colors you could have with 16-bit graphics was so vast compared to the 16 color PC's I was used to.

Plus, you always have so much stuff open you're never going to see your wallpaper anyway. That's what screensaver are (were) for that rotate through a folder full of images.
by babyent | 2025-04-29 13:54:46+00:00
30 minutes is a lot between just the Bay Area when the entire flight between LA and SF takes 90 minutes.

Not to mention, you have to get to and from the train station or airport.

For example from where I live in SF, it takes about 20 minutes (depending on traffic) to get to King St station. It takes about 30 minutes to get to SFO. If I was taking MUNI to king street, looking at like 40+ minutes plus walking.

I’m a seasoned traveler so I’ll get there JIT for my flight.

In LA, if I’m going to El Segundo or Santa Monica, it’s like 10-30 minutes uber. If I was going to Pasadena or La Canada I’d fly to Burbank.

So yes the train is a silly idea to start with, unless it would be direct from heart of LA to SF, going like 300 mph (it is not). Not to mention once you’re in LA you have to get to your final destination which might take anywhere from 10 minutes to an hour or more. And LA has horrible public transit

It’s far more convenient to fly.
by aurareturn | 2025-04-29 13:54:56+00:00
White House should be furious. This definitely makes the Trump Administration look bad since it's a separate price added onto the final price. There are 180.1 million Amazon Prime US subscribers. This means potentially 180 million Americans will see the tariff effects directly. Not counting total US Amazon shoppers due to lack of numbers.

Edit: people are downvoting me because of the first sentence. All I’m saying is that if I’m the Whitehouse, I’d be furious too. I never said I think the tariffs are a good idea.
by AnimalMuppet | 2025-04-29 13:55:03+00:00
Hostile and political? Probably. It's also telling people the truth about how much Trump's policies are costing them, or at least costing them on those particular purchases.

This is self-defense by Amazon. "Don't blame us that things got more expensive." But yes, it's also political (that's kind of inevitable when politics is the source of the additional cost).
by alabastervlog | 2025-04-29 13:55:14+00:00
I think this is definitely a factor. I've seen companies do some weird shit with work-locations to get those sweet, sweet tax incentives. Think things like moving most of the people in one office across a parking lot to a new building for just a couple months, to meet occupancy targets for tax incentives, before they had enough hires to fill the new building with new people. Terribly disruptive, who knows what it cost, plus did exactly nothing for the spirit of the thing, just a total farce.

Totally believe that things like this are playing a role in RTO decisions. I also think the soft-layoff thing is a major factor, and generally that execs get uncomfortable when workers gain... anything, really, but especially perks of a higher "class" than they're "due".
by mattkevan | 2025-04-29 13:55:26+00:00
I'm sure this is a wonderful project with talented people behind it, and what I'm going to say isn't a criticism of this project in particular.

But. I'm always a little disappointed when I see a project that's Libre[something proprietary]. It's always a wonky copy, where the selling point is that it's a free version of something, rather than a better version of something. The only people who are going to use it are those who care more about the fact that it's free and Libre than they do about a good learning experience [0]. Everyone else will just use Duolingo. And that's fine if the goal is for it to be a programming exercise, but it's a limiting one.

Instead of making a knockoff of Duolingo, which clearly been eaten by the pressure to drive engagement and MAU, why not use time and energy to explore different or more radical ways of online pedagogy free from commercial pressures? It's harder than copying something, but the results could be much more worthwhile. [1]

---

[0] This is why Mastodon will never go mainstream, because it's built by and for people who care more about decentralisation than they do about creating a first-class microblogging experience. The friction points that deter the mainstream are acceptable for the true believers because for them the benefits are worth it.

[1] This is also my problem with Linux desktop environments. The desktop war was won by Microsoft 30 years ago and the desktop died as the primary computing paradigm in 2007. Yet Linux desktops are still fighting the last battle - so much time and effort is poured into them, yet they still don't work right (Wayland is how old now?) and are basically just wonkier versions of macOS or Windows.

Surely that time and effort could be spent on investigating new ways to interact with computers - why is the desktop metaphor still the best we've got, nearly 60 years after it was first invented?
by mbesto | 2025-04-29 13:55:57+00:00
When new technology that seemingly replaces human effort it often doesn't directly replace humans (e.g. businesses don't rush to immediately replace them with the technology). More often than not, these systems are put in place to help scale a business. We've seen this time and time again and AI seems to be no different.

Anecdotal situation - I use ChatGPT daily to rewrite sentences in the client reports I write. I would have traditionally had a marketing person review these and rewrite them, but now AI does it.
by mlnj | 2025-04-29 13:56:03+00:00
>"lay off all the employees first, then figure out how to have AI (or low cost offshore labor) do the work second"

Case in point: Klarna.

2024: "Klarna is All in on AI, Plans to Slash Workforce in Half" https://www.cxtoday.com/crm/klarna-is-all-in-on-ai-plans-to-...

2025: "Klarna CEO “Tremendously Embarrassed” by Salesforce Fallout and Doubts AI Can Replace It" https://www.salesforceben.com/klarna-ceo-tremendously-embarr...
by throwaway7894 | 2025-04-29 13:56:10+00:00
In your example, why would the domestic seller keep their price at $5 if the other option costs $15?

They'll just raise the price of the domestic good to $13 and we will all pay $8 extra on a thing that used to cost $5.

If the price displayed is still $5 but tariffs added at the end, the domestic seller's $13 sticker price will not look attractive to buyers.
by k310 | 2025-04-29 13:56:27+00:00
The constitution needs a more urgent patch.

Gödel's Loophole [0]

> Gödel's Loophole is a supposed "inner contradiction" in the Constitution of the United States which Austrian-American logician, mathematician, and analytic philosopher Kurt Gödel postulated in 1947. The loophole would permit the American democracy to be legally turned into a dictatorship. Gödel told his friend Oskar Morgenstern about the existence of the flaw and Morgenstern told Albert Einstein about it at the time, but Morgenstern, in his recollection of the incident in 1971, never mentioned the exact problem as Gödel saw it. This has led to speculation about the precise nature of what has come to be called "Gödel's Loophole." It has been called "one of the great unsolved problems of constitutional law" by American constitutional law scholar John Nowak

> Since the exact nature of Gödel's Loophole has never been published, what it is, precisely, is not known. In his 2012 paper "Gödel's Loophole" F. E. Guerra-Pujol speculates that the problem involves Article V, which describes the process by which the Constitution can be amended. The loophole is that Article V's procedures can be applied to Article V itself. It can therefore be altered in a "downward" direction, making it easier to alter the article again in the future. So even if, as is now the case, amending the Constitution is difficult to bring about, once Article V is downwardly amended, the next attempt to do so will be easier, and the one after that easier still.[1][2]

> Other writers have speculated that Gödel may have had other aspects of the Constitution in mind as well, including the abuse of gerrymandering, prorogation of Congress, the Electoral College, and the presidential pardon.

My, my, those "other aspects" couldn't possibly be abused. (extreme sarcasm)

[0] https://en.wikipedia.org/wiki/G%C3%B6del%27s_Loophole
by rincebrain | 2025-04-29 13:56:39+00:00
n=small, but I've had multiple friends who did freelance technical writing and copyediting work tell me that the market died when genAI became easily available. Repeat clients no longer interested in their work, and all the new work postings not even really worth the cost even if you tried just handing back unmodified genAI output instantly.

So I find this result improbable, at best, given that I personally know several people who had to scramble to find new ways of earning money when their opportunities dried up with very little warning.
by noname120 | 2025-04-29 13:57:02+00:00
I'm not entirely what you mean with “default map provider” but depending on what you need this may work for you: https://kagi.com/settings?p=redirects

Edit: Ah I suppose that you meant the “Inline Maps”. Unfortunately there doesn't seem to be a way to change the provider, only to enable/disable the feature: https://kagi.com/settings?p=more_search
by Eextra953 | 2025-04-29 13:57:33+00:00
I'm not sure why so many comments think this is a bad idea. I think it's a great idea and should be adopted by all retailers. We already do the same thing with sales tax. Tarriffs are close to sales tax in there effect to consumers so it makes sense to show it up front. It lets customers see just how much more they have to pay due to the, ever changing, tariffs.

Good for Amazon.
by prinny_ | 2025-04-29 13:57:40+00:00
I tried Kagi for 3 months, both for personal and work related queries and honestly I didn't find that many differences with Google. The top results were the same.

There was a time I was interested in finding results from the small web such as personal blogs or local stores and Kagi did indeed provide better results, but I couldn't justify paying a monthly subscription over that.
by hamid_ra | 2025-04-29 13:58:03+00:00
Hey! I just launched YAMCP (pronounced “YAM-C-P”), an open-source CLI that bundles any number of Model Context Protocol (MCP) servers, local or remote, into unified local workspaces for your AI apps.

The problem yamcp intends to solve: Juggling multiple MCP servers across different AI tools means editing different config files and digging through separate log files whenever something breaks.

What it offers: YAMCP lets you create dedicated “YAM” workspaces organized however works best for your work styles, by function (e.g. coding, design, research), by app (Cursor, Claude, GitHub-Copilot), or any custom combination in between and expose them as Yet-Another-MCP. Scan an entire YAM workspace for issues, connect your AI apps to a single gateway, and manage everything from one simple gateway.

Why YAMCP? * Organize your servers locally: Group MCP server by AI application or workflow purpose.

* Scan and Catch errors early: Scan workspaces for misconfigurations before they disrupt your work.

* Single gateway per each workspace: Point all your AI tools at one MCP instead of constantly swapping servers and manage your servers through a single cli environment locally.

* Unified management Add, remove, and update servers with a cli command.

* Centralized logging to debug all servers from one place. Track every request and response across all your MCP connections in one place.

Check out the repo for install steps and examples: https://github.com/hamidra/yamcp

Planning to add server evaluations and an initial security scan to score MCP servers’ reliability and performance.

Would love for you to try it and share what features you’d like to see next!
by coldpie | 2025-04-29 13:59:06+00:00
I mean sure I guess, do whatever you want. I will always have uBo installed and I prefer to have less software on my machine (fewer things to go wrong), so uBo's list plus Firefox's protections is good enough for me.

> if it turns out orgs are not respecting the action, it'll end up in a class action or other legal event eventually

Not a chance.
by toomuchtodo | 2025-04-29 13:59:18+00:00
Neutral behavior is not desired. The admin desires to take unilateral, unchecked action without repercussions, while controlling the narrative. Enact tariffs while publicly stating "everything is fine."

"Why are you making us look bad by sharing the facts of the actions we're taking?" is how you can think of this. Never assume rational and good faith behavior from bad faith actors. Watch what someone does, not what they say. The words are free and meaningless.
by meltyness | 2025-04-29 13:59:22+00:00
For perspective, I'm a novice with algorithm design, I've been grinding leetcode for the past 6 months or so, almost exclusively in Rust. I was bewildered by the same concern since I had initially set out to, not only focus on Rust, but to primarily maximize use of the Iterator construct, since I was not intricately familiar with it. A few months in I discovered that there was an appropriate Iterator construct which accomplishes the same thing.

// Comments for the non-Rust native reader, regarding this Function declaration: // successors is a function that accepts an `Option` container for some Value of type T, called `first` // and a Closure called `succ`, constrained below: pub fn successors<T, F>(first: Option<T>, succ: F) -> Successors<T, F> ⓘ where // `succ` must receive the iterated state, and return the next iterated state F: FnMut(&T) -> Option<T>, // Each time the `next()` function is called on the returned Iterator (a Successors-flavored iterator), // the state of `first` is yielded, and then // `succ` is called to progress // until a `None` type is reported by `succ`

I'm not sure where the concept came from, but it's not dissimilar to the author's implementation, but instead of the ControlFlow enum, it relies simply on the Option enum. I know though, that it was initially built in the Itertools crate as unfold and then upstreamed some time later.

Essentially you use `first` to contain a Queue, Stack, or Level for the different traversals, and define traversal or activities from there.

It's fairly ergonomic in practice, ergonomic enough for Leetcode.

Here's a BFS: https://leetcode.com/problems/course-schedule-iv/solutions/6...

[0] https://doc.rust-lang.org/std/iter/fn.successors.html

[1] https://docs.rs/itertools/latest/itertools/fn.unfold.html
by Workaccount2 | 2025-04-29 13:59:25+00:00
People won't use it. Even with tariffs, stuff is still cheaper than made in usa.

People are going to be pissed that a basic clothes iron now cost $80, but they will not go buy the $225 that is made in texas or wherever. Especially when it is no better, and likely even worse, than the $80 one.
by davidvgilmore | 2025-04-29 13:59:26+00:00
It is an agentic coding tool at its core, so yes - I'd say it's fair to call it a Claude Code alternative.

Regarding the GUI focus: we did that so it's more approachable to both tech folks and people not as accustomed to using a terminal (e.g. PMs, sales engineers, etc.). But a lot of our beta users are devs.

Also, when using its agentic search and data viz capabilities, some users prefer to not do that in the terminal.
by YeGoblynQueenne | 2025-04-29 13:59:29+00:00
Satirical intent aside it's true that the way some ancient writers use particles makes it much harder to read and understand their writings, to me at least. To be clear, I'm a native Greek speaker and I can comfortably read back to at least the Koine Greek of the Gospels. But I've tried Xenophon in particular, who's mentioned in the article and I remember it being hard going, to the point I gave up and continued with the modern Greek translation (I had an edition with the ancient and modern text on opposite pages).

I distinctly remember being very confused about the spray of particles interjected between nouns and verbs, and trying to shut out the noise of the particles to be able to parse a sentence. I probably got a headache.

The problem is that, the meaning of "ενταύθα", "ουν", "ον", "γε", "δε", "ην", etc may be well known if you take them as individual words, but when you string them together they're apparently trying to say ... something. And that something is opaque and incomprehensible, like an ancient joke for which you have no context.
by senko | 2025-04-29 13:59:54+00:00
To me, personally, it's about the use case: searching for a page on the internet (Kagi) or researching a particular question or topic (Perplexity).

If I know what info I want (say, that particular blog post that mentioned topic XYZ, or the web page for a car dealership, or docs for something where the site search is worse than a web search), using Kagi is quicker and easier.

Edit to add: I just noticed I always use Kagi to search YouTube instead of YTs search directly (!yt <whatever>). I do the same for Wikipedia, Yahoo Finance, GoodReads, Roger Ebert movie review site, and probably a few other sites I can't recall right now. And I also have some sites boosted and some others blocked, but I haven't been tweaking that for a long time now...

If I'm interested in a topic but don't know exactly what or where, or want a longer explanation aggregated over multiple sources, then I use Perplexity. I usually fire off my question, let it work in the background, and come back a bit later.

That's just my use case, I don't presume that everyone else behaves the same. Also I just recently got access to Kagi's assistant on my plan, which may cannibalize my Perplexity use (we'll see).
by robertlagrant | 2025-04-29 14:00:01+00:00
I am not an expert, but this was noted elsewhere as being the reason why Russia's economy looked to be doing relatively well even after years of sanctions: the government was spending as a wartime economy, and so any loans, any sovereign wealth, and other measures to fund that spending all prop up an economy that might in future have many problems.

(Not that they're really propping it up, but that GDP is a common proxy for an economy's health, it looks better than it is.)

I'd be curious to know if people here with more insight than I would be keen to share.
by bluGill | 2025-04-29 14:00:03+00:00
App? I'm not aware of any app that anyone serious about language learning would consider great. If you are going to pay for an app start with netflix or similar which isn't about language learning, but it has native content in your language. Newspapers would be another place to spend your money.

There are a lot of dead tree books that are still perfectly good. There are a lot of language courses that are great, but most don't really have an app. Even if there is an app, you should be getting the app as part of your purchase (or subscription) to a larger language learning system not the app itself.
by ahmedfromtunis | 2025-04-29 14:00:03+00:00
Yes. Many laws have been enacted in the last 5 years to enable more solar project.

The downside is that the choice was made to focus on smaller 10-20 MW projects, with the occasional 100+ MW installation.

Hence, despite new projects entering service every couple months solar only accounts for less than 3% of electricity production nationwide.
by charcircuit | 2025-04-29 14:00:07+00:00
The issue is with how browsers implemented it. Instead of implementing it with a per domain granularity it was implemented as a global option. People may enable the option to block tracking from malicous parties, but may unknowingly block tracking from good companies. So now good companies would need to ask the user if they actually want tracking since they may accidently be blocking it.
by bee_rider | 2025-04-29 14:00:20+00:00
What is this note before the code about?

> This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.

Also I’m slightly confused by this example.

for_tree(string x = ""; x.size() <= 8; x : {x+"a", x+"b", x+"c"}){ print(x);

}

So, our “next node” operation is to concatenate to x. Won’t we either have to have a method for modifying x to go “up” a node, or we’ll have to keep a record of what x was upon entering each node? Like in this example we’ll end up with x=“aaaaaaaa” and then go up a node, over to a “b” node, and get x=“aaaaaaaab”, right?
by mmastrac | 2025-04-29 14:00:39+00:00
I thought I remembered seeing the moldbug blog pop up on HN a ways in the past, but it doesn't appear to have gotten much traction in the past (and moldbug never really got much traction via comments either):

https://hn.algolia.com/?q=unqualified+reservations

https://hn.algolia.com/?dateRange=all&page=0&prefix=true&que...