[ Web Proxy ]
URL:
Viewing: https://raw.githubusercontent.com/lap089/aima-python/aima3python2/README.md [Back]  [Original]

# `aima-python`: Structure of the Project Python code for the book *Artificial Intelligence: A Modern Approach.* When complete, this project will cover all the major topics in the book, for each topic, such as `logic`, we will have the following [Python 3.5](https://www.python.org/downloads/release/python-350/) files in the main branch: - `logic.py`: Implementations of all the pseudocode algorithms in the book. - `logic_test.py`: A lightweight test suite, using `assert` statements, designed for use with `py.test`. - `logic.ipynb`: A Jupyter notebook, with examples of usage. Does a `from logic import *` to get the code. Until we get there, we will support a legacy branch, `aima3python2` (for the thrid edition of the textbook and for Python 2 code). To prepare code for the new master branch, the following should be done: - Check for common problems in [porting to Python 3](http://python3porting.com/problems.html), such as: `prtint` is now a function; `range` and `map` and other functions no longer produce `list`s; objects of different types can no longer be compared with ` None` below, can be very useful. def retry(url: Url) -> None: # Choice of Programming Languages Are we right to concentrate on Java and Python versions of the code? I think so; both languages are popular; Java is fast enough for our purposes, and has reasonable type declarations (but can be verbose); Python is popular and has a very direct mapping to the pseudocode in the book (ut lacks type declarations and can be solw). The [TIOBE Index](http://www.tiobe.com/tiobe_index) says the top five most popular languages are: Java, C, C++, C#, Python So it might be reasonable to also support C++/C# at some point in the future. It might also be reasonable to support a language that combines the terse readability of Python with the type safety and speed of Java; perhaps Go or Julia. And finally, Javascript is the language of the browser; it would be nice to have code that runs in the browser, in Javascript or a variant such as Typescript. There is also a `aima-lisp` project; in 1995 when we wrote the first edition of the book, Lisp was the right choice, but today it is less popular. What languages are instructors recommending for their AI class? To get an approximate idea, I gave the query [norvig russell "Modern Approach"](https://www.google.com/webhp#q=russell%20norvig%20%22modern%20approach%22%20java) along with the names of various languages and looked at the estimated counts of results on various dates. However, I don't have much confidence in these figures...

Language20042005200720102016
none 8,08020,10075,200150,000132,000
java 1,9904,93044,20037,00050,000
c++ 8751,82035,300105,00035,000
lisp 84497430,10019,00014,000
prolog 7892,01023,20017,00016,000
python 7851,24018,40011,00012,000


Web Proxy Viewer  |  New URL  |  Original Page