HNHacker News
TopNewBestAskShowJobs

restore24

6 karma · joined February 26, 2018

submissionscomments
restore24··on Ask HN: Thoughts on Tcl as a Language in 2024?
IMO, it has the best ergonomics among scripting languages for embedding into native applications. I'm using it as a serialization format for a game, with the JimTcl interpreter. It's easy to create fluent hierarchical structures that straddle the line between code and data:

  object "player" {
    health 100
    ammo 10
  }
https://github.com/msteveb/jimtcl
restore24··on How I Learned to Stop Worrying and Love the State Machine
Similarly, I have a early-stage JS library for hierarchical statecharts. It revolves around nested contexts and an explicit message passing interface for controlling states between parent/child/sibling. Example:

https://github.com/jdque/royal/blob/master/test.js