Re:The IRS’s Effort to Convert Its Assembly Codebase to Java
by FigBug on Wednesday February 14, 2018 @01:11PM
(#16377841)
I would disagree. On of my first jobs was porting assembler to C for a paging switch. The assembler was well written and well documented. The task was slow, hard and painfully boring. It took months to get every function to be a perfect match.
[ Parent
| on HN ]
Re:The IRS’s Effort to Convert Its Assembly Codebase to Java
by hannibalhorn on Wednesday February 14, 2018 @01:29PM
(#16378016)
Manually, sure, but it sounds like the idea is/was to use an automated approach. I imagine many of the same techniques used by modern decompilers could be applied, and there's probably lots of information in assembly that is lost in machine code (e.g., JE vs JZ on x86). One could also assume some knowledge of the coding conventions used by the organization. Even a tool that could translate 90% automatically, leaving the rest to be done manually, would work out pretty well.
In some ways it reminds me of the project to programatically translate the golang compiler from C to Go. Though I imagine the codebase is quite a bit messier!
Re:The IRS’s Effort to Convert Its Assembly Codebase to Java
by TimJYoung on Wednesday February 14, 2018 @01:26PM
(#16377989)
Did you manually convert the assembler, or automate it ? With regard to manual conversions, I'm with you 100% - no thanks. :-)
But, my understanding is that the bulk of the work done in this case was done by a conversion tool that was designed and developed by a group of 8 people led by the gentleman referred to in the article (Jian Wang). The conversion tool project was the work that I was referring to in my comment.
Re:The IRS’s Effort to Convert Its Assembly Codebase to Java
by FigBug on Wednesday February 14, 2018 @01:33PM
(#16378050)
Yes, manually. I missed that distinction, building the tool could be fun, but verifying it works would be a huge pain. Shouldn't be too hard to write test cases for tax code.
Re:The IRS’s Effort to Convert Its Assembly Codebase to Java
by theptip on Wednesday February 14, 2018 @05:26PM
(#16380084)
> Shouldn't be too hard to write test cases for tax code.
I would disagree here -- like timezones, tax software has the disadvantage of being both extremely boring, and very fiddly (thus requiring close attention). This combination makes it very hard to maintain the concentration that's required to write exhaustive tests.
Re:The IRS’s Effort to Convert Its Assembly Codebase to Java
by nickspacek on Wednesday February 14, 2018 @01:23PM
(#16377956)
Different strokes. Although, given a long enough period of working through assembly it might break the strongest of wills. I can imagine some people being very excited at setting up tests to ensure compatibility and watching them slowly going from fail to pass.