MurphyA/hacker-news huggingface dataset:
by commandersaki | 2025-10-24 16:31:41+00:00
I write this in pretty much every Typst thread.

Here are some notes I wrote when I started out with typst when comparing with LaTeX and some recent additions:

1. It doesn't generate 5 bloody files when compiling.

2. Compiling is instant.

3. Diagnostics are way easier to understand (sort of like Rust compiler suggestion style).

4. List items can be either - item1 - item2, etc. or [item1], [item2]. The latter is way better because you can use anchoring to match on the braces (like "%" in vim), which means navigating long item entries is much easier.

5. In latex you have the \document{...} where you can't specify macros so they need to be at the top, in Typst you can specify the macros close to where you need them. [I've been informed this is actually incorrect and Latex does allow you to specify macros anywhere]

6. It's easier to version control and diff, especially if you use semantic line breaks.

7. Changing page layout, margins, spacing between things, etc., footers with page counters, etc. just seems way easier to do.

8. Compiling with Typst is always one pass.

9. I'm not sure how this would compare with Latex but I'm starting law school in a month and I need to cite using AGLC4 which has a CSL (citationstyles.org) template supported by Typst; I have confirmed the CSL XML is correct but doesn't render properly in Typst. The workaround I found was to hand typeset my own citation and bibliography which sucks.

10. Most of what you need is built in to Typst and I've yet to need to import a package or template; even for the most basic documents with Latex you find you'll need to use many packages (such as fancyhdr for customised headers and footers).

11. Latex distributions can be a monstrosity, gigabytes in size like TexLive, and I acknowledge you can get slimmed down on-demand version such as Miktex. There's just one distribution of Typst and its pretty lean, although it might be nice to have multiple implementations in the future.

As for Typst 0.14 - I'm really happy about Accessible PDF feature and HTML export, will give each a whirl.
by LunaSea | 2025-10-24 16:31:54+00:00
> AFAIK, websockets doesn't do authentication?

Websocket allows for custom header and query parameters which make it possible to run a basic authentication scheme and later on additional autorisation in the message themselves if really necessary.

> And the encryption it does is minimal, optional xor with a key disclosed in the handshake. It does do framing.

Web Secure Socket (WSS) is the TLS encrypted version of Websockets (WS) (similar to HTTP vs. HTTPS).
by mcny | 2025-10-24 16:31:58+00:00
I want to express my gratitude to the typsr team and congratulate them on their release.

I got started with typst because I wanted to put my resume in a got repository, for no reason other than to learn git.

One day I want to write a crosswords document using typst. I don't know how yet because I can't get my tables to be squares but one day... (:
by leohonexus | 2025-10-24 16:32:16+00:00
Why the condescending tone, OP has a point. Techniques like RigAnything[0] exist - whether this is within the scope of this project is another topic, but this seems like a reasonable request to me (especially considering how many x_2_y-named projects are ML related)

[0] https://www.liuisabella.com/RigAnything/
by groby_b | 2025-10-24 16:32:34+00:00
As somebody avowedly on the left-hand side of the political spectrum - yep. I know the crime stats. I also have seen friends of mine get robbed 3 times in 4 years, once with them in the house. (LA, not Oakland. And in the nice suburbs.) And it's not an isolated incident.

I know that the crime stats say crime is down. But that's not the lived experience for a lot of people. And unless politicians are willing to acknowledge there are issues, and do the work to tackle them, you get demagogues. Right-wing ones will use it to extol the virtues of cracking down, left-wing ones will use it to talk about the plight of the downtrodden.

Meanwhile, you still have people for whom crime is the best option, and you have people who suffer from crime. We could choose to solve those problems (independent of political leaning), and we could choose to solve both sides of the coin. But that'd probably be too rational to sell at the voting booth.

> It was the votes from those high crime districts that got Trump elected last year. The people down there don't watch the news.

[citation needed] They do get enough info through various channels to decide "Trump might fix it". And a good chunk of that is news. We can debate the veracity of info they derive, and how they make their decisions, but let's not go "poor people don't watch news". Mass media exists and has effects, across all demographic strata. Mass media is a tool of demagogues, willing or unwilling.

But that's really also the point of the article - "if people just had better info" isn't actually a workable answer to demagogues. And so debates about media consumption are mostly useless waffling. See above re "what if we instead thought about fixing real issues"
by YeGoblynQueenne | 2025-10-24 16:33:02+00:00
>> Really all that matters is deaths per passenger mile, and weighted far less, injury/crash per passenger mile.

That's not exactly right. You need to take into account how likely it is for accidents to happen, not just the number of miles travelled. If the low probability of accidents is taken into account it turns out it takes many more millions or even billions of miles than already travelled for self-driving cars to be considered safe. See:

Driving to Safety

How Many Miles of Driving Would It Take to Demonstrate Autonomous Vehicle Reliability?

Given that current traffic fatalities and injuries are rare events compared with vehicle miles traveled, we show that fully autonomous vehicles would have to be driven hundreds of millions of miles and sometimes hundreds of billions of miles to demonstrate their safety in terms of fatalities and injuries. Under even aggressive testing assumptions, existing fleets would take tens and sometimes hundreds of years to drive these miles — an impossible proposition if the aim is to demonstrate performance prior to releasing them for consumer use. Our findings demonstrate that developers of this technology and third-party testers cannot simply drive their way to safety. Instead, they will need to develop innovative methods of demonstrating safety and reliability.

https://www.rand.org/pubs/research_reports/RR1478.html
by danudey | 2025-10-24 16:34:08+00:00
The objections I see against Rust and Rust rewrites of things remind me a lot of the objections I saw against Linux and Linux users by Windows users, and against macOS and macOS users by Linux users. Dismissive language and denegrating comments without any technical backing; assertions of self-superiority. "It's a toy", "it's not mature", "it's a worse version of blah blah", "my thing does stuff it doesn't do and that's important, but it does things my thing doesn't do and that's irrelevant".

Honestly it's at the point where I see someone complaining about a Rust rewrite and I just go ahead and assume that they're mouthing off about something because they think it's trendy and they think it's cool to hate things people like. I hate being prejudicial about comments but I don't have the energy to spend trying to figure out if someone is debating in good faith or not when it seems to so rarely be the case.
Ask HN: How did you scale AI development?
by logicallee | 2025-10-24 16:34:39+00:00
I have a medium sized project AI is developing with some guidance from me. (This is the only way I can put it, since I don't have expertise in the technologies it's using, it's like I'm managing its development.)

As I develop it, I run into regressions where previously working features become broken. I'd like to keep iterating on it this way, since I have built perfectly working applications with AI. Do you have any tips for me? How did you successfully scale developing with AI?
by vysakh0 | 2025-10-24 16:34:52+00:00
Duckdb is an excellent OLAP db, I have had customers who had s3 data lake of parquet and use databricks or other expensive tool, when they could easily use duckdb.. Given we have cursor/claude code, it is not that hard for lot of use cases, I think the lack of documentation on how duckdb functions -- in terms of how it loads these files etc are some of the reasons companies are not even trying to adopt duckdb. I think blogs like this is a great testament for duckdb's performance!
by jmull | 2025-10-24 16:34:52+00:00
Yes, using something like zod at boundaries is the right approach.

(Personally, I'm not convinced zod itself is the way to go -- I'm suspicious of its lack of stability. The last thing I want to do is redevelop the boundaries of my system in a few years because zod 4 has been killed off in favor of zod 5, and then again in a few more years for zod 6, etc.)
by il_nets | 2025-10-24 16:36:12+00:00
Has it though? And what "market" are you referring to here?

Fully agreed that if you want 100% full 6DOF immersion - go and pay hundreds or even thousands of dollars to wear a heavy and cumbersome headset on your head. We're not disputing that or thinking of competing with that.

What we're saying is that there may be a much larger market consisting of people who are not ready to commit to pay so much money to wear something that will give them motion sickness after 10 minutes.

If you're developing a VR game your market consists of 50 million people around the world who owns a VR headset. That's great. But since you already built the VR world in 3D, you could also open up the market to billions of people who want to play your game but on their own devices.

Admittedly, it won't be the same experience, but it could be a "midpoint". Not everyone can afford and is willing to pay for a VR headset.
by gavinmckenzie | 2025-10-24 16:36:17+00:00
There are many motivations for shooting jpeg with film sims, from just not wanting to expend the effort editing photos to my motivation as a colour-blind person who simply cannot see colour well enough to manually adjust photos. For me, it’s incredible being able to choose a film simulation and be happy with the result even if I know that the colours I’m seeing aren’t quite the same that others will see. It’s the entire reason I bought into the FujiFilm system.
by gpm | 2025-10-24 16:36:36+00:00
There is a reference count in the algorithm in the sense that the algorithm must keep track of the number of live shared borrows derived from a unique borrow or owned value so that it knows when it becomes legal to mutate it again (i.e. to know when that number goes to zero) or if there are still outstanding ones.

Borrow checking is necessary for dropping and destructors in the sense that without borrows we could drop an owned value while we still have references to it and get a use after free. RAII in rust only works safely because we have the borrow checker reference counting for us to tell us when its again safe to mutate (including drop) owned values.

Yes, rust doesn't support going from an &T to an &mut T, but it does support going from an <currently immutable reference to T> to a <mutable reference to T> in the shape of going from an &mut T which is currently immutably borrowed to an &mut T which is not borrowed. It can do this because it keeps track of how many shared references there are derived from the mutable reference.

You're right that it's possible to leak the owning reference so that the object isn't freed when the last reference is gone - but it's possible to leak a reference in runtime reference runtime reference counted language too.

But yes, it's not a perfect analogy, merely a good one. It's most likely that the implementation doesn't just keep a count of references for instance, but a set of them to enable better diagnostics and more efficient computation.
by klustregrif | 2025-10-24 16:36:43+00:00
Poker is also skill based and also gambling. The concept that gaming lootboxes isn’t gambling because there’s some tangential element of skill involvement is just a strange way trying to protect something that is obviously gambling. It’s not complicated. The only complicated element is that these business grew large enough to get lobby orgs influencing politicians before the law got effectively enforced. You won’t ever see a casino with kids running rampant getting away with a shrug and “how are we going to enforce age restrictions” yet gaming companies get away with this all the time.
by mariusor | 2025-10-24 16:37:01+00:00
> sysvinit had no problem being told to mount /usr [..] if you set up an init script to run before /usr was available,

> the world needs to make sure /usr is mounted before systemd even gets started, so systemd doesn't have to fix its bug.

Unironically in the same post despite being, to my untrained eye, the same thing.
by matwood | 2025-10-24 16:37:10+00:00
I don't consider poker gambling (that would be something like craps which I also find fun). It is a skill you can build and not necessarily lose money. I also don't consider it lying when everyone at the table agrees to how the game is played. Playing 'good' poker requires folding a lot and it can get boring sitting at a table.

Poker is a lot like business distilled down. The player is managing resources and deciding where to use them while dealing with incomplete information.
by toast0 | 2025-10-24 16:37:12+00:00
I'm not sure why the swapsies plan is unreasonable?

I show up for a flight to Mordor scheduled departure at 8 am, you for a scheduled departure at 9:30 am.

The plane scheduled for the 8 am departure is unavailable (for whatever reason) and there's a plane that can board for a 9:30 departure... Shouldn't I get preference since my flight was scheduled to leave earlier? When the other plane becomes available or is replaced, your flight will go out on that (or whatever flight in the swapsies chain).

What alternative would you prefer:

a) Early flight has to wait, maximal delay for those passengers trading off with minimal delay for others

b) Something based on class of booking + airline status + time of booking, like they use for upgrades. Frequent fliers get minimal delay, ultra economy gets maximum delay

c) prefer passengers with connections that haven't yet been missed, otherwise a or b? Maybe just prefer passengers where makable connections avoid an overnight missed connection. This one makes systemic sense, but may not be easy to compute.
by Karrot_Kream | 2025-10-24 16:37:16+00:00
Why are you reading equivocation there? You're being way too defensive. Just because Trump is the worst doesn't mean other things aren't also bad, just less bad. Are you implying that I'm not supposed to talk about anything other than how Trump is bad? Again what's the point of this purity testing?

If I caveat my statements a million ways to convince you that I'm not equivocating then will Trump stop being President?
by scottlamb | 2025-10-24 16:37:24+00:00
I think if you've hit this problem and are looking for solutions, this article looks like a helpful read. There are lots of ideas there.

I wouldn't say this is a super common problem (though I have hit it). The opening example here is that logic outside `Parent` is maintaining its summary state based on its children. That's unusual; typically `Parent` itself would be responsible for that, and so you can inline the logic without having to expose the fields.

Sometimes inlining the logic gets impractical though if the logic is super long. In that case it can be helpful to split it into sub-structs so that you can easily call a method on a group of fields. I did that here, for example: <https://github.com/scottlamb/moonfire-nvr/blob/ff383147e4ff7...>

There have been language proposals to define "view types" which are basically groups of fields that are borrowed. <https://smallcultfollowing.com/babysteps/blog/2021/11/05/vie...> IMHO, they're not worth the extra language complexity.
by bri3d | 2025-10-24 16:37:41+00:00
This exact thing is irrelevant to Asahi; the reason they don't support suspend-to-disk is that their drivers don't support full reconfiguration. This is a difficult task, as is "true suspend," because Macs have tons and tons of peripheral SoCs running firmware with their own SRAM, so resuming from suspend or hibernate creates a delta between the firmware state and the system state. (and, before the usual Apple trolls show up, this is true on x86 lately too, but on x86 the driver and platform interface is more standardized to support these kind of state changes without as much OS support).

Needing a way to securely verify the hibernate image is ALSO a problem, and one of the reasons Asahi haven't focused on suspend-to-disk, but it's not the first-order issue.
by advisedwang | 2025-10-24 16:37:58+00:00
Linux is 34 years old, and some of the Unix-ism borrowed are even older. There is genuine cruft that has downsides. Different relative priorities of backwards comparability, maintainability and the various issues the legacy issues cause are reasonable.

Systemd basically arose out of a frustration at the legacy issues so the whole project exists as a modernizing effort. No wonder they consider backwards compatibility low priority.
by tracker1 | 2025-10-24 16:38:31+00:00
I'm 50 and prefer Rust... though tbh I haven't worked much with C or Rust. I just never liked C, preferring to stick to higher level languages, even C# over it. I do like Rust though, even if I feel like I'm pulling my hair out sometimes trying to grok ownership symbols. Most Rust I understand by looking at it... I can not say the same with C.
by jawns | 2025-10-24 16:38:51+00:00
> People whose behavior and beliefs align with their company’s prevailing culture may benefit from sharing more about themselves at work, Chamorro-Premuzic says.

> However, people who express “authentic” opinions that run counter to the group’s views may risk damaging their reputations or relationships.

I feel bad for anyone who doesn't see this as obvious.

I've seen a lot of folks celebrate that their work allows them to be their authentic selves, even though they're well aware that the same opportunity isn't afforded to those with disfavored views or characteristics.
by jackdoe | 2025-10-24 16:38:54+00:00
After 3 years of building products with AI and using it for at least ten hours per day, I started to think like Hayao Miyazaki.

> I am utterly disgusted. ... I strongly feel this is an insult to life itself.

https://www.youtube.com/watch?v=ngZ0K3lWKRc

or David Simon:

SHAPIRO: OK, so you've spent your career creating television without AI, and I could imagine today you thinking, boy, I wish I had had that tool to solve those thorny problems...

SIMON: What?

SHAPIRO: ...Or saying...

SIMON: You imagine that?

SHAPIRO: ...Boy, if that had existed, it would have screwed me over.

SIMON: I don't think AI can remotely challenge what writers do at a fundamentally creative level.

SHAPIRO: But if you're trying to transition from scene five to scene six, and you're stuck with that transition, you could imagine plugging that portion of the script into an AI and say, give me 10 ideas for how to transition this.

SIMON: I'd rather put a gun in my mouth.

https://www.npr.org/transcripts/1177569966
by Avamander | 2025-10-24 16:39:45+00:00
This extension amongst other features has not been implemented in Dovecot for a long time now. If it were easy (or easier) I'm sure it would be there already.

I do get the sentiment that building on top of old is usually better and more efficient, but this unfortunately does not carry over well to the entire ecosystem and each project. So it's better to replace in some cases, maybe not with a new protocol but a new implementation.

But to answer your question, you can actually do both. Stalwart both added the feature and support for all new protocols. It didn't take a decade either.
by pdimitar | 2025-10-24 16:39:47+00:00
My impression is exactly the same. For multiple years now I keep seeing grandiose claims about "Rust fandom" and all I ever see in those threads are... the C people who complain about that Rust fandom that I cannot for the life of me find in a 300+ comments thread.

It's really weird, at one point I started asking myself if many comments are just hidden from me.

Then I just shrugged it off and concluded that it's plain old human bias and "mine is good, yours is bad" tribe mentality and figured it's indeed not worth my time and energy to do further analysis on tribal instinctive behaviour that's been well-explained in literature for like a century at this point.

I have no super strong feelings for or against Rust, by the way. I have used it to crushing success exactly where it shines and for that it got my approval. But I also work a lot with Elixir and I would rarely try to make a web app with Rust; multiple PLs have the frameworks that make this much better and faster and more pleasant to do.

But it does make me wonder: what stake do these people have in the whole thing? Why do they keep mouthing off about some imaginary zealots that are nowhere to be found?
by dylan604 | 2025-10-24 16:39:50+00:00
It's still a habit of mine. I have 2 external monitors on my desk connected to my laptop. One of them is a bit older LCD, but still functions well for purpose. It has a fun little quirk where when it first turns on there are a few vertical lines of a solid color until it has "warmed up" and the lines disappear after a few minutes. By using a screen saver when I get up and lock the screen, I don't have to wait for that screen to warm back up. At night, it does eventually turn off the screen saver after my timeout, but at least it's not every time I return to the desk.

Also, from a time long ago in a galaxy far away where we had production CRTs that were color calibrated, we would not turn them off either. They had a saver mode as well by running a not quite black signal to them, but not enough to burn in phosphors. It was even meant to "even" out some of them.

So because I'm that old that has used CRTs for such a long part of my life, screen savers will always be just part of the routine.
by tgma | 2025-10-24 16:41:01+00:00
> literally doesn't matter to them if X bankrupts them

If that were true, you'd not see economy as the top or one of the top issues. Perhaps some marginal short term economical concerns can be offset by personality/perceived cultural improvements, but not to the point of bankruptcy or even close.

"It's the economy, stupid" was Clinton's slogan after all.
by rzerowan | 2025-10-24 16:41:04+00:00
I think for generic OEMs that may hold , however for manufactures like Huawei with their matebookX line the build quality is pretty much on-par while the components and options being offthe shelf standard means it should be easier to upgrade/support and port Linux to than MacBooks.Also the price is pretty much competititve for the kit that one gets. The blocking isseu would be getting one as the whole US attack on the company means their kit is pretty much limited edition within China at the moment currently.Maybe in a year or two they should be available at previous volumes.