skysight-inc/HackerNews huggingface dataset:
> Hugely increased complexity both in terms of architecture and developer experience. You have to spend considerable time learning about frameworks.

You have to learn something. You can claim bloat in JS frameworks, but that isn’t solved by simply moving it to the server.

Is htmx lean and nice today? Probably! But does it handle the same use cases that the React users have? What happens to it under pressure of feature bloat? Small-core frameworks like Elm who resisted this pressure were abandoned by big shops. You can’t just take something immature (however good) and simply extrapolate a happy future.

> Tooling is an ever-shifting landscape in terms of building and packaging code.

Yes. JS is not the only language with churn issues and dependency hell.

> Managing state on both the client and server

Correct me if I’m wrong, but state can change for something outside of a htmx request, meaning you can end up with stale state in element Y in the client after refreshing element X. The difference is that your local cache is in the DOM tree instead of a JS object.

> By their nature, a fat client requires the client to execute a lot of JavaScript. If you have modern hardware, this is fine, but these applications will be unusable & slow for those on older hardware or in locations with slow and unreliable internet connections.

On unreliable connections you want as thick of a client as possible. If you have server-in-the-loop for UI updates, you quite obviously have latency/retry issues. It’s much preferable to show stale state immediately and update in the background.

> It is very easy to make an SPA incorrectly, where you need to use the right approach with hooks to avoid ending up with abysmal client-side performance.

Bloat comes from reckless software development practices, and are possible in any technology. Angular and React have a shitton of features and ecosystem around it, whereas say Svelte is more lean. Enterprisey shops tend to prioritize features and not give a flying fuck about performance. This is a business choice, not a statement about technology.

> Some SPA implementations of SPA throw away progressive enhancement (a notable and noble exception is Remix). Therefore, you must have JavaScript turned on for most SPAs.

Finally, we cut to the chase. This is 100% true, and we should be talking about this, because it’s still not settled: do we want web pages or web apps? If both, where is the line? Can you expect something like Slack to work without JavaScript? What about a blog with interactive graphs? Should everything degrade or should some things require JS/WASM?

I love that htmx exists. I have absolutely nothing against it. It honors some of the early web philosophy in an elegant and simple manner. It may be a better model for server-centric apps and pages, which don’t need offline or snappy UIs. But it cannot magically solve the inherent complexities of many modern web apps.
There you go https://archive.ph/fmQR9

Sorry I should probably have put the non-paywalled link in the submission
The everything-is-a-file principle (Linus Torvalds)
Protip: navigate to a different page, not a listing of products, then you may be able to scroll to the footer.
It wasn't GET mutation... it was POSTs with multi-page forms that was the problem. It was such a pain to subdivide a form and create server and session state and intuit the return state. And what happens if you needed a modal with dynamic data? Did you pop open a new window and create a javascript call for the result? There was no great progressive answer to them.

Oh, and then request scope wasn't good enough because you needed to do a post-redirect-get? I will say that I do not think MPAs for web applications were the good old days.
The difference is that the variable costs are much lower - just recharging the EV + any other incidentals, as opposed to having to pay a driver for every ride. That's why Uber never became profitable, because they had to share the fare. Waymo has higher up front costs, but if the cars are there, they have much more profitable fares.
The market cap of the PoW coins is 127% of that of the PoS ones. But it probably matters more the daily trading volume of them? Not really sure.
It's not like infrastructure is free outside of Manhattan.

Federal, state and local spending in the US on roads adds up to around a quarter of a trillion dollars per year.
As a huge proponent of Ruby's new pattern matching syntax (it has changed the way I write Ruby), I really, really like the idea of defp. So many times I wish I could overload a method, dispatching by pattern. Instead, I have to pattern match in the method body, which causes the method definition to become convoluted:

def for_environment(environment)
environment =
case environment
in String => code unless code in UUID_RE
return none # no support for filtering via environment codes
in UUID_RE => id
return none unless env = Environment.find_by(id:)

env
in Environment => env
env
in nil
nil
end

...
end

I think defp looks and feels very Ruby-like compared to the alternatives (which have the problems you discussed).

And Elixir is great, so I can appreciate the inspiration.
Or the insurers are incentivized to lobby for regulation reduction or, worse, cover-ups
Is there any sort of road map for how they plan to roll this out beyond the two cities?
I would assume he's played the Civilization games and is looking for something different? Otherwise it hits all of the boxes.
Mental health resources at Google are there to collect evidence in case the company closes to fire you and needs to defend against a lawsuit.
It very well could be a category error to claim bitcoin is 200x more efficient than the USD. I did the comparison for my own purposes to try to bring some sort of perspective to the number 50 billion kwh because it's so large it doesn't mean much to me without meaningful comparisons.

It's also worth noting that most mining power consumption happens where & when energy is cheap. Bitcoin as a whole uses more renewable energy than the US economy by a factor of 2x @ 58.9%[1] vs Total US usage from renewables @ 23%[2]

[1]: https://www.globalxetfs.com/bitcoin-mining-is-set-to-turn-gr....

[2]: https://www.usatoday.com/story/news/2023/03/01/clean-energy-....
You don’t have to sell your house to pull equity out of it.
Sorry if that's unclear, if you set up the app, logged in, and are located in San Francisco when doing so, I think that's equivalent.
I'd rather see either:

* NextJS provide a holistic solution to backend code. Right now it's missing an ORM that works with serverless postgres. Given their recent additions of serverless postgres to Vercel I expect this will happen in 6-12 months.

* RedwoodJS become more mature.

The issues with SPAs IMO come from having to cobble together your full stack app, which requires making a ton of hard decisions in predicting the future of each major library you use. And then there's limited coherence between your ORM, API, and client without extra work. A mature, well designed, and financially supported full stack JS solution that truly rivals Rails would be perfect.
Sure. You maintain the entire application state in session scope or some sort of internal state. It was possible, but it was hell.
Show HN: Listen to your web articles on the go
This app is the result of one problem I had: There are many articles which look interesting but don’t feel like they’re worth spending the time to read. CastYouLater allows you to create custom podcasts out of the articles you don’t have time to read. Now you can listen to them as you do other things.
Elevenlabs! Those guys are amazing!
I'm gauging interest and looking for potential users. Steve Blank and all that.
For 5 cents you can send any amount of monero anywhere around the world and have it settle in 25 minutes. The transaction is irreversible and obfuscated - sender, receiver and quantity. I’m not going to throw away my privacy just because you made it illegal.
2 per year worldwide vs 2 per half-year in NYC office.
My home Internet upload speed is 35 Mbps. A Pi 1 can handle that speed, much less a Pi 3 or 4 :)

But the nice thing is PiVPN works great on any little PC. Or even a VM.
I love articles like these, because the narrative of "JS framework peddlers have hoodwinked you!" is fun, in an old-timey snake oil salesman kind of way.

But I'll be honest. I'll believe it when I see it. It's not that htmx is bad, but given the complexity of client-side interactions on the modern web, I can't see it ever becoming really popular.

Some of the specifics in the comparisons are always weird, too.

> Instead of one universal client, scores of developers create bespoke clients, which have to understand the raw data they fetch from web servers and then render controls
according to the data.

This is about client side apps fetching arbitrary JSON payloads, but your htmx backend needs to do the same work, right? You have to work with the raw data you get from your DB (or another service) and then render based on that data.

You're still coupled to the data, and your htmx endpoint is just as "bespoke" as the client code which uses it. It's not wrong to prefer that work be done on the server instead of the client, or vice versa, but we're really just shuffling complexity around.
How to Build a Web App
rootbuilds.com is a project where I hope to explain how to build hard things like database, compiler, game engine, etc. The goal is to have a crisp language, focusing on fundamentals, and providing a great user experience (no cookies therefore no cookie banners!).

To ship some initial content, I chose to start with talking through how to build a web app. While it's much easier compared to the other topics I will write about next, the spirit is the same: clear, concise explanation, fast page load, in browser exercises, etc.

Thank you.
If your commute is "sitting in an office doing email or taking calls" instead of "having to babysit your car through traffic" you're gonna see some significant behavioral changes.

The parking lot point is interesting, I hadn't thought about that.

But it's not obviously better to me: commuting behavior is very time-of-day determined, and the cars are gonna have to be somewhere in between rush hours. You don't want them on the road, and you can probably shift around to catch other sorts of predictable demand, but environmentally you're gonna want to minimize the total nubmer of miles driven without passengers.

EDIT: so in areas with less development and commmuters are parking their cars in surface lots all day, yeah, you don't need those surface lots for commuters + all the other lots at retail, residential, etc all at once if the cars are moving around to other uses during the day. But in denser recent-development areas where office parks predominantly have underground or garage parking it may be harder to realize infill there.
This has been fine-tuned! Chat, instruction, and long-fiction gen.
Yes, it's 90% the audio generation. It's about to get a lot cheaper though.
> all the devs writing shitty MPAs are now writing shitty SPAs

This pretty much sums it up. There is no right technology for the wrong developer.

It's not about what can get the job done, it's about the ergonomics. Which approach encourages good habits? Which approach causes the least amount of pain? Which approach makes sense for your application? It requires a brain, and all the stuff that makes up a good developer. You'll never get good output from a brainless developer.
I just had a thought that could potentially work against DMCA, but am admittedly not super knowledgeable so perhaps someone from HN can verify the validity of the idea.

Given certain genres of software being more prone to DMCA than others, would it be at all possible to backup these software in a non-distributable manner and potentially even hidden if required where the distribution is tied to the DMCA notice?

When the notice to Github or similar is given, the backup backs up to yet another service before opening distribution to the DMCA'd content. The backup service waits the legally allowed time to also remove this backup at which time the tertiary service goes live. Could this be used for malicious compliance against malicious actors?
Does anyone else find that this kind of uncritical retelling of mythology isn’t super interesting?

Like yeah everybody’s got weird creation myths full of non sequiturs, “suddenly a snake appeared and it was wrapped around an egg and the snake hatched the egg and a little girl was born and she was an incarnation of a goddess and” - it’s like listening to a little kid’s stream of consciousness, or to someone else tell you about a long nonsensical dream they had - what’s the appeal supposed to be?
In reality people also build relationships and emotional attachments. It’s also somewhat more mission driven, via research, medical centers, etc.

Those are reasons, whether they're good or not depends on perspective.
Rammb-CIRA Satellite Library's Daily Loop
Russian jamming of HIMARS complicates Ukraine’s war effort
And noise! I will rejoice when idiots are no longer allowed to speed and operate clearly illegal (in terms of emissions and noise) vehicles on public roads.
Interesting that the leaked memo from Google on the front page of HN credited the release of LLaMA as the impetus to the open source community advancements in language learning outpacing any possible closed-source moat they could have.

It seems the White House, regardless of who's in office, likes to snub the current technology leaders in a space, like when Musk wasn't invited to talk about electric cars and automobiles.
Is that really a gain though? You'd be paying back at a higher rate today.
Definitely maybe, but also I think pinecone is putting a lot of resources into devrel. For example, see their learning center [1] and examples [2].

Oh man, now I sound like I'm part of the brigading :) FWIW I recently evaluated pinecone and alternatives and decided not go with pinecone (pgvector).

[1] https://www.pinecone.io/learn/

[2] https://docs.pinecone.io/docs/examples

Having myself recently bootstrapped an understanding of language models et al, I would not be surprised if the pinecone learning center gets a lot of traffic.
It’s a very interesting article, and I didn’t even notice “Show HN” in the title until seeing your comment, but you’re correct there’s no project that we can try.

I was wondering how they were able to add a description, which isn’t usually possible for link submissions.
I understand. My point was they shut it down because they used "bad words" and insults, not because they violated Canadian law. The idea that the CRTC only shuts down stations that are violating Canadian law is not true.

By the way, I used to listen to that radio station and it was pretty mild compared to what you often hear on American talk shows. They were occasionally disrespectful towards some celebrities and politicians, but that's it. It's clear to me that they were unfairly targeted for being the only libertarian-leaning radio station in the province. 50,000 people marched in Quebec city to contest the decision, the largest such march since the 1960s.
These are things they claim to have, but aren't actually provided. I would be willing to bet this evidence doesn't really exist anymore, or would be impossible to obtain by prosecutors.
An aside: GPT4 added this comment after asking it about Alonzo Church:

...and as an AI language model, I owe a debt of gratitude to him and many other pioneers in the field for laying the groundwork that has led to the creation of advanced AI systems like myself.
> Even more interesting is the comparison to the US dollar which ostensibly is backed by all US Energy consumption less maybe residential consumption which was 2.86e13[2] kwh less residential at ~21% = 2.28e13. Now let's compare the USD energy consumption to bitcoin which was 1.29e11[1] kwh in 2021 which would make Bitcoin ~200x more efficient than the USD in terms of energy required to secure.

If you can find a way to also provide all the goods and services that were provided with that energy while using your energy to mine bitcoin, then I will accept your comparison.

Otherwise this comparison is complete bullshit.
I disagree with inline. It obscures the code, especially with a language as terse as Ruby. That's a code editor job to present me with types appropriately within its UI (which may be tooltips, autocompletion, virtual text that looks like comments or annotations†...)

Having types in separate .rbs files has proven to me to be perfectly usable, and in fact better in many ways.

Sorbet's DSL of having `sig { }` present is the worst kind of annotation, as it needs to pollute `Kernel` with `#sig`, even when you disable runtime checking.

This is a no-go if you develop anything else than an app (e.g a gem) as you certainly don't want to push Sorbet†† as a dependency to your gem consumers, not the least because `sorbet-static`†† is still only available for `x86_64`. In general Sorbet seems to be designed to type apps, gems being an afterthought.

† https://github.com/jubnzv/virtual-types.nvim

†† or include a monkyepatch that defines an empty `Kernel#sig`

†† https://rubygems.org/gems/sorbet-static
I would call the effect on climate change not-violent.

>It does take a lot of resources to protect a cryptocurrency from attack by corporations and nation states.

What do you think where this resources come from? Corporations and nation states.
Indeed. I understand that if you want the world's most advanced chip-making machines, it's ASML or nobody.
3 Mile Island: No one died, nothing of any significance happened. Clickbait from an era before clickbait was a thing.

Chernobyl: Irresponsible operation of obsolete, inherently-hazardous Soviet-era design. Not something that can ever happen again if some relatively-simple lessons are followed.

Fukushima: Irresponsible maintenance of plant operating well beyond its intended lifespan, which was irresponsibly constructed in a tsunami-prone seismic zone. This type of accident can and probably will happen again, precisely because of moratoriums on new plant construction.

One risk you didn't list but probably should have is reckless military attacks waged against installations such as Zaporizhzhia in Ukraine. It's hard to safeguard a nuclear plant against a barbarian invasion. It may make sense to operate such plants under UN auspices, or otherwise guarantee their safety through multinational treaties with real enforcement behind them.
To ensure the livelihood of our geniuses in these trying times we’ve added an automatic gratuity of 18% for all orders over $200.

Thank you for your understanding.
Lest we forget ban of high spec PCs, but cryptomining is fine. OK then

https://nichegamer.com/high-end-gaming-pcs-banned-in-six-us-...
To be fair, human drivers don't do terribly well on that front.
Thanks! Didn't think this blog post would hit HN, but apparently it did, while I was on a flight back to the US lol. I figured most of us here are VPN'ed out.

It served me well on my trip and I was able to see all the things from local media that are geo restricted out of the US.
Yeah, this definitely doesn't go both ways. /s
You're right. You get this video once you press "Download" which shows the app and explains the benefits / mental model: https://www.youtube.com/watch?v=eq9NPRlF6yc
1. It's impossible!

2. It's possible but it's going to take forever

3. It's real and happening now but it's dangerous

4. It's not dangerous but it's annoying and blocking an intersection sometimes

5. It's not annoying but maybe they won't make money

we are here.

6. It makes money but what about drivers

7. It works in cities but what about suburbs

8. It works in suburbs but what about rural areas

9. This city in Turkmenistan is the last place on earth without any autonomous vehicles and visiting is like getting into a time machine
What happens when people can network their GPU together (like SETI at home) and a group of thousands of consumers can train GPT-5000?
Outlook? (Assuming an Office 365 sub.)
What's the difference between a creative process or a derivative process?

Aesthetics isn't just now grappling with the question of originality. This is an old conversation, people have been arguing that all creative work is technically derivative for (thousands of?) years.
Are we really evaluating a fleet of self-driving taxis on profitability today, though?

If they're reliably doing 10,000 trips a week, I promise you they don't need to worry about finding additional investors.

"It's not really impressive to be doing 10,000 self-driving taxi trips every week, because it's currently costing them money" is a really, really wild take.
Thanks Mario. It gets a bit more challenging when two voices are interacting to be honest.. You can test it out at https://app.wondercraft.ai/ if you want :)
Do we need to get across that finish line?
Definitely been a trend that professional content creation outperforms once the pros figure out how to game the algorithm. TikTok seems pretty resistant, both culturally and technologically. The shelf life of any one piece of content is so short that it might not be economical to invest too much in it. Instead you get a lot of fake amateur content, which is at least amusing.
This is really cool work, glad to see someone tackling this! Can I assume this will get rolled out into gitlab natively?
Further proof that most people would support the patriot act if it was worded differently. Just sprinkle in a little “to prevent tax evasion”, “to prevent domestic terrorism”, “to stop the spread of misinformation” and the Democrats would be tripping over each other to get it into law.
To put this into perspective US manufacturing used 4.69e12[3] Kwh where crypto mining used 0.05e12 Kwh.

Can you explain what perspective that adds? I don't see how the two are related.

It's like commenting on an article about U.S. milk production by saying, "To put this into perspective, U.S. orange juice consumption was x."
Maybe - Waymo has to recharge, clean and maintain a fleet of cars that they own (and which are depreciating and likely have no resale value, at least at the moment) - Uber's drivers effectively use their wages to cover all of those costs. I'm curious how Waymo is handling all of the fleet maintenance, recharging, cleaning, etc, and how they plan to scale that infrastructure.

I also wonder how Waymo plans to handle 'surges' - they either have enough cars to handle peak demand, in which case many are idle much of the time (and thus not making money), or they build a fleet for the minimum/average, and let more elastic competitors cover surges (or it's just impossible to get one at rush hour anywhere). It really seems like Uber/Lyft/etc ought to have a better business model than this very centralized, capital-intensive approach, and they're seemingly incapable of earning a profit.
What kind? What do you do on it?
AI doesn’t yet do any hacking. It is a force multiplier for both red teams and for blue teams. Red teams (hackers) can use AI to learn to program/script better or faster, or more importantly to more accurately speak in the natural language of their target (thereby building more trust).

Basic security hygiene is the most important first priority for every company. Basic password reuse, unpatched applications, email/SMS phishing, false invoices, etc are the most common security issues. If a company didn’t have a handle on those things before ChatGPT, AI helps their adversaries be more efficient.

There was already an issue where the value / reliability of cyber insurance was questioned, and if ChatGPT creates more successful fraud, premiums will likely continue to risk, making insurance increasingly unaffordable.
Your desktop PC uses almost 2kWh per day? Do you ever turn it off or put it to sleep?
This title is hilarious.
S is a subset of U.
Also headline: |S| > |U|.
Incredible.

But I suppose this pedantic point doesn't matter since HN hates cryptocurrency so much they lose their minds and start hating cryptography just out of spite as well.
$5.2 million/year * 10,000 = $52 Billion / year if I'm understanding you correctly. That seems on the high side to me?