Hacker Newsnew | past | comments | ask | show | jobs | submit | jlu's commentslogin

claude code hidden feaure currently under a feature flag:

https://github.com/mikekelly/claude-sneakpeek


@jarred will bun work with pm2 out of the box?


Can you paste code on how #2 was done?


Time stamp % 24


That does not get you hourly time slots.

You either want something like

    floor(timestamp / 3600)
or

    timestamp - timestamp % 3600


that's clever, thanks!


SCXML is a universal standard which means it could be consumed by any programming language.


But I’m only implementing my machine in one language, why would this be useful? When do I need the same machine in multiple environments? Or are you referring to things like tooling for visualization etc?


As @CitizenKane pointed out, reusing statcharts between backend and frontend is a growingly popular use case.

Another benefit is you could use any visual tool (preferably web-based with collaborative capabilities so that all stackholders could work togehter) for state modeling to encapsulate business logics completely in statechart then export SCXML to any language you might be using.


It could be useful in a number of scenarios. For instance you may want to resolve state between a front-end and a back-end, so the ability to make transitions on both could be very useful.


Mind elaborating more on how’s is it better than CRDT?


Software engineer living on and off in Taipei for the past 20 years, if you like outdoor activities, especially road cycling, this is a mountain-climbers heaven, riding any direction for 30min will hit a gorgeous and cool mountain with spectacular views, on top of that most of the days including fall and winter it’s sunny and suitable for ride.

Drop me a line if you were ever here and longing for a joy ride ;)


Maybe try Taiwan?


Stateskit.com

A visual statecharts editor, aiming to help with state management for frontend apps.


Isn’t that the job of actions after an transition happened? (modifying the internal context according to the event).


It is indeed. However, I've found the problem of writing assignment actions correctly is very similar to the problem of managing ordinary variables without xstate. I'm wondering if I'm doing this right, since I thought xstate was supposed to make that kind of bug much rarer.


I built a visual statechart editor a while ago, feel free to give it a try, happy to answer any related questions too.

https://www.stateskit.com/


Your footer links don't work, btw.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: