MurphyA/hacker-news huggingface dataset:
by hnav | 2025-04-30 01:39:44+00:00
Toyota invested heavily into the R&D which is distinct from tooling up to produce 70kwh battery packs by the millions. They've sold maybe 20k hydrogen cars, globally over the course of a decade as a pilot. They also sold 4k RAV4 EVs, are working on EVs with BYD and CATL, which means that they're keeping their finger on the pulse of the industry while also staying out of the lithium/neodymium pissing contest which they simply cannot win. The reason Chinese EVs are such a good deal is because all of the hard-to-source stuff is under the same roof because China doesn't really have a fossil fuel story. Their hope with EVs is that the current approach to making them is simply not sustainable on a global scale and that the emergence of less resource-intensive technologies will saddle all earlier entrants (that aren't subsidized by nations) with debt.
by mzajc | 2025-04-30 01:39:58+00:00
Fun fact: if you've ever had bash (or another shell) complain that a file doesn't exist, even though it's on $PATH, check if it's been cached by `hash`. If the file is moved elsewhere on $PATH and bash has the old path cached, you will get an ENOENT. The entire cache can be invalidated with `hash -r`.
by boroboro4 | 2025-04-30 01:40:12+00:00
The fact that Trump was democratically elected changes nothing, Hitler (and Putin) were too.

Threats of fascism and authoritarianism aren’t baseless fear mongering, it’s all already happening. While fascism might be too strong of a word the amount of hate administration creating against particular group of people (immigrants, especially undocumented) is huge; just take a look at this wall https://www.borderreport.com/regions/washington-d-c/white-ho...

How you can consider following not to be signs of authoritarianism?:

– sending people into foreign prison without (criminal) due process

– attacking law firms which used to represent opposing parties to yours

– attacking universities representing views different from yours

– attacking media through FTC to exhibit control over their reporting

– attacking platform for donations for opposing party

– routinely abusing power by issuing lawless executive orders every day

– literally dismantling federal government and international position of the country

– turning the state into police state, with ICE being modern day gestapo

If you read constitution you know we’re land of the people and laws. President isn’t a king. President is a person elected for faithful execution of the laws, and it’s hard to underestimate how deep in the woods we’re towards authoritarianism. Calling it baseless fear mongering is nothing but being truly delusional.
by chenquan | 2025-04-30 01:40:43+00:00
Hello, I am the founder of this project and I am very happy that a friend has shared it.

ArkFlow is positioned as a lightweight distributed stream processing engine that integrates streaming batches. With the help of datafusion's huge ecosystem and ArkFlow's scalable capabilities, we hope to build a huge data processing ecosystem to help the community simplify the threshold for data processing, because we always believe that flowing data can generate greater value.

Finally, thanks to everyone for their attention.
by vitus | 2025-04-30 01:42:08+00:00
The reason why the discussion in this thread centers around gzip (and brotli / zstd) is because those are standard compression schemes that HTTP clients will generally support (RFCs 1952, 7932, and 8478).

As far as I can tell, the biggest amplification you can get out of zstd is 32768 times: per the standard, the maximum decompressed block size is 128KiB, and the smallest compressed block is a 3-byte header followed by a 1-byte block (e.g. run-length-encoded). Indeed, compressing a 1GiB file of zeroes yields 32.9KiB of output, which is quite close to that theoretical maximum.

Brotli promises to allow for blocks that decompress up to 16 MiB, so that actually can exceed the compression ratios that bzip2 gives you on that particular input. Compressing that same 1 GiB file with `brotli -9` gives an 809-byte output. If I instead opt for a 16 GiB file (dd if=/dev/zero of=/dev/stdout bs=4M count=4096 | brotli -9 -o zeroes.br), the corresponding output is 12929 bytes, for a compression ratio of about 1.3 million; theoretically this should be able to scale another 2x, but whether that actually plays out in practice is a different matter.

(The best compression for brotli should be available at -q 11, which is the default, but it's substantially slower to compress compared to `brotli -9`. I haven't worked out exactly what the theoretical compression ratio upper bound is for brotli, but it's somewhere between 1.3 and 2.8 million.)

Also note that zstd provides very good compression ratios for its speed, so in practice most use cases benefit from using zstd.
by throwaway2037 | 2025-04-30 01:43:06+00:00
I found a copy of the text here: https://legislative.gov.in/constitution-of-india/

English version: https://cdnbbsr.s3waas.gov.in/s380537a945c7aaa788ccfcdf1b99b...

In the preamble (p32), I see this text:

> WE, THE PEOPLE OF INDIA, having solemnly resolved to constitute India into a [SOVEREIGN SOCIALIST SECULAR DEMOCRATIC REPUBLIC] and to secure to all its citizens:

That said, I don't know how constitutional amendments work in India. This text may have been amended at a later date, but the original text remains.
by AlotOfReading | 2025-04-30 01:44:11+00:00
Fuzzy in the sense of "you need a bunch of experts and lawyers to sit down to determine what the correct answer for the government is in any specific situation". The work is exceedingly tedious and expensive.

I was involved in similar efforts to remove Chinese parts from the supply chain during the previous Trump administration. It was a nightmare that involved dozens of people reviewing tens of thousands of parts across hundreds of components with multiple revisions. I was involved for two years and that wasn't even the entire thing. Most changes required multiple layers of analysis/engineering review, change proposals (which often had to pass change review boards), vendor negotiations, manufacturer negotiations, reams of documentation about changes to refit procedures for previously produced HW, testing, validation, etc.

Removing Mexico and Canada from supply chains would be even worse. Probably nigh-impossible for some OEMs.
by gus_massa | 2025-04-30 01:44:48+00:00
Job post can only be posted in the official thread the first day of the month https://news.ycombinator.com/newsfaq.html Y ou can take a look at the last edition, but I think it's read only now https://news.ycombinator.com/submitted?id=whoishiring

So remember to post again on Thursday, in the correct thread of the next month edition.
by chrisguilbeau | 2025-04-30 01:45:06+00:00
All I’m saying is that starting FSD from park in my driveway and having it drive to my destination with my hands on my legs and then having it park itself when it gets there seems reasonable to call “full self driving” to me. I pay for the subscription and I would continue paying if it never got any better. I do live in a rural state, so maybe that’s why it works so well.
by mgkimsal | 2025-04-30 01:45:22+00:00
really really really depends on what sort of code is being 'written'. 20 years ago, IDEs would automatically create boilerplate getters and setters. In large projects that's a non-trivial amount of code. IDEs can autocomplete stuff already. For most of the folks I know doing non-trivial projects, AI tools are... useful autocompletes, but not much more. So... 25% of your code was done by AI but is it the hard nitty gritty stuff? The value prop of your whole company? Or is it just lots of boilerplate that is necessary because of all the abstractions we have at our disposal today (or... all the abstractions that are required to do anything 'modern' to use a negative light on it)?
by iknowstuff | 2025-04-30 01:45:25+00:00
I love AVs, but It would do jack shit for traffic and the horrible use of space until they become autonomous buses on dedicated bus lanes, or trains. You still gotta have spaces for pedestrians, and cars still make cities ugly and unpleasant. Even electric autonomous ones. Tire friction still makes noise and pollutes the air with microplastics.

They gotta supplement mass transit for dense cities, not replace it.
Show HN: Smartshare.social – AI tool to automate Instagram content creation&post
by b_akbas | 2025-04-30 01:45:51+00:00
Hi HN,

I built Smartshare.social, an AI-powered tool that fully automates Instagram content creation and scheduling. It's designed for busy founders, creators, marketers, and small businesses who want to stay active on Instagram without spending hours creating posts.

What it does: Smartshare handles the entire Instagram workflow:

Generates post ideas

Creates visuals with AI

Schedules and publishes automatically

Once you set it up, it runs on autopilot—no more last-minute scrambling to post or staring at a blank page.

Key Features: AI Image Generator – Type a topic and prompt, get a ready-to-post image.

Smart Scheduling – Set recurring schedules (daily, weekly, monthly, etc.).

Post Preview Alerts – Get notified 12 hours before a post goes live, with an option to regenerate.

Fully Hands-Off – Set once and forget.

Built for Agencies/Devs – Supports multiple accounts, API & webhook integration.

Example: Say you sell fishing gear. You can automate:

Weekly tips with AI-generated visuals

Holiday-themed posts

Monthly product highlights via API

Who it's for: Creators and small businesses who want consistent Instagram presence

Marketing agencies managing multiple clients

Solo founders scaling content with minimal effort

Check it out: https://smartshare.social

I’d love your feedback. What would make this more useful to you?

Thanks!
by tga_d | 2025-04-30 01:46:23+00:00
There was an incident a little while back where some Tor Project anti-censorship infrastructure was run on the same site as a blog post about zip bombs.[0] One of the zip files got crawled by Google, and added to their list of malicious domains, which broke some pretty important parts of Tor's Snowflake tool. Took a couple weeks to get it sorted out.[1]

[0] https://www.bamsoftware.com/hacks/zipbomb/ [1] https://www.bamsoftware.com/hacks/zipbomb/#safebrowsing
by mdaniel | 2025-04-30 01:46:41+00:00
How does this work? https://github.com/vantage-sh/vantage-mcp-server?tab=License...

That is extra weird when thinking about the audience who might be Vantage.sh users (and thus have the ability to create the read-only token mentioned elsewhere) but would almost certainly be using it from their workstation, in a commercial context. Sounds like you're trying to keep someone from selling your MCP toy and decided to be cute with the licensing text
by quotemstr | 2025-04-30 01:47:24+00:00
The thing is, though, that PATH being a userspace concept is a contingent detail, an accident of history, not something inherent to the concept of an operating system. You can imagine a kernel that does path searches. Why not?

There's a difference between something being a certain way because it has to be that way in order to implement the semantics of the system (e.g. interrupt handlers being a privilege transition) and something being a certain way as a result of an arbitrary implementation choice.

OSes differ on these implementation choices all the time. For example,

* in Linux, the kernel is responsible for accepting a list of execve(2) argument-words and passing them to the exec-ed process with word boundaries intact. On Windows, the kernel passes a single string instead and programs chop that string up into argument words in userspace, in libc

* in Linux, the kernel provides a 32-bit system call API for 32-bit programs running on 64-bit kernels; on Windows, the kernel provides only a 64-bit system call API and it's a userspace program that does long-mode switching and system call argument translation

* on Windows, window handles (HWNDs, via user32.dll) in IPC message passing (ALPC, in ntoskrnl) are implemented in the kernel, whereas the corresponding concepts on most Linux systems are pure user-space constructs

And that's not even getting into weirder OSes! Someone familiar with operating systems in general can nevertheless be surprised at how a particular OS chooses to implement this or that feature.
by bccdee | 2025-04-30 01:47:26+00:00
Perhaps… but for a couple decades after the Berlin wall fell, it had sorta seemed like we (collectively) were figuring it out. Granted, 9/11 damaged that narrative, but that was "barbarians" attacking "civilization." The assumption was that winning the war on terror could end history the same way the fall of the Soviet bloc was supposed to.

Yet there's an expansionist land war in Europe, and US allies are engaged in ethnic cleansing in the Middle East. The current American government is overtly fascistic, and now that they've admitted they're seeking to extra-judicially imprison citizens in El Salvador, I don't think that's even up for debate anymore.

I think people are increasingly coming to believe that we'll never figure it out. Technology will advance, but humans are liable to stay the same forever. In light of this, utopian science fiction begins to feel naive. The most optimistic story we can stand is about humanity temporarily prevailing against its own worst impulses, rather than featuring the kind of… solved society that something like Star Trek envisioned.
by alganet | 2025-04-30 01:47:46+00:00
Percentages are misleading.

How many lines in a diff are actually relevant code? Anyone who does reviews knows the answer.

That is one of the reasons why lean, terse languages are often better to review.

We can guess by those companies preferred coding styles and technologies whether their codebases are lean and terse or full of straw. And that should give us an estimate.

Of course, I could be wrong. They could be doing this measurement after removing irrelevant changes.

The better choice would be not to publish those sorts of claims if there is not a clear methodology that explains how the number was achieved.
by thenaturalist | 2025-04-30 01:48:01+00:00
Way to comment on research?

> four obscure, non-production databases

I guess you wanna have a word with thousands of DuckDB users?

Also Starrocks is not really niche?

> irrelevant benchmark (TPC-H)

Which is widely used in the industry... probably despite not being perfect.

> provide far-fetched claims.

And put them out there to be disseminated by others.

Keeping and extending what works, discarding the rest.

That's how we learn.

I wish you more optimism and curiosity.
by aanet | 2025-04-30 01:48:42+00:00
QUOTES: Alphabet-owned Waymo and Toyota on Tuesday announced a preliminary partnership to explore bringing robotaxi tech to personally-owned vehicles. Waymo said it will leverage its self-driving car tech with Toyota’s expertise for “personally owned vehicles.” The company’s co-CEO Tekedra Mawakana said the strategic partnership could also result in the Google-owned company incorporating Toyota’s “vehicles into our ride-hailing fleet.” /QUOTE
by xelxebar | 2025-04-30 01:48:44+00:00
Does it matter? I'd bet most customers don't ask for "a somewhat formal language" in the first place, but that's what you're calling for. I definitely do have customers that want to find data potentially tainted by user input, and my code example shows that.

With the code snippets, I tried to show how expressing customer-facing concepts doesn't require more code than detailed, internal concepts. Notice how the semantics captured by each example get progressively "larger" and closer to the frontend.
by const_cast | 2025-04-30 01:48:53+00:00
Food is currently very, very expensive in the US.

Went to Europe a few years ago and I remembered previously that food prices in Europe were high. But this last time, I noticed they were consistently ~5 euro/dollars less than it would be in the US. I was pleasantly surprised.

It’s only gotten worse here. Typical restaurant entree is maybe 17 dollars. Fast food is now about 12 dollars for a meal. At least in DFW Texas.
by firejake308 | 2025-04-30 01:51:01+00:00
Their EV market is pretty competitive, and they have multiple brands all releasing EVs. Nio, BYD, and Xpeng come to mind. Compare to the US, where we only have one EV maker with a decent market share (Tesla) which has stagnated in innovation. My argument is that where China has succeeded, it has done so by adopting Western values like free-market competition (see the reforms of Deng Xiaopeng) and where the West has failed, it is due to monopolization and stagnation/decadence.
by jeff-hykin | 2025-04-30 01:51:16+00:00
> The US can.

> Elsewhere, you are at risk of wasting important years of your life.

Unfortunately, as a 5th year PhD student in the US at a tier-1 STEM research university I'm disappointed to say: students here are very very very much at risk. I can't compare to universities in Europe, but I can say OP's story is the story of most students I know.

While I personally know a solid handful of exceptions, don't expect the US to meaningfully avoid what the OP describes. Regardless of country or university, your advisor is the ultimate decider of whether or not you will be a doll for them to "play scientist" with or be pushing the boundaries of science.

Of the exceptions I do know, while they are intelligent, it was not their intelligence or work ethic that allowed them to be exceptions.
by rayiner | 2025-04-30 01:51:33+00:00
Most of these examples are good ones, but this one actually isn’t. I don’t know what part of the country you’re from, but in the south violence against the government is treated as distinct from violence against fellow citizens. I don’t want to debate the substance of the view, I’m just pointing out that it’s not actually contradictory like you’re implying. I grew up in virginia when it was a red state, my first reaction would’ve been relief that it was still possible. But it also would’ve been my first reaction 25 years ago when I was a Gore supporter in a Bush county. Jefferson’s tree of liberty and all that.

I suspect this divergence comes from people who have internalized the 1960s civil rights movement view, and whose chief concern is the government protecting minorities from the majority. Meanwhile, the more traditional Anglo-american view is chiefly concerned with protecting the majority from the government.
by MartinMcGirk | 2025-04-30 01:51:41+00:00
I'm seeing a lot of negativity here so I'll take the positive view.

I regularly use ChatGPT for product advice. The other day I was replacing a wireless router, and I needed a WiFi 6 vs 6n vs 7 vs mesh vs not-mesh breakdown. It was great to have the AI explain all that, and it would recommend products, but there were no pictures, and no links, and definitely no price comparisons.

So I had to copy and paste product names from my GPT chat app into google, and then click around a bit, and repeat across 3 or 4 products. And then remember all that. I have no objections with ChatGPT showing me products I've asked about, and doing a price compare, and linking me. And I don't even have a problem with them wrapping those links in affiliate links if they want to.

As long as the suggestions they give aren't based on who pays them the most money then I think it's a value add.
by o11c | 2025-04-30 01:51:49+00:00
Good sci-fi must first of all be good writing. Read through the entire text of The Elements of Style [1] - the original, by Strunk only, is in the public domain now, and almost entirely still relevant; newer versions do flesh it out more so get one eventually. Remember that since grammar and style aren't really separate concepts, you can break the rules ... but you have a "strangeness budget" (my term) that is very important not to exceed. And for speculative fiction in general, it is very common to have to spend some of the budget on introducing new vocabulary and concepts. Remaining similar to widely-known works (when possible) is a major way to reduce the cost.

To get good, you also need to actually, you know, write. A story of a few thousand words isn't hard to write, whether you tend to fall into the trap of endless worldbuilding or whether you tend to fall into the trap of writing by the seat of your pants.

For the science, there's a lot of reference material in [2]. Remember that realism doesn't necessarily make a good story, but any deviations should be deliberate (e.g. space opera is a distinct subgenre). I do personally find sci-fi tends to be better than fantasy because authors are more likely to actually try to make something coherent. (90% of everything is still crap though, whether due to lack of trying or lack of competence).

All speculative fiction is political, but try to leave a good story even if every part of your personal politics is removed from the story. If you can't do this, it's not a good sci-fi story (let alone a good overall story), at most it's a good $yourpoliticalfaction propaganda story (for sci-fi, this is particularly common for military glorification, weird sex stuff, and a whole host of society-ordering utopias/dystopias). Regardless, never "surprise" the reader with your take - if you have an agenda, put it in the blurb, tags, and in the first chapter; if you don't, you have no one to blame but yourself when you get (correctly) review-bombed (often, even by people who agree with your politics, since we read to escape). If you construct a metaphor to attack a real-world target, make sure a 5-year-old can't poke a hole in it; don't make your villain gratuitously stupid. (Note that "courtly intrigue", although in-universe politics, often isn't politics by a real-world perspective, just character drama).

The best writing is timeless. This is sometimes difficult for writers of genre-defining works, because "Seinfeld" is Unfunny.

[1] https://www.gutenberg.org/ebooks/37134 [2] https://projectrho.com/public_html/rocket/
by Capricorn2481 | 2025-04-30 01:52:13+00:00
Because Fox, and Newsmax work overtime to convince people that Trump wouldn't do the things he said, and he'll actually do the good things people want. And that if anything bad happens, it's the aftershock of previous administrations (of which, Trump's is exempt, of course).

You don't have to be tapped in to see that whatever is said on Fox becomes Republican dogma very quickly. That's why half the country is more concerned that Zelenskyy is, somehow, a dictator, and less concerned that we ushered Russian state media into our white house.

It's an embarrassing state we're in, but many voters have been fostered with complete incuriosity with what Republican politicians stand for.
by stevenAthompson | 2025-04-30 01:52:44+00:00
> It is grasping its meaning, significance, applications, and boundaries

To define "thinking" by using words like "meaning", "understanding", or "comprehension" just moves the need for definition further up the abstraction ladder. It doesn't help to define what "thinking" is in any quantifiable way.

To play along, could you define "meaning" or "understanding" in a way that doesn't resort to ghost-talk or just move the definition even further up the abstraction ladder? They are both subjective terms that describe how humans feel, not well defined words that describe objective reality in some way.

To use a more quantifiable metric we could look at something like Humanity's Last Exam. OpenAI's o3 scores something like 20% (a feat which few humans could accomplish). To put that in perspective, consider that fifty four percent of Americans now read below the sixth grade level. Like it or not the machines are "smarter" than the majority of humans and have deeper "understanding" in most of the objective ways we've thought of to measure it. Subjective feelings aside, it's tough to argue that the machines aren't conscious if we're going to accept that our fellow citizens are.
by hxtk | 2025-04-30 01:53:31+00:00
I'm an idiot, of course the search space is too large. It outgrows what I can brute force by the heat death of the universe by the time it gets to 16 bytes, even if the "test" is a no-op.

I would need to selectively generate grammatically valid zstd streams for this to be tractable at all.