Newlisp Coded in Java?

Started by Tim Johnson, February 23, 2008, 04:09:07 PM

Previous topic - Next topic

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
Programmer since 1987. Unix environment.

lithper

#1
coding micro-lisps in Java is a surprisingly popular hobby.

Check http://www.freshmeat.net">www.freshmeat.net and sourceforge.net -- you'll be amazed ;))

cormullion

#2
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"


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... :)

newBert

#3
For a Lisp written in Java, you can see Fanda's post :


Quote from: "Fanda"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/">http://clojure.sourceforge.net/



Fanda


in this http://www.alh.net/newlisp/phpbb/viewtopic.php?t=2120">topic.
<r><I>>Bertrand<e></e></I> − <COLOR color=\"#808080\">><B>newLISP<e></e></B> v.10.7.6 64-bit <B>>on Linux<e></e></B> (<I>>Linux Mint 20.1<e></e></I>)<e></e></COLOR></r>