skysight-inc/HackerNews huggingface dataset:
A compromise version:

def _f_part(item) -> str:
match item:
case str() as s:
return s
case Interpolation(value, _, conversion, format_spec):
return format(convert(value, conversion), format_spec)

def f(template: Template) -> str:
return ''.join(map(_f_part, template))

The `match` part could still be written using Python's if-expression syntax, too. But this way avoids having very long lines like in the Ruby example, and also destructures `item` to avoid repeatedly writing `item.`.

I very frequently use this helper-function (or sometimes a generator) idiom in order to avoid building a temporary list to `.join` (or subject to other processing). It separates per-item processing from the overall algorithm, which suits my interpretation of the "functions should do one thing" maxim.
Pine64 updated the PinePhone with the PinePhone Pro.
How has using Crystal been, anyone using it in production?
> driven up to you by a remote driver

This is hopefully illegal and not actually what is done, because I have learned from Waymo that it is not permissible or even possible for the CS reps to remotely drive the car. They merely push "suggestion" commands to be considered by the onboard Waymo Driver.

Remote human drivers have too much latency and not enough realtime information available to "drive" a vehicle on public roads.
I don't get it. What does gmail.com have to do with example.com?
> As for the logic, I would still use pattern matching for branching and destructuring, but I’d put it in a helper.

I wrote it up (https://news.ycombinator.com/item?id=43650001) before reading your comment :)
Not Just Bikes and Strong towns are different organizations that employ different people. They are pretty closely aligned ideologically and collaborate frequently, but they aren't the same entity.
China really isn’t that poor anymore. A lot of their recent productivity gains are coming from automation, and they are leaning into harder than the Japanese did in the 90s.
The skills to live on $1-$2/hour apparently.
I guess you could override the styles to whatever you want to keep it consistent, and then once the update rolls out to enough users you can stop overriding the styles if you want.
> How is a web developer supposed to test the website when he and user might have different browser behaviour?

Any web developer that would have an issue with this is already overriding the default styling.
Yep. It's also worth noting that Trump didn't invent these charges. Many Jewish students sued, and the university president admitted:

> I know that many of our Jewish students, and other students as well, have found the atmosphere intolerable in recent weeks. Many have left campus, and that is a tragedy.

...

> The encampment has created an unwelcoming environment for many of our Jewish students and faculty. External actors have contributed to creating a hostile environment in violation of Title VI, especially around our gates, that is unsafe for everyone—including our neighbors.

https://president.columbia.edu/news/statement-columbia-unive...
uhh quite the opposite, this is made by Flipper https://flipperdevices.com/
I am going to use this opportunity to ask: Why is that stackoverflow sites absolutely, positively cannot seem to remember my cookie preferences and seemingly ask me every single time I find myself there?
> Antisemitism" is just a Trojan horse they use to justify their power grabs

This is just about Israel. The US government is abolishing freedom of speech and engaging in arbitrary deportations and disappearances to curb activism and protests against Israel.
My point is that one drink a day is in no way "heavy drinking" - that would be one bottle of wine a day, or more.

But I don't care. Nobody lives forever. If you enjoy drinking, and don't harm anyone but yourself doing so, then why not?
Well it’s getting removed so only useful if you want to recreate the css they are removing.
"On those two products we take the printed circuit board, which is just a blank board that has no components"

Don't count on that. On Schneier's blog years ago, we brainstormed attacks on hardware in subversion discussions. One idea was putting a hidden chip in the board itself. Another was modifying the board's material to emanate secrets for RF attacks by a nearby attacker. There's a reason high-security at NSA required TEMPEST shielding. I wonder who prints the circuit boards.

On the chip side, substituting one of them with the same covers would be an easy attack. One team showed a tiny change at analog level could have subversive effects with low odds of being spotted. I wonder how they verify they received the correct chips.

Just from a domestic, manufacturing angle, the story sounds great. I'm grateful the company made sacrifices to make smartphones in America. I hope their example leads to innovation that drives the prices further down.

"we are doing the entire manufacturing process of all of the electronics, meaning resistors, capacitors, integrated circuits"

I disagree with this take unless the integrated circuits are designed and fabbed in America and by Purism. They're critical, high-value parts of the product that used to be piles of individual components before ASIC's. If not made here, I'd say upfront it's manufactured in USA "except for (percentage or function of) integrated circuits in it."
Those Uniqlo self checkouts really do fall into that “ indistinguishable from magic” territory for me - on a technological level I completely understand how they work, and yet every time I use them I’m a little surprised that it works so well and filled with joy anyways
FWIW, online banking in Germany was like this until ~10 years ago (maybe 15). Sundays and overnight, the service would be closed "for maintenance". That was "fun".
You can't virtualize a different architecture. Virtualization means that the guest OS runs natively on the host CPU with some sort of hypervisor. Do you mean emulation?
Purism laptops were great when I was a customer. Very sad they couldn't fix the issues you're talking about. I wanted to support the company further, and I think they are doing sincere, good, important work, especially on the software side. But these communication and customer relationship issues didn't get better and I switched away.
Guess I thought of that one as more like a "fix," since the first one was not fit for purpose. Still not good enough, needs spec bump and driver support.
Yes. This happened to me in 2019 flying from Minneapolis to Denver with family when I forgot my wallet (stupid, I know). I was taken aside and someone from homeland security in DC called on their phone and asked me a handful of questions about my life. Like what the church across the street from my apartment was called (I didn't know!). They eventually let me through the security check. I was really worried the entire trip but on the return flight I didn't have to do it again.

But that was completely unintentional. I'd never intentionally try to fly when I don't have the required ID.
You wanna share a reddit thread, please submit the link, not copy paste the contents.

https://www.reddit.com/r/graphic_design/comments/1jvv14h/tri...
Expertise exists primarily where things primarily happen. If no companies manufacture complicated products in a particular country that doesn't mean the country is too dumb to make it, it means they don't have a large pool of experts in that field.

If you read the article, the founder of purism even says as much.

"After we were successful on the Librem 5 crowdfunding campaign, we took our own electronics engineers (EEs), and then we worked with Chinese design and manufacturing through 2018, 2019, and 2020, because that's where every phone is made."

So the only phone that qualifies for "Made in the USA" tag learned (at least in part) how to make it from Chinese engineer(ing firm)s.
> They have all the talent because China is poor, still.

That’s why China has (somewhat) inexpensive labor. It does not explain why China has far more plastic engineering talent, electrical engineering talent, etc than the US.
> To identify a “safe” level of alcohol consumption, valid scientific evidence would need to demonstrate that at and below a certain level, there is no risk of illness or injury associated with alcohol consumption. The new WHO statement clarifies: currently available evidence cannot indicate the existence of a threshold at which the carcinogenic effects of alcohol “switch on” and start to manifest in the human body.

This does not say that it is known to be unsafe.

This says that there is not sufficient data to know that it is safe.

These are very different things, and presenting the later as is it was the former ~~is dishonest~~ showcases the poor level of statistical literacy that even most otherwise knowledgeable people have.
Yes, yes - there any number of these silly reports. There are probably a similar number claiming that drinking is good for you.
Related flagged submission:
https://news.ycombinator.com/item?id=43643049
It requires consent if it's personal information.

You can pretty much do an A/B framework that doesn't require consent. You will absolutely be prohibited from running any of the popular options we have today.
My key point is the people involved aren’t doing analysis. They are NPCs just like the worst ideologues on the left; it’s just that their brain worms are that goods trade deficits are bad and some sort of theft. You’re coming to wrong theories about what their intent is because you’re assuming they’re reasoning.
It will be great if you can work this out without making people logging in.
He is responding in good faith. You lack historic perspective.

CHIPS act is still in place

https://www.techtarget.com/searchcio/news/366622293/Trump-pu...

If that is repealed, it would be replaced by something with more favorable terms for the US.

TSMC is investing $65B to build three fabs in Arizona.
Yes. Just like with f-strings, the call to `fib_slow()` is extracted at compile-time, and occurs eagerly at run-time.

What t-strings offer over f-strings is the ability to control how the final string is put together from the calculated results. And the t-string doesn't have `__str__` - you have to explicitly pass it to a named formatting function to get a string. (There is `__repr__, but that's for debugging, of course.) So you can potentially reuse the same Template instance (created from the t-string) multiple times in different contexts to format the same information different ways.
i continuously asked for an optimized database schema several times and all i keep getting is these damn shakespeare sonnets. starting to wonder if they are on to something...
As a reference for folks, 14g of a liquid that pours like water is one tablespoon.
> I'd rather have a bottle in front of me than a frontal lobotomy.

-Tom Waits
The important variable to record is sex.

If researchers want to record "gender identity" or similar ideologically-driven claims then this should have to be justified. And probably labelled as something more to the point, e.g. "does this individual have a strong desire to be the opposite sex?"
Tell HN: Cloudflare billing issue that is over 6 months old and no support
It appears that Cloudflare has had a known billing issue for more than 6 months now and there is no way to get in touch with support. Is anyone else having issues?

I can't update DNS and they have basically blocked my domain and there is no way to unblock it, even for other company's services on thier network...
I added `C-M-0` for flip and `C-M-=` for rotate, so far liking it.
I'll add that the elites who pushed for earlier trade deals often did it specifically to get rich selling off America's domestic manufacturing and many jobs. Now, countries like China have them.

So, Trump's policies should be seen as an attempt to reverse for Americans' benefit damaging policies from before which are still active. Now, whether that will do good or harm in the long term is anyone's guess. We already see companies investing more in American infrastructure, though.
It is in Spanish, where the name of the country, Colombia, is pronounced co-lohm-bia, but in (American) English it's generally pronounced co-luhm-bia. Like Par-ee vs Pair-iss.
Her sleep is terrible since she's breastfeeding, so even when she does get some sleep, it'll be while dozing off in some unexpected and ergonomically diabolical position.

For our first baby, I had that on-edge feeling, I woke at every hint of a cry but this time I can just sleep through it and rely on my wife letting me know if I'm needed. It's not fair but it means at least one of us has the emotional resilience to deal with our toddler during the day :)
This is a very similar approach to the one espoused in Eat That Frog: do the hardest, scariest task first thing in the morning, and everything else will be easier.
Bigger problem is when users run into a problem and can't find information about it because others can't reproduce it. I ran into this when they ran an A/B test on removing the search box and it drove me crazy that no one else seemingly had the same behavior, until I found and disabled the A/B test plugin.
I believe Kagi (https://kagi.com/) uses a lot of it.
Don’t make me input things without telling me that I’ll need a login to see the result.

Requiring account creation upfront is fair; this is a very unpleasant dark pattern preying on the sunk cost fallacy.
Any reason you're using CSV instead of parquet?
> As someone else said - maybe you haven't noticed but there's a machine washing your clothes, and there's a good chance it has at least some very basic AI in it.

This really seems like an "akshually" argument to me...

Nobody is denying that there are dishwashers and washing machines, and that they are big time savers. But is it really a wonder what people are referring to when they say "I want AI to wash my dishes and do my laundry"? That is, I still spend hours doing the dishes and laundry every week, and I have a dishwasher and washing machine. But I still want something to fold my laundry, something that lets me just dump my dishes in the sink and have them come out clean, ideally put away in the cabinets.

> Obviously this is really wishing for domestic robots, not AI

I don't mean this to be an "every Internet argument is over semantics" example, but literally every company and team I know that's working on autonomous robots refers heavily to them as AI. And there is a fundamental difference between "old school" robotics, i.e robots following procedural instructions, and robots that use AI-based models, e.g https://deepmind.google/discover/blog/gemini-robotics-brings... . I think it's doubly weird that you say that today's washing machines "has at least some very basic AI in it" (I think "very basic" is doing a lot of heavy lifting there...), but don't think AI refers to autonomous robots.
One drink a day is seven drinks a week. The article agrees it isn't heavy drinking.
If it came from a “LLM” prompt that is jail broken and in 5 or so years. Just say generate the movie Terminator 2
No, it's exactly the opposite--f-strings are, roughly, eval (that is, unsanitary string concatenation that is presumptively an error in any nontrivial use) to t-strings which are just an alternative expression syntax, and do not even dereference their arguments.
"LLMs are statistical models"

I see this referenced over and over again to trivialise AI as if it is a fait acompli.

I'm not entirely sure why invoking statistics feels like a rebuttal to me. Putting aside the fact that LLMs are not purely statistics, even if they were what proof is there that you cannot make a statistical intelligent machine. It would not at all surprise me to learn that someone has made a purely statistical Turing complete model. To then argue that it couldn't think you are saying computers can never think, and by that and the fact that we think you are invoking a soul, God, or Penrose.
Google A2a Protocol Collection
You're forgetting completion typically isn't binary.

Take juding response pairs for DPO for example, how do you ever prove someone used ChatGPT?

ChatGPT is good enough to decide in a way that will feel internally consistent, and even if you ask MTurk users to provide their logic, ChatGPT can produce a convincing response. Eventually you're forced to start measuring noisy 2nd and 3rd order signals like "did the writing in their rationale sound like ChatGPT?"

And what's especially tough is that this affects hard to verify tasks disproportionately, while those are exactly the kinds of tasks you'd generally want MTurk for.
* https://halo.car/

* https://vay.io/
> using cookies to store the state of what you consented to is somewhat ironic, or at least meta.

It's a nightmare for anyone who uses private windows.
well then the question remains to be: where do the loyalties of TSMC lie, and where do the loyalties of its employees lie?
I always thought the headers in html were kind of dumb. I always think of book sections as:

<section name="Animals">

<section name="Mammals"> Mammals are blabla </section>

<section name="Reptiles"> Reptiles are blabla </section>

</section>

<section name="Plants">

</section>

<section name="Minerals">

</section>

In this case Animals, Plants and Minerals would be h1, and Mammals and Reptiles would be h2. If you truly wanted to separate representation from content you would do that, as it is you are not really doing that, the h1 and h2 would be creating some kind of explicit open and close tags and hierarchy in a format different than the rest of html.

If someone goes back in time could you kick that Berner's Lee on your way back from killing hitler, correcting the sign on electricity? Thanks. Also send a message to Douglas Crockford if you've got time.
The resources for subsidies come from printing new money (which is possible by having the world reserve currency), and then spending that new money for deliberate purposes instead of just giving it to the banksters to bid up the asset bubbles. In an imaginary world where we had a Congress that served the People and a mentally competent President, of course.

Who gets subsidized is indeed political, but I don't see a way to sidestep that since there's centralization as soon as you take action to prevent the currency from deflating.
Some fun historical context behind the outline algorithm and why it didn't catch on: https://www.w3.org/Bugs/Public/show_bug.cgi?id=25003

In short, the W3C adopted it because they thought it was a good idea, while browsers and screen readers both refused to adopt it for various reasons like ambiguity with existing web content or concerns about screen readers having to implement and maintain their own independent outline algorithm implementations. 8 years and an entire standards organization after the thread above, the WHATWG finally dropped it.
I meant Roe as an example where the absence of federal law triggered a hybrid interpretive mode. Judges follow the plain meaning of the law, but when the text is missing, ambiguous, or leads to absurd results, they shift to hybrid methods by applying canons of construction and considering legislative history, purpose, and precedent. (Thank you ChatGPT ) If lawmakers want to do better, the solution is to pass clear legislation. That's not enough in the EU -- they may still use the spirit to override the literal text.

RE:Letter vs spirit, the EU interpret statutes more flexibly, even if they're more detailed. In the US, judges do fill gaps (e.g. precedent), but are more rigid in applying the letter when clear. That literalism extends to precedent too. E.g., they rather pedantically follow a past interpretation rather than make a new one.

That literal predictability makes it damning for US legislators refusing to legislate. If Roe was clear via federal law, then US judges either have to follow it literally or declare it unconstitutional, and there's little room inbetween. In the EU, judges can more easily go for the spirit.
Nextcloud memories if you use NC already, otherwise immich is pretty good like others have mentioned
You also wouldn't go out of your way to piss off America's two biggest export markets: Canada and Mexico. As it stands, not only are there significant counter-tariffs that would make U.S. manufacturers even less competitive in Canada[1], there is significant consumer backlash to anything American-made where, just a couple months ago, products "Made in the U.S.A." would have been viewed favourably[2].

The way Trump has done things, any company that manufactures in the U.S. had better be able to get by with just the domestic U.S. market, because exports to Canada and Mexico aren't likely to be significant for quite some time, even if Trump backs off quickly. Lasting damage has already been done.

________________________

[1]It remains to be seen if Mexico will eventually retaliate.

[2]Perhaps not favourably in terms of price/quality competitiveness, but certainly in a geopolitical "support your neighbour instead of China" sense.
More importantly - the US bond market Treasury yields, the trigger that caused Trump to finally 180, has now continued rising (i.e. a very bad thing).
https://www.cnbc.com/bonds/
So basically you can find qualified workers everywhere. There's a valid question about the cost. But to say the problem is lacking "skilled workers" is laughable as most of these skills are machine dependent and can only be learned on the job after the factory is built.
> We ended up here because we have a propensity to share our creative outputs, and keep our laundry habits to ourselves

Somehow I doubt that the reason gen AI is way ahead of laundry-folding robots is because it's some kind of big secret about how to fold a shirt, or there aren't enough examples of shirt folding.

Manipulating a physical object like a shirt (especially a shirt or other piece of cloth, as opposed to a rigid object) is orders of magnitude more complex that completing a text string.
This is amazing. One of the better dark-naive mashups I've ever seen. It seems to hit 3/4 for me. I Definitely would've laughed
Actually not at all like how the founding fathers went about it
China is also clear on the timetable they will turn off the subsidies in order to consolidate the market into the strongest survivors.
U.S. only, it seems.
Reversible reduction in brain myelin content upon marathon running
$2000 is a punchline to a joke? No?? OK then, we're back at the 1990s cost level, when cell phones were as big as a brick with 50% of it being a battery.

https://www.ooma.com/wp-content/uploads/cell-phone-cost-comp...
I dunno about this. Attributes are supposed to be metadata, not displayed textual content. Like it's fine to give the anchor for a section as an attr:

<section id="animals">
<h2>Animals</h2>
<p>Here are my animal facts</p>
</section>

I would feel strange if a browser's built in CSS were reaching into an element's attribute and rendering the text therein as something visible to the reader.