home mail me! RSS (2.0) feed

Archive for August, 2006

cpsh - scripting in C++

I woke up last night with a conviction that C++ is not a worse “scripting” language than Perl or Ruby. After a few minutes awake, I had to turn on the computer and prove this nightly conjecture. I created a draft scripting environment for C++ in a few hours.
I call my nocturnal embryo cpsh for […]

Is your language hot or not?

If one would measure popularity by number of hits on Google, these are the five most popular computer languages:

PHP
Java
C
Flash
Perl

A graph of Google hits, using the query +lang +programming, for some of the most common languages follows. NOTE 1: please inform me if your favorite language is omitted. NOTE 2: I did not include the language […]

Pretty tag paths in WordPress

Being a newbie in this noble art of blogging, I discover useful tricks - and not so useful pitfalls - all the time.
WordPress is a well-written system for assisting the blogger in his adventures. As all well-written systems, it is written in PHP. Like its remote cousin, Drupal, it comes with an extensive [...]

Prototype arrays - improving upon Ajax?

There is this popular wrapper for common JavaScript idioms, called Prototype. I will not explain it - since that is done elsewhere - nor praise it. What I will do is to look critically at one part of this library, the array extensions.
This library is used by most fancy AJAX libraries popping up, whether they [...]

Books for the aspiring C++ expert

I have gathered a list of books that should get you started on the road to expertise in the language of the gods, C++.
I decided to do this via a new Amazon facility called aStore. So you can go to my aStore to get access to those books. The most crucial ones are found under [...]

AJAX and IE caching problems

I spent hours today trying to make IE 6.0 less intelligent. I.e., to get it not to cache the AJAX responses.
The first attempts, to include
PLAIN TEXT
HTML4STRICT:

<meta http-equiv="Pragma" content="no-cache" />

in the head portion of the HTML sent back to the client was laughed at by IE 6.
So, I use a search engine called Google to [...]

C# 3.0: introducing something almost functional

It is a strong current trend among languages to become more functional. No, not as "actually doing stuff" but in the mathematical sense of the word. I.e., languages more and more treat functions as any other value, and C# is no exception. Before you know it, we might have the expressivity of Lisp anno 1965 [...]

AJAX using one language

AJAX is a bunch of cryptic JavaScript snippets on the client side together with some advanced web services, written in another, and more powerful, language. Right? Not necessarily. I here give a brief comparison of three ways to create AJAX applications with only one language, running on both client and server.
The three unilinguistic approaches to [...]

embed_type - wrapping types in C++

This is a C++ library I created to be able to wrap types while specifying - in compile-time - what operations, if any, are to be preserved, i.e., what homomophisms should be injected into the wrapping type. One can view it as a very flexible type alias system.
I issued this library as an informal proposal [...]

RCF: C++ apps speaking their mother tongue

You need a cross-language interprocess framework that is hard to setup, learn and deploy, just for the thrill of being able to use Java and/or PHP on the server side while using native code on the client side?
Then this is not for you. Please skip this post.
For developers using the most powerful language - in [...]

· Next entries »