skysight-inc/HackerNews huggingface dataset:
There's an infinite amount of mistakes in every language. Obviously the meaning behind this is mistakes only makeable in golang.
For one thing, `f"something"` is of type `str`; `t"something"` is of type `string.templatelib.Template`. With t-strings, your code can know which parts of the string were dynamically substituted and which were not.
Technology facilitated us getting to this place in the first place. Misinformation is a beast, and a profitable one at that.
It's not a perfect defense.

It doesn't defend against abuse of process. Merely being subject to a libel suit takes an enormous amount of time and money.

And the truth is not a defense to libel. The defendant must be able to prove that whatever they've said is substantially true.

It's honestly pretty amazing that anything negative gets published about the rich or powerful in the UK.
Wait, this doesn't work with a current-gen model like 4o? Is this a technical limitation?
Why only Pixel 9? Surely none of the computation is on-device anyways
Every language has mistakes. But it's also 100% true that many languages have more mistakes then others.
Self-Hosting A Cluster On Old Phones
Well, my argument is more-so directed at the people who say "well, the human brain is just a statistical model with training data". If I say: Both birds and airplanes are just a fuselage with wings, then proceed to dump billions of dollars into developing better wings; we're missing the bigger picture on how birds and airplanes are different.

LLM luddites often call LLMs stochastic parrots or advanced text prediction engines. They're right, in my view, and I feel that LLM evangelists often don't understand why. Because LLMs have a vastly different statistical model, even when they showcase signs of human-like intelligence, what we're seeing cannot possibly be human-like intelligence, because human intelligence is inseparable from its statistical model.

But, it might still be intelligence. It might still be economically productive and useful and cool. It might also be scarier than most give it credit for being; we're building something that clearly has some kind of intelligence, crudely forcing a mask of human skin over it, oblivious to what's underneath.
>why AI technology is being so aggressively advertised nowadays[?]

I'm not sure I've actually seen an advertisement for AI. It's being endlessly discussed though on HN and other places, probably because it's at an interesting point at the moment making rapid progress. And also shoved into a lot of products and services of course.
In a world where the second amendment was repealed, what gun control laws would you like to see passed and what would you expect them to accomplish?

Also, how would you account for the increased violent crime rate due to average citizens being unable to defend themselves against armed criminals?

Additionally, how would you propose that we the people keep our government from becoming tyrannical in the absence of our right to bear arms? It seems particularly absurd to give up our right to firearms when so many people are expecting our current president to become a tyrannical, fascist dictator.
Enter email, then presented with: Your credit card will be charged: €49.00

I’m all for monetizing our own work, but mastering a skill in 30 days is a wild claim. I’m interested to see what kind of rubric for learning it can generate for various topics, but not for the price of admission.

No thanks.
And I'm saying the golden rule is certainly not applied in social politics. 90% of people are happy to ban pollution from a small groups, while exempting themselves and all their own hobbies. The smaller the group, the more punitive the majority is willing to be. Fishermen might not get much sympathy, but prohibition on dog ownership or international vacations is unthinkable.

In my experience, small businesses, farmers, and sole proprietors almost never win out over environmental concerns. Big business gets a pass.

I think hunters and outdoorspeople are often positioned to see the hypocrisy of all this. They see a few tiny fishing boats being banned from California harbors, while massive container ships chug through the bay endlessly full of single use garbage.

They see fishing restrictions while entire municipalities discharge wastewater into the rivers and factory ships dragnet the ocean to sell at Safeway.
Because they don't know it's failed.
I see this a lot with municipal government or utilities websites. I rent and I'm not about to leave my state any time soon - it's not like I can "churn" and _not_ pay my power bill or go to a competitor.
There's also a bot account on mastodon replacing garfield word bubbles with song lyrics. sometimes it's pretty substantial.
Headlines? So are you just reading mainstream news? Diversify your sources and you'll have a much more balanced perspective.

Worked for me.
Cheese cultures have been bred to be relatively genetically stable but they still experience genetic drift over time that can affect the product in unforeseen ways. Contamination can also introduce unknown pathogens and bacteriophages can cause mutations. Cheesemakers can eliminate the vast majority of the variation in the process but its core input is still very much alive and organic so there’s only so much they can control it.
f-strings immediately become a string, and are "invisible" to the runtime from a normal string. t-strings introduce an object so that libraries can do custom logic/formatting on the template strings, such as decided _how_ to format the string.

My main motivation as an author of 501 was to ensure user input is properly escaped when inserting into sql, which you cant enforce with f-strings.
The primary technology we are lacking an implementation for is voter ID. After we ensure only eligible voters can cast a single vote, the next valuable technology is education.
> were prompt templates for LLM prompt chaining a use case that influenced the design in any way

Maybe not directly, but the Python community is full of LLM users and so I think there's a general awareness of the issues.
The announcement of the improvements is also conspicuous so people feel compelled to buy new watches.
> It seems almost like a language for computer science more than for programming.

I don't think that's entirely fair. Lisp is ideal for certain types of problems and can give great clarity when in its lane. However, while it can be used as a general-purpose language, it isn't great at that. It's a bit of a special-purpose tool.
I think "how can you teach this to beginners?" is a fantastic, low-hanging fruit option for encouraging the wizards to think about that very important type of user.

Other than a more broad "how is the language as a whole faring?" test, which might be done through surveys or other product-style research, I think this is just plainly a hard problem to approach, just by the nature that it's largely about user experience.
You're shifting the goalposts from "they're ethnically the same people with a shared culture" to "by the standards of large landmasses China was more cohesive and united than India".

Comparing Chinese unity favorably to India is damning with faint praise, and doesn't do anything at all to help your original argument that China has better "social cohesion and political stability" than Western countries by virtue of having less immigration.

We're not comparing the social cohesion of landmasses, we're comparing the social cohesion of states, and India is a particularly disjointed example to use.
Low magnesium? I was having serious muscle cramps and found Mg supplements were highly effective.
Hmm, quality only deteriorates in the "premium" section if those wealthy enough to buy that version demand that it cheapens itself - by no longer buying the premium version

Edit: I can point to cases of that happening

Ferrari, who couldn't turn a profit so sold to another car manufacturer that created a "profitable" version that, quite frankly, is a shadow on its former glory
Original source of the 37-year-old "chew gum" meme: https://www.youtube.com/watch?v=Wp_K8prLfso&t=1s
Meanwhile in the US all the post boxes near me have been gradually retrofitted so that you can no longer fit small packages into them, only thin envelopes. It was a nasty surprise when trying to mail gifts.
There are quite a few businesses that don't feel the need to grow but instead focus on providing a consistent service and good employee benefits.

Keeping a website generally available 24/7 is usually pretty trivial of a cost compared to the costs for everything else in running a business so to me putting effort into limiting business hours seems unproductive. If you receive significant malicious traffic or attacks during off hours it may make sense but otherwise the cost of keeping the lights on for a server are usually marginal at most.
I’m not sure if you are trolling, but I’m pretty sure just attaching a file to an email is often more efficient. Not to speak of legibility or maybe the intended use for said documents. Sadly I don’t think you are trolling.

Also: a computer (where the documents were) has the required hardware and software to send the documents as is. Your phone is the special and external hardware in this case, not the computer (also probably more expensive than the computer). Your phone requires signups and logins as much or even more than computers. I don’t know what paid subscription you would need to share these documents. Plenty of free methods. I don’t know why you are talking about malware? Do you think the documents might mutate into malware while traveling the internet? I think the risk exists with pictures too, be careful out there!
Did you know there exists languages that don't have run time errors? Languages that you can never crash outside of an OOM.

That means you can't find a language with no mistakes. But across all languages there are languages with astronomically more gotchas and mistakes then others.

Golang is one of these languages that is astronomical. I mean just compare it to the language with zero runtime errors.
The registration website for my community college was like this. At certain times of night (and maybe weekend? not sure) it wouldn't let me register, and would instead put up a message that it was closed. I found this profoundly irritating. The website clearly worked fine, or I wouldn't be able to see the message. I understand if you can't support it outside of business hours, but at least let me try, maybe, and we'll cross the support bridge if we come to it? There's no good reason (i.e. not reeking of incompetence) for the website to actually break in the few weeks of registration, so it's most likely a moot point in practice. Is there a hamster running in a wheel who powers the server? Does he have a union? Just let me sign up for my classes, you assholes.

Ahem. Anyway. Institute "business hours" for your website at your own risk. Among your users you'll find it polarizing at best.
I am sure of that. I think people forget the difference in living conditions then.

Things that were common in that era that are rare today:

1. Living in shared accomodation. It was common then for people to live in boarding houses and bedsits as adults. Today these are largely extinct. Generally, the living space per person has increased substantially at every level of wealth. Only students live in this sort of environment today and even then it is usually a flat (ie. sharing with people you know on an equal basis) not a bedsit/boarding house (ie. living in someone's house according to her rules--no ladies in gentlemen's bedrooms, no noise after 8pm, etc.).

2. Second-hand clothes and repairing clothes. Most people wear new clothes. People buy second hand because it is trendy. Nobody really repairs anything because that is all they can afford. People just buy new. Nobody darns socks or puts elbow patches on jackets where they have worn out. Only people that buy expensive shoes get their shoes resoled. Normal people just buy cheap shoes more often and they really do save money doing this.

Today the woman that would have been a typist has a different job, and a more productive one that pays more.
The sad part is that most of us would be like that. I know I am.

I don't say this with pride, mind you. But it annoys me to no end when people LARP as if they would be like the ones who helped Jews hide in places occupied by Germany when things were getting ugly in late 1930s. Those people are rare.

You see, it takes a lot of fortitude to stand up to tiranny. You are effectively putting the well being of you and yours on the line. Especially now that I have a child, I am very sure I would look the other way in that scenario, hoping I was not the next.
I think some way to deprive the fascist wealthy of their wealth would be a great way to start.
> assumptions about always-on digital services

And maybe also always-on humans, which some companies seem to ridiculously expect.

I really don't understand this obsession with 24/7 uptime for non-critical systems. Requiring your engineers to be always on-call and debug something at 3am is a health hazard and should be treated like one.

If a photo-sharing app is down at 3am, I'm sure the users can go to sleep and wait till 10am. This isn't some oxygen life support system. If you have that many users in multiple time zones, then hire people in multiple time zones.

Even if TurboTax crashes on 4/15 at 11:35pm and the engineers don't fix it until the next workday, resulting in millions of people not being able to file their taxes, I'm sure the IRS might grumble a lot but would give people an extension. It'll all be good, and everyone will get to sleep .
Thought it would be about vibe coding by the title alone :D
Thanks mate! (BTW: Indenting code with four spaces makes HN format it like code.)

So the thing I'm still not getting from your example is allowing the template itself to be customized.

evil = "<script>alert('evil')</script>"
template1 = t"<p>{evil}</p>"
template2 = t"<h1>{evil}</h1>"
html(template1)
html(template2)
Right, but it is possible to write a template -> string function that doesn’t sanitise and use it (or more realistically use the wrong one). Just as it’s possible to unsafely cast an unsafe string to a sanitised one and use it (rather than use a sanitise function that returns the wrapper type).

They are both similar in their unsafety.
Or capabilities. Additive security has been known for decades; Linux really dropped the ball here. Linux file descriptors (open file descriptions, whatever) are close to a genuine capability model, except there's plenty of leakage where you can get at the insecure base.
Are the protocols compatible enough such that someone could proxy JMAP to CalDAV?
If you go on twitter/x you will find a lot of wild ideas, many completely contradictory with other groups on x and or reality. It can be scary how polarized it is. If you open a new account and follow/like a few people with some odd viewpoint, soon you feed will be filled with that viewpoint, whatever it is.
I got a question about the example shown, the goroutine one marked as #63, I'd copypaste but it's an image.

Is there a reason the common mistake is about goroutines specifically? If I instead just made function closures without launching off goroutines, would they all refer to the same 'i' variable? (I assume it's maybe just that the mistake tends to go hand in hand with goroutine-launching code in a pattern like that).

I'd presume the book would say right after the example :)

But otherwise: the author gets serious respect from me for going through that process, taking feedback and learning how to communicate, i.e. taking "how do I make a good book?" very seriously and trying their best. And also things like for putting their foot down when the problematic copyeditor. I'm almost interested in the book, not for learning about Go but learning about what it looks like when I know the writing has some serious intent behind it to communicate clearly.
> Did you know there exists languages that don't have run time errors?

Probably not. All those languages failed.
> The page was altered to remove Tubman in early February, per data from the Wayback Machine, replacing the image with a collage of Postal Service Underground Railroad commemorative stamps highlighting "Black/White Cooperation."

I see, so this is going to be like when Republican politicians try to invoke MLK to argue against affirmative action, even though he wrote a book that explicitly advocated for it.
Give it a few years to when f-string usage has worn off to the point that a decision can be made to remove it without breaking a significant number of projects in the wild.
From Grok

How many battleships does Estonian navy have?

The Estonian Navy does not currently operate any battleships. Its fleet is focused primarily on mine countermeasures and coastal defense, consisting of vessels such as minehunters, patrol boats, and auxiliary ships. Battleships, which are large, heavily armored warships with large-caliber guns, are not part of the Estonian Navy's inventory, as they are generally obsolete in modern naval warfare and not suited to Estonia's strategic needs in the Baltic Sea. According to the most recent information, the Estonian Navy has a total of eight commissioned ships, none of which are classified as battleships.
I feel like AI luddites aren't doing themselves any favors with being staunchly anti-AI. AI is a tool and a handy one at that. Imagine being mad at a hammer because it can't unscrew something.

I'm not a 10x engineer, nor do I want to be (I'd love the pay but the stress doesn't seem worth it), so Claude is perfect for me. It helps me understanding things I know close to nothing about and will provide web-based references if you have web search enabled.
Yeah, editor support will help a lot. Though the PEP's way of doing things doesn't specify the language of the template where the literal occurs, so detection of that might have to be kludged.

(Or, in a sufficiently working program, an editor with semantic analysis access could use something like type inference in the Python side, to determine the language in a less-kludgey way.)
Yes. Only if your dev remembers to use sanatized all the time. This is how most SQL works today. You could also forget and accidentally write a f-string, or because you dont know. But with t-strings you can actually prevent unsanatized inputs. With your example, you need to intentionally sanitize still.

You cant throw an error on unsanitized because the language has no way to know if its sanitized or not. Either way, its just a string. "returning an f-string" is equivalent to returning a normal string at runtime.
But we have had the same thing happen constantly. Automation isn't new. How many individuals are involved in assembling a car today vs in the 1970s? An order of magnitude fewer. But there aren't loads of unemployed people. The market puts labour where it is needed.

Automation won't obsolete work and workers it will make us more productive and our desires will increase. We will all expect what today are considered luxuries only the rich can afford. We will all have custom software written for our needs. We will all have individual legal advice on any topic we need advice on. We will all have bigger houses with more stuff in them, better finishings, triple glazed windows, and on and on.
It's not about fighting fascism it is about having an alternative. My Uncle Nick voted for Trump, I think it was a bad move but I won't dehumanize him for it, as he saw it it was a choice between two bad alternatives.
There is no such language, even Rust has many footguns.
Nope, only the people defending the dumbest and most pointless act of economic vandalism in history.

In fact the only argument I can think of in favour of setting tariffs for the Heard and McDonald islands is that the average American that thinks that this level of attention to detail helps US manufacturing probably is less intelligent and capable than the penguins that live there....
I have this "fear" of being in a situation where a judge has to form judgments about code i wrote, even when relying on an "expert".

For the same reason that i believe a situation like that could play out, i don't think i should judge a judges understanding of, dedication to work through, and knowledge about– the laws.

I actually studied law for a few years. And i am baffled by the confidence of laymen about court rulings. It's almost like a client explaining to me how easy it is to fix this small bug.
Yeah, to be honest, every time this comes to mind I think “wow, this would be really neat!”, then realize just using .format() explicitly is way easier to read.
Show HN: Homerun Desktop: Self-hosting for professionals with deadlines
We are rapidly approaching the beta release of Homerun Desktop and thought it would be a good time to solicit feedback before marketing to a wider audience. We are also looking for intrepid individuals interested in evaluating Homerun Desktop and providing feedback.
Wages haven't been frozen for 45 years in real terms. They have gone up considerably.
This sounds like it would be a thing in Japan. Is it?
template1 is a function that takes in a parameter evil (with a SanitisedString type that wraps a regular str) and returns the fully expanded str. It is implemented by just returning an f-string equivalent to the t-string in your example. Same with template2.

Using the SanitisedString type forces the user to explicitly call a sanitiser function that returns a SanitisedString and prevents them from passing in an unsanitised str.
Section 14 of the GPL says "The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns." Given that the preamble to the GPL explicitly says "the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users", I don't think that a judge would find that a hypothetical GPLv4 that was basically MIT or something is "similar in spirit" to the present version.

If you're worried about the other direction (i.e. a hypothetical GPLv4 that had some bizarre restriction like "all users must donate to the FSF"), the "or any later version" means that as long as you don't decide to update the license you use yourself, people can continue to use it under the GPLv2 or v3 indefinitely.
More details here: https://100go.co/#not-being-careful-with-goroutines-and-loop.... My example was probably terrible as it's one of the three mistakes in the book that aren't relevant anymore, thanks to Go's recent updates.

Thank you very much for your comment, though. It means a lot.
They almost certainly are entirely different tech stacks, and likely not even developed by the same organizations. If you poke around in the source a bit you can find clear evidence that the news site is probably developed by a third party PR firm, who wouldn't typically have anything to do with a patient portal.
As a US citizen, revoking visas from criminals and people who espouse hate has been a huge net positive. We don't need visitors bringing their third world blood feuds to our homeland.
So does this mean that any place where code exists that looks for `type(someinstance) == str` will break because the type will be `Template` even though `someinstance` could still be used in the following code?
Pretty sure this would have been possible in Python 2.6. The Ellipsis object has been around for a very long time.
The shot in this movie where you see the nuclear missile bays was incredible.
The Global Right: From French Revolution-The American Insurrection (Yale Class)
Colossal has a strong history of making outlandish and inaccurate claims.
There is such languages, but they actually failed, so you've probably never heard of them.