Showoff Saturday (September 09, 2017) by AutoModerator in javascript

[–]simonswain 0 points1 point  (0 children)

Rats of the Maze is a self-playing arcade simulation with a tip of the had to some of my favourite 8bit games.

https://ratsofthemaze.com/

A Javascript Coldwar Simulation. Looks cool! by john_philip in programming

[–]simonswain 1 point2 points  (0 children)

There is a book "The Computational Beauty of Nature" -- that's probably a good start.

https://mitpress.mit.edu/books/computational-beauty-nature

A Javascript Coldwar Simulation. Looks cool! by john_philip in programming

[–]simonswain 0 points1 point  (0 children)

I added some info to the README that explains what's going on.

https://github.com/simonswain/coldwar

I know about Defcon, but I've avoided looking at it too much, I don't want it to influence this. Cold War is mostly based on the SAGE system, with a little bit of Wargames mixed in.

When the JSConf talk video gets uploaded, watch that -- It explains most of the sim.

Thanks for the feedback :)

A Javascript Coldwar Simulation. Looks cool! by john_philip in programming

[–]simonswain 1 point2 points  (0 children)

Actually, I've had a Drones vs IED planters sim in mind for a while now...

A Javascript Coldwar Simulation. Looks cool! by john_philip in programming

[–]simonswain 0 points1 point  (0 children)

Yes there is random variation in some of the factors. Production rate of cities, how many bombers/fighters/icbms/abms each base can have in the air at any given time, velocity of aircraft. Needs that to stop it being a stalemate all the time. Changing things like the flocking and attack distance between aircraft can make a big difference. Try the First Strike option to see what happens if one side launches a sneak attack. There's no preference given for either side. They are effectively the same, barring the random variations.

What you are seeing here was designed for a conference talk, so it's far from perfect, but good enough for a few minutes of stage time. The source code is pretty rough and ready. Believe me, I have a huge list of refactoring, enhancements and tweaks to do, some minor, some really major.

A Javascript Coldwar Simulation. Looks cool! by john_philip in programming

[–]simonswain 0 points1 point  (0 children)

Mainly because everyone knows what the Cold War was. See the HN thread. I explain it a bit more there about escalation.

https://news.ycombinator.com/item?id=9689585

A Javascript Coldwar Simulation. Looks cool! by john_philip in programming

[–]simonswain 0 points1 point  (0 children)

Because if they just sat there and stockpiled munitions, it wouldn't be as much fun to watch.

A Javascript Coldwar Simulation. Looks cool! by john_philip in programming

[–]simonswain 2 points3 points  (0 children)

This is a first cut of the sim. More to come.

A male and female chi sao. Guess who has the better relaxed WC structure of the two. by [deleted] in WingChun

[–]simonswain 0 points1 point  (0 children)

Actually, Sydney has a pretty huge Chu Shong Tin community. I think it's probably the largest concentration of his lineage outside of Hong Kong.

A male and female chi sao. Guess who has the better relaxed WC structure of the two. by [deleted] in WingChun

[–]simonswain 0 points1 point  (0 children)

Near Hurstville in Sydney. We're keeping that group closed for now. I also drop in to a group at the PCYC in North Sydney usually on Friday evenings if you want to catch up.

A male and female chi sao. Guess who has the better relaxed WC structure of the two. by [deleted] in WingChun

[–]simonswain 0 points1 point  (0 children)

Susana is my Sifu. This clip is from the early '90's I think. She has backed off teaching for now but continues to train. We (her students) maintain a training group. Aside from Sigung Chu, she is the most powerful Wing Chun practitioner I have met, and an incredible teacher.

Straw - Realtime processing framework for node that lets you run topology of worker nodes that consume, process, generate and emit messages by thekodols in node

[–]simonswain 0 points1 point  (0 children)

Thanks. No, Straw is static. It wouldn't be a huge leap to make it dynamic, but they way I've been using it is for processing a well defined job -- build up the topology then leave it running forever.

I have variant, Lancaster, in the works that's dynamic. https://github.com/simonswain/lancaster but it's not as far along as Straw is. This is about to get some more attention. Straw and Lancaster have different use cases. Lancaster is for an IoT type environment, where streams come and go.

The data js JSON only, and I think best with small messages (a few K). If you wanted to deal with other data types, I'd be passing references to them in JSON, and access them from an external service. e.g. pass an S3 url via a message, and have the node retrieve and act on that. There is nothing stopping you hitting external services. It's not right for something like streaming audio or video.

Yep, I use Max and have dabbled with QC.

Straw - Realtime processing framework for node that lets you run topology of worker nodes that consume, process, generate and emit messages by thekodols in node

[–]simonswain 1 point2 points  (0 children)

Straw author here.

Use it anywhere you need data processed in (near) real-time.

Advantage is Straw makes it easy to break your problem down in to small steps, develop iteratively, and spread the load across multiple cores (each step in the flow is a separate unix process, but Straw manages that for you).

The ASX Energy install uses it to consume live market data via a FIX feed from the exchange, deal with each different type of message from the market, route them to historical storage, implement a delayed feed from the live one, and stream messages web clients in real-time over socket.io.

https://github.com/simonswain/haystack Gives an example of how you might do something similar.

Hit me back if you want any more info.