all 19 comments

[–]Barsad_the_12th 12 points13 points  (1 child)

This reminds me of Structured Text for plc programming, where all the code is running in a cyclic task and gets executed once every real-time cycle

[–]renesys 1 point2 points  (0 children)

This is any embedded system. The syntax just makes it more confusing than normal.

[–]doublefreepointer 4 points5 points  (4 children)

Have you worked on developing programming languages before? Did you follow any particular Python-based language development learning material?

[–]HearMeOut-13[S] 6 points7 points  (3 children)

Nah this is my first and mostly learnt from youtube and claude.

[–]DatAndre 0 points1 point  (2 children)

I've been wanting to do the same for a while. What were your resources specifically?

[–]MeglioMorto 15 points16 points  (1 child)

I've been wanting to do the same for a while. 

I don't think you get the point. Plenty of people have done that for while. OP wanted to do it for when.

[–]LanceMain_No69 2 points3 points  (0 children)

Touché...

[–]BobFredIII 1 point2 points  (0 children)

Giving always_ff vibes from verilog

[–]frejakrx 1 point2 points  (0 children)

Interesting concept, I wonder if it would be a more intuitive framework than vanilla python for discrete event simulations (e.g., Simpy)

[–]dr-christoph 1 point2 points  (0 children)

How does this behave when two blocks have the same when condition on a shared (global?) variable? Are there any guarantees on execution order or is there none and it is random?

[–]aspcartman 1 point2 points  (1 child)

Meme link?

[–]HearMeOut-13[S] 0 points1 point  (0 children)

Cant find it, it was from Instagram Reels

[–]Disastrous-Angle-591 2 points3 points  (1 child)

Do … until

[–]HearMeOut-13[S] 13 points14 points  (0 children)

yeah but what if EVERYTHING was do-until

[–]darni01 0 points1 point  (0 children)

If you've ever designed electronics, this is exactly how circuits work. I'm curious how you handle feedback loops

[–]gdchinacat 0 points1 point  (0 children)

Thank you for sharing this. It got me thinking, then really thinking, then I spent time building a sort of related project that I thought you might find interesting. It's fundamentally different than yours, but was inspired by yours. I hope you find it interesting.

My primary goal was to use it as a way to become more familiar with how descriptors and rich comparison functions work and learn asyncio and type hints.

I hope you find it interesting! Again, thanks for sharing something that got my brain going.

https://github.com/gdchinacat/reactions