Skip to content Skip to sidebar Skip to footer
Showing posts with the label Language Agnostic

Clean And Type-safe State Machine Implementation In A Statically Typed Language?

I implemented a simple state machine in Python: import time def a(): print 'a()' r… Read more Clean And Type-safe State Machine Implementation In A Statically Typed Language?

Python Threads - Critical Section

What is the 'critical section' of a thread (in Python)? A thread enters the critical secti… Read more Python Threads - Critical Section

Finding K-nearest Neighbors For A Given Vector?

Given that I have the following in my knowledge-database: 1 0 6 20 0 0 6 20 1 0 3 6 0 0 … Read more Finding K-nearest Neighbors For A Given Vector?

Uses Of Self Referencing Lists

I know it is possible to create a self referencing list in languages like Python: >>> my_l… Read more Uses Of Self Referencing Lists