Wohl Center (Bar Ilan University)
CFP is Open
(ends April 4)
(photo by Marco Verch)
Python, Go, C, C++, Java, Perl, PHP, Ruby, C#, rust, D, …
fact.py
fact.go
Know the machine!
fact.s
$ make fact
as -o fact.o fact.s
ld -o fact fact.o
$ ls -lh fact
-rwxrwxr-x 1 miki miki 864 Mar 2 18:23 fact
./fact
120 ↵
fact.scm
fact.py
fact.py
fact.hs
fact.py
Or maybe make your own Lisp
fact.pl
?- fact(10, X).
X = 3628800 .
fact.py
coins.pl
?- change(60, X).
X = [(half, 1), (dime, 1)] ;
X = [(half, 1), (nickel, 2)] ;
X = [(half, 1), (penny, 10)] ;
X = [(quarter, 2), (dime, 1)] ;
X = [(quarter, 2), (nickel, 2)] ;
X = [(quarter, 2), (penny, 10)] ;
X = [(dime, 6)] ;
X = [(nickel, 12)] ;
X = [(penny, 60)] ;
false.
Prolog Experiments in Discrete Mathematics - PDF Book
Write code, read code.
Practice
Then scratch and itch with the language you learn
Learn 4 types of languages, it’ll expand your mind.
Please share …