Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / November 2007

Tip: Looking for answers? Try searching our database.

Java to Lisp/Scheme or Prolog translator/parser?

Thread view: 
Andy - 13 Nov 2007 17:21 GMT
Is there any such "tool" available for coverting Java to Lisp or
Prolog?

Thanks in advance.
Joshua Cranmer - 13 Nov 2007 21:51 GMT
> Is there any such "tool" available for coverting Java to Lisp or
> Prolog?
>
> Thanks in advance.

Can you convert an object-oriented language into a constraint-solving
language? No. Generic Java code has way too many structures that are
impossible to represent in Prolog, AFAIK.

Looking into Java to LISP, which is theoretically much easier but still
far from trivial, the only reference was to an off-hand comment in an
IRC chatroom (irc://freenode.net/#lisp if you were wondering). The logs
were of a recent date--September 1, 2007--so you might be able to get
something there, but don't hold your breath.

The better question to ask here is "Why do you want to go from Java to
LISP or Prolog?"

Signature

Beware of bugs in the above code; I have only proved it correct, not
tried it. -- Donald E. Knuth

Owen Jacobson - 13 Nov 2007 23:21 GMT
> > Is there any such "tool" available for coverting Java to Lisp or
> > Prolog?
[quoted text clipped - 10 lines]
> were of a recent date--September 1, 2007--so you might be able to get
> something there, but don't hold your breath.

That's probably the same guy we've been getting in ##java.  He's
working on a project where lisp was compiled to java bytecode[1] and
wants to reverse-engineer java (the language) out of it[1].  He's
making amazing progress, but I still think his requirements are a
little unreasonable.

[1] Whaaaaa..?
Mark Jeffcoat - 14 Nov 2007 18:45 GMT
> That's probably the same guy we've been getting in ##java.  He's
> working on a project where lisp was compiled to java bytecode[1] ...
> [1] Whaaaaa..?

Armed Bear Common Lisp comes to mind.
 http://armedbear.org/abcl.html

(Supporting your right to keep and arm bears.)

Signature

Mark Jeffcoat
Austin, TX

Patrick May - 14 Nov 2007 04:04 GMT
> Is there any such "tool" available for coverting Java to Lisp or
> Prolog?

    Just rewrite your Java code in Lisp.  It should only take 10% of
the original lines of code, after all.

Regards,

Patrick

------------------------------------------------------------------------
S P Engineering, Inc.  | Large scale, mission-critical, distributed OO
                      | systems design and implementation.
         pjm@spe.com  | (C++, Java, Common Lisp, Jini, middleware, SOA)


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.