skysight-inc/HackerNews huggingface dataset:
I have a system that supports optimized images in SSG that doesn't rely on any third-party services. But it requires custom config (babel macro plugin), though it only works for the most trivial websites.

Let's break it down why its hard. If you want responsive, optimized images in a SSG context, without any dependency on 3rd party services, your only option is to pre-generate images at build time. Fair enough, you can go through all your images and pre-generate them at different size and different format. You can do that manually, or automate that for example by using a babel macro. Let's say you want provide resized images at 4 different widths, and support jpeg, avif, webp. That means a whole lot of CPU that you need to burn during build (even with sharp, resizing images takes time), and uses up loads of storage (that you need to ship to your static web server). If your site has anything but a trivial amount of images, the CPU usage will turn your 60 seconds deployment into a 30 minutes deployment (or longer), that doesn't scale. You can store the generated images in the git repository, but that quickly blows up the repository size, so it's not ideal either. You can use a cloud storage service to cache the generated images (self-hosting that on AWS, GCP or your own blob storage service is not difficult) but introduces a dependency on an external service.

How do you imagine optimized and responsible images in a SSG context to work? I (and pretty sure the Next.js developers as well) am curious about any suggestions…

PS. I'm happy to share my babel macro, but as I said, it's only usable for the simplest of simple websites.
It's bizarre anyone ever thought they would be. It's like trying to build a house and a foundation at the same time. We eagerly cram data into toddlers and then try to make high school teachers socialize the poorly-behaved in the most ass-backward scheme imaginable.
I wonder why they don't replace these simple packages like `is-string` with Lodash, which has all these functions and more.

Bundle size isn't a problem: they're ES modules, so you can do something like `lodash/isString` and import only what you need.

Seems like that would cut down on a lot of dependencies. I'm curious why the ecosystem hasn't adopted this or a similar approach.
I agree that many people move away from cities to "escape", but it's important to recognize that for many decades now, rural residents have received significantly more benefits from the government than they pay in taxes, while urban dwellers pay more in taxes than they receive in benefits. Essentially, those who live in cities are living within their means and subsidizing those who live in rural areas.

From an economic perspective, rural areas are still highly connected and interdependent - think roads, infrastructure, food, water, electricity, internet, transport networks. Those who move from cities to rural areas to "escape the demands of the high-interdependency core" simply shift from majority "producing" to majority "receiving" benefits from our interdependent society.

I'm a huge fan of rural living, but it is expensive. We as a society have decided to subsidize it to various degrees. I'm OK with this, but also think cheap, individual solutions should be used when feasible. For example, sewer lines are very expensive in rural areas, so most houses maintain their own septic tank. Rural houses often use a Propane tank they refill rather than a gas line hookup. They often have their own well for water. Thus, the high grid-connection fees in the article make sense, as rural residents can just build their own off-grid electricity production.
If I can use my previous income to get a loan from Visa (by credit card) does that mean I 'made' money on my future earnings?

I'm not opposed to the idea of front loading taxes by taxing loans after a certain threshold.
1. Is due to third-party cookie disablement that has been made by all browsers. Since Facebook's JavaScript is a third party site it no longer gets cookies as if you were logged in, so they can't track you. This is not Apple specific.

2. Within the Facebook app if you click a link and make a purchase they can absolutely still track you. If you click a link and open it in Safari, they can still track you.

If however you see an ad on Facebook and search for it in your browser without clicking any links then Facebook can't track you, do to third party cookies being disabled.
Extremely progressive means forcing the poor to bend to your will through punitive taxes. Tobacco, meat, heating and cooling, car and plane travel etc
Really glad you made this article. Do you guys use rust for webGPU?
It's like a web version of Vulkan / Metal / DX12, in that it's designed to more directly represent how modern GPUs work. If you are happy with your WebGL performance, by all means, continue using it. However, it can sometimes be a bit hard to understand what is going wrong (performance-wise) in an OpenGL or WebGL application... the underlying implementation will sometimes paper over its limitations. You can accidentally stray from the high-performance paths.

There are some feature differences, like how WebGPU has compute shaders.
On the first point, I agree, the article was very much misleading and I hope they correct it.

As for the rest, frankly, this just adds more fuel to my belief that the first thing we need from these companies is simply transparency. If they're running mass psychology experiments on people, we should know about it.

The idea that Facebook can operate as a black box while literally weighing how much to value individual human emotions is deeply deeply disturbing me.
Rough yeah - but I think it does change by integer degrees from actual map sheet to map sheet, so you could probably drift a couple of degrees without knowing it within an hour or so of flying.
Then these bridges are fine. Virtually everything is better than raw SMS.
I didn't realize that this "test site" was publicly available. I thought it was "discovered".
Charging for cloud storage is fine, but gating features like Dropbox sync, handwriting recognition and sending emails behind the "premium" tier monthly subscription is ridiculous. If a $50 tablet can do all this out of the box, a $450+ one should as well, especially when it is sold specifically for the purpose of note taking.
ok thats FAIR
Just use Gatsby v4 if you want good image support! v4 brings Gatsby in-line with Next.js because it introduced runtime SSR support like Next.
This article should be required reading for every student considering college. Most students choose majors as a path to career. Knowing that some majors are entirely unsuited to that end, or that for-profit schools are very inferior to not-for-profits, could save a lot of grief later.

A mass student diaspora away from useless majors also might force universities to finally rethink their priorities, which at present serve most students poorly and at insane cost.

I got a BS in zoology (followed by a MS in CS). Had I known the truly terrible prospects for a biology degree, I would certainly have chosen a subject more interesting than memorizing the latin monnikers of minutiae, especially if I knew I could later rely on a MSCS to do the heavy lifting.
That's great to hear. I love PouchDB for the record. It's amazing.

That's really great to hear about native JWT auth support, that is a huge gap for me to not have a good story of how to do auth. I totally understand the reasons for moving it outside of the database, but it was too much work to create and manage my own proxy on top of couchdb.

Thanks a lot for the clarification, and I'll be watching.
> The custom toolchain is a hindrance to developer onboarding, especially if developers have to build it themselves. We now offer a prebuilt toolchain's for all common OS's under the esp-rs/rust-build repository.

Is it possible to install and manage this pre-compiled custom toolchain with rustup? Maybe using the RUSTUP_DIST_SERVER variable to point rustup to a different server, https://rust-lang.github.io/rustup/environment-variables.htm...
I think you're overstating the danger of oil tanks. You mention explosion risks, that's a very rare occurrence and could happen with gas or propane too. The real downsides of oil are the high prices and the carbon footprint.

Wood is at least much cheaper and has charming appeal, gas is cheaper too but not available in many districts. Propane is extremely cost ineffective for heating, it'd be much better to use any other type of heating if possible.
Anyone intentionally investing in fossil fuels today is delusional. These companies should have died years ago, but they've managed to delay the inevitable by lobbying to delay action and protect their massive subsidies.

Tesla has shown electric cars can be superior to gas cars in all but one metric (road trips) and they're closing in on that. Wind and solar are now cheaper than coal and in some markets cheaper than natural gas. At peak times electricity from renewables is so cheap its creating a gold rush to develop low cost energy storage to soak up all the dirt cheap electricity that's being produced.

Theres also companies who can produce synthetic liquid fuels with co2 from direct air capture using renewable energy. With a decent carbon tax they could compete directly with fossil fuel companies but eventually renewable energy should be cheap enough that they won't even need a carbon tax.

Fossil fuel companies are as good as dead. They just dont know it yet.
"Bring out the gimp!" --Pulp Fiction
Aren't there already FOSS tools to do all of these things? Is it really worth sacrificing your freedom for a little bit of convenience?
Even just the first two google results paint a very different picture, so please bring evidence if you throw around accusations of lying.

https://www.texastribune.org/2021/03/18/texas-winter-storm-b...

> That meant that Oncor, which delivers power to the Permian Basin — the state’s most productive oil and natural gas basin — had unwittingly shut off some of the state’s power supply when it followed orders to begin the outages.

> When Texas deregulated its electricity market in the early 2000s, making supply and demand the primary forces for the price of power and increasing competition, wholesale power prices fell. That made it cheaper to electrify natural gas compressor stations and other equipment rather than the traditional method of using the natural gas produced in the field to run the compressor’s turbines or engines, energy experts said.

https://www.spglobal.com/platts/en/market-insights/latest-ne...

> Much the the state's natural gas production and processing were struggling during the storm even before they lost power because of the weather, causing problems at the wellhead and the plants. But the failures were exacerbated by widespread power outages in the Permian Basin and Eagle Ford Shale, creating gaps where the gas could not be delivered to the gas-fired power plants that desperately needed supplies to generate electricity.

> At the peak, more than half of the state's natural gas supplies were knocked offline by power losses, according to ERCOT, causing at least 20% of the total power outages during the week.
Plastic industry pollution to overtake coal in US by 2030
They heroically died for our capitalist masters, because money is the holy grail of our society. Amen, brave insects for humans shall soon be next.
Kind of, but that still shouldn't have impacted Kahan summation, which only cares about associativity, and extended precision doesn't impact that. They would just end up getting more numerically accurate results on x87.
The zero-config aspect is that in order to add my own middleware to my app, I drop in a file with my middleware function into a directory and that's it. There is nothing else I have to do. Just like if I want to define a new API endpoint, I drop in a file in the corresponding directory with the endpoint function defined and that's it. That's zero config.

They took all the ease of the old PHP approach and made it better.
We should be addressing that FREOPP is a conservative think tank that's part of the State Policy Network.

Articles like this are a part of a broader conservative attack on higher education. If conservatives had their way, elites would go to Ivies and study the greatness of Western Civilization, and the rest of the unwashed masses would go to coding bootcamps and vocational schools.
I think that’s definitely true for some of these, and I wouldn’t be as surprised by TSLA having a higher market cap then all of these companies. It’s the combined bit that’s weird. I think ExxonMobil would position itself more as an “energy company” than an “oil company” for instance, and I doubt it will just roll over and die.
Campus proximity to Bay Area.
> I no longer work as a doctor.

I'm curious if you'd be willing to discuss why?
> You cannot just go and get personal tutoring with a professor when you are having problems designing something.

My experience in the US was that you could do exactly that. Except for the week before midterms and the week before finals, the professor's office hours were often empty. I could show up and have at least a 1/4, if not better, chance of getting one-on-one talks with someone skilled in their field about what they are working on. That was worth more than anything else I got out of college (except maybe the magic piece of paper that means more companies will interview me).
Hooray for him.

Patent trolls have a business model, which he's disrupted:

1) buy a patent, the broader and better-tested the better

2) start threatening the easy marks; the ones who roll over and write you a check right away.

Their trick is to ask for a settlement small enough to say "hey, it'll cost you more than that for attorney's fees!"

3) use that money to threaten the harder targets: the ones who will fight back. Those people get asked for much larger sums.

4) maybe actually go to trial with a very big target, one that'll get dinged for a 9-figure judgment if the troll wins. In the Eastern District of Texas, juries tend to do that.

Researching the validity of a patent does not require $400/hour attorneys. Anyone with a basic knowledge of patent law and computer science can do it. (And no, I'm not advertising for myself. I'm retired.) Do you think those expensive attorneys do it themselves? It is to laugh -- they assign it to a junior who knows technology.
I do not see why it would be terrible for a kid to see the ramifications of their future due to their current lifestyle of a 2k+ sq ft detached single family house with an SUV and pickup truck and flights to Disney world as a villain.
If your reason for not wanting web is "I can't pirate it anymore", I don't have a lot of sympathy for you. And it's probably not even true. With a web app like this which is mostly client side, it will probably become possible to rip it and host it on non-Adobe servers or package it up with a local web server. Especially if they offer an offline mode. I imagine pirate groups are already starting to think about building tools for this.
Nothing too crazy but makes my work flow easy to swap between locations. I got VSCode server, PHPMyAdmin, Transmission (Web based torrent client), DIY Youtube downloader client, DIY video editor, A bunch of service managers, and a couple more things.

It's basically a whole developer suite with remote processing. I could do AI training on my cellphone with this setup if I wanted.

I've been working on a DIY spotify clone for a media player.

It makes it really convenient having all my files on a central server, so I'm not juggling drives, and copying over data.

As well, it's automatically backed up weekly so it's always safe.

Works well for someone always on the go :)
Vercel / Next.js does function as a backend, too. You simply add an api folder and create 'routeName.js' files in there and you've got an endpoint backed by a lambda.

And Vercel itself allows you to install backend services such as Redis caching, databases, or queues that you can pull in from those functions.
Verizon opens up its 5G Nationwide network to certified IoT devices
Let’s not forget that when the US governments prints money, it increases asset prices across the board. The government would then tax those “gains”. The problem is that those aren’t gains, they are only keeping up with inflation.
AppleWorks would beg to differ. And if GUIs aren't prohibited then GEOS on 8-bit platforms had a suite too.
Depends on your "resources of personality". Maybe it's my ADHD or maybe just weakness of character, but I need to place an extra barrier between myself and distraction that I can't simply dismiss with a mouse click.
Really? I'd love to see a source for how the $900 Intel MBAs stacked up against equivalently priced laptop hardware.
As far as I know, legally speaking it would be a private message if the members were all members of a legal entity like a business. I.e. subject of this HN article is a private message to the Facebook organisation which clearly has over 1000 members.

I also think legally, but this may vary from jurisdiction to jurisdiction, a message to one thousand people that you do not know personally and you are not in an organisation with, or that organisation has an open access policy (even if there's an entrance fee) would be a public message.

Of course, IANAL and just learned this from reading the news.

More interestingly however, is what Facebook or other media should consider public. In my opinion a WhatsApp group with 1k members should not be considered public, even if there's absolutely no bar to entry. Private companies should have no business policing private communities. If they've got concerns they should invite law enforcement to decide if there's any laws that are being broken.

The moment when communication becomes public is when the communication goes outside the boundaries of the group. If my antivax aunt posts an edutainment video about how vaccinations cause autism and it is clear that it is misinformation, and that edutainment video is not just in her group of weirdo's, but actually shared on her public timeline, in my opinion Facebook should definitely come down with the ban hammer. There should be a little "report" flag that I'll use to snitch on my aunt. Even if it's on her "friends & family" timeline I wouldn't consider it private for the purpose of culling misinformation. She should specifically select a group of people who have self-selected to be in that group for it to be considered a private message.

Also, if a private group on a platform like Facebook/Whatsapp has members that are underage, and not all members are in a complete graph of direct friends/family, Facebook should require that group to have active moderation that conforms to some sort of platform wide code of conduct.
> If you have a billion in stock but live a humble life, what's the point in taxing it? You'll live the same way, and sell some stock. But selling stock to pay taxes is not necessarily good, unless whatever the government does with the money is better than whatever the company was going to do. Sure, it could be good, but it's not a slam dunk.

Who makes that decision? In a democracy, the people do, via the government they elect.

> The idea of wealth is just very different in the modern world. If wealthy people were hoarding (keeping a bunch of stuff without using it), then taxing would put that stuff back to use. But wealthy people hold onto money-producing assets, which means someone is still using the stuff....

> I'd much prefer that we tax consumption. It could be a 1000% tax for a Ferrari. Encourages better use of stuff and can be very progressive without triggering as much anger.

One important thing that's missing from your analysis is power. One important function of inheritance taxes is make wealth-power less hereditary.

Also, wealthy people consume less, proportional to their wealth, than poorer people do. It's pretty much impossible for a billionaire to "consume" their fortune, unless they decide to do something useless and absurdly grand, like building a thousand ziggurats or something. Consumption taxes only work to concentrate the tax burden on non-wealthy people.
this has been around since at least january of 2021.

i looked into using something like this or setting up my own synapse+bridges and ultimately thought the synapse server had way too much in the way of complexity and attack surface for something that would ultimately end up being a consolidation of all my encrypted messaging. (it was also a bit weird to see public internet protocols using grpc, but i guess that's what people do now)

that's the world we live in i guess. you either dedicate a bunch of time to watching your own infra, let tech giants read your messages or let hackers read your messages.

this is fine.
> IMO the use of `new` in modern C++ (as is the case in the writer queue) is often a code smell

As a naive practitioner of modern C++, I'd love it if you could elaborate on this.
This is what we thought about Yahoo! way back..
>Compilation using Rust is 17x faster than Babel and enabled by default using Next.js 12, replacing transforming JavaScript and TypeScript files.

I've never, ever felt constrained by Babel performance. Even in massive 100k+ LOC codebases. I have, however, been burned over and over again by introducing native binaries into the build process. We specifically moved off of node-sass to using PostCSS for this very reason.

I'm not completely sure how these Rust binaries will work, but if they are in any way less universal than Node, it's going to cause problems across dev and CI build environments.
It says in the article that it was publicly available
You're giving naive 17/18 year olds way too much of the benefit of the doubt. Your average education system doesn't wait until they're in the college prep high school to start drilling into them that going to college is their best option and that they need to start thinking about what they want to do for the rest of their lives even though they're not even legal adults. This shit happens so fucking fast that most kids don't even question it. You have your monthly meeting with your guidance councilor that barrages you with "so what major do you want to study? What schools have you looked at? Do you have a list of reach schools? Do you have your list of safety schools? Have you started any of this? Huh, huh, huh??????" and so you just go through the motions of it all and ultimately this is how we end up with only 1 in 4 kids actually finishing college.
It does though. Like why waste time if you know a viral GPL-style license or a patent encumbered license would be a no go?

This is akin to saying SWE’s don’t need to understand GDPR, COPA, HIPPA, DMCA or whatever. Obviously there might be cases where someone never touches code in a GDPR or HIPPA context. But any SWE working in those areas should damn well understand the basics of the law — at least enough to flag inadvertent, but none the less blatant violations.
> they 100% will make more than if they try to get a job in the humanities without college.

This is true, but is only part of the equation. You also need to factor in:

* The probability of them getting a humanities job.

* The cost of college.

If college is expensive and most humanities majors don't end up with humanities jobs, then your statement can be 100% but still a net loss for humanities majors in aggregate.
I can't believe you find the concept of this even offensive, kids are taking out crippling loans to go to college in order to better their social standing and be self-sufficient adults by and large. Ignoring the ROI on college is a luxury that the vast majority of college students can't ignore.