MurphyA/hacker-news huggingface dataset:
by roenxi | 2025-09-23 13:28:47+00:00
> This is the first rule of strategy: strategy is contextual.

... Is there any aspect of anything business related that isn't contextual? Tactics are even more contextual than strategy. Optimisation is contextual. Programming is contextual. Sales is contextual. Cleaning is contextual, sometimes people leave contextual notes out saying "don't clean this desk".

The big problem with strategy is it is so contextual that you cannot, in fact, write a general article on "Getting More Strategic". Without a specific context to be strategic in, all that is left is a generic call to make good decisions. Which is a nice sentiment, but void of useful meaning. This article doesn't actually say very much, there is a high rate of platitudes because there isn't any context to talk about.

Strategy is how to decide which tactics to use. If your tactics are polished and well done, basic strategy will be enough. If the tactics are sub-par, I recommend a strategy of learning to execute better.
by kminehart | 2025-09-23 13:28:56+00:00
There's a few things for me, and the saddest part is I'm a very die-hard Linux user. Until a couple months ago when I had to start traveling, I've been using Linux exclusively for work.

1. The battery life, as others have mentioned.

2. The quality of the hardware: The screen is incredibly nice, the trackpad is VERY nice to use, and no other laptop has even come close.

3. It's so quiet. The fans almost never spin unless I've been compiling something for over a minute. I don't know how they do it but any other Linux laptop I've used, including desktops, have been super loud when running similar tasks.
by causal | 2025-09-23 13:28:58+00:00
I like that people are experimenting with HTMX, so please keep it up. But I don't think MESH is one I would pick up for my projects:

- For complex apps, I love JSX for its ability to distill complexity into simple, discrete components.

- For simple apps, I love HTMX ability to make plain the relationship between raw HTML and API response.

In the MESH examples I see a lot of verbose code that doesn't seem to achieve the simplicity of JSX nor the transparency of HTMX. That said, I certainly don't grok MESH yet so perhaps in a project it would click for me.
by BlackFly | 2025-09-23 13:29:04+00:00
This was often a question asked in Java interviews as well.

In Java heap fragmentation is usually considered a separate issue but I understand go has a non-moving garbage collector so you can lose memory due to pathological allocations that overly fragment memory and require constantly allocating new pages. I could be wrong about this since I don't know a lot about go, but heap fragmentation can cause troubles for long running programs with certain types of memory allocation.

Beside that, applications can leak memory by stuffing things into a collection (map or list) and then not cleaning it up despite becoming "stale". The references are live from the perspective of the garbage collector but are dead from the application perspective. Weak references exist to solve this problem when you expose an API that stores something but won't be able to know when something goes out of scope. I wouldn't consider this to be common, but if you are building a framework or any kind of platform code you might need to reach for this at some point. Some crazy folks also intern every string they encounter "for performance reasons" and that can obviously lead to what less crazy folk would consider a memory leak. Other folk stick a cache around every client and might not tune the cache parameters leading to unnecessary memory pressure...
Show HN: Zillow, but for Race Events
by zham-dev | 2025-09-23 13:29:06+00:00
RaceThere.com was designed to be simple. You set the location and filters of race events you're looking for, and it generates a full list of upcoming events in that area. It's as easy as that to find your next race.

Sure there are other websites out there like RaceThere.com, but who wants to scroll through a website that hasn't been touched since 2010.

Do you value websites that look nice more?
by Imustaskforhelp | 2025-09-23 13:29:17+00:00
What are your thoughts on nim, odin and v-lang, D-lang?

I feel like I am most interested about nim given how easy it was to pick up and how interoperable it is with C and it has a garbage collector and can change it which seems to be great for someone like me who doesn't want to worry about manual memory management right now but maybe if it becomes a bottleneck later, I can atleast fix it without worrying too much..
by dotnet00 | 2025-09-23 13:29:20+00:00
I think even SpaceX fans have been waiting for years for others to finally adopt partial reusability, and thus support this effort.

My complaint with Themis had only been that it didn't sound like they were taking it seriously back when it was announced.

Even after all these years, there has only been one non-SpaceX orbital rocket with reusability built-in to the design goals from the start, to actually fly (but not reused, yet), so seeing another one getting closer to that is good.

Edit: Though, IIRC Themis will mainly be doing hop tests in preparation for an orbital design.
by account42 | 2025-09-23 13:29:58+00:00
No, you missed the point. The problem isn't "narg" or "flargling" - those are just random stand-ins for normal words. Instead the problem is that the description says nothing that isn't already said by the symbol name. Whether or now you know what "narg" and "flargling" mean, a documentation page for Nargflargler that just describes it as "Flargles the narg" provides zero additional information to you.
by barrkel | 2025-09-23 13:30:06+00:00
Using grammar constrained output in llama.cpp - which has been available for ages and I think is a different implementation to the one described here - does slow down generation quite a bit. I expect it has a naive implementation.

As to why providers don't give you a nice API, maybe it's hard to implement efficiently.

It's not too bad if inference is happening token by token and reverting to the CPU every time, but I understand high performance LLM inference uses speculative decoding, with a smaller model guessing multiple tokens in advance and the main model doing verification. Doing grammar constraints across multiple tokens is tougher, there's an exponential number of states that need precomputing.

So you'd need to think about putting the parser automaton onto the GPU/TPU and use it during inference without needing to stall a pipeline by going back CPU.

And then you start thinking about how big that automaton is going to be. How many states, pushdown stack. You're basically taking code from the API call and running it on your hardware. There's dragons here, around fair use, denial of service etc.
by 2THFairy | 2025-09-23 13:30:12+00:00
Implementation preference.

> is masking expensive?

It's not expensive per-se; A single element-wise multiplication of the output vector.

The real "expense" is that you need to prepare masks for every element of your grammar as they are expensive to recompute as needed; LLM tokens do not cleanly map onto elements of your grammar. (Consider JSON: LLM tokens often combine various special characters such as curly braces, colons, and quotes.)

This isn't that hard to compute, it's just more work to implement.
by ivan_gammel | 2025-09-23 13:31:18+00:00
> the subsidy game that Poland, Romania, Czechia, India, Israel, and other companies play to attract offshore offices.

Do you mean US government must dramatically reduce cost of living by offering subsidized housing, investing in education, healthcare etc? When I hire, I never consider USA and nobody pays me to find skilled labor in Eastern or Central Europe. You can pay one half of American salary there and people will be put in upper middle class with such income, being able to afford a lot and living comfortable life.
by gwd | 2025-09-23 13:31:18+00:00
I feel like this would have been a bit better with some sort of "recap" at the end, to summarize where he got to. The README on the MESH page is a good summary:

> MESH is a fun project intending to demonstrate the kinds of concepts embodied by HTMX - without using HTMX. Specifically, we're rendering modular elements on the server, and hydrating them on the client, swapping them out as needed instead of reloading the whole page. Component updates are swapped in place. Out-of-band updates are sent to all connected clients via SSE (server-side events), meaning all users see updates in real time.

(To expand that for people not familiar with HTMX's out-of-band updates: Basically, in MESH, on the client you hook up something listening to updates sent from the server via SSE. What the server sends are basically snippets of HTML with an ID in them; the listener on the client replaces the HTML in the DOM with that ID with the HTML sent over the wire. This allows the server to arbitrarily update the client's UI.)

So it shares one of the mechanisms of HTMX, which is to do SSR with the ability to replace individual elements.
by shagie | 2025-09-23 13:31:25+00:00
> The only way abuse of both visas can stop is if they are not tied to an employer, allowing free movement of labor.

https://www.uscis.gov/working-in-the-united-states/temporary...

Changing or Leaving Your H-1B Employer Q. What is “porting”? A. There are two kinds of job portability, or “porting,” available based on two different kinds of employer petitions: H-1B petition portability: Eligible H-1B nonimmigrants may begin working for a new employer as soon as the employer properly files a new H-1B petition (Form I-129) requesting to amend or extend H-1B status with USCIS, without waiting for the petition to be approved. More information about H-1B portability can be found on our H-1B Specialty Occupations page. ... Q. How do I leave my current employer to start working for a new employer while remaining in H-1B status? A. Under H-1B portability provisions, you may begin working for a new employer as soon as they properly file a non-frivolous H-1B petition on your behalf, or as of the requested start date on the petition, whichever is later. You are not required to wait for the new employer’s H-1B petition to be approved before beginning to work for the new employer, assuming certain conditions are met. For more details about H-1B portability, see our H-1B Specialty Occupations page, under “Changing Employers or Employment Terms with the Same Employer (Portability).”

---

Someone on a H-1B visa can change jobs as soon as the other employer files a form I-129 to hire them.
by iberator | 2025-09-23 13:31:40+00:00
With 5g and beamforming and mimo and decent bts software(Ericsson or Hua) you can pinpoint the given phone very accurately (within 20m in urban settings) - without any triangulation, as you know the cell tower sector :) Guess what: you can also measure the azimuth within 0.1 degree, so you could have SOME data at where to look.

FYI: That was available back in 2022 as standard. Now it could be even better. :P
by miningape | 2025-09-23 13:31:47+00:00
You can easily take "the west" out of that sentence and replace it with any other country and it's still fair.

E.g. China sanctions a country then "China is not responsible for any deaths caused by governments that refuse to cooperate with them"

It's entirely the responsibility of each government to ensure the welfare of its own citizens. Anything more is purely goodwill. Anything less is treason.

You're just coping because the US/west is the predominant power.
by pjmlp | 2025-09-23 13:32:03+00:00
Which is kind of return to WebForms, GWT and JSF ways of working, only the implementation is a bit different than on the 2000's.

We moved into MVC approach, because of the headaches that it used to be having to debug all the generated stuff from what the browser actually supports as built-in technology.

I don't see that bright future for Blazor, other than a few .NET shops that don't want to learn native browser technology.
by ranger_danger | 2025-09-23 13:32:09+00:00
IMO, as a C++ developer, Swift makes the most sense to me if I were looking for a safer alternative.

I think people prefer what's familiar to them, and Swift definitely looks closer to existing C++ to me, and I believe has multiple people from the C++ WG working on it now as well, supposedly after getting fed up with the lack of language progress on C++.

The most recent versions gained a lot in the way of cross-platform availability, but the lack of a native UI framework and its association with Apple seem to put off a lot of people from even trying it.

I wish it was a lot more popular outside of the Apple ecosystem.
by JCM9 | 2025-09-23 13:32:11+00:00
The H1B program has been abused by employers for a long time. Nobody can reasonably defend it at scale. Some fear mongering now that the party is over, but unlikely doomsday is coming for US tech.

Is this a unilateral change that will have some collateral damage? Yes.

Is this going to total ruin the US tech sector? Unlikely.

Will all these jobs just go to India directly? Almost certainly not. That option was always on the table and lots of reasons why employers aren’t sending more jobs to India, including deep structural challenges in the country that aren’t close to being solved.

Will they get offshored elsewhere? Mostly not. Maybe a bit, but those jobs were already at risk of being offshored. The H1B change won’t make a huge difference there. More likely is 15% of roles offshore, 15% were truly needed and employers pay up, 15% are just eliminated and absorbed into existing workers, and the rest stay in the US. Thats still a big net win for the United States.

What will happen? Not completely clear yet, but over time this simply raises the bar for claiming you need to import somone to do a job. India will lose the most as it puts big hurdles to folks there getting highly desirable jobs in the US. There may be some very limited movement of roles elsewhere but those will likely go to Canada, the UK, and maybe a few other places.

The administration is calling the bluff of these companies crying foul, and very likely these companies will cave. Expect to see anyone that does actually try to move things abroad to simply be slapped with tariffs that make such moves unprofitable. These companies value access to the US market much more than employing a few H1Bs.

Not saying I agree with everything happening, but the idea that this was some poorly researched jerk reaction dangerously underestimates the playbook being used here. The administration knows exactly what they’re doing.
by em-bee | 2025-09-23 13:32:13+00:00
no it isn't because everyone has a different idea what limited, controlled immigration means. for some 20% is ok, for some 10% is to much. and for some only those who can integrate to 100% and become invisible is ok. practically speaking, for most people controlled immigration means: only allow the people that we like, and don't allow any of the people that we don't like.
by flyinglizard | 2025-09-23 13:32:16+00:00
No, that's false. "Nakba" refers to the exodus of the Palestinians during 1948. It says exactly that in the Wiki. The exodus came as a result of war, first between the local Arabs and the Jews, and more prominently when Arab armies joined the war against Israel after it was declared a state.

Israel was given statehood by a decision of the League of Nations, the body preceding the UN.
by lucideer | 2025-09-23 13:32:17+00:00
I feel like these two tenets - (1) yaml should require quotes & (2) the value in yaml is in recursion/anchors - are fundamentally the opposite of why yaml exists & why people use it.

The distinguishing draw of yaml is largely the "easiness" of not having explicit opening or - more importantly - closing delimeters. This is done using a combination of white-space delimiting for structure, & heuristic parsing for values. The latter is fundamentally flawed, but yaml fans think the flaws are a worthwhile trade-off. If you're going to bring delimiters in as a requirement, imho yaml loses its raison d'être.

Recursion/anchors/etc. on the other hand are optional extras that few use & some parsers don't even support. If they were the driving value of yaml they'd be more ubiquitous.

Disclaimer: I hate yaml & wish it didn't exist, but I do understand why it does & I frankly don't have a great suggestion for alternatives that would fill those needs. Toml is also flawed.
by Nevermark | 2025-09-23 13:32:29+00:00
> So when it comes to memory management there are two [THREE] terms you really need to know, [THE REGISTER BANK,] the stack and the heap.

Edits mine.

I like to keep the spacetime topologies complete.

Constant = time atom of value.

Register = time sequence of values.

Stack = time hierarchy of values.

Heap = time graph of values.
by drweevil | 2025-09-23 13:32:40+00:00
"X, but written in Y!" has always been something of a red flag. We don't need rust versions of solid, well-established projects. It just causes strife within those communities (see Linux kernel), confusion for users, and opportunity costs. Want to produce something in rust? give the user something new. Zoxide comes to mind. Love it. Want rust in the kernel? How about a green-field project, like Redox, that does this? This is a better, more productive approach than disrupting well established projects.
by bmelton | 2025-09-23 13:33:05+00:00
JFK and LBJ systematically leveraged the FCC's obligation to uphold the Fairness Doctrine to weaponize mass-produced complaints against right-leaning radio shows to legally harass them

In 1963 the FCC passed the Cullman Doctrine, which was an attempt to double-down on those efforts by bankrupting those who literally couldn't afford to cover equal time

Nixon used the FCC to threaten the Washington Post with licensure revocation in an attempt to get them to squash coverage of Watergate

Presidents on both sides of recent history have used the might of the government to demand abject censorship on Facebook, Twitter, and other social media platforms.

The prior sitting president attempted to establish a ministry of truth, slated as a new entity intended to reside within the department of homeland security so as to supercharge those efforts, and appointed Nina "I believe I should be allowed to edit other people's tweets" Jankowicz to executive director

None of these are healthy, but the idea that Carr's actions are somehow the result of the modern Supreme Court's actions requires us to ignore all of American history before Trump's second election
by nerdponx | 2025-09-23 13:33:15+00:00
> Maybe desperation is warranted, or maybe social media has distorted reality.

Some parts of the country never really recovered from 2008. Obama took the smug liberal approach of telling people it was all over when it clearly was not all over. The country was primed for the Tea Party to step in and offer the promise of a remedy. You and I both know that the remedy was bunk, and it was just a rebranding of the same old far right, who saw that the Evangelical Christian movement that they were previously allied with had lost influence. And so into the propaganda brainwashing funnel went millions and millions of people.

Right wing media was already powerful and influential long before Trump started his own social media company and Zuckerberg switched sides. Blaming social media doesn't make sense either, because if it wasn't for social media, it would've been something else.
by jbd0 | 2025-09-23 13:33:21+00:00
I built a window vent with a variable-speed computer fan and an esp8266 that communicates with a CO2 monitor and raises the speed when the CO2 gets too high. I have a very fine mesh on the window screen that's designed to filter out pollen and dust. It works really well. I usually only turn it on at night, because that's when my wife and I are both in the room and the CO2 can really build up.
by kotaKat | 2025-09-23 13:33:25+00:00
Yup. This is literally just a cellular grey route site for some shitty VoIP provider, just like the SIM box SMS scams go marching on in other countries. Some operator is shitting their pants right now, probably.

The SIM cards come from cheap MVNOs that have dealer arrangements for cheap or free first month activations, then they just set up a handful of SIM boxes and a residential Internet connection back to the mothership (like they did at the captured house with the white Verizon 5G Home router just casually sitting on the floor next to the units).

Similarly, I’ve had some friends on US MVNOs themselves that have access to “free” international calling, yet every time they call (the same) international number the receiving party gets a wildly different caller ID from a wildly different country each time (Poland, Moldova, etc). Also dodgy SIM boxes!
by iandanforth | 2025-09-23 13:33:34+00:00
This is a great writeup! There was a period where reliable structured output was a significant differentiator and was the 'secret sauce' behind some companies success. A NL->SQL company I am familiar with comes to mind. Nice to see this both public and supported by a growing ecosystem of libraries.

One statement surprised me was that the author thinks "models over time will just be able to output JSON perfectly without the need for constraining over time."

I'm not sure how this conclusion was reached. "Perfectly" is a bar that probabilistic sampling cannot meet.
by KuSpa | 2025-09-23 13:34:10+00:00
Ah, the good old squeak/smalltalk days. A few years back I worked on signals (or rather a static analyser for the editor to support signals) in squeak/smalltalk. The kind of signals those indie frameworks like angular and svelte now adopt trying to solve the problem of changepropagation you outline in your paper.

What i'm getting at is: For the places where other tools are better (like the UI example), we already have other tools (signals, observables, effects, runes,...). And for the places like client/server-communication: This is kind of where "call/return" usually shines.
by Simulacra | 2025-09-23 13:34:10+00:00
My only complaint with the entire H1B process is that it is used to simply hire cheaper labor, rather than the best, often at the expense of Americans. It's essentially importing a cheaper work force to displace the local one. That's the unfair economic impact because Americans cannot compete.

Just ask anyone who had to train their H1B replacement to get severance.

Those who support H1B should start talking to those who feel displaced, replaced, and cheated. Any one of us could be replaced or off shored.
by whalesalad | 2025-09-23 13:35:09+00:00
Why has no one cracked this nut yet? I transitioned full-time to a Linux workstation in 2023 after years of driving macOS. I have an M2 air that is one of the best laptops ever made - and it really is a complete game changer when it comes to battery. I really don't think about charging it, and plug it in maybe once or twice per week. But I am longing for a slightly larger chassis and something I can run Linux on without any compromises. I was considering a Framework of all things - but this post bolsters my concern that Apple is really on a completely different level. tl;dr the age of the Linux desktop is 100% here, but we still have a lot of work to do for notebooks
by nobodyandproud | 2025-09-23 13:35:09+00:00
Good advice on the CO2 monitor. Cheap and surprisingly effective. I haven't considered the VOC--any recommendations?

As an aside, I open up my window, but sometimes smokers decide to take a break outside and...well. Other times, I have neighbors barbecuing.

If I don't shut the windows quickly I've just replaced stale and somewhat harmful air with oxygenated and definitely harmful air.
by Cheer2171 | 2025-09-23 13:35:17+00:00
The only money to be made is in compute, not open weights themselves. What point is a market when a commons like huggingface or modelscope? Alibaba made modelscope to compete with HF, and that's a commons not a market either, if that tells you anything.

By analogy, you can legally charge for copies of your custom Linux distribution, but what's the point when all the others are free?