I have always loved programming - its like Lego without gravity.

Basic on my ZX81 graduating to assembler and Turbo Pascal during my teens.

Developed phone OS software - engineer, architect, product manager - but got made irrelevant by the iPhone and redundant by Android.

These days I mostly work with data, big data and fitting big data onto small boxes.

Obiwan: Typescript for Python

Being rather the static-typing-in-Python kind of person, and being rather taken with Microsoft’s new Typescript, I quickly cleaned up and reimplemented my JSON validator as a Python 3 annotations parser:

 def add_employee(employee: {"name":str,"dob":int, ...}) -> int:

It also has a JSON load/dump wrapper that supports a template parameter:

 employees = json.load(f,template=[{"id":int,"name":str,"dob":int, ...}])

My ambition would be that its syntax is widely adopted and eventually static type checkers support it and IDEs can do auto-complete ala Typescript.

follow/fork it on github:  https://github.com/williame/obiwan

jump to ↓



performance
Faster searches with non-prefix fields in composite indices
Compressing MySQL databases
What highscalability.com says about Scaling my Server
Scaling my Server: follow-up
old classics
The kid's computer
Making the History of Worlds Religions map
If you defend those involved in the OpenGL ES specification, you are an idiot
Stackoverflow unwinding?
general
Why Swift?
Python annotations and type checking
pycon 2014 Sweden: the bad bits
Table-based Template Translation in C++
recreation
games programming
Perlin Noise
Perlin Noise
Drawing RTS maps fast
WillCity update
ludum-dare
Ludum Dare #35 Mosaic
LudumDare 33 wallpapers
SSIM vs MSE for Mosaics
Ludum Dare 30 results are in!