News for hackers. Stuff that matters.

airbreather

Re:Why craft-lovers are losing their craft on Monday March 23, 2026 @07:44PM (#47496712)
Even if not explicitly looking like a state machine, it will have state based behaviour that could be represented by a state machine.

Almost everything is state based behaviour.

Re:Why craft-lovers are losing their craft on Saturday March 21, 2026 @11:41PM (#47474245)
All the whingers about AI - if it is as bad as you say, then you don't have a problem

On the other hand, if it is not, then stop wasting effort arguing against the inevitable and use that effort to get ahead of the curve.

Either way, whinging about it is the least effective use of your skills and time.

Re:Why craft-lovers are losing their craft on Saturday March 21, 2026 @11:34PM (#47474216)
I would suggest that the 1000 line switch statement implies a state machine that has suffered from the "state explosion".

This usually results from an inadequate system-subsystem decomposition and/or not considering modes, both of which lead to hierarchal state machines instead of one big flat one.

This aspect of architecture is difficult to teach, it is one of the "black arts" that comes from experience and is difficult to codify.

Just one example why, is that often it might require the synthesis of state machines not directly evident as needed from the functionality, eg to perform a one to many or many to one functionality.

Re:Why craft-lovers are losing their craft on Saturday March 21, 2026 @11:27PM (#47474185)
Just wait long enough
As an electrical engineer with more experience than the average age of the readers here, this is a problem that is way, way more complicated than 99.9% of the population have any concept of, to be generous. This is in terms of grid dispatch and stability.

But we can short circuit that and consider in terms of distributed generation (mostly solar) and storage (batteries), see further down.

But the group website has no real information about real people involved, it's best information is some links to some papers that are not even clear if any members of the group were involved in. There is a photo, but I couldn't see that anyone was named.

Maybe in my 3 minute look I missed something, but it rapidly became fairly obvious that is about all the idea and website seemed to warrant.

It is possible that one person created the website as it totally comes across as "havea big idea and try and cast a big shadow and see if someone will bring some more sunlight".

If I am wrong, then they really need to do a better job of their website, otherwise it looks like an attempt bootstrap on a thought bubble, at best.

Some background:

I live where we have the most isolated grid interconnect system in the world (and it is not Texas) and in this system generation is about 50% of the cost and transmission is the other 50%, so the incentive to optimise the transmission network is probably higher than anywhere else in the world.

The idea proposed sounds attractive, but would have been even more so when there was a far greater abundance of base load generation that could only cycle at relatively slow rates compared to the change in demand rates, but now, as generation becomes increasingly more distributedthe nature of the problems change a little (the duck curve, for example).

Analogs to this concept exist, eg water infrastructure where in order to not have to build expensive fatter pipes for water to serve increasing populations, local water towers are built that pump up at night during low demand and draw down during peaks. There are distinct available economies there, but the round trip energy efficiency is also potentially very high.

I am not sure that economically any similar equivelent for electricity could be implmenented, especially when compared to the cost of solar generation and the recent plunge in battery costs, it now is far more likely that at a household level it would be cheaper to get some solar panels and a decent sized battery and be done with it, at city block level probably even more economic as there is effectively no transmission, it is all distribution, so near 50% could be saved already on end use costs.

I just don't see it.

As always has been, but for most of two boom times throught he industry was forgotten, is that specification is everything.

If you adequately specify what you want, then LLM's today are perfectly capable to produce code of a quality exceeding most humans.

But what has been going on is that many of the details of architecture and code have been implied as "good practice" or "experience" because it is time consuming to write a good specification, partly because you need to first work out exactly what you want.

Re:I'm 60 years old. Claude Code has ignited a passion again on Saturday March 07, 2026 @03:02AM (#47285542)
I am 60 in October, I have a couple of PyQt projects that were desktop apps, specialised tools I use for Electrical Engineering and Control/Safety Systems design and build.

So I decided that I wanted web apps, something that is probably beyond me in any reasonable time, if at all, if I was to code myself by hand.

For my coding AI "stack" I am now running OpenClaw sitting on top of Claude Code, I find the OpenClaw can prompt Claude Code better and keep it running for me without it stopping for stupid questions. Plus I have connected OpenClaw to my Whatsapp so I can ask how it is going or give instructions to the OpenClaw while not at the keyboard.

One app was a little complex with 35,000 loc, plus libraries etc. I reckon I had spent maybe 2500 hours on it over some years, but a significant part of that was developing the algorithm/workflow that it implemented - I only knew roughly what I wanted when I started, writing several to throw away at the beginning.

AI converted it to a webapp overnight, with a two sentance prompt, without intervention of any kind.

It took me another 15 minutes and a couple of small changes, mostly dependancies issues, and I had a working version of the same app that was literally 95%+ of the original, in terms of funcitonality and use.

I have a bunch of ideas for things I want to make that I probably never would have been able to otherwise.

I am just totally unable to fathom people that just make a blanket proclamation that AI is good for nothing. I can accept that it is not good for everything, it may cause some social disruption and the energy use is questionable, but improving, but not useful? Wake up.

I am in Australia and got a US General class license because for some time the Australian licensing was in total chaos while changing over to new arrangements.

I did it online thru the New York Radio Club (?).

I did Novice then General in about 30 minutes. I studied for maybe 6 hours immediately prior.

I grew up from age 5 in my Dads ham shack in NZ - every single thing he had made, transmitters, receivers, antennas, the feed wire, oscilloscope, signal gens, grid dip oscillator etc with many parts salvaged. In NZ in those days that is how most people did it, at least partially.

I also have an Electrical Engineering degree.

So sort of had a bit of background working knowledge, which meant I wasn't starting from scratch.

KK7RBX

Re:Claude Code Remote Control on Tuesday February 24, 2026 @05:59PM (#47144627)
I have already achieved the same thing getting my openclaw to instruct and manage claude code.

It also seems to provide a substantially better experience of claude code, picking up when it is looping and breaking it and restarting, plus handling all the stupid questions claude code asks, hanging on. (Even when started with dangerously I cant be rid of them).

All in all they seem to be a match made in heaven and I strongly suggest you try this.

Because the development process requires Functional Safety and most regular programmers will struggle with the glacial progress that occurs under such regimes.

While IEC 61508 is the parent of all Functional Safety, medical devices are a little divorced form 61508 and have their own primary standard IEC 60601.

Some good explanation occurs here https://blog.johner-institute.com/systems-engineering/functi....

But this is the sort of engineering where you know everything about what your functionality will be, and what code and what type of code will be used to achieve it, well before you even think about starting to code.

The testing requirements can include things like testing every possible combination of inputs, for every possible combination of states (often just not practical, but there are some techniques to say, we will ignore these combinations etc). Every part of the final code shall be traceable back to a requirement so on and so on.

In industrial Functional Safety you might very easily work on requirements and definition for 2 years before you even think about what you might code, or even the device or platform you might be coding on.

I know of a mine winder job (Could kill 100 people in one go, so sort of like a passenger jet in risk profile) where the defining aspect of the design/build/commissioning critical path was Functional Safety, and it ran 10 years from very beginning to in service.

Imagine the most painful and anal waterfall process you could possibly dream of, and it is more onerous than this, plus you are exposed to being kicked backed to an earlier phase if certain problems are discovered.

If you are a move fast and break things, Mondays is pivot day and we like to actually roll some dice to decide what this weeks pivot will be, type of guy/gal, you are likely totally mentally not ready for how this needs to work, and probably don't want to be.

Plus if you come from a world where everything is a listener, and various other event driven paradigms, most of these people real struggle with real time highly deterministic systems.

This is because these invariably end up needing to be scanned logic, which looks stupid coming from this background. But, it is the best way that you can assure repeatable defined behavior, because event driven code is almost always of the type that ends up with an arbitrary order of execution, and this is not suitable for systems that have expectations of a highly deterministic nature.

There are zero cases for such devices where the answer to a problem is "just send that email again", to show the wagon wheel and/or drop a few frames or show some at lower resolution, or tell the user "just reboot at intervals of no more than 23 days and hold down the reset button while you boot", and so on.

And, some of these devices can do firmware upgrades OTA (not actually very common for somewhat obvious reasons), some need a special programming device within very close proximity and/or wired, and some are made with code in factory silicon and if you get it too wrong you recall them all for binning, at great expense.

I see another comment says that time to market for medical devices averages 12 years, and 75% of companies formed to make these devices fail - yeah I can totally see that, especially if it is a device that might roll out in the thousands to hundreds of thousands, the potential for harm, and for that harm to arise from software that either is specified poorly, or implemented poorly, is very large, extremely large.

I am a functional safety engineer, for well over ten years now, mostly industrial process and machinery, I hold certs from TUV Rhineland SIS and Certified Machinery Safety Expert TUV Nord.

But these are like one week courses, almost anyone that can pay attention could usually pass, though you need grades like 80% or 65% etc depending who runs the course you do.

More importantly (and written quite heavily into the standards) is you need to be competent, in the formal sense, which only comes from working with, or under, other engineers with suitable experience and background, and this might realistically be minimum 5 years, certainly no less than 3.

So moving into real time, embedded often, limited memory and CPU resources, need to know RF maybe as well, on it goes, do you as a well paid dev engineer want to go back to close to square 1 for x years, working in a way that will probably at best seem very antiquated to you, though most requirements are for good reasons when you understand them.

And ultimately, similar to other Fields of Functional Safety, the coding and all the computer stuff is probably easier learned by someone with extensive domain experience,

This is opposed to being an experienced coder (in most likely a different kind of code) and acquiring anywhere near the same domain experience in any reasonable time. eg in this case you are probably much more likely to to find medical people with training and experience that fell into dev roles to service the need, and it might be very difficult to compete with them, for what might be both real and perceived/cultural/"club" reasons.

There is more, but I am sure that is enough in the immediate context - not trying to be discouraging, just realistic.

Re:High-Altitude Adventure with a DIY Pico Balloon on Wednesday February 04, 2026 @12:48PM (#46888996)
Isn't H2 better because better lift and being a molecule of two hydrogen atoms it is not quite as slippery as helium and quite easy to make?

From wikipedia "lifting gas"

"Helium is the second lightest gas (0.1786 g/L, 14% the density of air, at STP). For that reason, it is an attractive gas for lifting as well.

A major advantage is that this gas is noncombustible. But the use of helium has some disadvantages, too:

    The diffusion issue shared with hydrogen (though, as helium's molecular radius, 138 pm, is smaller, it diffuses through more materials than hydrogen[4])."
Re:Automatic Programming on Monday February 02, 2026 @03:27AM (#46853727)
The true art is in the architecture, which is the bit humans still generally control, not the tiny details.

Unless you would rather be a calligrapher than a novelist.

Re:Automatic Programming on Monday February 02, 2026 @03:24AM (#46853710)
The key first step here is "Problem Identification" - the number of times I have seen where it is part way through a development, and only then it starts to become obvious that even if the specifications were good, they were not solving the right problem.

Users have a habit of describing their problem as the solution they think they would like to have, often being disastrously far from the actual need.

Re:Automatic Programming on Monday February 02, 2026 @03:18AM (#46853683)
Most people do not believe it is possible to fully specify software before writing it, until they are forced to.

Having part of my background in Functional Safety, I have seen it done many times, and it can most definitely be done.

It is just it can't be done in the sort of time frames that people who do not specify before coding, are used to.

But, if you can't afford to move fast and break tings, because it is an airplane, or train signaling system, or complicated elevator system with multiple cars in the same shaft, then you generally write no code until you know exactly what you want the code to do (and more importantly, not do).

Re:Automatic Programming on Monday February 02, 2026 @03:14AM (#46853658)
Nothing has changed, it is just now, more than ever, specification is everything.

It is just that for some decades now it was possible to get away with poor or lacking specification, by continually incrementing by sprints, or pivoting, or whatever.

But, back in the day when systems analysts were still a person with very particular skills that might never code, specification was everything.

And now, the wheel turns, and the importance of good specification appears to be the defining factor once again, all of a sudden.

Re:Time Station Emulator on Wednesday January 28, 2026 @05:59AM (#46793757)
check out this guy, doing something similar sending Lora packets without a radio - https://youtu.be/eIdHBDSQHyw?si=MGteEp72Mz52qNqu

"This video explores LoRaWAN communication using a microcontroller without a dedicated radio chip. CNLohr demonstrates techniques to transmit LoRa packets over surprisingly long distances, pushing the limits of inexpensive hardware. The project involves creative software and hardware interaction to generate signals at unexpected frequencies."

Re:Why did we use leaded petrol for so long? (2017) on Wednesday December 24, 2025 @04:13PM (#46379283)
we still do for light aviation
Re:How to Build a Solar Powered Electric Oven on Wednesday November 05, 2025 @06:16AM (#45821659)
yes, perlite is the insulation of choice, as long as you keep it dry, very few things surpass it.
Re:Things you can do with diodes on Wednesday November 05, 2025 @06:03AM (#45821595)
before silicon, rectification was often achieved with copper oxide
Re:I made a 10¢ MCU Talk on Thursday October 30, 2025 @05:15AM (#45757900)
Have you tried just savimg the zero crossing times?

From distant memory you got quite a bit more compaction.

Re:Daniel Kahneman opted for assisted suicide in Switzerland on Saturday October 11, 2025 @11:55AM (#45550124)
I saw someone interviewed who had set the criteria of being able to enjoy some ice cream with his children and grandchildren at the regular family dinner on Sunday late afternoons.

He said that alone made life worth living, for him and them, but once any deteriorating conditions rendered him permanently unable to participate in this weekly activity then he felt it was time to go.

Maybe having a pre-set condition like this is less arbitrary, and also allows everyone involved to understand as the time comes closer.

If this eventuates, then maybe bitcoin is more useful, the scarcity and distributed nature of findable gold are a key aspect of it's utility/value.

Gemini in Gmail Is Pretty Well Useless

So I need to collate some expenditure records for maybe 12 odd years going back, for these purposes mostly it will be in my gmails.So I click the Gemini star in Gmail and ask it to make a list of all invoices found in my gmails, and it tells me this:"I understand you would like to go through all your emails from the past 10 years to find invoices and create a Google Sheet with the biller, date,...

( Read More... | no comments | on HN )
Re:Welcome to the World of Statecharts on Friday August 15, 2025 @01:33AM (#44908928)
I prefer the state table, with columns for states, this forces you to consider every possible transition of every state and this means the definition is unambiguous and exhaustive.

Additionally, you can easily define what output conditions are for every output in every state.

Where more than one possible to state transition exists, then you put multiple columns (one for each possible transition destination) and it is a matter of first solved wins, I usually go left to right, top to bottom.

I have developed a PyQt desktop application that allows building such tables, simulating them one scan at a time and generates code and documentation. Also, it allows for hierarchal state machines so you can build up very complex systems. I initially used it to develop Burner Management System compliant to IEC61511.

Re:Claude Sonnet 4 now supports 1M tokens of context on Tuesday August 12, 2025 @11:57PM (#44884527)
you will have abstractions - black boxing, interface overviews etc, humans can only hold so much detail in current context memory, some say 7 items on average.
Re:The enduring puzzle of static electricity on Tuesday August 12, 2025 @12:19AM (#44872372)
For the who knows how many times, this is worth a repeat - the 3M electrostatic force field

http://amasci.com/weird/unusual/e-wall.html

Re:Mozilla to shut down Pocket on July 8 on Friday May 23, 2025 @01:49PM (#44074910)
what about things like the browser object in Qt/PyQt?
Re:The Future of Junior Software Engineering Roles on Wednesday May 21, 2025 @07:34AM (#44050327)
The skill of breaking down the system to smaller constituant parts was formerly the domain of the Systems Analyst - an occupation now almost extinct by formal title, as the coders reached up into this role.

Presumably this occured because the Systems Analyst was virtually archtecture agnostic, but a computer person could consider both the problem breakdown and the optimal architecture to fit, juggling each a little to optimise that interface between requirements and implementation. This personage then claimed the title of "Architect".

However, I am seeing, in certain areas, a deep lack of specification skills and wonder the Systems Analyst might not partially have a resurgence as a profession.

Re:Docs like code in basic terms on Thursday May 08, 2025 @04:59AM (#43924392)
The concept works better for somewhat regulated environments, I have used it for functional safety.

For industrial controller software, esp distributed systems, there is a precedent of the standard IEC 61499.

One of the key components is the concept of an "Executable Specification", which may sound like unachievable BS, but if you are mainly doing state based systems, can be achieved by using state machines and working within a certain methodology/Activity framework.

I even wrote my own desktop application in PyQt specifically to satisfy requirements of 61508/61511 and the local burner code AS3814. The combustion and process engineers used this to specify (and verify by simulation, all within the tool) the exact exhaustive and unambiguous behavior for the machines (burner systems). As well for every state and transition condition attach a narrative about why it was like it was, with references, diagrams, attachments of manuals and datasheets etc.

Once all was decided, press the button, makes code, makes a documentation specification and compendium, and gives a level of traceability that is suitable for SIL 3, better accuracy, the systems guy (programmer) did not have to be a combustion engineer as well, because usually the crappy narrative type spec is always inadequate.

For certain types of code, this is the way of the future, and for things like rail and other super critical safety functionality, allows easy translation for application of formal methods to verify no unreachable conditions etc etc etc.

I had many colleagues that were initially in disbelief of the complexity but certainty of arbitrary functionality that was able to be specified with various hierarchal structures of state machines, as an executable specification

Re:Docs like code in basic terms on Thursday May 08, 2025 @04:47AM (#43924331)
yeah, see my level 1 comment

Older »