skysight-inc/HackerNews huggingface dataset:
The good thing about web components is you don't have to know or care about whatever trendy web framework they're implemented in internally; all that hot garbage is sealed away inside its own individual little ravioli that behaves like anything else in the DOM and can be manipulated with vanilla JS. Fans of various frameworks and methodologies will naturally fume and rant about this sort of "lowest common denominator" treatment, but in a few years the same people may well thank their lucky stars that their new webapps and new shiny frameworks aren't permanently welded to a now distinctly un-trendy implementation strategy hidden within web components they're still using. It's ultimately a feature for protecting the future of the browser from the fads of the present.
We are moving from Zod to TypeBox because there’s a lot of inflexibility in Zod’s extensibility story that we’re able to get past in TypeBox.

After doing a deep-dive comparison, I’m left wondering why to ever choose Zod over TypeBox.
You can't look up web components on MDN? And if not why it matters, what's my article saying?
> Perhaps their decision makes sense given the cost.

What point are you trying to make? 10-15 million is nothing considering how valuable that data is for public health.

Public services cost money; nobody argues that we shouldn't have roads because they cost money to maintain.
Ratan Tata has passed away
Cocaine, the chemical, is the active drug ingredient in coca leaves the same way caffeine, the chemical, is the active ingredient in coffee and ethanol, the chemical, is the active ingredient in beer. Powder and crack cocaine deliver much higher doses of cocaine than raw coca leaves, much like liquor is more potent than beer, but the chemical is the drug here. It’s not like it’s chemically transformed from one substance into another like with fermentation; it’s concentrated, like with distillation.
All stdlibs will be assimilated into JavaScript. Resistance is futile
There is probably an opportunity here for someone to provide a service offering advertisers a simple customisable form that includes some basic questions that needs to be completed prior to submission. It would have to be simple (e.g. no programming tests). Bonus points if the advertiser can then filter submissions based on various combinations (and possibly assigned weights) of answers.

e.g.

- Do you have a legal right to work in x

- Have you had y years experience in z

- Could you indicate which of the following you are familiar with

Obviously, all of these things are usually included in an application, but having them associated with applications in a standard format that can be used to filter or prioritise applicants could be very helpful I imagine.

This probably exists, but I'm not in the field and very rarely apply for jobs so I wouldn't know.
Interesting how this relates to LLMs scaling laws.
JavaScript Implementation of Python
I was disappointed to discover that https://haveibeenpwned.com does not report an email as pwned if it is subaddressed/plus addressed. myemail@gmail.com is reported as still safe, but myemail+archive@gmail.com is pwned. I wonder if my email has been leaked by any other websites without me knowing.
I have suggested adding an option for exceptions into typing as a non exhaustive list of what something can raise so you actually know what you should or shouldn't be handling.
But as it usually goes in the forums the discussion just devolved into misunderstanding it as checked exceptions and how code that'd benefit from it is bad because exceptions you don't know about should bubble up
I was in the USAF in the early 2000s, stationed in Germany. Due to a dispute with DT, I ended up using long distance calling cards to dial (overseas!) into AOL to get online. It was very involved. I imagine I may have been the only person in the country doing this
This seems like Stockholm syndrome.
Language, region and caste are different things though. Caste is a big problem in India but very rarely a problem for discrimination in the tech/highly educated Indian circles in the US. Caste is sometimes very closely related to “culture” so it may be seen in things like weddings sometimes to though. The Seattle anti caste discrimination law was more political than practically useful.

But language is a problem and you will see people speaking the same Indian language group themselves together.
Ah, but that’s assuming the ‘right way’ path went perfectly and didn’t over-engineer anything. In reality, the ‘right way’ path being advocated for, statistically will also waste a lot of time, and over-engineering waste can and does grow exponentially, while under-engineering frequently only wastes linear and/or small amounts of time, until the problem is better understood.

Having witnessed first-hand over-engineering waste millions of dollars and years of time, on more than one occasion, by people advocating for the ‘right way’, I think tallying the time wasted upgrading an under-engineered solution is highly error prone, and that we need to assume that some percentage of time we’ll need to redo things the right way, and that it’s not actually a waste of time, but a cost that needs to be paid in search of whether the “right way” solution is actually called for, since it’s often not. The waste might be the lesser waste compared to something much worse, and it’s not generally possible to do the exact right amount of engineering from the start.

Someone here on HN clued me into the counter acronym to DRY, which is WET: write everything twice (or thrice) so the 2nd or 3rd time will be “right”. The first time isn’t waste, it’s necessary learning. This was also famously advocated by Fred Brooks: “Play to Throw One Away” https://course.ccs.neu.edu/cs5500f14/Notes/Prototyping1/plan...
If I’ve gone a long time without caffeine a single coffee could keep me awake up for two consecutive all nighters. As a regular drinker I still cannot handle more than one cup of coffee per day. It turns out that I have a number of genes that increase the intensity and the duration of effect. I think genes explain most of the differences in experiences with caffeine.
A lot of the time, people say things like "Python has been circling the drain ever since." referring to the implementation of the "walrus operator", to imply that they don't like the feature and that it was the first of a series of changes to the language that have made it progressively worse; and they often further imply that if only we still had the original leadership then we could avoid such damage to the language.

I was, in a sense, in that camp at the time, before I looked it up. I felt that the operator went against the spirit of the language by trampling on what was previously a strong, and clearly very conscious, separation between statements and expressions. And I misguidedly imagined, and lamented, that GvR was unable to keep it out of the language, being overruled by consensus.

I just want to make sure it's clear that things are not like that. Rather, the Python envisioned (nowadays, though not originally) by the original leadership includes PEP 572 - and probably also the large majority of what's been added since.
In a commercial setting (i.e. not a side-project) the choice of programming language is also a business decision.

The main factors being:

- How large is the pool of available candidates for this language? A recruiting risk.

- How mature is this language? A business continuity risk.
Elite recreational fitness/sports training and occasional travel mixed in with more time for healthy eating and creative projects.
Then you really need to pick better investments. Say, any broad market index fund.
Compared to many other countries, UK has a computer science culture that's very open about how technology is used in every day lives, and it invites public participation in new tech. This shows a lot in the government as well as its services like BBC and NHS, and the academia.

It's a very broad topic to cover so I'll be terse with evidence/examples only. UK government provides a lot of open data and APIs for the country [0], [1]. They are free and pretty much not throttled. They have a license [2] for a lot of this data which is formal but nearly as free as John Carmack's legendary hacker-friendly "have fun" license [3]. There is also a lot of historical Ordnance Survey data and historical legislation data from the National Archives. And of course, you can see the openness in how they have built gov.uk, as blog articles appear on HN about it quite often.

There is also a lot of government infrastructure provided to local governments, such as gov.uk Notify [4] or a freely available NHS website CMS (which is why many NHS websites work the same). There is a guide [5] mostly intended for government services but free for others to use on building accessible, secure and quite good-looking websites.

Most other governments I lived under are either technically behind UK or they have very advanced tech capabilities in certain branches of the government only (such as the armed forces) but keep it out of the public eye. Ultimately, I think it is the culture of welcoming everyone's participation in technology that makes UK gov so forthcoming and open with their tech and data. Doing this is seen as kind and civilised, which is how governments want to be seen. Of course, there are still areas of improvement in how UK gov provides data, as there always are in everything.

Finally, I should mention you can find many BBC technology outreach programmes from the early days of home computing. They are all over YouTube if you search for "BCC home computing". There was and continues to be a lot of techno-optimism in the country. It is one of the admittedly not many things that persist from the pre-austerity times.

[0] https://www.data.gov.uk

[1] https://www.api.gov.uk/index/#index

[2] https://www.nationalarchives.gov.uk/doc/open-government-lice...

[3] https://github.com/id-Software/DOOM/blob/master/README.TXT (before GPL became popular, id software code was distributed with this readme that said "Have fun")

[4] https://www.notifications.service.gov.uk

[5] https://frontend.design-system.service.gov.uk
> Now a company with bad performance can ask its ISP to fix it and point at the software and people who have already used it. If the ISP already knows it has a performance complaint, it can get ahead of the problem by proactively implementing LibreQoS.

The post was a pretty good explanation about a new distro ISPs can use to help with fair queuing, but this statement is laughably naive.

A distro existing is only a baby first step to an ISP adopting this. They need to train on how to monitor these, scale them, take them out for maintenance, and operate them in a highly available fashion.

It's a huge opex barrier and capex is not why ISPs didn’t bother to solve it in the first place.
It requires flow analysis, which is really hard to get right. I don't think there's a tree-shaking library that uses the TypeScript compiler API for static analysis purposes. Maybe because it would be slow?

edit: The creator of Terser is working on flow analysis for his new minifier, according to him[1].

[1]: https://github.com/terser/terser/issues/1410#issuecomment-17...
There is no data, or I wouldn't have to keep asking for evidence.

Previously [0] [1]

[0]: https://news.ycombinator.com/item?id=41247369

[1]: https://news.ycombinator.com/item?id=37314527
I'm fully onboard, but only if it's not only Google being broken up here. M$, Apple, Meta (!!!!!!!!) and all the other big tech companies all need to be nuked from orbit.

I'm worried that what's actually going to happen is Google getting broken up and M$ just swooping in to feast on the carcass, leaving us in an even shittier position. Out of all the evils coming from the FAANG world, M$ and Meta are by far the worst IMO, so not breaking them up alongside google is just idiocy
... Why? How so?
I went to interview at a fortune 50 company that is primarily based in India.

It was very clear my communication style and values is drastically different.

It was a good opportunity, but one of the most frustrating encounters I’ve ever had. I’m glad the offer didn’t go anywhere.
> Are you sure evaluating these animations is performance critical?

Isn't this obviously true? A key part of UI work is avoiding "jank", which commonly refers to skipped frames.

> I doubt games have enough data to saturate a CPU core doing that.

Got a bit lost here: games?

> Screens only have 2-8 megapixels.

4 bytes per pixel, 32 MB/frame. 120 frames / sec = 8 ms/frame. 3.84 GB/second.

> animated objects need to be much larger than 1 pixel.

Got lost again here.

In general, I'm lost.

First, there's a weak claim that all performant data structures in Rust must use unsafe code.

I don't think the author meant all performant data structures must use unsafe code.

I assume they meant "a Rust data structure with unsafe code will outperform an equivalent Rust data structure with only safe code"

Then, someone mentions a 3D renderer, written in Rust, is using a data structure with only safe code.

I don't understand how questioning if its truly performant, then arguing rendering 3D isn't that hard, is relevant.
CISA Live Presents: People's Republic of China Cyber Threats
Was it? I confess that I initially downvoted them on principle but came back to remove the downvote after reading the article because it did have strong LLM vibes.

There were lots of turns of phrase that didn't feel natural in a technical blog post but are common in ChatGPT's prose. But honestly the bigger red flag for me was the listicle format, with a numbered 6-point outline fleshed out with a few paragraphs per heading and no transitions or relationships of any kind between sections. It felt like something written in chunks and stitched together afterward, which is a common artifact of a ChatGPT workflow (since it produces small chunks of text at a time rather than whole coherent essays).
Someone linked the GitHub. That should have the PCB grbr files; maybe you can get them made yourself and just buy the discrete/processor components from DigiKey.
Also, DigiKey red makes PCBs.
If you think the mouse traps work you probably do not need other. Anyway, marketing is not good way to find about flaws of current ways. Because that is not it's focus.
You put those safety comments in two places: when you declare an API as being unsafe, and when you use an unsafe API. Not coincidentally, those are the two places in the language that force you to use the “unsafe” keyword. If you declare a safe API that uses unsafe under the hood, it’s on you to ensure that it’s safe to call under any situation, so that callers can call it without worrying that their program is suddenly unsafe. If you can’t guarantee that your API is safe under all circumstances, you need to declare it unsafe and make it the caller’s job to use it safely.
> Indeed. And there was a lot of Consideration given in this exchange. Automattic owned 100% of the WordPress trademarks. Automattic's "Consideration" was to give all the non-commercial use of those trademarks to the WordPress Foundation.

If I understand your comment correctly, you are saying that Automattic is still the owner of the WordPress trademarks, and granted licenses for non-commercial use to the WordPress Foundation?
The thing with the Twitter part is that it's not up to Twitter to decide what is, and is not, legal in a given country. It's up to the courts in that country. Of course Musk always knew this, so I am left to assume there was an ulterior political motive on his part. In the end, we see how it all worked out.
These are all great. Unfortunately it would just be another thing to collect dust on the shelf, realistically.
Any Lisp-ness comes from Elixir being a skin on Erlang, and so comes almost anything else good to say about Elixir. (And my comment was explicitly comparing Elixir to Erlang.)

The 'pipe' is hacky, for example, because it's just syntactic sugar that only works in one specific case, and not in general.
I’ve been using Rust almost daily since 2015 and I’ve used unsafe twice - both when interoping with C.

I don’t know what fancy things you’re doing with unsafe that you’re seeing it on a daily basis… maybe it’s a you problem
I didnt think Ryans article came across as angry at all, and hes forgot more about web development than 99.9% of people will ever know. His lead with solid has been followed by practically every major framework, hes usually ahead of the curve and right.
I recently ran into an issue where Toyota’s app/site was detecting and refusing Apple iCloud hide-my-email addresses when trying to sign up.

The error message was very clear: hide-my-email was not permitted.

I was just trying to check for available service appointments near me and didn’t want the spam. But I guess sending spam is very very important to Toyota.
> I still don't know what people mean when they talk about "having to think about memory layout"

The best example I'd give is the degree to which you have to ask yourself if you want to use String or if you want to use &str--is this struct, or this function, going to own the string or borrow it from somebody else? If you're borrowing it, who is owning it? Can you actually make that work (this is really salient for parser designs)?

Essentially in Rust, before you can really start on a large project, you have to sit down and plan out how the memory ownership is going to go, and this design work doesn't really exist in most other languages. Note that it's not inherently a good thing or a bad thing, but it is a potential source of friction (especially for small projects or exploratory tools where memory ownership might want to evolve as you figure out what needs to happen).
Ah, that’s a much better deal. The wording on the main page was bad enough that I didn’t bother clicking through, since I wasn’t going to spend that much on a raffle.
> As someone with Indian heritage it’s super disheartening to see plenty of comments negatively generalizing a diaspora of over 1B people.

The diaspora is only a few dozen million, isn't it? I don't think you want to count every Indian inside of India as being in the 'diaspora'?

Nitpick aside, I agree. (I wrote the original comment above.)
Apple has operating systems, hardware, and software. Maybe Apple should spinoff OSX into its own company? They clearly abuse their positions with OS X and their hardware to push Apple specific software that only they benefit from.

If they had to separate their operating systems into another company, they would have to freely compete to put their app stores on their devices.

Or even better, spin off their hardware divisions if you want.

Either way Apple shouldn't be able to control their operating systems or their hardware unless they open up their devices and allow consumers easier ways to both repair their devices and install alternative operating systems on them.
Instagram and Threads moderation is out of control
Ah, I see the point about SSR. Yes, frameworks like React and Vue make it less obvious how to do non-framework SSR. However, they don't make it impossible. You can have React and Vue render on an individual element and not the whole document. The HTMLElement part of web components are actually a decent way to do that. You can make a thin wrapper HTMLElement that runs createRoot. https://react.dev/reference/react-dom/client/createRoot
After reading that and and seeing the comments here, I don't think I will ever take people on HN seriously who say they want privacy https://news.ycombinator.com/item?id=40011314

After reading the founders thoughts, if they were any sort of sizable company they would immediately have a GDPR violation. "emails and any info you give to use voluntarily (search prefs) is not PII and as such you can't have your data back." :0
You can just type MS. I understand that it was cool to use M$ in the 90s, but like, all the tech giants are bad at this point and M$ looks silly.
People keep bringing up Manifest v3 like it's some evil plot to show people ads. Nevermind that Chrome already ships with its own adblocker which blocks bad ads.

The fact is that with the Spectre mitigations added to Chrome, the performance of networking with manifest v2 was bad. Having to keep sending every network request through 3 different processes just in case there is a plugin (uses by the minority of users) that wants to filter the requests before they are made.

Of course, blocking resource fetches like that could have easily been detected by any server that cares about it, and the interaction with service workers was...weird.

With manifest v3 you can still block ads. You can remove them from the DOM, you can make them invisible, you can replace them. You just can't programmatically decide which resources to filter - only a declarative model for resource filtering is supported.
> I would often get put in directories that I didn't want.

I solved this by combining it with fzf. Get all the directories you've ever visited and pass on to fzf (sorted by frequency). Then do your matching. You can trivially see if the match is taking you where you want. If not it is likely the second or third match. You're no longer constrained to navigating only to the top matched directory.

I have this bound to a keystroke in my shell.
I would really like to know whether this feature gets any (non-accidental) use. It's certainly an important problem to solve, and I can see the technical merit in the solution proposed. What I'm left wondering is how this solution is most effectively communicated to the people who need to know about it, such that they're able to make use of it correctly in the critical moments when they need to use it. For obvious reasons there are probably no good statistics on this, but I wonder what the user research was like.
Why to exclude only faangs?

Because they skew the numbers upwards. Most of the market doesn't pay their wages.
Microsoft Copilot with DALL-E 3 can now be accessed easily through WhatsApp
And likely won’t be accepted unless it exits NATO. Sitting on that many chairs is not acceptable even if you control the Bosporus.
Heart rate variability differs between smartwatch and clinical testing
It is more about putting all eggs into one basket.
Page title: Awesome-Selfhosted
> Maybe not yet, but it is heading in that direction

When people say that Rust is complex, they often neglect to differentiate between implementation complexity and developer facing complexity. The implementation complexity is growing in part to support the end user simplicity. I also don't understand why anyone feels the need to know every feature of the language. You can just learn about and use the features that you need.
I really don't see what's even the problem with bare excepts. Yes, I do want to catch all exceptions sometimes. Sometimes, I don't even care what the exception is. I have ignored my linter's suggestion to fix it on multiple occasions. So, why? Ok, I'll use except BaseException then. How is it any better than bare except?
> Why does money go to Automattic instead of the Foundation?

Matt wants Automattic to get the money and he controls both of them.
Apparently co-workers of devs don't even get that much respect.
Curiously, almost every lighting control desk I've ever seen or heard about is left handed: the faders for controlling the lights are almost invariably on the left.
I'm not 100% sure that that gets you wildcard email addresses that all point to the same inbox, but if they support that, sure!
CI/CD pipelines at large scale can pull directly from src repos sometimes causing stuff like this, just off the top of my head. I think the default is 5000 per hour which is not very much for automation to chew through. I ran into something similar with bitbucket once that I had to engineer around because it was very annoying.
> The timing on the last point seems to be entirely coincidental. It may also be multiple parties involved and when we're talking breach + defacement + DDoS, it's clearly not just one attack.

It could also be that the attacker has compromised IA communication channels and timed it for maximum dramatic effect and confusion.