3 ms·
I’d love to hear more about this. Which languages do you normally work in? Any recommended reading about this topic/approach?
by plugin-baby 4y ago
I’d love to hear more about this. Which languages do you normally work in? Any recommended reading about this topic/approach?
- jffhn 4y ago>Which languages do you normally work in? I work mostly in Java, and started to do it in C/Ada, but anything Turing-complete should be fine. >Any recommended reading about this topic/approach? I learnt it implementing HLA norm for distributed simulations (https://en.wikipedia.org/wiki/High_Level_Architecture https://en.wikipedia.org/wiki/High_Level_Architecture), but most of HLA is about distributed work synchronization, if you stay local you just need to retain the idea of advancing the time discretely from software, instead of having it flow uncontrollably with hardware ticks. Here is a previous comment I made on the same topic: https://news.ycombinator.com/item?id=22390113 https://news.ycombinator.com/item?id=22390113 You can find links to code in my (other) comment in the linked InfoQ article. In particular you can try out clocks/schedulers provided by jolikit's SchedulingHelper class, with various kinds of SchedulingType: HARD (time = f(system_time)), SOFT_HARD_BASED (virtual time trying to keep up/down with a HARD master clock), and SOFT_AFAP (virtual time jumping instantly between works).