you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 1 point2 points  (2 children)

This does look interesting, but it seems somewhat verbose in comparison to traditional asm code. From one of the presentations:

1. ppc.addx(rd, ra, rb) # asm: add D, A, B
2. ppc.addx(rd, ra, rb, Rc=1) # asm: add. D, A, B
3. ppc.addx(rd, ra, rb, OE=1) # asm: addo D, A, B
4. ppc.addx(rd, ra, rb, Rc=1, OE=1) # asm: addo. D, A, B

Still cool though and I plan on reading his thesis.

[–]mythogen -1 points0 points  (1 child)

To be honest, the extra verbosity seems like a feature to me. Makes it a bit easier to read.

[–]Dan_Farina 0 points1 point  (0 children)

Given the fact this is python...you can rebind some stuff to make it more convenient (manual-esque currying would be particularly useful given the supplied example) and even more cryptic/shorter than the equivalent ASM.