home mail me! RSS (2.0) feed

The Virtues of Laziness

NOTE this post is borrowed from my old blog, with permission.
One of the greatest virtues of programmers is that we are lazy. Regularly this means that we do not want to spend a lot of time and/or energy in doing stuff that bore us.
We should be lazy in that common-sensical way, but we should also [...]

Scripting in Python, Ruby, Perl? No, in C++!

NOTE: there are a few posts about this tool in this blog already, but the cryptic name, cpsh, seems to have scared away some of you. Welcome back!
I have built something that is cool and useful, objectively speaking. That something is a shell – interactive or not – using C++. It does have a name, [...]

Brief intro to Boost and TR1

Boost is a library of helping constructs for modern C++ development. What sets Boost apart from most other libraries is that it is infrastructural and horizontal in that it extends the vocabulary of the developer in any kind of problem solving, no matter what the domain.
This quite unique feature – along with the fact that [...]

cpsh 1.0

Ok, I finally finalized a first official version of cpsh, 1.0.
The project is found at Google Code, where there is a download area with precompiled binaries.
This version works on Mac OS X 10.4 (and probably older), with either G or Intel processor, and on Windows XP/2000.
Building
To build it on OS X, you need XCode 2.x [...]

cpsh – a Windows executable

First of all, sorry for not being active on the blog for quite some time, but here I am again. And this time with a binary of my cpsh tool.
While I am rewriting the tool to better support various C++ compilers, you here have a Windows executable that requires gcc to be installed and available. [...]

XPath with namespaces in Java

XPath is the expression language operating on an XML tree, used from XSLT. It can also be used stand-alone, such as from a Java application. There is also a standard API, called JAXP, for Java. So, everything is nice and dandy, and the post should stop here! Well... for real XML documents, using namespaces, it [...]

Embedded Lisp – via Lua

A few months ago I had one of those nights where you just do not feel like sleeping. That time, I created an interpreting environment for a mini Lisp in Lua. I call that LuaLisp.
DISCLAIMER to all die-hard Scheme fanatics out there: I use the term Lisp losely here, to the extent of including Scheme. [...]

Erlang – the best or worst of two worlds?

A friend of mine has become an Erlang aficionado lately, and has - deliberately or not - pulled me into Erlang development I had not touched Erlang in a long time but always knew there was something about it that bothered me some twelve years ago. I forgot what, but now remember.
This post [...]

Algebraic + abstract = true?

I had this idea a few weeks ago, of merging the syntactical features of algebraic data types with the implementation freedom of abstract data types. Coming to think about it, I had this idea in 1988, when I created an equational "mathematics" system on top of Prolog.
Most people having dealt with declarative languages have encountered [...]

Finding and traversing DOM elements in JavaScript

Do you have to furnish a lot of HTML elements from JavaScript, such as for formatting or inserting special effects? Well, then you need to know the performance - or lack thereof - of finding and traversing DOM elements. And the performance hit of using Microsoft's browser.
This post tries to clarify the performance hits involved. [...]

« Previous entries · Next entries »