skysight-inc/HackerNews huggingface dataset:
the most important tidbit

> Apple already pays tariffs on products including the Apple Watch and AirPods, but hasn't raised its prices in the United States.

so, they fear tariffs because their price is already at the highest their products would sell? that's an interesting point most people don't understand. the tariffs were only 15% then, but still interesting to see how it played out.
> Yeah, that will work fine for byte address buffers, to lesser extent constant buffers (they don’t convert data types but the access sematic and alignment are a bit tricky), but not much else.

This is where sharing the CPU and GPU side struct declaration is helpful. With scalar block layout (VK_EXT_scalar_block_layout in Vulkan, not sure how about d3d land) you don't even need to worry about alignment rules because they're the same for GPU and CPU (just make sure your binding base address/offset is aligned).

> Vertex buffers, textures, and texel buffers / typed buffers in D3D are all widely used in real-time graphics.

Of course. You don't get to share "structs" here between CPU and GPU here transparently because you need to program the GPU hardware (vertex input, texture samplers) to match.

There are some reflection based trickery that can help here but rust-gpu afaik doesn't do that. I've seen some projects use proc macros to generate vertex input layout config for GL/Vulkan from Rust structs with some custom #[attribute] annotations.

> Pretty sure it’s hardware.

Now this is just guessing.

> Emulating anisotropic texture sampler with HLSL codes would need hundreds of instructions...

Texture sampling / interpolation is certainly hardware.

But the conversion from rgba8_unorm to rgba32f, for example? Or r10g10b10a2?

I've not seen any conclusive benchmark results that suggest whether it's faster to just grab these from a storage buffer in a shader and do the few arithmetic instructions or whether it's faster to use an texel buffer. Images are a different beast entirely due to tiling formats (you can't really memory map them so the point of sharing struct declarations is irrelevant).

> Here’s a benchmark for vertex buffers

I am familiar with this benchmark from 8 years ago, which is highly specific to vertex buffers (and post transform cache etc).
It's a nicely done benchmark but it has two small flaws in it: the hw tested is quite old by now and it doesn't take into account the benefit of improved batching / reduced draw calls that can only be done with custom vertex fetch (so you don't need BindVertex/IndexBuffer calls). It would be great if this benchmark could be re-run with some newer hw.

But this benchmark doesn't answer the question whether the typed buffer format conversions are faster than doing it in a shader (outside of vertex input).

> however on nVidia Maxwell vertex buffers were 2-4 times faster.

The relevant hardware got revamped in Turing series to facilitate mesh shaders, so can't extrapolate the results to present day hardware.

Fwiw. I've been using custom vertex fetch with buffer device address in my projects for a few years now and I haven't noticed adverse performance implications on any hw I've used (Intel, NV and AMD). But I haven't done rigorous benchmarking that would compare to using vertex input stage.

I'm not using rust-gpu for shaders at the moment, but if I was, it would be helpful to just use the same struct declarations. All my vertex data, instance data, constant buffers and compute buffers are an 1:1 translation from Rust to GLSL struct declarations which is just redundant work.
yea I tried the Viture and the headtracking was nowhere near where it needed to be. I really liked everything else about the Viture Pros. They were lighter than the Xreal ones, generated less heat, and had individual diopter adjustments on each lense.

Xreal One however has rock-solid head tracking. It does drift occasionally but it's very tolerable. I returned the Viture Pro and ketp the Xreal one.
Ask HN: As a programmer, How do you take notes while coding?
Like the city from Minority Report?
Good that you mention it. I will add contact details.
It has been a while so I don't remember the exact wording. I wouldn't use the same wording since it is not a petition and doesn't add value. They want to research if it is an unfair practice. In my opinion banking and wireless payments is a common good. Having two companies, who only approve software of partners, most of them including unremovable spyware, is limiting on access to banking and privacy (although privacy is another department). I mentioned security since that is Google's argument for the block even though GrapheneOS is more secure than approved builds. I gave the number of GrapheneOS users to make clear it doesn't affect only a few individuals. I think LineageOS users might also be affected?
Joe Biden put a 100% tarrif on electric vehicles from China already so even removing the new tarrifs would have little effect without also rolling back that one as well.

https://apnews.com/article/biden-china-tariffs-electric-vehi...
Yeah, it's interesting because the focal distance in the Quest is a fixed ~5 ft, regardless of the apparent depth of the thing you're looking at in VR. This is a pretty comfortable spot for old eyes, so it can make things a little crisper compared to real life, at shorter and further apparent distances.

Though it comes with its own set of discomfort issues: https://en.m.wikipedia.org/wiki/Vergence-accommodation_confl...
I was thinking the same while was walking my dog.
I have seen it twice but I work in Sweden where we often do things also for the Norwegian market.
When I got my car I had to drive it 1500 miles back to my home and did it alone. I would stop when the tank needed filling. I got maybe 450 miles per tank, so maybe every 6-7 hours or so. That's 10 minutes per 6 hours, which is (10/6 / 20/3 =) 1/4th the overhead you're describing. So I'm agreeing with OC: when it's just me, 20 minutes every 2 hours starts becoming a bit much.
South Asians need to exercise for 20 minutes longer per day than Europeans
Plain text files.
I was thinking that the US marshals need to be the enforcement arm of the courts. But I am not sure if that would help much in the current situation.

Maybe police and federal enforcement agencies should be solely under Congress? At least then senior people can actually get fired for obeying unlawful orders from the executive.
Ask HN: What do you use to write and take notes? Is there a cursor for writing?
you seem to ignore or not know about how recently deputized private security guards went to a federal judge to press him on a decision for the insurrectionists.
> You must be a rare carhead...

Which I'm not. This is my point. I do not know of the reputation of Porsche. If you tell me they are shitty cars I would shrug and believe you. I do not even recognise the brand of a car. I see flashy car, bright colours, fast looking body, deep bone-shaking engine sound and I conclude "wow, that's a cool car". This is based on how it sounds and looks. Since I don't know anything about the reputation of the car it cannot be based on that.

If you are a carhead maybe you are mistaken about how regular people judge these things.

> I don't think it needs proving..,

Sounds like we disagree on how or why regular, not vehicle enthusiast, people recognise a car to be desirable. I proposed a test how we can figure out which one of ours theory is right. Do you agree in principle if people were to rate fictional cars as highly desirable that would show that reputation of the manufacturer is not what factors into that decision?
It's what the technology is for.

Control over people, the exercise of power, the evasion of moral responsibility, and ultimately the wholesale destruction of the human way of living
Can You Stop an Outbreak of a Contagious Disease?
Huh, I never considered this. we take true and false for granted everywhere but they aren't the most meaningful.
⊥ and ⊤ is not entirely congruent to false and true.

Boolean and propositional logic is not the same.
Perhaps the streets of the US will start to look more like Cuba to the rest of the world.
I don't know of any active implementation in Go, but there is actually a nice parallel in Rust: Valence [0]. It follows the same framework approach as opposed to a plug-and-play package, like Glowstone (now abandoned).

You also have Pumpkin [1] and Ferrum [2] that are trying to implement a vanilla-like server, but are a little ways off still. The former has an interesting plugin system already; works with shared libraries.

One of the neat things of these Rust implementations, apart from good base performance (though Java's JIT can be pretty good on this type of software), is the memory footprint, one of the main painpoints of hosting large server networks. The official server implementation is extremely memory hungry, with lots of allocations everywhere; even with optimization forks like Paper, you can't really run away from it too much. Minestom is also nicer in that regard, but not on the same level as Pumpkin or Ferrum. The Minestom people are also waiting on Project Valhalla to unlock some optimizations on that front.

Another interesting approach would be Erlang or some other BEAM language, but there isn't much activity on that front either, as far as I know. McEx [3] was pretty neat, but it has long since been quiet.

[0]: https://valence.rs
[1]: https://pumpkinmc.org
[2]: https://github.com/ferrumc-rs/ferrumc
[3]: https://github.com/McEx/McEx
There's a large number of very well-capitalized startups in China trying to build reusable rockets, in competition to SpaceX. It's a significant national security priority for them. I'm pretty sure one of them will succeed soon. I don't understand your argument why they must all fail—I'm not clear if you've articulated such an argument, really, beyond "many people have failed, so it's probably impossible".

But SpaceX itself is existence proof that it's possible to do the things SpaceX does. And: the market in China is still wide-open for the taking, since SpaceX itself can't sell there.

Chinese newspace seems to be at an inflection point at this moment. I think there's five different private-sector teams that will attempt their first orbital booster recovery, either in this year or in 2026. That's: Deep Blue (Nebula-2); Landspace (Zhuque-3); Space Pioneer (Tianlong-3); iSpace (Hyperbola-3); Galactic (Pallas-1). Four of those five startups have already launched to orbit—Landscape even beat SpaceX (and Blue Origin) to the first orbital methane/oxygen rocket. (Not that you'd have heard about that on a Western-focused place like HN[0]. China's space startups are a blindspot for us, and, I think we're going to end up blindsided by them very soon, in the same way we were blindsided by Huawei, by DeepSeek, by BYD. We just ignore all the fast-moving developments there right up to the point they're impossible to ignore...)

[0] https://hn.algolia.com/?q=zhuque-2 (0 comments)
Think about Crimson Tide? A movie I know but still an example of internal conflict to could occur over carrying out controversial orders.
not Zig
Agreed. Also if you can generate your configuration at build time, it matters much less whether you use a Turing complete language or not. It then allows you to enforce limitations you care about, like e.g. forbidding network access, or making sure it builds within X seconds.
Just means they're the lead seller of hype in the hype bubble...
Logging: ignore/print/file

Don’t use bool at all.
I really like Lem, but Solaris is probably my least favourite of his stories. It does have the thing I most admire in Lem's work of being about true aliens - that is, not just us again but in a Halloween costume like a Star Trek alien - but somehow Solaris doesn't "work" for me even though say, Memoirs Found In A Bathtub or Futurological Congress do.
He really seems delighted when foreign countries reach out to him and to his friends for "making deals". It's all about personal connections with his big supporters and donors, who are all apparently part of the greater government now. It should be called the "recorruption" of the US.

The US is about to find out that the rest of the world is much more adelt dealing with a corrupt government because they have more experience with it
Yup, but you need to involve yourself deep into quite the diverse range of programming, computer science, math and physics questions to be able to even read the specs, much less implement them. Codecs involve highly arcane math, an emulator not only needs to take care about the CPU but a whole bunch of side chips and associated timings, compilers are an entire field of academic study, and to work with LTE or anything RF in general you need a solid background in RF hardware electrical engineering, RF propagation, antenna theory and god knows what else, just to be able to have a "testbed" that works with your test device but doesn't shut off service to everyone in a few hundred meters around you.

This kind of mental flexibility is what I really admire.
I don't get that warning on my Windows 11 laptop. Instead it updates and reboots while the laptop lid is closed.
Yep. I’ve seen this too.
cs used to be for people who loved computers before it became a default carrier. so it's not really surprising.
Neural Algorithmic Reasoning
I think the two basic synchronisation primitives are atomics and thread parking. Atomics allow you to share data between two or more concurrently running threads whereas parking allows you to control which threads are running concurrently. Whatever low-level primitives the OS provides (such as futexes) is more an implementation detail.

I would tentatively make the claim that channels (in the abstract) are at heart an interface rather than a type of synchronisation per se. They can be implemented using Mutexes, pure atomics (if each message is a single integer) or any number of different ways.

Of course, any specific implementation of a channel will have trade-offs. Some more so than others.
It says that the battery is for when you want to move the PC between desks, so I'd imagine it only lasts for five minutes or so.
You're describing a trip to had to do once and the difference in time would be what an extra hour in a 15 hour trip?
> A premium 'I need it now' service where you pay say £200 and an Uber driver is dispatched on a motorbike direct from the parcels current location to you.

Until your parcel arrives at a local facility, it’s likely in a gigantic stack along with hundreds of others heading to the same destination area. There would be no way to retrieve it early without spending hours breaking that stack apart, searching it, and putting it back together. Postal logistics just doesn’t work that way.

> 'Choose address later' service for sender's. I package up an item and send it to royal mail, and later can tell royal mail where to deliver it. Would be very handy for online shops. Royal mail then becomes an Amazon logistics competitor.

This would require a lot of warehouse space that they don’t have. They could spend the money to acquire it, but why? Shouldn’t they focus on their core service instead of trying to branch out into a totally separate field that they’ll have a hard time competing in?
Apple prepares more macOS-like features for iPadOS 19
> code output is rarely the reason why projects that I worked on are delayed

This is very true at large enterprises. The pre-coding tasks [0] and the post-coding tasks [1] account for the majority of elapsed time that it takes for a feature to go from inception to production.

The theory of constraints says that optimizations made to a step that's not the bottleneck will only make the actual bottleneck worse.

AI is no match for a well-established bureaucracy.

[0]: architecture reviews, requirements gathering, story-writing

[1]: infrastructure, multiple phases of testing, ops docs, sign-offs
>The only reason we don't have nice things like this: universal housing, healthcare, income, food security, is because a handful of dragons sit on and hoard unfathomably sized mountains of gold

This is simply not true. Barring pathologies like dictatorships, Billionaires ("Dragons") are generally not hoarding anything that affects anyone. Their fortunes are not "mountains of gold", but an estimate of how much value they could theoretically get from the rest of society if they sold their company.

It's not money that is "kept away" from the rest of us, in any way at all. We already have it. And if we don't, neither does the Dragon.

A wealthy society will create more billionaires ("Dragons") than a poor one, and a wealthy society also has more hospitals and food to share with the unfortunate than a poor society does.

Bezos, Gates etc are not hoarding hospitals, cheese or apartments. They cause more hospitals, cheese and apartments to exist since their companies employ people that need and can pay for all those things.

Even China has realized this by now. Hundreds of millions of people in China have had immense increase in standard of living the past few decades, while a few hundred billionaires have appeared.

Nobody has figured out how you get one without the other.
1. iMemories is a service that will digitize your old videotapes, photos, etc., and will keep them online as long as you're a subscriber. I used them some years ago and have kept the subscription active for convenient on-line access.

2. In updating my credit-card information, I noticed a reference to updated terms of service ("TOS"). This includes the following text:

"By providing Your Content to the Services, you grant to iMemories and its third party service providers and designated agents and subcontractors a worldwide, non-exclusive, royalty-free, sublicensable and transferable license to use Your Content (including to reproduce, distribute, prepare derivative works, display and perform it) in connection with the Services and iMemories' business, including for the purpose of promoting and redistributing part or all of the Services. ..."

(There are no section numbers; the heading is "Your Content.")

3. I haven't taken the time to check whether the above is new, or whether it's something that's been there all along.
And he wasn’t even a programmer by trade. AFAIK he used to work in Brussels at the European Commission, he started using Emacs for his writing and taught himself Emacs Lisp as a first programming language, probably by diving deep into the Emacs manual.
AI models of the brain could serve as 'digital twins' in research
Thank you for all the hard work you do on GrapheneOS.
Channels haven't really changed since then, unless there was some significant evolution between 2016 and ~2018 that I don't know about. 2025 Go code that uses channels looks very similar to 2018 Go code that uses channels.
One has to make a lot of capacity decisions around how well the unreplaced battery is going to perform years out if they are complex to replace, lugging around all that extra is also not good for (the environment or) a consumer who may be better served by half capacity batteries replaced twice as often, etc.
When installing graphene os I would consider very carefully if you want to relock the bootloader. In the past I have installed graphene os on my pixel 7a and a normal system update broke my system and made it unbootable. Because of the locked bootloader you can't reflash the os without wiping your data. It may be a very uncommon bug that may never happen to you, but honestly it shouldn't have happened to me either.
The problem is the barrier to entry is so low, the pool of fish so big, that people just have to go fishing. It's just too easy to make money.

So there's really no solution here. Disengage from places like Reddit; that's about it.
I think it's fair to be skeptical, but I'm aligned with the overall approach the author took and I think the approach itself is what is interesting (pure TS + AOT).

Author + contributors and ts-patch team[0] seem up for a rewrite in Go based on that thread! Might be bumpy, but a pure TS approach is really appealing. I'm rooting for them :)

[0] https://github.com/nonara/ts-patch/issues/181#issuecomment-2...
As comments in the code sometimes, comments in JIRA sometimes, sometimes text files.
I and clearly many other people have run into what one could only call “KL variance”, but it doesn’t seem to have an established name.

https://mathoverflow.net/questions/210469/kullback-leibler-v...
If you make them swappable then your concerns don't really exist. The service station would handle testing batteries and recycling falling ones, they would be uniform by design and it wouldn't matter if you got an older set since you'd be getting them swapped next stop anyhow.
Genes, not amino acids.

https://www.theverge.com/2020/8/6/21355674/human-genes-renam...
Depends.
Usually a mix of comments in the code before committing, text files, markdown notes, and whatever internal task system we’re using (Jira-style).

I haven’t found a silver bullet that makes all of that feel cohesive. It's usually a balance between “what’s fast right now” and “what future me might understand.”
iMemories TOS: We're free to use your videos, photos, etc., that we process
Actually just found one, via an old stack overflow post. Only a three page test, but proves the point:

https://svg.nicubunu.ro
I don't think the energy waste shuffling batteries around would be anything significant relative to the actual energy usage of driving cars around.

The rest of your points are things that battery swapping needs to address. But yet here we are - a Chinese EV company has 3000 battery swap stations in operation: https://cnevpost.com/2024/12/31/nio-adds-record-high-swap-st...
Before I began the m68k port, I was eyeing the rosco_m68k[1] as an initial m68k port, which would have been easier than going straight for the Powerbook 520.

But after a vintage buying spree a few years ago, I told myself that I wouldn't buy hardware anymore (unless it was really really cool or really really needed), so I'm on a strict "make do with what you have on hand" discipline :)

But that SBC looks nice.

Oh, I see that they don't sell kits anymore, you have to do the sourcing yourself. Maybe it's a bit more complicated.

[1]: https://rosco-m68k.com/
If reddit gets to the point of being frustrating rather than entertaining just teach yourself to turn it off. Heal your addiction.
All mosfets are like that.
The marketing folksbL at Toshiba just were not able get it removed, or they have had one too many complaint from folks running them near the absolute max while not cooling them properly.
Pen and notebooks.

For things I need to search some what regularly(like tech commands I need often but not often enough to memorise) I put them in obsidian
> Instead of getting the battery in the mail you'll get a cheap flashlight in the mail with a battery inside it.

Much like those Wrapper upstarts, then?
Thanks for the comprehensive reply! I gave it a go today with a USB stick. Just have to test a restore now :)
I find myself using channels in async Rust more than any other sync primitives. No more deadlock headaches. Easy to combine multiple channels in one state-keeping loop using combinators. And the dead goroutines problem described in the article doesn't exist in Rust.
Tata Motors have really good cars. But they suck big time at Quality Control and after sales service.

Yes they do own Jaguar and Range Rovers but it’s not meant for the Indian market. They do sell them here but not many takers.
If your monitor keeps following your head movements, even teeny tiny ones, it gets annoying very fast.
Show HN: Reverse Video Search Using Scene Embeddings and KNN Matching
Speaking as someone who joined it as early as 2007, getting banned from reddit with no explanation and no chance of recourse was the best thing that happened to be me in 2024.
Beware, this is just an ad
I don't know, sometimes I wonder if the member who forgets they posted the same only a day ago ... is in fact a bot. ;)

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