[freenet-chat] Re: [freenet-dev] Java
On Sun, 25 May 2003 02:36:34 +0200 Frank v Waveren wrote: n (n -> infinity) > > Gripe(i) Java is... i=1 The best thing, IMO, that's ever been added to Java is the Python environment. Called 'Jython', it's actually a python interpreter in Java, that allows Python code to interact seamlessly with Java. What I'm saying is that there might be an excellent case to use this mechanism to gradually migrate the Freenet codebase over to Python - it can be moved one class at a time, without undue drama. Once Fred's fully in Python, there'll be some huge advantages. For one, Python programs can be readily built into binaries that run on their target system without needing a Python environment. For another, interfacing Python to C is effortless and painless, especially given Pyrex - the Python/C interface language. Python code can compile to vanilla C, and be incrementally optimised for speed. For another, Java is just Pascal with a makeover, and a pretty bad one at that. Python is a way cool language, that lets you get the job done with far less effort and much more fun. So what I'm proposing is an incremental migration away from Java and towards a Python/C blend. Python for the comfortable effortless abstraction, and C for the raw bit-bashing grunt. A big argument in favour of this is that it's not an all-or-nothing deal - stable working code can be released at many different points along the migration path. Thoughts? David -- leave this line intact so your email gets through my junk mail filter ___ chat mailing list chat at freenetproject.org http://hawk.freenetproject.org:8080/cgi-bin/mailman/listinfo/chat
[freenet-chat] Re: [freenet-dev] Java
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Has anyone tried compiling freenet to machine code using gjc (The Gnu/GCC Java compiler) or something similar? reed - -- Reed Hedges VOS/Interreality Project reed at interreality.org http://interreality.org -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.1 (Darwin) iD8DBQE+0NVHFK83gN8ItOQRAqWWAJsGeq8H2uFSfUyDMcZYVd0cY549bQCeIt2j ZBValjH1OCn9stlpWWVgf1I= =MY3Q -END PGP SIGNATURE- ___ chat mailing list chat at freenetproject.org http://hawk.freenetproject.org:8080/cgi-bin/mailman/listinfo/chat
[freenet-chat] Re: [freenet-dev] Java
On Sat, May 24, 2003 at 05:11:24PM -0700, Ian Clarke wrote: > Here is quite a good response to most of the typical anti-Java gripes > which crop up every now and then: > http://slashdot.org/comments.pl?sid=65374&threshold=1&commentsort=3&tid=154&mode=thread&cid=6032047 The abridged version: > Gripe one) Java is slow: no it isn't. Not that I don't love the discussion technique, but so far I've yet to see java code that didn't run significantly slower than native equivalents. > Gripe two) Swing is slow: no it isn't. See gripe one. > Gripe three) JAVA takes up too much memory: yes it does, but it > doesn't really matter and it'll be slightly less bad soon. Java memory performance is terrible, and saying it'll get better in future is no excuse. It's not just the fixed base either, I've yet to be convinced that freenet by design actually needs 120M of virtual memory. Note that java's memory problems are also adding to it's slowness. But either way, let's face it, we're not going to be able to get rid of java for freenet for the time being anyway, so this discussion isn't going to lead to much anyway. Redirected to chat. -- Frank v Waveren Fingerprint: 21A7 C7F3 fvw@[var.cx|stack.nl|chello.nl] ICQ#100741001FF3 47FF 545C CB53 Public key: hkp://wwwkeys.pgp.net/fvw at var.cx7BD9 09C0 3AC1 6DF2 ___ chat mailing list chat at freenetproject.org http://hawk.freenetproject.org:8080/cgi-bin/mailman/listinfo/chat