panyasan wrote: > > Kenneth Tilton wrote: >> I am stunned by the >> idea of macros leading to code duplication since that is the main >> problem they solve! Do you have an example? >> > > Hi Kenneth, > > code "duplication" wasn't the right word for what I was trying to say. What > I mean is that any tool that translates one language that has a certain > logic to another one with a different logic will --- I think but you can > prove me wrong --- not produce code optimized for the target language. Thus, > if you write "native" javascript qooxdoo code, you will use all the > strengths that the architecture and logic of the language/library offers > you, resulting in translated target code that is suboptimal compared to the > code you would write in your declarative/templating language.
I see: like when in-line assembler was faster than anything a compiler could produce. But even there one still used the compiler, one just wrote assembler for certain key chunks of code. > Maybe that's > different for qooxlisp. I think qooxlisp will be the same. > For me, that is a "disadvantage" that I will accept > for xml'izing the GUI because I find it, as I have said before, much easier > to maintain and write. Yep. > But that is a matter of taste and habit rather than a > question that can be decided in some way "objectively". I think it is not so hard to analyze, but as I said to the mysterious "flj", it comes down to the application. In my case, the total UI load will include an awful lot of jsMath translation of TeX strings, and of course qooxdoo internal code does a lot of the work at run-time. Suppose that is 90% of the load? And suppose hand-crafting my application JS makes it 10% faster, and that the client has 98% excess CPU capacity. Let's get back to work! :) kt -- http://www.stuckonalgebra.com "The best Algebra tutorial program I have seen... in a class by itself." Macworld ------------------------------------------------------------------------------ _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
