Archive for the ‘software’ Category

Control Flow Graph Linearisation in OWL BASIC

February 14th, 2010 No comments

Tweet To compile the code comprising an OWL BASIC procedure, function or main program into CIL, we must linearise the Control Flow Graph (CFG) representing the program statements. The CFG undergoes many transformations during compilation, for example to eliminate unreachable code or convert GOSUB routines into named procedures. Generation of CIL using Reflection.Emit requires that […]

Categories: .NET, computing, OWL BASIC Tags: ,

OWL BASIC produces its first executable

August 4th, 2009 7 comments

Tweet After a long haul, and diversions into other more important projects — including starting a family — OWL BASIC today produced its first executable. Its not much. In fact its hardly anything. Just 2048 bytes of Windows PE executable containing the global variable declarations from Acornsoft’s 1982 Sphinx Adventure. Each file of BASIC source […]

Categories: .NET, computing, IronPython, OWL BASIC, Python Tags:

In C++ throw is an expression

July 31st, 2009 9 comments

Tweet After 15 years programming in C++, I was surprised to discover today that throw in C++ is an expression rather than a statement. As a result, throw may be used as part of larger expressions. The only use I’ve found for this — and in fact the speculative attempt by which I discovered it […]

Categories: C++, computing, software Tags:

Installing Eclipse on Windows Vista

July 27th, 2009 6 comments

Tweet Eclipse doesn’t come with an installer for Windows. As a result of this, installing Eclipse into Program Files is very awkward without getting into a tussle with User Account Control, and virtualisation of the Program Files directory. After far too much effort I have finally found a sequence that Works For Me™ on Windows […]

Categories: computing, software Tags: , ,

An unofficial Europython 2009 retrospective

Tweet Europython 2009 was my first Python conference, this being the first year that I’ve been able to use Python professionally for application development. We’d made a decision that if we were to be using Python commercially, we should be active within the Python community, so two of our team travelled from Norway to Birmingham, […]

Categories: computing, Python, software, Uncategorized Tags:

String compatibility between Python implementations

June 18th, 2009 3 comments

Tweet Jython and IronPython run on platforms where strings are unicode capable by default. Both implementations have chosen to make str essentially an alias for unicode in Python source code. The bytes type, introduced in PEP358 as part of transition to fully unicode Python 3.0, is unambiguously a sequence of single byte values. We can […]