Tom's corner of the internet

8 posts tagged with experiments

Segfaulting Python with afl-fuzz

06 March, 2016 - Under:

American Fuzzy Lop is both a really cool tool for fuzzing programs and an adorable breed of bunny . In this post I’m going to show you…

How much code is there in the Python Package Index?

21 December, 2013 - Under:

Sometimes python related questions pop into my head, like how slow are Django templates or how hard would it be to inline Python function…

Adding tail-call optimization to Python

15 October, 2013 - Under:

Tail-call optimization is a trick many languages and compilers use to avoid creating excess stack frames when dealing with recursive code…

My Uni's timetable system sucks, so I built a better one.

11 October, 2013 - Under:

tl;dr The timetable system sucks, so I made one that works Getting your timetable sorted at Uni has never been fun. In years 1 and 2 of my…

Automatically inline Python function calls

01 August, 2013 - Under:

Edit: Code is here on GitHub Calling functions in Python can be expensive. Consider this example: there are two statements that are being…

Displaying a processes output on a web page with Websockets and Python

15 July, 2013 - Under:

A few days ago a colleague of mine asked me how you would pipe the standard output of a process into a browser. I hacked around for a few…

Just how slow are Django templates?

13 March, 2013 - Under:

Edit 2: I made a Django debug toolbar panel that profiles your Django templates and all their components. You can find it here: https…

Parsing Wikipedia database dumps with C# and Postgres (6 degrees of Wikipedia)

12 September, 2012 - Under:

tl;dr C# and Postgres are pretty damn fast. View code on github Recently I began working on a little experiment after I saw that Wikipedia…