Re: [computer-go] Re: Java hounds salivate over this:
i'm simply stunned. i'll have to check it out. s. - Original Message From: Hellwig Geisse [EMAIL PROTECTED] To: computer-go computer-go@computer-go.org Sent: Saturday, June 16, 2007 1:39:19 AM Subject: Re: [computer-go] Re: Java hounds salivate over this: On Fri, 2007-06-15 at 15:12 -0700, steve uurtamo wrote: my last $0.02 on this -- let me know when you've written a kernel in java, and tell me how fast your operating system (written entirely in java) runs. what? that can't be done? :) Well, in fact that can be done... :-) http://www.jnode.org/ Hellwig ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/ Luggage? GPS? Comic books? Check out fitting gifts for grads at Yahoo! Search http://search.yahoo.com/search?fr=oni_on_mailp=graduation+giftscs=bz ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/
Re: [computer-go] Re: Java hounds salivate over this:
What part of a go program written in C or C++ are you guys having portability problems with? In dimwit there might be some assumptions, like ints being at least 32 bits, that are not portable, and we use a 64-bit type, which is not described in the C++ standard (the C99 standard does have one). Other than that, there is a single function that is not portable that checks whether there is input to be read, and which we use to implement pondering. The POSIX version (these days that means that it works on everything but Windows) is: bool is_there_input(){ fd_set read,write,except; FD_ZERO(read); FD_ZERO(write); FD_ZERO(except); FD_SET(0,read); // stdin struct timeval timeout; timeout.tv_sec=0; timeout.tv_usec=0; return select(1,read,write,except,timeout); } Other than that, I am in the process of adding multi-thread support, for which I am using a boost library, which again can be compiled on pretty much any modern platform. I want to do some lockless updates (in particular for the UCT win/loss counters) which require some assembly (less than 10 lines). But even this will be kept in a separate module that could easily be implemented for a different platform. Really, now that we all use GTP and the problem of building a GUI is out of the way, platform independence (or at least easy porting) is quite trivial. Álvaro. On 6/15/07, Dave Dyer [EMAIL PROTECTED] wrote: So if there was any language which allows a programmer to port their code to be compileable and executable on a wide variety of systems it is C. Java and C support two fundamentally different approaches to portability. The approach that C supports is chaos: deal with it. Figure out exactly what platform you're dealing with, compile code accordingly. You end up with godawful kludges like configure. It can work, but it requires constant maintenance to keep up with the latest twists in the compatible environments. Java's aproach is to define a virtual machine, and implement it faithfully on each platform. Java programs run the same everwhere; they don't know what OS or CPU they're running on. The same kind of approach is used to virtualize for whole platforms - I can also run linux or windows on my intel mac. I can run my old PDP10 system in a window on my PC (and incidentally, MUCH faster than it ever ran on real hardware) Both approaches suffer from not offering access to useful (but not modeled) aspects of the targeted platform. ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/ ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/
Re: [computer-go] Re: Java hounds salivate over this:
Now that takes me back to days of your. Can we run TECO on a PDP-10 emulator? Early versions of EMACS were actually written on top of TECO -- how's that for layers upon layers of emulation? http://en.wikipedia.org/wiki/Text_Editor_and_Corrector - Original Message From: Dave Dyer [EMAIL PROTECTED] I can run my old PDP10 system in a window on my PC (and incidentally, MUCH faster than it ever ran on real hardware) Need Mail bonding? Go to the Yahoo! Mail QA for great tips from Yahoo! Answers users. http://answers.yahoo.com/dir/?link=listsid=396546091___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/
Re: [computer-go] Re: Java hounds salivate over this:
The approach that C supports is chaos: deal with it. Is it an approach? or a mere fact of consecuences ? I mean, people started to build C compilers on every machine, thats all. The standard library is less standard than any other thing... C was one of the first mainstream languages, also was a good system programming language (to build OS, system tools, etc.) But C is just a programming language. Java languague 'per se' is 5% of the whole Java world (platforms, apis, virtual machines, specs, etc, etc, etc. and even more etc.) C lacks of all those things. Actually, In my opinion, Java as a language is a bit crappy, but you have the other 95% which is very important. Anyway, I think this is getting off topic. Edu __ Preguntá. Respondé. Descubrí. Todo lo que querías saber, y lo que ni imaginabas, está en Yahoo! Respuestas (Beta). ¡Probalo ya! http://www.yahoo.com.ar/respuestas ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/
[computer-go] Re: Java hounds salivate over this:
At 03:12 PM 6/15/2007, steve uurtamo wrote: my last $0.02 on this -- let me know when you've written a kernel in java, and tell me how fast your operating system (written entirely in java) runs. I could point out that lisp machines had no other language at the core. The entire operating system (which had windows, networks, and virutal memory) was written in lisp. Even the garbage collector was written in lisp. ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/
Re: [computer-go] Re: Java hounds salivate over this:
On Fri, 2007-06-15 at 15:12 -0700, steve uurtamo wrote: my last $0.02 on this -- let me know when you've written a kernel in java, and tell me how fast your operating system (written entirely in java) runs. what? that can't be done? :) Well, in fact that can be done... :-) http://www.jnode.org/ Hellwig ___ computer-go mailing list computer-go@computer-go.org http://www.computer-go.org/mailman/listinfo/computer-go/