Better HN
topnewbestaskshowjobs
Log inSign up

mkarliner

518 karma · joined Mar 6, 2015 (11y ago) · 183 submissions

Submissions

comment 3d ago · link · parent

Maybe banned in the US. Which would put the US at a competitive disadvantage to say, Europe.

Of course, we have total faith and trust in the US and it's companies, so would never think of buying tech from elsewhere.

Clever strategy, please work on it right now.

comment 3d ago · link · parent

Thanks!

I'm now going to use this as a counter example of website design to give to my agents....

comment 1w ago · link · parent

I posted the above reply at around 3am and I've had a coffee now.

ThingStudio, like Node-RED is built with chains of coroutines.

Coroutines and state machines (which I take to mean table driven state machines) are (mostly) functionally equivalent. I'm prepared to take some flame about this :-).

I think most people find it easier to write the pseudo-linear code of coroutines than define formal state machines.

However, a small anecdote is worth relating. Quite a bit of this code was AI generated, and there is a wire protocol between the front and back ends. After a while I was somewhat uneasy that I didn't know enough about this so I ask the AI for a proper human readable doc on the protocol. After watching it thinking for a while, I realised it was trawling through the code. A couple of questions later revealed that my suspicions were correct and the protocol was just free code. I didn't much care for this and told the AI that I wanted it re-written as a table driven state machine. Interestingly, it took a couple of interations before it could grasp the concept properly. And this was one of the current top models. :-)

I tell this story to illustrate that I fully grasp the value of state machines. My first implementation of one was when I made a DSL to define an implementation of X.25 around 1979, so I have some history with them.

The real point to make event driven programming easier.

comment 1w ago · link · parent

Gosh, I feel quite honoured that you've weighed in.

A couple of points: - This is not a beginner's tool, it's stated quite plainly on the front page, so I'm not trying to teach people to program.

- In terms of usabiliy, I can only point to the sucess of Node-RED, on which this is closely modelled, and fits in roughly the same niche.

- The state machine point is interesting and well made, I've a long career in coms and OS work, so I fully appreciate your point and will have to think on it.

Thanks for the comments.

comment 1w ago · link · parent

Author here:

Thanks for making the point. You might want to read this short blog post https://blog.karliner.net/posts/thingstudio-common-ground/

The general point is that yes, you can ask an AI to write this for you, but AI code is notoriously tricky to read. I actually do use an AI to write ThingStudio flows, and I can understand what it produces at a glance. The constrained environment and big functional blocks tend to keep its output crisp and hand editable.

comment 1w ago · link · parent

These questions have been niggling me all weekend, and I've been running a number of benchmarks to answer them. I'm not finished yet, but so far the viper code generator is around 10x slower than C code, plus or minus, which is much slower, but not as much as some people seem to think. The specifics of running an ADC at 20KHz are that the Pi Pico's can do it, the Pico2 at 28ks/s and the RISV 38ks/s. At stock clock speeds. It's prompted me to write a block input node that would run dma and emit sample frames for batch processing.

It's worth remembering that for stuff that really takes some cycles, you can drop down to machine code, like this fft from Peter Hinch. https://github.com/peterhinch/micropython-fourier

comment 1w ago · link · parent

All very good questions. Which really have to be answered by real world testing.

On the subject of performance, there are really two points - Microcontrollers are now a lot more powerful than they were, although clock speed isn't everything, an esp32s3 runs at 230Mhz and the RP2350(Rp Pico 2) can easily be clocked past 300 and have two cores.

- Also, MicroPython now supports two extra code emitters, Native and Viper, which create native code. They are already used on the spi display driver nodes and layout engine.

So I'm not sure it's as much a toy are you might think it is. OTOH, if this gets take up, I'd look at a lower level language.

Also, with AI somewhat more reliable now, making C/C++ addins is a much more reasonable proposition. Let me get this one tested and being used by folks and I'll think about how to create high speed paths :-)

At the end of the day, I'm trying to aim for use cases that aren't trying to squeeze the last drop of performance, but not toy use cases either.

8.

Show HN: ThingStudio, Node-RED style programming for microcontrollers(thingstudio.net ↗)

40 points · by mkarliner · 1w ago · 8 comments

comment 2w ago · link · parent

well said, and it's the position I'm taking, using AI to be more considered, more willing to refactor, more prepared to be scrupulous about clean architecture .

comment 2w ago · link · parent

"AI can copy, it cannot innovate."

https://blog.karliner.net/posts/chatgpt-and-the-velcro-test/

admittedly a bit old now, but...

comment 2w ago · link · parent

Ok my bad. In my defence, it was the first time I ever asked an LLM to help writing something.

comment 1mo ago · link · parent

I think velcro is the canonical example of this.

https://blog.karliner.net/posts/chatgpt-and-the-velcro-test/

comment 5mo ago · link · parent

A wonderful, inspiring site. Thank you.

comment 5mo ago · link · parent

UK - Harrogate and Buxton

comment 7mo ago · link · parent

A celebration that wit and good humour still exists on HN.

comment 8mo ago · link · parent

You may want to look at Karakeep which is what I use.

https://karakeep.app/

comment 9mo ago · link · parent

In movies, English accents, are usually villains...

comment 9mo ago · link · parent

Magnetic Man is unmistakably American, and annoying with it.

comment 9mo ago · link · parent

QRPLabs sell even lighter trackers https://www.qrp-labs.com/u4b.html

and AFAIK are the goto supplier for HAB (High Altitude Ballooning) enthusiasts.

comment 10mo ago · link · parent

regardless of if this text was written by an LLM or a human, it is still slop,with a human behind it just trying to wind people up . If there is a valid point to be made , it should be made, briefly.

comment 10mo ago · link · parent

t

22.

Babies and LLMs(blog.karliner.net ↗)

4 points · by mkarliner · 1y ago · discuss

comment 1y ago · link · parent

if you think it's satire, look at https://www.ecstaticintegration.org/p/sir-robert-edward-gran...

comment 1y ago · link · parent

Meteor was/is a very similar technology. And I did some fairly major projects with it.

comment 1y ago · link · parent

Very nice to see, given I live within a couple of hundred metres of Watling St. (Cricklewood Broadway)

comment 1y ago · link · parent

..?mmjnnm mmmmmm

comment 1y ago · link · parent

hmm. this looks suspiciously AI generated to me.

comment 1y ago · link · parent

At last!

A useful comment on HN!

Great idea!

comment 1y ago · link · parent

I wish I'd written this. Excellent. Everyone should read this
1234567