thlorenz
However it doesn't necessarily cause a large slowdown, just makes your function polymorphic and the resulting optimized code larger and a bit slower.
To avoid this entirely I recommend using a JavaScript `class` when passing objects to a function that has to run at peak speed.
I agree though that a more interesting example would be nice and I'll try to come up with one even with what it can do now.
See [status](https://github.com/thlorenz/visulator#status) -- indicating in experimental stage.
I'm planning to allow loading binaries and also editing assembly (assembling it in the browser so the CPU emulator can run the opcodes).
Seems to serve a different purpose tough. visulator is supposed to help you learn how a CPU processes opcodes (at an abstract level) instead of looking at actual hardware wiring.
I'll link to it from the visulator readme though.
That's not the point. All this is trying to show is how assembly and a CPU works. Understanding the program is secondary.
Additionally there is no C code for this as the assembly was written directly.
Also I do accept pull requests that fix some styling issues (I myself am color blind). Just update the CSS [here](https://github.com/thlorenz/visulator/blob/bad27bc164c1ba173...)
It currently already contains a memory unit and supports push/pop instructions. More memory related instructions will be added.
This is the next feature I've planned. Hopefully I can get this done tonight - check back soon :)
It'll be visualized with LEDs that light up when a flag is set.
Exactly this is just a start and I'm actively working on it. Editing the assembly could be an option, but I also plan to allow users to load simple binaries into it. This way you could edit the assembly, assemble it and load.
However please file an issue with feature suggestions on github so we can track what people want.
Live edit browserified code in chrome devtools
Simulating and rendering 262,144 particles with GLSL.
http://hughsk.github.io/particle-excess-demo
Building on top of lots of modules provided by Mikola Lysenko (https://npmjs.org/search?q=gl-), Hugh Kennedy shows off what today's browsers are capable of using WebGL.Lots of support c
Talking scriptie-talkie, interactive JavaScript samples right in your blog
Proxyquireify proxies browserify's require to inject mocks
https://github.com/thlorenz/proxyquireify
browserify v2 version of proxyquire.Proxies browserify's require in order to make overriding dependencies during testing easy while staying totally unobstrusive.
Browserify v2 adds source maps
http://thlorenz.com/blog/browserify-sourcemaps
I recently helped to add source map support to browserify version 2 and will outline in this post, what source maps are, how to use them with browserify and how the support was added.