May 14

Loathing the Exams

I dislike the exams.

You would probably be thinking right now in your mind, who in their right state of mind would actually like the exams? Of course, no one ever does. I loathe the exams for reasons more than just the exam itself.

Suffice to say, even by Imperial standards, I have one of the worst (or best, depending on your perspective) exam time tables ever. I have twelve papers this year, straddling across eleven modules. And since I am the bastard child hybrid of two departments (namely the EEE and the Computing departments), my exam timetable is going to be screwed up anyway. So for the month of May, I have exam once a week for the first three weeks from the department of computing. Then for the first three weeks in June, I have nine papers from the EEE department. Not exactly the best of ways to arrange the timetable but there you have it.

But this is not why I loathe the exams. I dislike the exams because it gives me time to think and reflect upon my life. It is the time I have to spend among books and notes that gives me time to think. And I realise one simple fact.

I feel lonely.

Indeed, I am lonely. You could tell that I haven’t been updating the blog for ages since I have been kept occupied and busy over the months since the academic year started. But this time, when all the dust settles and I have to sit down and actually study, I begin to think. I get pensive. And I feel lonely. Very lonely.

I could always get myself involved in things and keep myself occupied but I know I cannot possibly do this right now, in the middle of the exams where I have to study. But when will this distraction ever end? It’s just putting things off, putting things onto the back-burner. They will never get resolved.

I really dislike the exams how reality hits in the face.

Permanent link to this article: http://new.acperience.net/2012/05/14/loathing-the-exams/

May 02

Writing the Pascal Compiler

On 7 Feb 2012, I began writing the first lines of code for a Pascal Compiler as part of my coursework. After 130 revisions on 18 Mar 2012, at around 8 pm, I put the finishing touches on the compiler and submitted it. The SVN (a version control system) log is a testament and enduring memory to that whole process. This blog entry will be about the process on writing this monstrosity.

Chronicle of the logs.

The compiler is a complicated piece of software that translates code in one programming language into another, which in this case was from Pascal to ARM. If you are interested in the nitty gritty and technical details of the project, you should check out the appropriate page on my site for this. (This post is still going to contain some kind of technical jargon that might confuse you but I’ll try to keep it to a minimum.) Needless to say this consumed a lotof my time.

I was ambitious. I wanted to fulfil all the requirements of the coursework specification and more. I wanted to go beyond what was required. I wanted to process the tokens, the data passed around in an extensible and modular manner. I wanted the parser to compile the code to an intermediate form. In other words, I was very ambitious. I had to scaled down these ambitions over the course of actually coding the compiler as the magnitude of the task before me became more apparent.

Due to the nature of the tools used in the coursework, for the first time, I was forced to do programming in Linux. I managed to dual boot Ubuntu on my computer and I achieved some basic competence in using Linux at the end of it. It was certainly insightful as I have never realised the power of Linux in its command line. You might argue that it’s old and archaic and inefficient but on the contrary, once you get to it, you can become more efficient by using the command line. In fact, the make script I use to compile my compiler made use of one Linux command (ls) to save me the trouble of writing code that actually replicate its function.

And so the gruelling task of coding the compiler began. I would wake up in the morning, grab cereal to eat and start pounding away on the keyboard to code non-stop. I would use meal times to rest and continue coding away until late in the morning (2-3 am). This continued for weeks. The only things that interrupted this flow were lessons and other pesky deadlines that had to be met. It is pretty haunting to look back at those weeks now in hindsight. I’d imagine this is how crunch time is like for those developers in companies when deadlines are near. This is definitely NOT something I’d want to experience over and over again.

Everyone who has programmed before will know how debugging is often the most detestable part of programming. You would think you have come up with a solution but it just does not seem to work. The cause could vary from being fundamentally wrong in your approach to a simple forgotten line in the code. It is the most depressing. I would stand in my shower thinking of how I could solve the various problems that are still cropping up in my program. Thankfully, I got through those long days and nights and ended up with code files as long as 2951 lines. All in all, I reckon that I have probably written well over 6000 lines of code.

And the best part was that the compiled executable (with debug symbols) came up to about 3 MB. Talk about WOW. If I recall, the executable without debug symbols was around 0.5 MB.

I can safely say that this is my proudest creation in 2012. I’ve worked really hard on it and I’m really glad of the final product. So I hear you asking: how did I score on this? I’m not going to tell you but the feedback below really sealed the deal for me. Suffice to say, I feel that all the hard work I’ve put in was worth it.

Permanent link to this article: http://new.acperience.net/2012/05/02/writing-the-pascal-compiler/

Jan 01

Goodbye 2011, Hello 2012

2011 is over.

I was at Embankment along River Thames, directly opposite the London Eye watching the fireworks (link for UK residents only, sorry) unravel. It was beautiful. The pyrotechnics and the sheer volume of it was really a sight to behold. The only bad thing was that we had to get there at 8 pm and wait for four hours after squeezing through hordes of people to get to our spot. Then after the fireworks, we had to spend near an hour and half to get to a usable tube station (Russell Square, which is pretty far off from Embankment) to take the tube home. The tube was free from midnight to about 4 am.

And so comes 2012. Maybe I will do a resolution post soon.

Permanent link to this article: http://new.acperience.net/2012/01/01/goodbye-2011-hello-2012/

Oct 18

Longest Day Ever

So a new academic year has begun already. As the year organiser said: if we can survive this year, we can survive anything. And my goodness, I just had a longest day of school in my entire life.

I had no breaks at all. It was labs and then lecture straight through all the way till 6 pm. I don’t know how I am going to survive nine more weeks of this timetable but I guess I’ll have to do so… somehow. At least the lessons are more interesting. I have less classes of circuits and electronics and more computer science, which incidentally is my interest.

Just a short rant. I thought I had to immortalise this timetable in a post of sorts.

Permanent link to this article: http://new.acperience.net/2011/10/18/longest-day-ever/

Sep 20

Leaving. A Second Time

It’s the time of the year again. One year ago, I embarked on a journey to London and spent the next nine months away from home and familiarity (well, maybe not the latter so much).

This time round, I leave with mixed feelings. On the one hand, I can’t bear to leave home and all the friends but I am kind of sick of just bumming around. On the other hand, I do not really enjoy the prospects of trudging through the thick stack of notes and study materials for my second year.

Oh well, c’est la vie.

Permanent link to this article: http://new.acperience.net/2011/09/20/leaving-a-second-time/

Aug 24

Colours in Music

A rather random post. I thought of writing something about music that deals with colours. I have three songs to “showcase”.

Coldplay – Yellow

Probably the most famous song of the trio that I am going to write about. This was probably THE song that propelled Coldplay to the top of the charts. A enduring classic even to this day. I’ve been listening to Coldplay a lot recently, probably because of the interest rekindled by their performance at Glastonbury this year. I swear to myself that I must attend Glastonbury in 2013 when it returns and, hopefully, Coldplay will perform as well.

Les Miserables – Red and Black

In my opinion, this is one of the under-looked songs from the musical, other than the obvious crowd favourite “Do you hear the people sing?”. It evokes a sort of nationalism in you when you hear the characters sing about revolution. This version I have embedded above features Nick Jonas singing as Marius, which I don’t think is as good as the original singer from the original Broadway Cast.

Eiffel 65 – Blue

An old song. I just randomly remembered this song when I wanted to write a post about colours. One of my favourite songs when I was in Primary School. Worth a listen after ten years.

Permanent link to this article: http://new.acperience.net/2011/08/24/colours-in-music/

Aug 17

Disinterest in Presidential Elections

2011 will be always remembered as the year when I get to vote THRICE in one year since I reached voting age: UK Referendum, General Election and the upcoming presidential election.

But this time round, I am disinterested in the presidential election. Why? Simply because I feel that the president of Singapore has no real power and influence over the government, no matter what the candidates may claim. Why do I feel so?

Let’s put partisan politics out-of-the-way, since the president is supposed to be above partisan politics. Thus, one can generally classify the candidates into two camps: the “pro-establishment camp” and the “anti-establishment camp”. Even one who is almost blind can see that these two distinctions are merely a retooling of the terms “pro-government”/PAP and “opposition” but since the government doesn’t like to associate partisan play with this election, let’s keep our terminologies in check.

On the pro-establishment side, we have one candidate: Dr. Tony Tan. On the other side, we have the rest. Suppose Dr. Tony Tan wins the election, which I find highly likely: he will simply continue Mr SR Nathan’s role of rubber stamping the government policies and being a smiling face of Singapore for overseas delegates. Suppose one of the other candidates win: we might have a more lively scene where they make loads of noise in the press about the government policies but ultimately, he has no executive power over the cabinet and the Prime Minister can simply ignore him and carry on with what he wants to do.

This is why I don’t really care about the presidential elections.
———————————————–
Let me, for a moment, be a very unscientific pundit on how the results will turn out. I believe Dr. Tony Tan will win but the other candidates will have significant number of votes when added up together albeit insufficient for them to win the race on their own. This is because I feel that many people, like myself, has this perception (whether right, or not) that the president has no power. And so they will be more willing to vote for the “anti-establishment camp” since the ramifications of electing one to become a president will likely have no effect on our country. But because there will be THREE such candidates, the votes will be split and eventually, each candidate will not be enough to win the race.

Permanent link to this article: http://new.acperience.net/2011/08/17/disinterest-in-presidential-elections/

Aug 08

The Difficult Bus Rides

Warning: This is a rant.

Sometimes, I wonder if some bus drivers are rushing to get somewhere.

They love to brake faster and harder than they do in bed (okay, bad joke). They accelerate as quickly as the revving bus engines can allow them to and then brake at the very last moment possible. What results from that is a bunch of disgruntled passengers on the bus. This is especially bad if the bus is crowded during the rush hours.

There was once when I was on bus 131 outside SAFRA Mount Faber. There was only one poor sod (i.e. me) who decided that standing on the bus was less of a hassle then trying to sit down with my ear phones on, a shoe bag in one hand and a book in another. So when the driver did his signature move, braking as if he was about to hit a cow alongside a bus stop, I was almost flung from my perch which consisted of me leaning against the metal pole with my right foot stuck out to try to cushion any motion that my inertia (physics!) would cause when the bus braked. Obviously, it was inadequate.

So after that bus stop, I decided to call it quits. There was no point trying to resist against such relentless braking and acceleration. I simply placed my shoe bag between my feet, clamped it tightly and held onto the metal pole with my left hand while my right continued holding onto the book. When the bus braked, instead of trying to resist my inertia, I simply let my left arm stretch out as far as it could go, holding onto the metal pole, while my upper torso went all out to try and continue the motion it was engaged in several microseconds ago. What a sight that must have been. I did all this while simultaneously engaged in nonchalantly holding the book in my right hand and reading.

This phenomenon is not unique to that bus. I had the pleasure of experience it again today, while standing. This is the primary reason why you are reading this entry which, I’d admit, seemed to have been dramatised a little.

Permanent link to this article: http://new.acperience.net/2011/08/08/the-difficult-bus-rides/

Aug 08

The Singapore Identity

It’s 8/8/2011. Almost forty-six years ago (off by one day), we were thrown into the world to fend for ourselves and we have since come a long, long way. I’m not here to talk about our history – on the contrary, I feel like I have something to say about our future, on a rather apt occasion – national day.
———————————-
I really admire the Scots. They have had a tumultuous history of asserting their own independence through the last few centuries. Yet, even after the union with England in 1707, they have continued to keep their own identity which is widely recognised in the world (though not entirely exclusive to the Scots): bagpipes, tartan kilts and Scotch whiskeys. While they are seeking independence after managing to wrestle a devolved parliament from the UK (which I don’t think is a good idea, economically at least, but I’m not really qualified to comment), we have to ask ourselves, especially now when Singapore is celebrating its independence day, what is the Singapore Identity?

I would define such an identity as something that all Singaporeans can identify with. It has to be something that is common and utilised by everyone who calls himself/herself a Singaporean. It has to be something that is part of our everyday lives. When you approach this entity, you must immediately feel at home with it. If you meet a stranger in a strange land who wields this entity, you must be ale to feel familiar with this stranger. It cannot be the cuisines because there is a plethora of cuisines available and not everyone eats everything. Not trying to sound like I came up with this idea, I think the answer to this is Singlish.

While the government frowns upon the use of Singlish (though they seem to have relented somewhat in recent years), it is not all doom and gloom when it comes to the use of Singlish. People generally know that they have to switch to using Standard English when appropriate (e.g. communicating with foreigners). It is not to the detriment of the country to use Singlish once in a while, for fun, humour and among close friends while not taking things too seriously.

Let me present myself as the sole exhibit to illustrate the point. I come from a typical working class family, not rich and not too shabby either – we could make ends meet. My parents are not well-educated in English. I think I could barely understand English TV Programmes until I was in my tweens. I speak Mandarin at home, and practically babble Singlish with friends. With my background out of the way, let me recount a tale of how I survived in London during my nine months in my first year of study.

I was under no pretence that I am going to change the way I speak to sound “British”. I was not going to adopt a Cockney accent or speak “Queen’s English” (though I’d admit I love these accents – they sound like music to my ears). I was going to speak to our own brand of Singapore English with its generally flat enunciation and non-rhotic delivery. I figured that the things I say are going to matter more than the way I say it. And it worked well.

When speaking to European friends, I tend to speak slower (Singaporeans tend to speak too fast!) and remove all the usual quirks of Singlish like la and lor. When I speak to my Singaporean friends, the speed picks up and all the pleasantries are thrown out of the Window as all the hokkien and malay and mandarin return to take their places in my words. I generally get understood pretty well, though I still need to work on slowing it down a little!

On the contrary, my inexperienced ears face problems trying to understand what the others are saying at times. It is said that the more North you go in the UK, the harder it is to understand the accent. I find it hard to understand what some of the Irish and Scots say at times and I am usually embarrassed to ask them to repeat their words a third time and so I just nod my way out of a potentially awkward social situation. It is, of course, no fault of theirs. I need more practice!

My point is that with proper code-switching, speaking Singlish is of no problem at all! Instead of campaigning to eradicate Singlish, the government should promote the use of Standard English in the right contexts and situations instead! And I am not alone in thinking like this.

In Neil Humphreys’ (rather old) book “Notes from an Even Smaller Island”, he wrote at length about how he felt Singlish was a quintessentially Singaporean quality. Looking back at a chapter written almost ten years ago, I find it increasingly important to assert our own sense of national identity in this day and age of globalisation where cultural seepage from other countries through the internet can severely dampen our sense of belonging with our home. How can you feel like at home if there is nothing unique about this place that tethers you back?

Singlish is “Uniquely Singapore”, to quote the Singapore Tourism Board, even though that phrase is technically grammatically incorrect (for all the Grammar Nazis out there!). But hey, this is Singlish we are talking about, and we can be more lenient on the technicalities of English grammatical syntax, could we? ;)

Do not attempt to eradicate Singlish. Promote the use of standard English at the right juncture in the right place at the right time. It is one identity that permeates our society, independent of ethnic groups and social strata. It is Uniquely Singapore.

———————————-

For the first time in my life, I am going to attend a National Day Parade with my family, courtesy of my brother who managed to ballot for four tickets. After being away from Singapore for a good nine months, I suppose it will be a nice day to feel patriotic and express our gratitude and love for a country that has given us a lot (despite its shortcomings, but who is to say that any country is perfect?). Though it might seem “trendy” on the internet nowadays to diss the country, it is one day where I will truly feel “Singaporean” among other Singaporeans.

Permanent link to this article: http://new.acperience.net/2011/08/08/the-singapore-identity/

Aug 03

How I Grew Up With Harry Potter

It has been more than ten years since I picked up the book Harry Potter and the Philosopher’s Stone when I was eleven or twelve. I remember reading up till the fourth book before I joined millions of readers worldwide waiting eagerly for each of the sequels. These ended in 2007 with the release of the last book and tonight, after everyone seemed to have caught the film, I finally watched the final episode of the saga in the cinemas.

Supposedly the "birthplace" of Harry Potter which I visited this summer, in Edinburgh.


What a journey it had been. If you looked at my old blog, you can find sparse references to the series scattered throughout the years. From the spoilers of Dumbledore’s Death to the title for the last book, I remembered all the excitement I felt when I could hear any bit of news about the next sequel. The fifth book was released exactly on my birthday in 2003. I remembered pre-ordering it online and having it delivered to my house at about 10 am that morning. And, no prize for guessing, I spent the whole day at home reading the book. Probably one of the nerdiest birthdays of my life. That enthusiasm died down slightly for the last two books as I entered the world of O and A Levels, but they would always surge back when a new book was published and I would literally spend one whole day reading the books. Of course, these culminated in the final book when I simply woke up that day to grab a copy off the book shelves at a book shop (and was surprised to find no queues!) and then spending the rest of the day at home, reading it.

I grew up reading the books, just as Harry had. Even the actors who portrayed them have grown up as well. I was surprised to find that Neville Longbottom’s actor is actually just several days younger than me! But of course, I’m sure he has deeper pockets than this poor student here.

I never liked the films, to be honest. I felt that they butchered too much of the story, but I guess that had to be done if you had to translate a novel worth hundreds of pages onto the silver screen. And so I went into the cinema this evening not expecting much, and I was not wrong. Aside from the stunning effects, and perhaps sub-par acting from some, I felt that the film laid an appropriate end to the saga. I laud the people involved for having the determination to finish the mammoth task of finishing eight films (aside from the fact that there was loads of cash to be made).

And so tonight, I end off this journey with the film. Thank you for having been there when I was growing up. Perhaps one day, when I have the time, I will sit down and read those books again, for nostalgic sakes.

Permanent link to this article: http://new.acperience.net/2011/08/03/how-i-grew-up-with-harry-potter/

Older posts «