What is an execution backend?
Tuesday, July 28, 2009 at 12:56PM The latest Mascara release have improved support for changing execution backends, and now includes Mozilla Rhino as the default backend.
The execution backend is not a necessary part of the compilation/translation process and you can run Mascara fine without one.
However an execution backend is useful if you want to compile and execute the generated code in one step. This is especially useful if you have a set of unit-tests you want to run on the compiled code immediately after compilation.
Previously cscript.exe (Microsofts command-line version of JScript) were the default backend, but it is only available on Windows. Rhino is in Java, and will run on any system with Java, and since it is distributed as part of Mascara, you don't have to do anything extra to get it to work.
I still recommend cscript.exe above Rhino though. The reason is that cscript.exe reports line number and character position of runtime errors. This allows Mascara to trace back and find the corresponding position in the original source code, which makes debugging a lot easier. Rhino sadly does not always report line number of runtime errors.
The execution backend is invoked on the command line like this:
translate.py inputfile.esx --execute --backend rhino
The --execute parameter indicated that the translated code should be executed by the backend. The --backend parameter indicates the name of the backend (rhino or cscript). If the --backend parameter is left out, it defaults to the one specified in config.py (which is rhino by default).
Reader Comments (1)
When Carvalho back, almost can return to the athletic field, but unfortunately again encountered injuries. Real Madrid 's official website on 30 day notice: Carvalho wear adidas f50 adizero prime soccer cleats in the training of right knee medial ligament strain. Despite the truce, but" Marca" on Carvalho's prospects some pessimistic," unfortunately, Carvalho's wear adidas adipure iv sl soccer cleats sprained ankle. He could have advanced into the Mourinho plan, but this was injured lets him out." Recent results from Real Madrid, Carvalho misses and does not have too big impact, Ramos from the right to the centre-back position performed extremely well, can be completely replaced Carvalho wear adidas adipower predator soccer cleats as the ball core.
Cristiano Ronaldo wear nike ctr360 maestri ii elite soccer cleats also did not participate in the 30 training. The Portuguese were in Madrid Derby injured, that game, Cristiano Ronaldo total 90 laser left in the first speed sprint through competing side horse, the latter from behind the Cristiano Ronaldo wear nike total 90 laser iv soccer cleats tackles down, but Cristiano Ronaldo managed to play a full game ankle pain. After the match reports in the Spanish media, Cristiano Ronaldo wear nike mercurial vapor superfly iii soccer cleats is limped off. Real Madrid official told Cristiano Ronaldo" left ankle sprain one level", according to the common sense to judge, ctr360 maestri ii the Portuguese superstar was expected in the 7-10 day rehabilitation, the fastest to be able to catch up with the League against Sporting Gijon, 30 is the Cristiano Ronaldo wear nike tiempo legend iv elite soccer cleats ankle injury for fourth days, so they can continue to accept drug and physical therapy.