Page 1 of 1
Newlisp Coded in Java?
Posted: Sun Feb 24, 2008 12:09 am
by Tim Johnson
I know of some long-time java programmers who are switching to jython.
FYI: jython is python written in java and gives access to java resources
keeping the more compact python syntax.
As a long-time python programmer who is learning newlisp in my
spare time, I think I'm going to find newlisp more efficient LOCwise
than python - just as rebol is more efficient LOCwise than python.
LOC = lines of code
Therefore, it behooves me to ask:
What about a newlisp written in java?
And the newlisp binary on linux is about 15% the
size of the python 2.5 binary with, I assume similar
comparisions in the LOC.
Inquiring minds want to know.... :-)
Tim
Posted: Sun Feb 24, 2008 4:22 am
by lithper
coding micro-lisps in Java is a surprisingly popular hobby.
Check
www.freshmeat.net and sourceforge.net -- you'll be amazed ;))
Posted: Sun Feb 24, 2008 9:26 am
by cormullion
I suppose the guiserver is sort of what you mean - newLISP driving a Java library? Presumably other Java resources could be integrated in the same way, without having to write newLISP 'in' Java.
And I have the slogan all ready:
"You know you're using newLISP-Java when you see this in the console"
Code: Select all
Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: 0 >= 0
at java.util.Vector.elementAt(Vector.java:432)
at CanvasWidget$MyCanvas.render(CanvasWidget.java:638)
at CanvasWidget$MyCanvas.paint(CanvasWidget.java:603)
at javax.swing.JComponent._paintImmediately(JComponent.java:4890)
at javax.swing.JComponent.paintImmediately(JComponent.java:4676)
at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:477)
at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(SystemEventQueueUtilities.java:114)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
which happens to me when I make a mistake using the guiserver... :)
Posted: Sun Feb 24, 2008 10:24 am
by newBert
For a
Lisp written in
Java, you can see Fanda's post :
Fanda wrote:My expectations were quite high, but there are some good things to look at ;-)
I believe that for example Clojure innovates more:
http://clojure.sourceforge.net/
Fanda
in this
topic.