News for hackers. Stuff that matters.
Re:Piston X86-64 Assembler working in web browser and Node.js by ANTSANTS on Thursday April 17, 2014 @01:44PM (#7605065)
That's pretty neat, how you can select a mnemonic and the corresponding bytes are highlighted.

I have to say, though, I had a bit of a confused chuckle at the "marketing copy." This is (presumably) a hobby project, not a product landing page; the serious tone seems very out of place. "Sleek. Fast. Clean. Responsive. Line by line opcode explanation." sounds like something out of an Apple ad. Are you trying to sell me something here?

I liked it when programmer websites were butt-ugly text dumps and proud of it.

Re:Piston X86-64 Assembler working in web browser and Node.js by midas007 on Thursday April 17, 2014 @04:11PM (#7605989)
Yeah, all I had back in the day were those quick refs that came with Turbo Assembler and MASM. Occasionally some BBS would have a half-done cheat sheet from an Intel manual.
Re:Piston X86-64 Assembler working in web browser and Node.js by k4st on Thursday April 17, 2014 @08:13AM (#7603094)
Would be really cool if this gave more explanation for the encodings. For example, showing the opcode, mod/reg/rm, and displacement components is really cool. What would be even cooler is to say why some bit or combination of bits makes this opcode use, for example, the rax register. This would be more an effort of exposing some tables, referencing manuals, etc. but I think it would give people more of an intuition for the encoding. Another thing to consider would be breaking the encoding down into octal digits instead of hex or binary (or maybe mix when appropriate) to give the most clear presentation of the encoding format. I could see this as a great way to lazily learn.
Re:Piston X86-64 Assembler working in web browser and Node.js by userbinator on Thursday April 17, 2014 @09:10AM (#7603309)
+1 for octal encoding; although some of the 64-bit extension stuff - notably REX prefices - has strayed from that, it's far easier to mentally assemble/disassemble x86 in octal form. Odd that the vast majority of x86 opcode references are exclusively in hex, since presenting the tables in octal makes the encoding look far more regular.

http://tnovelli.net/ref/opx86.html

Re:Piston X86-64 Assembler working in web browser and Node.js by bglazer on Thursday April 17, 2014 @10:04AM (#7603576)
No snark, just curious. What's the point of this? Is it for teaching? It's a not a performance thing like asm.js right?
Re:Piston X86-64 Assembler working in web browser and Node.js by midas007 on Thursday April 17, 2014 @04:12PM (#7605999)
Probably more for learning and some work too. It's closer to an IDE like TASM / Turbo Profiler was.
Re:Piston X86-64 Assembler working in web browser and Node.js by kosinus on Thursday April 17, 2014 @05:32AM (#7602683)
Now wire this up with Native Client. :-o
Re:Piston X86-64 Assembler working in web browser and Node.js by kyberias on Thursday April 17, 2014 @06:59AM (#7602871)
Instead of writing "working in web browser", I would write "written in CoffeeScript (or Javascript))".

The demo with live opcode display in the editor is pretty cool!

Re:Piston X86-64 Assembler working in web browser and Node.js by rplnt on Thursday April 17, 2014 @04:39AM (#7602541)
Am I missing a joke here?
Re:Piston X86-64 Assembler working in web browser and Node.js by adamnemecek on Thursday April 17, 2014 @04:49AM (#7602577)
Why? It seems pretty useful e.g. for writing shellcode.
Re:Piston X86-64 Assembler working in web browser and Node.js by midas007 on Thursday April 17, 2014 @04:15PM (#7606010)
Yeap, it's very handy to see the binary live. If it had editable hex and disassembly (just spew asm into the context), that would rock^3.
Re:Piston X86-64 Assembler working in web browser and Node.js by henrikm85 on Thursday April 17, 2014 @05:16AM (#7602639)
Actually, this is pretty cool for teaching students!
Re:Piston X86-64 Assembler working in web browser and Node.js by pjmlp on Thursday April 17, 2014 @07:26AM (#7602936)
I rather have them use something like this,

http://badsector.github.io/dcpustud/

Re:Piston X86-64 Assembler working in web browser and Node.js by rplnt on Thursday April 17, 2014 @06:07AM (#7602778)
I see. Haven't thought about that. Otherwise it seemed like a pointless (but interesting nevertheless) hobby project.
Re:Piston X86-64 Assembler working in web browser and Node.js by acqq on Thursday April 17, 2014 @07:39AM (#7602976)
The demo is in 8086 16-bit code though. It would be nice to be able to see 32-bit and 64-bit codes in the demo too. At least 64-bit is the most interesting to me, as the older ones are the most covered on the internet.
Re:Piston X86-64 Assembler working in web browser and Node.js by vivek_st on Thursday April 17, 2014 @07:25AM (#7602934)
Awesome! This can come in handy while teaching my Shellcoding class: http://www.pentesteracademy.com/course?id=7
Re:Piston X86-64 Assembler working in web browser and Node.js by mrsaint on Thursday April 17, 2014 @07:33AM (#7602961)
Neat! So, who is going to write Softice for Node.js next? ;)
Re:Piston X86-64 Assembler working in web browser and Node.js by xhrpost on Thursday April 17, 2014 @09:28AM (#7603388)
Pretty cool. Now, how long until I can take the compiled byte code and run it in an emulated PC that outputs to a canvas screen? :)
Re:Piston X86-64 Assembler working in web browser and Node.js by userbinator on Thursday April 17, 2014 @10:43PM (#7607714)
I suppose this is pretty close: an emulated PC in your browser: http://bellard.org/jslinux/index.html
Re:Piston X86-64 Assembler working in web browser and Node.js by pconner on Thursday April 17, 2014 @08:45AM (#7603209)
Does Atwood's Law apply to Node.js?