On Fri, Mar 30, 2012 at 03:47:35PM +0200, Lubos Kosco wrote: Hi Lubos, > I was wondering with all the changes and moving lots of stuff to > javascript in opengrok (which I like, but I am just trying to think > about performance and compatibility and minimizing regressions)
performance: Actually javascript helps to improve performance, usebility and user experience by using the browsers capabilities (instead of using it with html only as a more or less "dumb terminal"). JS engines today are magnitudes faster than those 3+ years ago, so the "JS is slow" tale can be dropped (of course, as for every lang, if written badly, performance can be aweful). compatibility: This was one reason to switch over to YUI. Did some projects with YUI2 some years ago, and they are still running fine and new browser capabilities are used out of the box - no need to touch the code ... minimizing regressions: Hmmm, yes, thats a little bit harder to accomplish, when the paradigm changes (in our case "dumb terminal"/server -> "rich client"/"data provider"). On the other hand this change allows to discover [other] "hidden" bugs and inefficiencies and makes the integration of opengrok into other projects/apps much easier. > that what would all the people using elinks, lynx, links do with such > code browser ... ? Yepp, though about it before taking this route as well. Actually I think they are used very rarely today, and if one uses them, he knows, that he has to live with restrictions. Also asked in the #illumos IRC, whether someone is still using text-only/non-JS based browser. After a while the only answer was like: hey, we are living in the 21th century now, forget the ancient stuff. And I must admit, I like that idea ;-) It's similar to Oracle saying, the new OS (S11) doesn't support none-T* SPARC based servers anymore ;-) > I know they're scarce, but their browser (text) is a good performance > benchmark ;) Chi chi - can still be used for benchmarks and you'll see, it is much much faster now ;-) > What do you think about those folks and their approach? Well, doing benchmarks right is a kind of science. Microbenchmarks like this might be good to get a "feeling", but whether they are really useful/admissible/tell the truth depends on many other factors ... > Or they should abandon their terminals, screens, vims and lynx-es ? Not at all! But if they wanna opengrok, using a recent GUI browser is a big advantage ;-). Have fun, jel. -- Otto-von-Guericke University http://www.cs.uni-magdeburg.de/ Department of Computer Science Geb. 29 R 027, Universitaetsplatz 2 39106 Magdeburg, Germany Tel: +49 391 67 12768 _______________________________________________ opengrok-discuss mailing list opengrok-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/opengrok-discuss