Skip to content

Latest commit

 

History

History
73 lines (52 loc) · 1.88 KB

README.org

File metadata and controls

73 lines (52 loc) · 1.88 KB

FunStuff

A place for all the fun stuff I do.

GNU-Parallel

GNU Parallel is a program for running command-line tools in parallel.

map.pl and reduce.pl implement a Map/Reduce analysis of the flight data set. You run the analysis using the command:

cat On_Time_Performance_1H2012.csv | parallel --pipe --blocksize 64M ./map.pl | ./reduce.pl

LEGO

Various experiments with LEGO Mindstorm. Most of these experiments have been published in Alt om DATA.

Comal

Retrocomputing in COMAL-80 (using OpenComal).

fib.lst
Fibonacci numbers
sieve.lst
finding prime numbers
brussel.lst
simulation of Brusselator using simple Euler integrator

JavaScript

Just a couple of JavaScripts experiments.

graph.js
a “library” for handling directed acyclic graphs.

Extensions

A model extension for Node.js and Python. C++ classes are wrapped as Node.js and Python classes.

person.cpp and book.cpp
C++ classes
person_wrap.cpp and book_wrap.cpp
Wrapper classes (Node.js).
py_person.cpp and py_book.cpp
Wrapper classes (Python).

Notice that both Python 2 and 3 are supported.

Building C++ classes:

make

Building Node.js extension:

node-waf configure
node-waf build
sudo node-waf install

Pi

Implementation of calculation of pi using Monte Carlo in various languages.

Currently supported languages:

pi.sh
bash
pi.py
Python

C++

Experiements in C++

try_catch.cpp
How to use lambdas to wrap exception handling.

Misc

Just a collection of small programs.

hailstone.c
generating hailstone series (see http://en.wikipedia.org/wiki/Collatz_conjecture)
fraction.py
implementation of rational number arithmetic in Python.
opg1A.py and opg3A.py
simulations of Svante’s home work in probability.
greeting.cob
tribute to Grace Hopper.