Recursion has been available since Fortran90:
http://fortranwiki.org/fortran/show/recursion
Moderators: hgm, Rebel, chrisw
Recursion has been available since Fortran90:
I code with fortran for a living and never intend going back to C atleast for work!smcracraft wrote: ↑Fri Nov 16, 2018 3:33 am If you work in the profession as a developer or devops or other person who codes partially or wholly for a living, I suggest you pick another language.
C and C++ are the standard languages I am aware of that most of the modern chess programs I have seen have been written in.
smcracraft wrote: ↑Fri Nov 16, 2018 3:33 am If you work in the profession as a developer or devops or other person who codes partially or wholly for a living, I suggest you pick another language.
C and C++ are the standard languages I am aware of that most of the modern chess programs I have seen have been written in.
i have no problem writing code to handle the UCI interface for now, in fact the only thing i wrote in my engine for now is the UCI parser.Evert wrote: ↑Fri Nov 16, 2018 7:26 am I worked with Fortran for about ten years, up to a few years ago. Mainly for floating point calculations though, I never really used its bitwise operators, but I seem to recall they’re overly verbose.
Fortran’s main strengths, as I see it, are its array block operations and auto-parallelisable loops. I don’t think either of those is a big help for a chess engine though.
The main weakness is probably going to be its I/O model, which is different from the C character based I/O model and more of a hassle to get to work with CECP and UCI interfaces.