Pages

Showing posts with label computer science. Show all posts
Showing posts with label computer science. Show all posts

Tuesday, 26 July 2011

Grahamstown – The First Week

When I moved to Rhodes University, Grahamstown, South Africa from Brisbane in Australia I expected a few surprises, but not too many because I have after all lived in South Africa before. 9 years ago, I moved from the University of the Witwatersrand, Johannesburg (Wits) to the University of Queensland, and things have not changed that much over that time. I’ve also lived in a rural area in the distant past. Still, it’s fun to contrast life here with Australia.

So how has the first week gone? Pretty amazing in some ways, frustrating in others.




I arrived a few days before the annual National Arts Festival, a monster event with over 1,000 attractions, from world-class orchestral recitals and ballet, top-ranked jazz performers and the like through to fringe events featuring little-known performers. I went to a symphony orchestra performance featuring a cello soloist whose performance I could appreciate without knowing much about the art. To be able to face an audience without a scrap of paper, and play with extravagant flicks of hair with attitude, while producing sounds which, though no doubt containing the right note, could not be described in such simple terms, is a rare thing to experience. I was also dragged to a performance of Swan Lake. Sadly, I don’t get ballet. Maybe if I’d ever had someone close to me who was into ballet and took the time to explain the vocabulary of the thing, I could make sense of it. To me, it’s just a bunch of people in tights and swirly clothes performing impressively athletic acrobatics to music. Fun to watch, but even with a synopsis of the story line, I battle to make the connections. Then there was a play called The Table, a interesting piece of modern theatre. In a different vein, I went to a talk by Dennis Beckett, an idiosyncratic commentator on politics and life in general, on Democracy Version 2, and met him the next day for breakfast to catch up on old times and new. In the distant past, I wrote a couple of articles for his magazine Frontline, though he remembers me for my interventions on talk radio, a habit I dropped in Australia, because talk radio there is for the mindless chatterati. Next I was supposed to go to some short films but at the time and place on my tickets, there was a panel discussion on the future of the Humanities (the academic disciplines that is).

That’s the first week of entertainments, with more in store, including Ladysmith Black Mambazo, and some of the country’s best jazz.

All this, in Australian terms, cost two of us about $100. You wouldn’t even get to see one world-class act for that price over there. So that’s the amazing (and the Arts Fest rightly uses “Amazing” in its branding).




Not only that: I reconnected with some of my favourite birds and plants. A hadeda is a kind of ibis unremarkable in appearance but with a loud call, like a musical crow. Some say hadedas cry out in flight because they are scared of heights. Some say anything that enters their heads. Not much I can do about that. Then there’s the wild flowers, including aloes that grow all around this part of the country, and the trees. I like eucalypts, but you can have too much of a good thing. A few varieties of yellowwoods are what it takes to make me feel at home. Then there’s the African hoopoe that wandered out in front of the Computer Science building, and nonchalantly rooted for grubs while I took several pictures.

Shopping is a bit of a mixed experience. The local branch of Pick ’n Pay (a big chain, but this one’s ran as a franchise) is open for absurdly long hours for a full supermarket: 6:30am-11pm every day of the week. And wine is deliciously inexpensive by developing country standards. On the other hand no one in town sells real fruit juice: permissive labeling laws make it possible to sell a (wait for it) 100% pure blend, a hard concept to compete against if you are selling something that’s actually 100% pure.

To continue though with the feel-goods: people here are generally so friendly and welcoming. On our first day in university temporary housing (not too shabby; shabby but not too), the chief administrator of my department showed up with a huge vase of flowers. The tech people in the department are friendly and helpful, and people make eye contact with strangers in the streets.

One final plus: no Murdoch media. Newspapers here may have smudged ink and occasionally be folded a bit off centre, but they don’t print junk as a matter of policy. The Mail&Guardian can be a tedious read because articles are at times excessively detailed, but the paper is not pushing an agenda beyond informing the public and pursuing the broad public interest. The other papers are less serious and can reduce news to gossip, a common problem around the world, but nothing here is comparable to News Very Limited in single-mindedness in the pursuit of publishing drivel.

So the frustrations?

In my first week I had two power failures in the office severe enough to defeat the office UPS. A UPS (uninterruptible power supply: a battery-backed unit between the computer and the mains power supply, designed to keep it going when the power goes down) is not exactly a standard fitment for a desktop computer in Australia. Here, it’s essential. What’s more, many people have generators at home that kick in when power goes down, the kind of thing you’d expect in a hospital. Part of the problem it seems is that the infrastructure can’t cope with full load. But with all the generators around the place, it would be way more efficient if owners of generators switched them on before power failed, i.e., to share the peak load. But if the national power utility, Eskom, was sufficiently switched on (ouch) to get that right, you wouldn’t need private generators.

Then there was my attempt at getting 3G Internet on my Mac. I went to a local MTN dealer. MTN is one of the biggest telcos in Africa, having been wildly successful in countries to the north like Nigeria, and should have decent coverage in South Africa. So I plug in this USB modem, and run the software that’s on it (it shows up as a USB drive), and it crashes. I then can’t get a connection. After talking to two people at MTN, I get a long list of options for what to do sourced from the manufacturer, HUAWEI – none of which works. After a few days of battling with this and looking up options on the web, I try calling MTN again, and end up being passed from one person to another until they dropped the call. In Australia, big telcos outsource incompetent tech support to developing countries. At least here, they keep it local. I eventually fall back to asking a question on a Mac support mailing list set up back in my Wits days by the person who then looked after our Macs, and someone helpfully solves the problem for me. My best guess: the first run of the software that crashed should have enabled data access for the device and since that didn’t happen, I had to do that by other means.

So that’s my first week. I don’t expect the entertainments to continue at the same pace, though there will be plenty in the second week, while the fest is still on. I expect to see more exciting birds and trees. I expect more frustrations. But I also expect to find friendly and helpful people to help work around them.

Is this better or worse than Australia? Yes.

Wednesday, 30 March 2011

Moving back to South Africa

I take up a position as associate professor of Computer Science at Rhodes University, Grahamstown, South Africa on 1 April; I’m putting this article up in advance because stories with a 1 April dateline have a certain connotation.

This one’s for real.

After several years at the School of IT and Electrical Engineering at the University of Queensland, St Lucia and slightly fewer years at the Institute for Molecular Bioscience at the same campus, why am I heading back to South Africa?

Several reasons.
  • a place I can contribute more – while it’s great being in a large well funded institution for many reasons, it’s a lot harder to feel you are making a difference. And Australia’s economy isn’t going to grow a whole lot on the back of what I can do; South Africa on the other hand has many opportunities that I and my graduates can open up with the right skills
  • small institution bureaucracy – or lack thereof: a university with 6,000 students has to be a lot less unwieldy to navigate on a day to day basis
  • a place where Computer Science has respect – in more than one university where I’ve done time, I’ve been left with a feeling that computer science is seen as a second-class subject, without the venerable history of physics. The fact that it has led the fastest advance of any era of human technological history apparently doesn’t mean much. Rhodes computer science is a relatively big department in a small university, and its professors have been deans and deputy vice-chancellors.
And finally:
  • going home – Rhodes is in a part of the country that I haven’t lived in but despite the many attractions of the land of Oz, it isn’t really home
I will still be in Australia for a while because I need to take care of a few details like selling a house. I will miss the possums that sleep on my top balcony, the great open spaces, the Great Barrier Reef, walks in the mountains and the appealingly weird wildlife. I won’t miss the dishonest media and the short-term self-serving politics. Not that South Africa is that brilliant on the latter score.

A Greens Party in South Africa, perhaps as a side project?

Friday, 29 August 2008

Multicore Multifiasco

Dave Patterson is one of the most respected names in computer architecture, and rightly so, having been one of the co-founders of the RISC movement, as well as being one of the prime movers behind RAID, among other things.

Nonetheless, when he posted an article on the potential and pitfalls of multicore designs on the Computing Community Consortion blog, I couldn't help but post the following, repeated here with a few additions.

It’s my experience that every decade or so, a packaging breakthrough allows some previously forgotten or abandoned approach to be resurrected at a lower price point, and all the previous lessons are forgotten.

Here are a few of those lessons:

  1. parallel programming is inherently hard, and tools and techniques claiming to avoid the problems never work as advertised
  2. heterogeneous and asymmetric architectures are much harder to program effectively than homogeneous symmetric architectures
  3. Programmer-managed memory is much harder to use than system-managed memory (whether by the operating system or by hardware)
  4. Specialist instruction sets are much harder to use effectively than general-purpose ones

I nearly fell out of my chair laughing when the Cell processor was launched. It contained all four of these errors in one design. Despite the commercial advantages in bringing out a game that fully exploited its features, as I recall, only one game available when the Playstation 3 was launched came close.

I hereby announce Machanick’s Corollory to Moore’s Law: any rate of improvement in the number of transistors you can buy for your money will be matched by erroneous expectations that programmers will become smarter.

Unfortunately there is no Moore’s Law for IQ.

The only real practical advantage of multicore over discrete chip multiprocessors (aside from the packaging and cost advantages) is a significant reduction of interprocess communication costs — provided IPC is core-to-core, i.e., if you communicate through shared memory, you’d better make sure that the data is cached before the communication occurs. That makes the programming problem harder, not easier (see Lesson 3 above).

Good luck with transactional memories and all the other cool new ideas. Ask yourself one question: do they make parallel programming easier, or do they add one more wrinkle for programmers to take care of — that may be different in the next generation or on a rival design?

Putting huge numbers of cores on-chip is a losing game. The more you add, the smaller the fraction of the problem space you are addressing, and the harder you make programming. I would much rather up the size of on-chip caches to the extent that they effectively become the main memory, with off-chip accesses becoming page faults (I call this notion RAMpage). Whether you go multicore or aggressive uniprocessor, off-chip memory is a major bottleneck.

As Seymour Cray taught us, the thing to aim for is not peak throughput, but average throughput. 100 cores each running at 1% of its full speed because or programming inefficiencies, inherent nonparallelism of the workload and bottlenecks in the memory system is hardly an advance on two to four cores each running at at least 50% of its full speed.

In any case all of this misses the real excitement in the computing world: turn Moore’s Law on its head, and contemplate when something that cost $1,000,000 will cost $1. That’s the point where you can do something really exciting on a small, almost free device.

Further reading


My PhD thesis, completed in 1996, but now relevant to a wider audience since multicore has become mainstream, is available on Amazon. See Other Links.

Some interesting stuff here: The Perils of Parallel: Vive la (Killer App) Révolution!

Thursday, 29 May 2008

Peak Oil, Poverty, Moore's Law and Manure

Peak Oil


As oil and with it products we use to fuel our cars and trucks gets more expensive, there is growing anguish about the effects on the cost of living. China alone is adding millions of cars a year to the total, and peak oil theory says we should be hitting limits soon on production growth.

In reality, as prices go up, there will be options of exploiting kinds of oil previously too expensive: under the deep sea, in the arctic (conveniently being freed of ice; what's doing that, I wonder, if there's no climate change?), tar sands, shale oil… so production may not drop off as fast as predicted by peak oil theory. But should we want to squeeze every last drop of oil (and coal and gas) out of the ground?

Not only do we have climate change to worry about, but the economics of fossil fuel has a lot to do with the gap between rich and poor nations.

The Poverty Gap


In the twentieth century, the cost of communication increasingly split rich from poor. By communication, I mean movement of people, goods and information. Part of this was energy; another part telecommunications. The common thing was the distinction between countries with a comprehensive network of roads, rail, electricity and telephone connections, and those without.

Addressing this gap became increasingly hard, as the cost of new infrastructure has to compete with infrastructure created in an era of lower costs (e.g., coal was cheaper because demand was lower). It is this gap which for example makes fruit in a third world country absurdly cheap in tradable currency terms, while making a local phone call is ridiculously expensive. There's a kind of arbitrage, but one where the places where the price differences occur are too hard to connect, to correct the pricing anomaly (as would happen for example if the US$ to euro exchange rate was out of synch with the US$ to pound sterling exchange rate).

Somehow, despite all this, we have arguments from climate change inactivists that addressing poverty is an alternative to addressing climate change. Yet if you accept that poverty is largely structured into communication infrastructure (or lack thereof in poorer countries), new technologies that reduce the need for infrastructure can go a long way to closing the poverty gap.

An example is the cell phone. In many poor countries, cell phone roll-out has been many times faster than predicted, because of communication starvation. People in Nigeria didn't have phones not because they were poor, but because there was no infrastructure. Cell infrastructure is relatively cheap to put in: as long as you have electrical power, you can virtually parachute base stations in. By contrast, a nation-wide wired phone network needs wiring to the home, with extensive local wiring, even if trunk lines are wireless.

This example generalizes to other cases like electricity. If you can generate power locally without a grid, you can make energy accessible a lot faster in countries without infrastructure. Eliminate the cost of consumables, and you also eliminate another huge problem: rapid price increases as supply fails to keep up with demand. If you think this is bad for wealthier countries, what will doubling the fuel price to to someone who can barely afford a car?

Moore's Law


The nice thing about renewables is that technology changes reduce prices. It doesn't matter if coal supply runs low, oil runs out or gas slows to a trickle. The wind will still blow, the sun will still shine. Just as Moore's Law has pulled computer prices down dramatically over decades, photovoltaics and wind are getting cheaper. Eliminate the consumables and you have a real revolution in energy economics, far bigger than Henry Ford's revolution in personal transport.

This is an exciting time once we forget doom and gloom and think of what could actually be done.

Instead of living in terror at consequences of change, how about accepting that we are looking at a change as big as the move from horse and buggy to cars?

Think of it this way: the cost of renewable energy sources only depends on the technology, not consumables. Once we get this right, we can make energy cheaper with every new development. As long as we are stuck with fossil fuels, prices can only go up as demand overtakes supply.

Why are we so scared of this great new concept? Once we solve the energy storage problem (there are already good ideas like compressed air) poorer countries will benefit too. What's the downside? Unless you own a coal mine ... the horse industry lost big time when the Model-T appeared, but think of the advantages to society as a whole: personal mobility on a level never experienced before.

Now we have the next level: energy with radically lower constraints on supply and infrastructure. If you can do local microgeneration with efficient storage, you no longer need a grid. In rural Africa, for example, you could almost parachute in (where have we heard that before?) a solar or wind microgenerator.

Manure


Back in the nineteenth century, it's alleged that someone predicted that London would be metres deep in horse manure in a few decades. It's a nice story, even if it's improbable that it's true (I have yet to find a direct source for it, and there are several variants – the hallmarks of a myth or urban legend). It is certainly true that getting rid of horse manure in the streets of major cities was a growing headache – just as cutting carbon emissions is today.

So why, today, are we staring down the problem of curbing carbon emissions when there are far superior alternatives – alternatives that only need a little development to be viable?

The only alternative is to consume fossil fuels like there's no tomorrow, then it's back to the stone age. Why are we even debating this?

Tuesday, 27 May 2008

The Great Mailing List Removal Spam Bomb

Every now and then someone creates a mailing list to announce something and makes three rather fundamental errors: they set it up so that the reply-to address is the whole list, they allow anyone to post to it, and they don't make it as clear and obvious as possible how to unsubscribe.

What really boggles me is that this seems to happen most often in announcements of technical conferences of interest to people who should have an above-average understanding of how email and mailing lists work (though I suppose this could be a factor of the company I keep).

Inevitably, every now and then, when one of these announcements is sent out, someone replies to the entire list asking to be unsubscribed. This triggers a cascade, where others, who would have ignored one unwanted announcement, ask to be unsubscribed too – all such requests going to the entire list (the lesson that they were annoyed apparently having failed to sink in).

The most recent such instance I've encountered was a conference for Field-Programmable Technology (ICFPT 08), about as technical a concept as you can get, and one only hard-core computer scientists and computer systems engineers would be interested in. Unless the original mailing list was misconfigured and included a batch of classics professors who had been inducted to the Internet the day before, it's hard to see how this list could have gone to a significant number of people who would fall into the unsubscribe spam error. But it did.

The result? At least 35 unsubscribe requests to the list, including two (apparently unable to see the irony in their response) which included requests to others not to post to the entire list, and about 15 requests to stop spamming the list.

You have to wonder how this could happen in a technical field. There is of course a fundamental flaw in the way email works which makes it impossible to prevent this sort of thing. There is no limit on how long you can make a recipient list, so there is no way to force mailing lists to be set up according to a specific design that would eliminate this sort of problem.

Of course there are much better solutions out there. A proper mailing list manager can be set up which puts clear and obvious instructions on each message on how to subscribe, and announcement lists should never be set up to allow anyone but a short list of authorized posters to post messages.

What's to be done?

Until we can replace email by something better that would prevent this sort of thing by design, all I can do is point out the idiocy of this sort of behaviour and hope the message gets out. But not repeatedly to the same mailing list. Next time this happens, I'll post a pointer to this article.

Thursday, 17 January 2008

Solid State Disks and Apple's MacBook Air

Here is an interesting article on SSD vs. HD pricing: Flash Memory vs. Hard Disk Drives - Which Will Win?

In the 1990s, in my advanced computer architecture course, I demonstrated that the price trend of hard drives was going to intersect the price trend of DRAM at around 2004 to 2005. Of course an solid state disk (SSD) can't be made out of DRAM without a robust power source; FLASH has fixed that problem. Even if FlASH is more expensive per bit than DRAM, taking away the need for power means it's a viable alternative to disk and the crossover point wouldn't have moved that far out. The price trend is approximately the same as that of DRAM.

So why aren't we all using FLASH drives, with disks relegated to museums?

Obviously disk manufacturers also have smart people working for them and didn't want to be put out of business. If (as seems very likely) they also spotted the trend, they had 2 options: get into SSDs early (a few did) or push the improvement rate of HDs to match DRAM -- which happened in the late 1990s.

The other interesting observation in the article is that there is a floor price for hard drives -- there is a bare minimum cost for the mechanism that doesn't reduce if you make them smaller. Their graph illustrating this point is a bit misleading: disks are not a fixed price per unit irrespective of capacity; they were trying to represent the scenario that a 64GB drive was the only one available, which is not fully representative (for clarity, they should have shown the graph to the left of the 64GB point as an extrapolation e.g. by dotting the line). For example, very small drives are more expensive to make, on general principles, than very big ones, priced per bit -- an effect to some extent masked by economies of scale for smaller drives. But anyway, the floor price observation is correct.

Why is this floor size observation useful? Because below that size, FLASH can be cheaper than the smallest disk you can buy. Obviously, it will also be lower capacity, but if that's all you need, why spend more on a bigger, slower technology?

If these trends persist, we may reach a point where FLASH is big enough for most mobile devices (at a price point below the cheapest disk). Currently, the cheapest disk is around $50. a 64GB FLASH drive -- as is an option the MacBook Air -- costs about 20 times that. However, if you are happy to have up to 3GB of FLASH, you come out ahead on cost. This would be enough to make minimal bootable system but once you start adding applications and user data with all the cruft (not to mention useful stuff like large data files) those entail, you can burn through 3GB very fast. (My iMac has 2GB in its /Applications directory tree alone, and 77GB in /Users and it's not as if I am making movies on a regular basis.)

If the current rate of improvement continues, with prices halving roughly every three years, if the minimum disk price doesn't drop, you'd be able to use 6GB of FLASH by the same argument. However, minimum disk prices are dropping, and the minimum space you need is a moving target. The only way you would see a substantial change is if there is a new mindset in systems and application development. Even so, users needing large-scale data (movies, big graphics files, databases) would still need disk storage a long way into the future.

So where does this all take us?

First, trends do not continue indefinitely, as we saw with the change in price trend for disks. A breakthrough in how SSDs are constructed could tilt the balance away from disks.

More likely, though, is the emergence of a new computing platform with a smaller memory footprint, but which can use external storage efficiently. It is this detail that is interesting about the MacBook Air -- it's a gentle step towards distributed storage, if only to dispense with the need for an optical drive. A more exciting idea would be the development of a global secure distributed file store, which takes away the need to store all your files on your own platform.

This already exists in the form of the Google File System (GFS) though unfortunately that is not available for general use, outside of services Google provides. In research projects, the Carnegie Mellon Andrew File System (AFS) and its successor Coda were nice ideas. Although the original AFS and Coda projects don't appear to be going anywhere, versions such as OpenAFS continue to be developed. The Hadoop Distributed Filesystem looks interesting too.

So in the long term, I would expect computing to look a bit more like Google's services. Computation would go wherever it was most efficiently performed, and data would be stored wherever was most convenient and efficient, if necessary fragmented and replicated for greater redundancy and bandwidth. Your own personal device would not contain all your data -- only that which was critical for system performance, and cached copies of data for immediate use.

How big a step is the MacBook air towards this? Pretty tiny, actually, but it got me thinking. Good on Apple.

Tuesday, 27 November 2007

Cargo Cult Education

Australia has just elected a new Labor government; the new leader, Kevin Rudd, in most respects appears to be a distinct improvement on his predecessor, Liberal (= conservative in Australia) prime minister John Howard.

One area where I am not convinced is Rudd's obsession with putting technology in the classroom.

Somewhere in the various newspaper articles about the Rudd transition, I saw the phrase "evidence-based".

I am curious what sort of evidence is behind the drive to put a computer on every high school desk. A computer is only a tool, not some kind of magic. I have seen plenty of evidence that dumping computers into a situation without a definite plan for their use is a waste. Consider for example the article in the New York Times (4 May 2007), "Seeing No Progress, Some Schools Drop Laptops". This article reports on wide experience with excessive computers in the classroom getting in the way of learning – as well as bad experiences with the high cost of maintaining the computers.

All of this is quite predictable. Any organization in which technology is introduced with no strategy, and no plans for long-term costs like maintenance and support, is bound to run into trouble.

On a recent trip to Denmark, I put these views to academics, and they agreed with me. Since computers have become common in schools there, mathematics scores have declined, and the perceptions that computers are boys' toys has dramatically reduced the fraction of female students studying computer science. This specific evidence is anecdotal, but the fact that it is repeated in multiple parts of the world lends it some credibility.

What kind of evidence, in any case, is there to support putting computers in classrooms? I've been publishing in computer science education for 20 years, and have yet to find a convincing study showing that computers transform learning positively – outside of very specific contexts, with carefully planned use.

The notion that putting technology into classrooms will somehow magically transform learning is nothing more than cargo cultism.

The one variable which most consistently affects educational performance is the teacher. If the Rudd government is serious about transforming education, it should be looking at scarcity pay in areas like maths and science – a far better investment.

Postscript: A report (Progress in International Reading Literacy Study, PIRLS) showing that England has top or near-top scores on two fronts is interesting reading. On the one front, computer gaming, 37% of English school kids play computer games for 3 or more hours a day (22% of these reportedly play games for 5 hours or more). The other? The biggest drop in reading skills between 2001 and 2006 in any developed country included in the report...

This bit is worth quoting:
There is a negative association between the amount of time spent reading stories and articles on the internet and reading achievement in most countries. The data ... suggests that 9–10 year-olds were considerably more likely to use computers for playing games than for reading on the internet and that spending three or more hours doing either was associated with lower reading attainment.

So there you have it: not only is spending time on the net not good for reading skills, but kids in any case prefer to play games. Will this be any different in Australia? Time will tell. But we have a proud tradition to uphold: waiting for the rest of the world to try something, then copying the mistakes ...

Friday, 12 October 2007

South African Technology Career Options

Recently, I saw a story that one Llew Jones had been appointed head of the State IT Agency (SITA) in South Africa.

Llew Jones, as far as I know, is an engineer, with a background in the armaments industry, so why is he being appointed as head of a government agency in an area in which he has no background?

Then again, he was acting director of Meraka, an agency supposedly the leading ICT reseach body in the country for a while – and he was not particularly qualified for that either*.

Some may be rather puzzled at this point, as there is a broad perception in South Africa that Black Economic Empowerment (BEE) is the main driver of senior appointments to the government payroll – and white South Africans mainly get appointed to fill gaps in competence. So why him?

No big mystery. The ANC, absent serious opposition, has fallen into the comfort zone of favouring team players over competence – and this is not a strictly racial issue. Some of these "team players" are members of the old order. Troublemakers from the old days are not favoured. The government continues to favour the Afrikaans universities and the CSIR over the English universities as sources of advice, and Reserve Bank Governor Tito Mboweni notoriously said Afrikaners were much more reliable appointments than blacks. What he meant, of course, is that the old hands at the broederbond game know how to keep their heads down and work the system.

Expect this to continue until there are enough voters who don't have memories of the old system. In Zimbabwe, that took 20 years (unfortunately, Mugabe didn't want to let go – otherwise they would probably have had an MDC government by now; even if not totally competent it would certainly have been less of a disaster).

South Africa is about halfway through the post-liberation transition. The realization that the main liberation party doesn't hold all the answers may go a bit faster than in Zimbabwe because South Africa is a more diverse society with a longer tradition of a critical civil society, but the ANC can certainly expect to win at least the next election with a massive majority. That being the so, it's hard to put the case that there is something systemically wrong with the whole approach. Look what happened to the deputy health minister.

In my view the best thing South Africans with strong technical skills who want to contribute to the long-term development of the country can do now is to get some experience in government to learn the lie of the land then go to the private sector to develop their skills. To stick too long in the government sector risks burning yourself out with frustration. It's not as if all good in society flows from government activity. Business has some contribution, and SA does have some particularly good NGOs – despite my broad perception that "NGO" stands for "never gets organized".

So what am I doing outside South Africa?

I was a computer science academic at the University of the Witwatersrand (Wits) for around 20 years, up to mid-2002, and felt that I needed some international experience – not only because it was useful, but because there is a prejudice in small countries that foreign is better.

There is a long history at Wits of favouring "foreign experience" over locals. The first head of computer science had a Stanford PhD but hadn't published much and had no PhD completions. His Stanford PhD plus industrial experience was sufficient to make him a full professor and head of department. He eventually left because he realized he wasn't cut out to be an academic. We later acquired a Hungarian of lazy disposition with a PhD I think in mathematics. He lasted until we had an activist class who complained of his abject lack of preparation for any of his courses. Then we acquired a new head from Russia, whose background was not in computer science. Each time he was exposed as knowing nothing about an area in which he claimed expertise, he moved on to another. At various times, he was an authority on AI, graphics, parallel computing and smart cards. He had one PhD completion to his name when he started, and a fair number of publications but none in computer science. To my recollection, he only published one paper when he was with us. Eventually, he was forced to leave after he got involved with a startup while on sabbatical, and didn't want to do any lecturing on his return. Somewhere along the line, we also managed to acquire a Bulgarian and someone from the UK, neither of whom amounted to much acadamically. The last instalment of this type was an American who had significant industry experience in Germany and was appointed a full professor straight out of his PhD. Of this bunch, he was by far the most successful, and published some papers – but he was on a time-limited contract and didn't stay.

So: international experience, a PhD, limited publications, zero or possibly one PhD completion: this combination was viewed highly favourably at Wits. Three people were appointed as full professors with these credentials. So when Wits advertised for professor and head of computer science in February 2007, I applied. All I heard since was one email telling me I would be informed of progress (28 March 2007). This is kind of puzzling since I was previously appointable as an associate professor (this happened last time I applied for a vacant chair) and I now have not only the prized international experience but also a PhD completion and relevant experience. It seems I am still missing something important – or could it be that once you have gone up the slippery pole of promotion at Wits, you are judged to a much higher standard?

Whatever. But I do feel that having put 20 years into producing a large number of successful graduates, I have done my part. If the experience I have gained in the process is not valued in South Africa, others will value it. I wish those still in the system luck. They are going to need it.


* See another article in this blog on whether Meraka was a success. For the record, I applied to Meraka for a position, and was only made an offer (which I turned down) after Jones left; I spoke to him on a trip to South Africa, and he was not keen on having me on board, claiming my area of research was not a "national priority". That seems excessively picky when you don't have nearly enough skilled people on board to meet your goals.

Monday, 6 August 2007

The Physics Mafia

In 2002, the South African government re-calibrated funding per student in universities. Instead of all science students attracting the same government subsidy, science students were divided into 3 categories: subjects that were expensive to teach (Physics, Chemistry, life sciences), subjects with less intensive lab requirements (Mathematics) and subjects that are really cheap to teach (Computer Science).

Computer Science extra cheap to teach – cheaper than pure maths? Did you hear that right?

A moment's reflection will show that this is idiotic. Computer science at its most theoretical is pure maths. At its most applied, it is a kind of engineering (which is in the higher category, along with mathematical sciences – not the highest category, with physics etc.).

Despite numerous protests, this idiocy has persisted.

What's going on: is the SA government run by idiots?

It seems not (entirely): this information comes from the universities which are run by idiots; the government has only been stupid in believing them.

What these rankings represent is not what these subjects should cost to teach, but what they have historically cost.

Physics has been expensive for some time because it attracts low student numbers, has a relatively high fraction of senior academics (hence with more expensive salaries) and most physics departments have a generous complement of lab staff. Computer Science, on the other hand, is a relatively new discipline, without many senior academics and without lab staff.

The lack of lab staff is the most serious differentiator, and feeds back to the other major difference in numbers of senior academics. For a typical Physics first year class, the lecturer just shows up for lectures. Lab staff take care of pracs, and tutors take care of tutorials. Since the fundamentals are largely settled (most Physics developed in the last 200 years is considered advanced, and is not seen in big classes), the same lab exercises can be recycled every year, and lab equipment can last decades. Lab staff do not need specialist skills in demand in industry, and can be trained up off the street. This means that running large classes (e.g., Physics for engineers) is not particularly onerous. Up the scale, Physics is not particularly popular as a major, so level 2 and above classes are small, and lecturing small classes of keen students is a whole lot less effort than handling big classes of students of wide variations in ability and motivation. And of course running labs is a whole lot easier even in this scenario with trained lab staff. The result? Physics academics have a fair amount of free time to write papers and build their CVs.

In Computer Science, the situation is reversed. The subject (despite the odd downturn in demand) has been more popular than Physics for decades, resulting in much larger classes at level 2 and above. On the other hand, most Computer Science departments in South Africa have no lab staff. Their technical staff capacity is usually sufficient to maintain the servers, networks and lab computers, but not to set up and manage exercises. This puts a major additional burden on academics – at all levels from introductory to advanced classes. A moment's reflection would reveal that failing to employ support staff is a false economy: if someone with a PhD and 20 years' experience is doing work that a technician could do, you are in effect paying a technician the salary of a person with a PhD and 20 years' experience. From the point of view of academics, building a research track record is significantly more difficult than in Physics. There is very little time to spare while running courses. Only by attracting research students do you stand much chance of producing significant output. But it's much easier to attract research students if you already have interesting outputs.

So why is this happening? Physics has a cosy position in South Africa. Even in the best funded higher education systems, Physics departments have been closed because they are not attracting students (in the UK, 20 Physics departments have closed over the last decade). Yet in South Africa, universities persist in the 19th century view that Physics is the only real science (captured in Rutherford's claim that "All science is either physics or stamp collecting"). The reason? Physics academics have been very good at putting their case that they are brilliant researchers. No doubt some of them are. But I wonder how well they would do if their lab staff were removed from their undergrad classes. Perhaps we could try the experiment with just one big first year class.

So should Computer Science be cheaper than Physics, even taking all this into account? It's hard to see why. You can teach a perfectly good undergrad Physics curriculum with 20-year-old equipment and lab staff without higher degrees. Computer Science by contrast does not have settled fundamentals, and computers go obsolete fast: few industry users keep a computer longer than 3 years. Worse, the skills needed to set up and maintain computer labs are in heavy demand in industry: look for job ads with keywords like "network administrator" or "server administrator". Add in the job descriptions for the sort of lab staff taken for granted in Physics, and you have a real problem: you need skilled programmers – also a hot commodity in industry.

Should we care?

Aside from the fact that the South African government has made ICT a central component of its economic development plan, there is the general question of how best to spend limited resources. Physics could be run at an acceptable level if a lot less pleasant for academics on a significantly lower budget. Making Physics academics spend more time in undergrad labs would be an imposition on their time but there is an oversupply of Physics academics worldwide, so they would not have much option to protest. On the other hand, freeing up Computer Science academics to do more research could have a very significant effect because there is another variable not yet discussed: Computer Science research is on the whole a lot cheaper than Physics research, because many of the big breakthrough areas in Physics require extremely exotic, expensive equipment. On the other hand, one of the great success stories in Computer Science has been collapsing cost of computing, opening up an increasing range of low-cost research opportunities.

In summary: by pretending the Computer Science is very cheap to teach while Physics is expensive, South African universities are shooting themselves in the foot. It would be much cheaper to set South Africa up as a world-class centre of Computer Science research, than a world-class centre of Physics research. What's more, they could attract major government funding – instead of the current fiasco, where the government is sinking major resources into the CSIR's Meraka institute without much to show for it ... funding which should have gone to the universities.

What about the other "expensive" subjects? Physics and Chemistry are lumped together as Physical Sciences which is in itself a major inaccuracy: Chemistry (along with life sciences) has major expenses of lab consumables, justifying a higher price tag. Whether this makes high-consumable lab subjects inherently more expensive than Computer Science, where lab infrastructure is in effect a consumable remains questionable – but they at least do have a case for being more expensive than Physics or pure maths. On the other hand, these subjects also have an army of lab staff. I remember a biologist at the University of the Witwatersrand some years ago complaining how consequent on funding cuts, they no longer had a person to call on to wash their cars after a field trip. So tough. I wish I had their problems.

Why this apparent trade between Computer Science and Physics? Wouldn't everyone score if Computer Science was moved up the scale? Governments have a notorious inability to scale up university funding to changed circumstances. If a relatively popular subject attracted a higher notch in the funding formula and the overall funding didn't increase, the extra funding for that subject would have to come from other areas of the university. The obvious target would be a subject that has low student numbers and is expensive to teach ... like Physics. (To be fair, I suspect other lab subjects would also have to be cut a bit because Physics wouldn't be big enough on its own.)

By allowing physicists to get away with this unbalanced funding model, they are doing not only Computer Scientists a disservice, but also society as a whole; the differences in research costs feed directly to differences in the ability to make an industrial and societal impact. In Physics, doing something at the level of inventing the transistor requires a massively funded research lab with Nobel laureate-level scientists. The Computer Science equivalent of inventing the world-wide-web requires a commodity PC with a free operating system.

The solution? Universities should be brave and back their Computer Science departments to deliver. If a few other departments would have to pull in their belts as a consequence, they would survive. It's not as if they have anywhere else to go.

Here are a few other related articles in this series:

Tuesday, 29 May 2007

Computer Science in South Africa

In 2002, the South African government announced two things: a change in the university funding model which cut funding per computer science student by 40%, putting it below pure maths, let alone comparable subjects like physics or electrical engineering.

Around the same time, the government announced that it wanted to found an “ICT university”.

Clearly, the government thought the universities were doing a lousy job: it cut the funding in an area so important, the president thought there should be a dedicated university in the area.

Let’s look at publications and citations for the top 4 universities in the country, according to the Times Higher Education Supplement international ranking (available through Top Universities), from best down: Cape Town, Witwatersrand (Wits), Kwazulu Natal (merged from Natal and Durban-Westville) and Pretoria.

The following are all searches on the combined indexes, Science Citation Index Expanded, 1900-present; Social Sciences Citation Index, 1956-present; Arts & Humanities Citation Index, 1975-present (all searches done on 30 May 2007).

As you can see, all of the results show some level of research activity with some citations – but nothing brilliant (click on the pictures for larger versions).


Cape Town: 59 publications, 139 citations, 2.36 citations per item.


Wits: 46 publications, 58 citations, 1.26 citations per item.


Natal (includes Kwazulu Natal): 86 publications, 238 citations, 2.77 citations per item.


Pretoria: 84 publications, 151 citations, 1.80 citations per item.

The Natal results are skewed by the fact that there was a period when computer science was combined with geology, so these results aren’t an accurate basis for comparison and I will not consider these further. The others though present a consistent picture. The higher ranked universities have a higher publication count per academic (Pretoria has a much higher head count that Wits and Cape Town), but the general numbers are in approximately the same ballpark. The Wits figures should be considered in the light of the university having badly fumbled the ball on the management of the subject. The School of Computer Science there in recent years has collapsed from 12 academics to only 5, and recruiting is a shambles.

In any case, the government clearly didn’t think all this was so great. The ICT university idea however was replaced by creating a research institute, the Meraka Institute. Meraka has a few new people but is mostly comprised of the CSIR’s ICT division, Mikomtek, which has been rolled into Meraka.

Why, you may wonder, did the CSIR get this funding boost, rather than placing Meraka in a university? Clearly, if the universities are no good, the CSIR, and in particular, Mikomtek, must be a whole lot better. So let’s look at their numbers.


Mikomtek: 6 publications, 2 citations, 0.33 citations per item.


Meraka: 2 publications, 0 citations, 0.00 citations per item.

Now here is an interesting challenge for the reader: explain why the combination of Mikomtek and Meraka is so much better than any university in South Africa, to the extent that the CSIR has been made the sole custodian of this new bucket of money. Of course Meraka is in its infancy and could do better in future. It has after all only been going since May 2005. However, in 2 years, I would have thought that a well-funded institute would have recruited high fliers who would have published more than 2 papers that have made it into the top research indexes.

Perhaps the CSIR’s outputs are in other areas than publications. They generate a large number of press releases, for sure – and those are not listed in things like the science citation index. But that obviously counts for a lot in winning political support.

What about impacts on the economy which can’t be measured by publications?

The universities named here (and of course there are others) have produced thousands of computer science graduates between them. An organization which is not degree-granting like the CSIR has to do a lot to match that scale of contribution. One would expect many publications (oops) and other measurable impacts, such as commercial spin-outs.

For the latter point, let’s consider the case of commercializing the Internet.

In the 1990s, when the technology wasn’t commonplace, many small startups sprang up, touting the concept to business. The CSIR jumped in rather late and despite its massive government subsidy, it wasn’t able to compete. The top service provider in South Africa today, The Internet Solution, was one of those small startups, and was started by Wits computer science graduates.

Commercializing the internet is but one example; I believe it is up to the CSIR to make a case, rather than for me to tear them down, because the case for better funding for the universities is so clear. Universities produce graduates; the CSIR consumes resources. They need to demonstrate that they do so to useful effect.

Disclaimer: I applied for a position at Meraka in June 2006, and am still waiting for a definite response. I applied for a Wits position too, and am awaiting the promised feedback (no word for almost 3 months), so you can see that I am trying to curry favour.

For the record, here is my publication record by the same measure:



19 publications, only 1 citation – fair, not great. Not quite 3 times the entire output of Mikomtek plus Meraka combined. (My actual output is significantly higher than this – but to compare like with like, I am using the same measure throughout.) Then again, if I google on my name, I only get 28,500 hits; Meraka gets 160,000 [counted 14 June 2007] – those press releases really work. I should try that.