This task is delayed until new nlnet grants are available, or RED Semi. wants to fund it, at which point we can re-evaluate if we want to do it then. toshaan seemed to think it was a good idea to have libre-soc's simulator work on becoming an official OPF reference simulator (though not necessarily the only one, others are also working on stuff like this). The parser/compiler needs to be rewritten (preferably in c++ or maybe rust (has lots of useful features for writing compilers), as a recursive-descent parser) to generate proper error messages, and do proper type checking, and other checks. The end goal is such that the parser/compiler will always either error or the generated output code will work -- the existing parser/compiler is not very good with nearly undecipherable error messages and often generating code that won't run correctly. This will make it much easier to use for others who are developing their own instructions -- all they have to do is write pseudo-code and they can test their implementation against the simulated pseudo-code they wrote. The output will be switchable between outputting C and outputting python. Outputting C is preferred since C is much easier to interface with other programming languages than python is. The input will be the latex version of the PowerISA spec (not embedded or included in the parser/compiler, since it might still be under OPF NDA and can't be released yet). If OPF takes too long to release the latex source, it might be worth it to figure out some way to generate latex from their released pdf (pdftohtml and a bit of translation? it just needs to be sufficient to run the pseudo-code, it doesn't have to look nice or be complete).
no. extract the pseudocode from latex into the exact same format. i will not be wasting NLnet grant money on unnecessary work. if they spot frivolous waste of money they may reject the grant.
(In reply to Luke Kenneth Casson Leighton from comment #1) > no. > > extract the pseudocode from latex into the exact same format. > > i will not be wasting NLnet grant money on unnecessary work. it is not a waste because the current parser is insufficient, even assuming we wrote code to convert latex to the current format (which would basically be another compiler and nearly as hard as just rewriting the parser to accept latex to begin with). > > if they spot frivolous waste of money they may reject the > grant. it is not frivolous nor a waste.
luke, please just leave this as deferred, it is not frivolous nor a waste (and i'm apparently not the only one who apparently thinks this is useful, markos and toshaan both responded positively) and we can discuss again in a few months -- which is what this bug is for.
as proposed this concept is invalid. please do not reopen.