MurphyA/hacker-news huggingface dataset:
by jlongman | 2025-10-25 22:42:53+00:00
It’s probably worth posting [1] which shows many cities around the world.

Also there’s an aging HomeAssistant add-on [2] that lets you visualize stations and stats. But since HA now insists the addon is separate from an API and there’s no separate API (really, it’s trivial) things like electric bike or trailer counts are not exposed.

[1] https://citybik.es [2] https://www.home-assistant.io/integrations/citybikes/
by bradlys | 2025-10-25 22:43:52+00:00
Criminally overpriced. We're not getting shit for it either.

God forbid you live in any of the more woody parts of California either. You'll have to have your own battery or generator anyway. As someone who plans to live in the Santa Cruz Mountains long term, I will be going completely off grid as PG&E will just cut power forever rather than fix anything.
by laurencerowe | 2025-10-25 22:43:53+00:00
I'm pretty hopeful that the combination of per-request isolation and the new snapshot functionality we're currently working on will be a big step forward for those running server-side JS at scale.

Having each request start from the exact same program state should make reproducing and fixing production issues easier. In a way it combines the predictability of the CGI programming model with the speed of a warmed modern JIT runtime.
Show HN: Lightweight Directory Bookmarks for the Terminal
by twilto | 2025-10-25 22:43:54+00:00
I built a small Bash script to make navigating directories in the terminal easier. It’s a lightweight alternative to pushd/popd with these features:

- Save *temporary or persistent bookmarks* for directories. - Assign *aliases* to frequently used paths. - Quickly jump to any saved directory with a single command. Feedback and suggestions are welcome!

Thanks!
by 7thaccount | 2025-10-25 22:45:24+00:00
Early on, the selectric typewriter thing had a spherical ball that could rotate to stamp the characters. So when you typed a key the IBM hardware would type a character on a piece of paper exactly like a typewriter and also the IBM computer would keep track of this and when you ran the expression it would calculate the result and print that out as well. You can see videos of this.
by nickcw | 2025-10-25 22:45:56+00:00
I wrote both the WebDAV client (backend) for rclone and the WebDAV server. This means you can sync to and from WebDAV servers or mount them just fine. You can also expose your filesystem as a WebDAV server (or your S3 bucket or Google Drive etc).

The RFCs for WebDAV are better than those for FTP but there is still an awful lot of not fully specified stuff which servers and clients choose to do differently which leads to lots of workarounds.

The protocol doesn't let you set modification times by default which is important for a sync tool, but popular implementations like owncloud and nextcloud do. Likewise with hashes.

However the protocol is very fast, much faster than SFTP with it's homebrew packetisation as it's based on well optimised web tech, HTTP, TLS etc.
by danwills | 2025-10-25 22:47:54+00:00
I believe so, although the way I usually think about Solitons is like a single packet.. so just one cycle of a wave. Continuous sound could probably be thought of as a continuous stream of solitons (I think ppl call them phonons when it's sound though). I haven't studied PDEs nor solitons in a formal way I just love playing with them. Gray Scott with History and Wave (a formula I contributed to Gollygang/Ready) supports many fascinating soliton behaviours. Here's 25mins of one of the strangest parameter settings I've found:

https://youtu.be/Naj_J8aznyk?si=Da3A3iTz8rN9qrgq
by 1718627440 | 2025-10-25 22:47:59+00:00
> then that would mean the upstream tests still need work

More coverage is nice, but the foremost care should be to do the right thing, not have some tests for it. Some cultures do not include testing-first and instead treat tests as a tool for edge cases. Nobody bothered to add a tests, for -r, because the did not thing of that as an edge case, but as a core behaviour.
by xoz123 | 2025-10-25 22:48:03+00:00
Blown away by this article, thank you. I hadn't thought of the Sokal affair in ages but I remember when it happened and how gleeful everyone was in making fun of the journal at the time. To think that the author and journal co-editor at the time would wind up working together as early advocates for Palenstinian rights is an incredible plot twist.
by wtfwhateven | 2025-10-25 22:48:07+00:00
>a defined territory, a permanent population, a government, and the capacity to enter into relations with other states.

All of these are fulfilled.

>I'm well aware of that.

You would not have asked if you were "well aware".

By your own reasoning if the US said the earth isn't round then you'd agree with them. After all Palestine wholly fulfills your criteria of a state.

>You haven't answered my question of why Jordan and Egypt didn't recognize West Bank and Gaza as the Palestinian state up to 1967.

I don't need to as it doesn't matter.

>But if your starting point is that a state isn't an actual physical entity, and it can come into existence by sheer will power, retroactively,

>if

It isn't.

>but it doesn't feel like you're interested.

I would be interested but you keep making straw man arguments, being inconsistent and resorting to "some people don't believe it exists so it doesn't exist"
by musicale | 2025-10-25 22:49:48+00:00
I appreciate Sun creating things like Java and improving the performance of the JVM (adopting ideas from this Self runtime etc.) I don't know whether it made any money for them, but it certainly helped the rest of the computing field / industry.

Regarding Self's limited adoption, I think JavaScript showed that a Self-like system could be effective and popular if it used C-like syntax rather than Smalltalk-like syntax and shipped in every web browser.
by landl0rd | 2025-10-25 22:51:11+00:00
This is ignorant culture war politics and/or anti-Texasism.

I should point out that cold temperatures place a huge demand on the grid because consumers don't want to winterize for the marginal once-a-decade blizzard any more than utilities; around half our homes have relatively inefficient resistance heaters as opposed to furnaces.

We have a lot more growth in the past few years than most other places, both in relative terms, and in absolute (big state + high growth introduces more absolute friction than small state). Demand is forecast to rise over 20% from 2024 levels vs. an American average under 5%: https://www.eia.gov/todayinenergy/images/2025.07.31/main.svg

So no wonder our reserve margins run thinner when we're already having to build at such speed just to keep pace with regular demand.

Texas has been building a ton of wind and solar to supplement generation capacity and is taking some leadership in the next-gen nuclear stuff for a reliable base load, but in the mean time the shortage of CCGTs is going to bite in a state where demand goes up this much, this fast. SB6 passed this summer also should help with reasonable control and oversight.

ERCOT actually does a pretty okay job, all things considered; it's hard to invest heavily in winterization for rare events when you're having to invest heavily in new generation to keep up with steadily increasing baseline load.
by RandomException | 2025-10-25 22:51:21+00:00
They usually don't make sense optimizing before achieving these levels of expenses. I mean, for a really long time the expenses are so low that it would cost more to engineer these solutions in the first place, and then they suddenly run through the roof exponentially.

But mainly, priorities and "it's not that much in comparison to all else". And perhaps not even tracking the costs properly :)
by mothballed | 2025-10-25 22:51:41+00:00
Right before electric vehicle penny stock WKHS was set to go bankrupt, Trump magically showed up endorsing them and a deal with GM causing the stock price to explode[0]. The truck itself basically never came to fruition beyond a few prototypes and was featured on Hindenburg because the CEO, after spinning it off as lordstown motors, was fined by the SEC after essentially lying about having massive orders and production capabilities while their truck was literally catching fire on the road (as in, there is footage of it in the Hindenburg Research video).[1]

I don't know if this particular case is insider trading, but it is my experiential belief that Trump insiders have to be involved in some shady trading methods.

[0] https://www.cnbc.com/2019/05/08/trump-tweet-sends-penny-stoc...

[1] https://youtu.be/n0Y81M8oWn4?t=159
by FridayoLeary | 2025-10-25 22:55:05+00:00
Much as i dislike China i feel they are pragmatic. I don't know if it's justified but i always give them the benefit of the doubt that they don't do stupid things for no good reason. Unlike Western nations who have to please voters and look good, China has no such constraints and are far more transactional. They don't care about climate emissions. At all. If they think something will be good for them and their economy, they will do it. Another thing is that they take big risks, again they are beholden to nobody so they can. I think the way forward is to be realistic and honest. If renewables are cheaper we should go for them, why not? It's free. If not, not. Frankly having rolling blackouts in california is not a great argument for having more renewables, unless i'm missing something. It might be something for politicians to boast about next time they jet acrosss the world to attend self serving climate summits, but it doesn't help ordinary people. More fossil power plants would be more reliable then renewables. OT but Trump has a special dislike for green energy and i don't understand why, but it's obvious that if it can't compete, or come at least close to fossil fuels and nuclear then that should be fully acknowledged.

If i'm wrong about China and competely misreading the situation in california please let me know.
by sema4hacker | 2025-10-25 22:55:45+00:00
My Silicon Valley years (Palo Alto and Santa Clara) were in the 70's. I remember being invited to dinner by someone I helped find a job. After dinner another guest pointed to a VisiCalc ad in Byte magazine and said "THIS is going to be big". It went in one ear and out the other. Soon after that our sales department bought an Apple just to so they could run VisiCalc instead of relying on their paper systems. I still didn't recognize the revolution happening in front of me.
by SoftTalker | 2025-10-25 22:56:20+00:00
I haven't used old school FTP in probably 15 years. Surely we're not talking about using that unencrypted protocol in 2025?

From that link:

2. SSH connection You will need advanced knowledge and an OVHcloud web hosting plan Pro or Performance to use this access type.

Well, maybe we are. I'd cross that provider off my list right there.
by saltypal | 2025-10-25 22:58:08+00:00
With two[1] other[2] great articles about the guts of how programs _actually_ get loaded and run, I was reminded of the above great (multi-part) article, which I remember reading on the subway in tiny chunks and being surprised it ever works at all.

My CS degree was from a liberal arts university, and while I wouldn't trade anything for the coverage of ethics, previous AI bubbles/winters, and my time in the business and mathematics departments, these articles along with the glibc author's What Every Programmer Should Know About Memory[4] rounded out my education. I still make use of concepts from both when profiling and debugging programs.

[1]: https://news.ycombinator.com/item?id=45706938

[2]: https://news.ycombinator.com/item?id=45706380

[3]: https://www.cs.dartmouth.edu/sergey/cs108/ABI/UlrichDrepper-...

[4]: https://people.freebsd.org/~lstewart/articles/cpumemory.pdf

See also: https://stackoverflow.com/questions/8126311/how-much-of-what...
by josiahpeters | 2025-10-25 22:58:26+00:00
I almost did this after I helped a friend install a mini-split.

Having just installed a mini-split in my office shed with a pre/charged unit. I told him it was easy and helped him. We ended up needing to buy an extra long line set to make the distance work, which needed more refrigerant.

I called 15 different places and finally found one that could come out and charge the line for under $350. Which was hard to stomach with the whole unit costing only $750 from Amazon.
by Groxx | 2025-10-25 22:58:35+00:00
There is NB_INPLACE_ADD... but I'm struggling to find enough details to be truly confident :\ possibly its existence is misleading other people (thus me) to think += is a single operation in bytecode.

Or, on further reading, maybe it applies to anything that implements `_iadd_` in C. Which does not appear to include native longs: https://github.com/python/cpython/blob/main/Objects/longobje...
by raspasov | 2025-10-25 22:59:00+00:00
React Native apps can be made to feel native but it takes some knowledge and skill. In certain cases, a bit of native code might be required instead of off-the-shelf libs.

For example, I was looking for a way to perform certain computations on a stream of frames from the camera. Most libraries available I found would send the image frames to the JavaScript side first and do the computation there. Unfortunately, that was never 60fps because the amount of data being copied/serialized was too large. The solution was to write a bit of custom code that performs the computation on the native side and only ship the computed result (tiny JSON) to the JavaScript side. The end result was easily 60fps and felt 100% native.
by AlienRobot | 2025-10-25 23:00:15+00:00
As someone who isn't a native English speaker, I believe most people who use the Internet would benefit from simply learning English rather than having an unchecked AI translate things to them. Reddit for example has joined millions of terrible Wordpress websites in auto-translating everything for SEO purposes and Google seems to be fine with this for some reason. It's ironic that it has reached the point that if you search for a "multi-language" plugin for Wordpress, most of the results aren't about letting you write an article in multiple languages, they're just about automatically translating a single article to 30 languages with machine translation.

The reason none of this makes sense to me is that it's intellectually crippling Internet users. Computers and the Internet are tools. If you want something machine translated to you, you can use a tool like Google translate to translate it for you. If the webmaster does this, it robs people from the opportunity to learn to use those tools and they become dependent on third parties to do this for them when they would have a lot more freedom if they just did it themselves (or if they learned English).

Teach a man to fish...
by dathinab | 2025-10-25 23:01:33+00:00
if all cars where replaced with EVs power usage would go up ~20-50% (based on full usage, i.e. all cars including trackers, trucks but also stuff like gasoline power generators). Number is such a large range due to unclearity for total average full usage efficiency across all cars, unclearity how much fast and slow charging would be used etc.

but cars normally get replaces with EVs only if you need a new car anyway, so ignoring that different classes of cars are used for different number of years etc. we are speaking about something like (very roughly) 5% or so off the total increase coming per year if no one including truckers would buy non-EVs. So we have a upper ceiling of around 2.5% increase per year, but more realistically we are speaking about less then 1% increase per year (but also that much for the next 20-50 years).

And sure there are other things, like electric heating, full electric cooking etc. which I am fully ignoring.

But for AI needs alone we have a projected increases of 25% in the next 5 years or so, depending on who you ask. And even around 80% until 2050... which is a completely different scale then like 5% in the next 5 years and up to 50% in the next 50 years ...
by toast0 | 2025-10-25 23:02:30+00:00
FWIW, if my information isn't outdated, FB requires users of the mobile partner portal to be actual mobile networks; airlines are not invited. I worked on this for WhatsApp before I left in 2019, and the airline text only free messaging did not fit with the WhatsApp special pricing/zero rating offering. Afaik, FB doesn't work with airlines on these offerings; the offerings started before I left and were a surprise to me when I was still informed about all the partners (because I had to add them to mailing lists and do other integration work)
by laurencerowe | 2025-10-25 23:02:53+00:00
TinyKVM is probably most similar to gVisor in KVM platform mode. TinyKVM implements a smaller number of sys calls and is focussed on making resets as fast as possible.

Running sys calls on the host means there is approximately 1µs overhead per syscall from exiting and entering KVM so I'm not sure how well that would work for GUI applications.

And we currently only have very rudimentary support for threads, enough for a server program with ancillary threads to boot up but the expectation is currently that the call into TinyKVM only runs a single thread and we fork multiple copies of the VM to handle requests in parallel.
by cbsmith | 2025-10-25 23:03:04+00:00
> ERCOT actually does a pretty okay job, all things considered; it's hard to invest heavily in winterization for rare events when you're having to invest heavily in new generation to keep up with steadily increasing baseline load.

I'm going to have to strongly disagree here. It's particularly easy when you have to invest heavily in new generation to keep up with steadily increasing baseline load. Retrofitting winterization is more expensive. If you build in support for winterization when you build the capacity in the first place (which is what happens with sane regulatory oversight), it's all quite inexpensive. It'd be one thing if the cold was a once a century surprise, but when you know you're going to have cold events multiple times over the lifetime of your equipment, it's really easy to do this right.
by ciupicri | 2025-10-25 23:03:20+00:00
What is this $hi+? You're creating a list that looks like this: [0, 2, …, 2]. It's also common / Pythonic to use uppercase L for lists.

If you don't want to use global variables just add the result of f to x and stop using the global variable, i.e.

x += f()
by danans | 2025-10-25 23:04:43+00:00
Relatedly, CA utilities have begun offering hourly variable priced rate plans, which will allow consumers with batteries to theoretically achieve lower average rates if your batteries can rate-follow. It's still not available for net metering plans, though.

https://www.pge.com/en/account/rate-plans/hourly-flex-pricin...

https://www.pge.com/en/account/rate-plans/hourly-flex-pricin...
by shawa_a_a | 2025-10-25 23:05:26+00:00
It's been a long time since I've programmed Prolog so I'm not sure if these ideas are even relevant (global state might be more than enough!) ; but at first impressions from the readme this really reminds me of ETS

https://www.erlang.org/doc/apps/stdlib/ets.html

Essentially system-global state under named tables.

Have/did you consider having named `env` instances? This would allow for say, feature flags to be kept in a `features` set of relations.

You could also draw from Erlang's 'match specs' and query with a predicate over the keys.
by criemen | 2025-10-25 23:06:00+00:00
Great article, and I mostly agree.

I want to nitpick on

> Don’t review with a “how would I write it?” filter

_Thinking_ about "how would I write it?" when reviewing code catches a lot of stuff for me - I want to be able to come up with how I'd do it, see how the PR does it, and then check if the approach matches. If not, there's something to be learned and explained here. Although, all of that is in my head! If I come to the conclusion that the presented approach is wrong or inferior in an objective way (say, doesn't handle corner cases neatly or at all), I'll comment. Otherwise, let people do their thing!

So, I agree with the point of not using this to generate a lot of comments, but I do believe in it as a useful technique to engage the brain, instead of just loosely scrolling over the diff.
by mikestew | 2025-10-25 23:06:12+00:00
I don't know if this particular case is insider trading, but it is my experiential belief that Trump insiders have to be involved in some shady trading methods.

Given the performance of this administration, I’d be truly disappointed if they weren’t. And not even all that shady, just “Trump’s opening his mouth about tariffs tomorrow, go buy some put options now.”
by jeffbee | 2025-10-25 23:06:46+00:00
I don't think their comment was either ignorant or anti-Texan. Essentially all of the conclusions in the FERC report on the February 2021 events were those of regulatory failure. Generating assets did not have winterization plans that state inspectors actually enforced, most of the failed assets failed at temperatures above their design minima, natural gas delivery system were totally deregulated at the state level, ERCOT winter forecast practices were poor, etc.
by dwood_dev | 2025-10-25 23:07:21+00:00
While Sodium Ion may be the future of grid batteries, it's not the present. As long as LFP is cheaper, there is no reason to go with Sodium.

This calculus will probably change in 3-5 years, but today Sodium is more expensive and therefore has little demand without some form of discount or subsidy.

The switch will be rapid once the economics make sense, but they don't yet.
by C6JEsQeQa5fCjE | 2025-10-25 23:07:24+00:00
It's not a peace deal. It doesn't address any Palestinian concern other than a novel one that is stopping 2 years of constant bombardement (replaced by low-intensity fighting via proxy militias, and smaller scale killings of people who even approach the newly-declared border). Palestinian resistance got nothing out of it, as Israel has abducted and thrown into prisons more people over the past 2 years than it has released through the hostage swaps.
Show HN: Stylish Customizable Aluminum Enclosure for Nvidia Jetson Nano
by mmajzoobi | 2025-10-25 23:07:34+00:00
Around 1.5 years ago, I got into this problem. I was preparing to launch my product into the market that is based on Raspberry Pi 4, then all of a sudden, Raspberry Pi 5 came into the market.

A lot of folks were asking me whether we will have support for Pi 5 down the road or not, and soon enough this question was extended to other types of single board computers etc.

The problem was that Pi 5 moved the location of the ethernet port. This meant I needed to design a new enclosure for it.

I previously had this idea to make a generalizable/customizable, yet stylish enclosure that does not look like a piece of junk, and use swappable modules on a common chassis to create a versatile and extendable enclosure.

I had tried to keep things as modular as possible in my original design but this was testing the limits of my modular design.

So I thought to myself, what if I make the real panel swappable to accommodate various port hole configurations? So I sketched up the design and sent it to my manufacturer and got some samples. We updated CNC’s post-processing program to add some grooves to allow the rear panel slide in place.

When I bought the NVIDIA Jetson Nano, I knew I had to make this.

So I spent a few hours designing the insert tray that holds Jetson Nano, the rear panel, and 3D printed them. I had to iterate a few times to get it to some acceptable level for the first prototype. I am planning to refine the insert tray since it is a tool less setup (snap-fit) and I have not yet gotten the pleasurable snap click

More about the enclosure:

The top material is made of blank PCB. It is an invitation and signal that you can make a functional PCB if you want. Around the PCB, goes a translucent light diffuser ring (made out of polycarbonate). This is the original ring I used in Ubo Pod design. If you end up putting some light inside the closure, this can make it visible from outside.

I am planning to add an extra PWM fan at the bottom to improve airflow and overall cooling.