[antlr-interest] Standard library functions: how to??

John D. Mitchell johnm-antlr at non.net
Wed Apr 21 18:55:28 PDT 2004


>>>>> "Bharath" == Bharath S <bharath at starthis.com> writes:
[...]

> In practice, usually libraries for a particular language are written in
> the same language itself, right?

It all depends.

One key area where libraries need at least some "native" language code is
wherever you need to interface with the underlying OS.

For more generic library code, the usual desire is to write it in the
source language as soon as possible.

> There could be innumerable library functions and it could be fair to
> delegate it to the users of the language, I guess. I also saw that you
> mentioned about more and more library functions being written in Java
> itself, instead of native code like C/C++.

Indeed.  

For example, Sun's original AWT (GUI windowing) implementation for Unix
relied upon X11 with the Motif library.  The new XAWT implementation has a
small core written directly to Xt and the rest is all done in Java.  The
result is a huge reduction in bugs and a nice increase in performance.

Have fun,
	John


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/antlr-interest/

<*> To unsubscribe from this group, send an email to:
     antlr-interest-unsubscribe at yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:
     http://docs.yahoo.com/info/terms/
 



More information about the antlr-interest mailing list