Hacker Newsnew | past | comments | ask | show | jobs | submit | CamouflagedKiwi's commentslogin

I generally like `encoding/json/v2` and I'm glad they did it.

I wish they'd left `MarshalIndent` in there though. The equivalent code is super complicated and non-obvious, so it's a pain to migrate, and it's a pain when you're banging out some quick code and want to dump some readable JSON. I suppose these days the LLMs can write the complicated version for us, of course.


I'm not sure if I'm missing something, but isn't this functionality just moved into jsontext? https://pkg.go.dev/encoding/json/jsontext#Value.Indent

  v := jsontext.Value(b)
  v.Indent()
  fmt.Println(string(v))

    func WithIndent(indent string) Options
https://pkg.go.dev/encoding/json/jsontext#WithIndent

    json.Marshal(v, jsontext.WithIndent("  "))

?

I love paying 10 cents to some billionaire to serialize some json. Screw using my brain!!! Ill rent me some competency

Not an insult to you, its just how I feel things are going, myself inculded at times.

Edit: why do yall downvote this lol, you know its true.


This feels like it should ideally be something public in the structs package so anyone can leverage it, not just a specially blessed internal thing for the sync package.


It's not a specially blessed type. As the article says, anything that implements sync.Locker acts like this.



You can very easily define one yourself.


You can exploit the mechanism described in the article yourself, but it's already changed once in the past and is not part of any compatibility guarantee. As with structs.HostLayout, a blessed structs.NoCopy in the standard library could guarantee that it works forever. I think the bigger issue remains that it doesn't actually do anything in the language (but, then again, neither does structs.HostLayout--yet).


I agree, its a nice piece of semantics to be added to a struct


It's absolutely not for these models. There are plenty of consumer GPUs out there with 8 or 12GB VRAM - they are comparatively very fast at inference but just aren't big enough to run lots of the models you want. Also context management is a massive pain.


I run qwen3.5-9B on an RTX 3080 with 10GB of vram. It runs at ~77tk/s with around 50k context size.

As soon as I switch to a model that doesn't fully fit into vram it tanks to <10tk/s which makes it unusable for me for most tasks.


Bit dubious about how some of this hangs together. One detail that stood out to me:

> They removed mounting screws, disconnected the servers and put them in laundry bags — 20 bags in all, each large enough to hold four or five servers.

That's like 100kg or more of servers in each bag? I guess that is not totally impossible but it doesn't seem like a particularly easy way to move them around. It's not like putting five laptops in a bag and walking out with it over your shoulder.


Maybe they mean the rolling laundry carts that one puts such bags in. Not sure what one's excuse for pushing a bunch of them around a data center would be though.

I agree the details don't smell right though.


Anyone who has ever seen or handled a simple 1U server knows this is absolute bullshit. And laundry bags have to be absolutely the worst possible way to transport something like this.

And they stole 80 of them? So basically a truckload? Sure.


I think pretty unlikely: there is enough pub density that it's unlikely that removing that requirement nets 10 minutes of saved journey time from all the furthest destinations.


Probably because they don't want to self-host Windows or MacOS servers when they can pay someone else to do that for them (or Linux ones, I assume that is within their wheelhouse for production but CI is a bit of a different beast to model inference).


Their policy doesn't cover upstream, it's only for the Gentoo project specifically. It's clearly infeasible for them (or Debian) to try to control what their upstreams do, especially with the kernel accepting LLM contributions now.


Interesting article, seems more balanced than Andrew Kelley's one that it links to.

The thing I still think is wrong: why are Anthropic rewriting a Javascript runtime from Zig to Rust? Why not rewrite Claude Code itself in Rust (or Go or whatever, lots of options there) and drop Bun completely. That actually seems like an easier solution (rather than having to create a performant, correct Javascript runtime, just rewrite your CLI console app in something else) and the final result is better (smaller and faster) although likely not on the most critical axes for them.


> why are Anthropic rewriting a Javascript runtime from Zig to Rust?

there is a chance they tried..


You can't really tell people that they just can't be bankrupt though. What are they supposed to do if they have debts they can't pay but they're not allowed to declare bankruptcy because they pinky swore they wouldn't do it seven years ago?


They’re supposed to stay in debt for the rest of their lives, clearly.


Yeah I had a big lol when I read “just don’t let people declare bankruptcy for 7 years after graduation” - how in the world could this be good public policy?


It was expressed in a strange way but I assume what they meant was that if the former student goes bankrupt within the 7-year period then the student loan is not cancelled.


Why would it be better to not allow the debt discharged ever? That is the current situation. 7 years as a limit is better policy than "you owe this forever no matter what"


Bankruptcy is such an alien concept. Adults took out consensual loans from another adult and now they get to just say oops "take backsies"?

It's one thing if you're in a crazy desperate situation and someone takes advantage of you, I could get that. But if you're not desperate and you took money from someone else and can't pay it back? Theft.

The rest is just how we manage to keep that low on an aggregate level in our society that takes care of our own - which we want to do.


The idea is that its better for society to hit the reset button, pay creditors what they can be paid out of liquidation, and potentially have a productive member of society instead of somebody with absolutely nothing left to lose and maybe some grudges.

It's not like bankruptcy is painless.


They don't really "just get to say" that. Declaring yourself bankrupt is a fairly major thing that will have long-term consequences. It clearly isn't desirable to do casually, we don't see it often (at least not in the personal sense; businesses can be a bit different).

> It's one thing if you're in a crazy desperate situation and someone takes advantage of you

In that kind of situation, declaring bankruptcy is likely not going to help you so much. Those people are going to come after you anyway.

I think you sort of fundamentally misunderstand this. Bankruptcy isn't thievery - it's a solution for people who get themselves into a bad situation and don't have a way forward. Say you bought a house with a mortgage, the value of the house has now dropped for some reason so you have negative equity, and you lose your job and can't afford to make the repayments any more. What should happen? You don't have money to pay what you owe, and you can't get it because your total net worth is negative. Saying that's theft doesn't help the question of what to do - society doesn't benefit from dumping on that poor person any more.


Well the alternative is people do rational things like self emolate, self defenestrate, suicide, and familicide. During the ‘08 financial crisis I was reading horror stories of Spanish debtors topping themselves because financial fuckups in NYC, London, and Madrid caused a problem other people had to pay for.


> But if you're not desperate and you took money from someone else and can't pay it back? Theft.

Bankruptcy is a civil matter, not a criminal matter. Charging somebody with theft, whether appropriate or not, does not resolve the civil debt. So, they are convicted of theft and still haven't paid back their debt. Then what? Fine them? Seems pointless in a bankruptcy situation. Indentured servitude? Slavery is not ever a winning argument. Debtors' prison? That just shifts the indentured servitude to the state, has been tried extensively throughout history, and doesn't actually make things better. Bankruptcy as as solution acknowledges that the situation is unwinnable and starting over from nothing, with a public notice to others to be wary about extending credit, is likely the only way out.


The goal of having laws is as much about being fair as it is about having a society that can function. Aka "the target amount of fraud is not zero".

Sometimes it's better for both parties to cut their losses and move on to do better things.

Looking at this from the other angle: if value can be created out of nothing it can also disappear into nothing when investment fails.


Alpha Centauri was such a fantastic game. And even though it encourages you to move forward with technology, the tone has this unease about what you're doing. There's a lot to be learned from it.


Between Yang, Zakharov and Miriam the whole unease aspect of tech progress goes to 11. Absolute gem of a game.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: