Better HN
topnewbestaskshowjobs
Log inSign up

thlorenz

46 karma · joined Apr 1, 2013 (13y ago) · 24 submissions

Submissions

comment 8y ago · link · parent

I agree that this is unexpected for most of us, but if you read this section in my v8-perf repo (https://github.com/thlorenz/v8-perf/blob/master/data-types.m...) you'll understand better why that is.

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.

comment 11y ago · link · parent

As promised flags are now visualized.

comment 11y ago · link · parent

It's back up, it is a github page and it seemed github had problems recently.

comment 11y ago · link · parent

More interesting snippets are coming once I can emulate more instructions. These are the ones it currently can do: https://github.com/thlorenz/visulator/tree/master/test/fixtu...

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.

comment 11y ago · link · parent

As I pointed out this project is in it's infancy. I merely tweeted about progress and it ended up here ;)

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).

comment 11y ago · link · parent

That's nice, thanks for the link!

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.

comment 11y ago · link · parent

I addressed the styling issues you pointed out @strommen. If you still have problems reading things please supply a fix via a pull request.

comment 11y ago · link · parent

> I think it would be very helpful to put some corresponding C (or pseudo-C) code

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.

comment 11y ago · link · parent

Please file an issue on github, so I can track these problems and fix them. As I mentioned I'm color blind and could use some styling help via a pull request :)

comment 11y ago · link · parent

Could you file an issue on github please? This is meant to be used on a Desktop only. You may try to enlarge your fonts via Cmd-+ or Ctrl-+.

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...)

comment 11y ago · link · parent

It will emulate as much of x86 as makes sense for it's purpose , to visualize assembly execution and how a CPU works.

It currently already contains a memory unit and supports push/pop instructions. More memory related instructions will be added.

comment 11y ago · link · parent

All who commented or whoever is interested in updates please follow #visulator and/or @thlorenz on twitter for updates.

comment 11y ago · link · parent

> but doesn't show the flags register

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.

comment 11y ago · link · parent

> It is still a work-in-progress though

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.

comment 11y ago · link · parent

That's not a bad idea. Please file an issue on github. Ideally with a sketch of how this would be laid out. This project is still in its infancy and I'm very open to suggestions.

16.

One-liner to install docker on a Mac including all dependencies.(github.com ↗)

1 points · by thlorenz · 12y ago · discuss

17.

Live edit browserified code in chrome devtools(thlorenz.com ↗)

1 points · by thlorenz · 12y ago · discuss

18.

Simulating and rendering 262,144 particles with GLSL.(hughsk.github.io ↗)

9 points · by thlorenz · 12y ago · 3 comments

19.

Talking scriptie-talkie, interactive JavaScript samples right in your blog(thlorenz.com ↗)

1 points · by thlorenz · 13y ago · discuss

20.

Proxyquireify proxies browserify's require to inject mocks(github.com ↗)

1 points · by thlorenz · 13y ago · discuss

21.

Browserify v2 adds source maps(thlorenz.com ↗)

1 points · by thlorenz · 13y ago · discuss