Am 26.08.2012 um 11:50 schrieb andy pugh: > On 26 August 2012 10:22, Michael Haberler <[email protected]> wrote: > >> after reading your patch I found not a single line which warrants the >> modification of the interpreter at the C level. The whole thing can be done >> in an O-word procedure, maybe a bit of Python glue, as a remapped code, >> which is in master, and in a stable fashion for the better part of this >> year. And it is exactly the use case for which I developed the remapping >> extension in the first place. > > Would that be an argument for removing all other canned cycles from > the Interpreter and putting them in O-subs?
I'd have to read the cycle code once more, it's been a while; but I think I carried over all of the important state handling from the C++ code. In terms of Canon calls, both C++ and Python have the same interface available. So I think it is possible, yes. > That was meant as a "reductio ad absurdum", but now I am not so sure > that that wouldn't actually be a good idea. It would allow > users/integrators to tweak canned cycles to suit very easily. right, that was the argument for sticking with oword procedures, not just Python which would have been a lot simpler. The only work item I'd see is: redefining an existing code needs some C++ modifications if one were to go for that; defining an entirely new code doesnt. But it's not complex, there's just no good automated support in place for doing that, because of it came kind of as an afterthought. I think it would be possible to completely regression-test the output of the remapped cycles against the builtin cycles automatically. Taking all G7x[.y]/G8x.[y] and writing equivalent new codes eg G17x[.y]/G18x.[y] in NGC and a bit of Python is possible without any C++. - Michael > > -- > atp > If you can't fix it, you don't own it. > http://www.ifixit.com/Manifesto > > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Emc-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/emc-users ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
