-
Recent Posts
Recent Comments
- R.P. Churchill on TWSL Series 07: Discovery and Data Collection
- R.P. Churchill on A Simulationist’s Framework for Business Analysis: Round Two
- LN on A Simulationist’s Framework for Business Analysis: Round Two
- R.P. Churchill on Starting to Learn About the Java Memory Model
- R.P. Churchill on Multidimensional Arrays in Javascript
Categories
Meta
April 2024 M T W T F S S 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
Tag Archives: JavaScript
A Simple Discrete-Event Simulation: Part 82
Today I added the ability to use the mouse to drag the 2D display around within its canvas. I had to update the various pan functions to allow specification of an arbitrary distance increment, though there are a number of … Continue reading
Posted in Software
Tagged discrete-event sim project, JavaScript, keypress events, mouse events, panning and zooming
Leave a comment
A Simple Discrete-Event Simulation: Part 80
I was working on other things today so the only thing I added to this project was the grid. It’s at a y-elevation of zero. More interestingly, it’s generation is automated, with the relevant code being shown below. Because floating-point … Continue reading
A Simple Discrete-Event Simulation: Part 72
Following last week’s investigations I tried moving all of the functions inside the EntityPassive object (closure) to the outside, to be attached as external prototype functions. As I discovered, in keeping with what I’ve read, attaching the functions outside of … Continue reading
Posted in Simulation
Tagged discrete-event sim project, JavaScript, memory management
Leave a comment
A Simple Discrete-Event Simulation: Part 71
Continuing yesterday’s investigations I did some experiments with defining and instantiating a few objects to see how JavaScript allocates memory for them. I used the memory inspector built into Firefox to track memory and object usage as closely as possible. … Continue reading
Posted in Simulation
Tagged discrete-event sim project, JavaScript, memory management
Leave a comment
A Simple Discrete-Event Simulation: Part 70
Today I did some reading relevant to the To Do list item to learn how to use the prototype object pattern as opposed to the purely closure-based method I’ve been using. Suffice it to say there’s a lot of information … Continue reading
A Simple Discrete-Event Simulation: Part 66
A direct link to the standalone page is here. I followed up today and set up the initialization of the 3D graphics so it happens only after all of the required resources were loaded. The process is kicked off by … Continue reading
A Simple Discrete-Event Simulation: Part 65
My charter for today was to figure out why the discrete-event simulation framework was not running in Opera. I had experimented with this on Thursday and Saturday of last week and traced the problem to a call in the Three.js … Continue reading
Reproducing A Clever Animation Product, Part 28
In keeping with this week’s theme of researching backward compatibility of the various projects I’ve worked on over the past year I decided to figure out why parts of my fast animation framework weren’t updating as expected. The short answer … Continue reading
A Simple Discrete-Event Simulation: Part 48
I got an awful lot done over the weekend and today toward making the various behaviors for each type of component as similar as possible. This really helped me replicate the different controls and interlocks I had come up with … Continue reading
A Simple Discrete-Event Simulation: Part 43
Today I went through and cleaned up each of the component definitions in the process of implementing the ability to rerun the simulation without having to refresh the browser page. Beyond just neatening up the code for each component I … Continue reading