Computer Chess Club Archives


Search

Terms

Messages

Subject: Your Interactive Algorithm Development Tool Is Right In Front Of You!

Author: Graham Laight

Date: 09:55:02 01/10/03

Go up one level in this thread


On January 10, 2003 at 12:38:30, Dan Andersson wrote:

>I tend to use high level languages for just the reason of brevity. Why on earth
>write 1k lines when I can get away with 50-100 in a decent language. And the
>number of bugs tend to be linear to the length of the program. And for testing
>and developement of algorithms I use Forth. That gives me interactive testing.
>
>MvH Dan Andersson

Copy the following line into your address bar and press enter:

javascript:Math.sqrt(16)+5

Lo and behold - "9" will appear!

JavaScript is a complete object oriented language, with everything you need to
do programming of algorithms. It is not dissimilar from C++ or Java, and if you
use Explorer as your browser, you can download a free debugger.

One drawback if your algorithms entail doing billions of loops - it will be
about 100x slower than a compiled language.

-g



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.