Re: Converting code from NetLogo



Max wrote:
Is there an easy way to convert code from NetLogo to Java? If so, what
is it? I've been using NetLogo for a few years, and would alike to be
able to re-use at least some of my old code in Java.

No. They are nearly as different as Shakespeare and Algebra.

Moreover, Java is a much worse language than NetLogo to write the sort of program that NetLogo is designed for. Why buy a forest and cut down the trees in it to build your house with when you can buy pre-cut lumber?

However, because NetLogo is written in Java, and they provide an API, you can use Java /with/ NetLogo, if you need to write a program that combines the sort of thing that NetLogo does with some bits that are awkward or impractical in that language.

--
John W. Kennedy
"Give up vows and dogmas, and fixed things, and you may grow like That. ....you may come to think a blow bad, because it hurts, and not because it humiliates. You may come to think murder wrong, because it is violent, and not because it is unjust."
-- G. K. Chesterton. "The Ball and the Cross"
* TagZilla 0.066 * http://tagzilla.mozdev.org
.



Relevant Pages

  • Re: Converting code from NetLogo
    ... able to re-use at least some of my old code in Java. ... Have you considered asking a NetLogo discussion group? ... NetLogo is implemented in Java, ... programmers will know of Java, ...
    (comp.lang.java.programmer)
  • Re: Converting code from NetLogo
    ... of program that NetLogo is designed for. ... the trees in it to build your house with when you can buy pre-cut lumber? ... Well, as I say, the two languages are about as different as two computer languages can be, and if NetLogo is the only language you know, acquiring facility in Java is going to take a while -- about a year. ...
    (comp.lang.java.programmer)
  • Converting code from NetLogo
    ... Is there an easy way to convert code from NetLogo to Java? ... I've been using NetLogo for a few years, and would alike to be ... able to re-use at least some of my old code in Java. ...
    (comp.lang.java.programmer)
  • Re: logo for OS X
    ... I forgot if I already replied to this: You may wish to try NetLogo. ... software is written in Java, and one goal of the developers is seamless ... Prev by Date: ...
    (comp.lang.logo)
  • HashMap or Property
    ... sort of like those in java? ...
    (microsoft.public.dotnet.languages.csharp)