Wednesday, March 17, 2021

Clarke Quay, Bras Basah Complex, and Back from the Edge

Today's blog entry is a little more flavourful, seeing that I have actually gone out of the apartment.

I resurrected an old tag, sms-musing, that tags posts that were conceived in the field while I was doing something else, which in today's case, was waiting for the bus. I might just keep using this tag if I have such epiphanies each time I'm out in the field, probably as a way of capturing those in-the-moment thoughts that come from doing something more stimulating.

Speaking of stimulating, I went to grab my favourite sushi for lunch today. I have been following them since a long time ago since their first stall in VivoCity, and their aburi nigiri is to die for (get the assorted one---comes in stacks of 10 and is borderline omakase). The rest of the menu items are generally good as well because of Chef Johnson's consistent use of fresh ingredients.

My record was eating 40 pieces of those delicious assorted aburi nigiri sushi. I've stopped doing that for a while now because I wanted to lose weight. Sushi, delicious they may be, still has lots of carbs in the form of the rice after all.

I used to be a little less loud about this place, because the more people realise how tasty their food is, the harder it may be for me to find a place to sit there when I head down to dine in. However, times have changed, maybe I won't live long enough to keep supporting them I mean thanks to COVID-19, the F&B businesses are getting quite badly hit, and I would be sad if JJ.com Fish Mart goes away completely. They are located at 6 Eu Tong Sen Street, The Central #01-68/69, Singapore 059817. If you are reading this blog entry, and are in Singapore, please head on down and support them. =)

------

After my comfort food, I went on for a walk along the river and headed towards Clarke Quay proper. Seeing the tear down of Liang Court brought out some sadness in me. Liang Court was, back in the day, the place to go for anything that is of the Japanese culture. Recently, I had spent some time there prior to its demolition, and loved the Kinokuniya book store that was there. There were also a craft beer place, and it was also the place where I went to for my slim hip flask.

All these have gone down the path of history now, like all things in Singapore. This is in contrast with Melaka---going there with a fifteen-year separation revealed almost no changes whatsoever.

Not sure what to feel there, but it is just a thing I suppose.

The walk was supposed to take me from Clarke Quay Central through Clarke Quay, follow Hill St up north before ending at Peace Centre.

But I got side tracked. A while back, I talked about Seng Yew Book Store, and claimed that it was still alive. But that was based on Internet pictures. So I thought to myself, `hey, since Bras Basah Complex is sort of along the way, why not check out the place to confirm it?'.

And that was why when I was already at the vicinity of the National Museum of Singapore, I decided to switch over and walk towards Bras Basah Complex instead. It took me a while, but I got there...

...and promptly got suck into 书城音乐书局, or more affectionately known as 书城 for short. They have an English name (``Music Book Room''), but I have never heard of anyone calling it by that name. I bought two books, one on 笛子 techniques (and associated training pieces), and one on 箫. I was tempted by the melodica by Suzuki music, as well as two 膜孔-less 笛子 (it was a G-梆笛 and a D-曲笛). The melodicas (``melodions'' using Suzuki Music's branding) were easy to not be too tempted by because they were in the hundreds for price.

But those two 膜孔-less 笛子 were sub-fifty each. So tempting... but I remembered that I have a Grenaditte piccolo and a Grenaditte treble flute that covers the range of the G-梆笛 and D-曲笛 respectively. They were also chromatic in nature, and actually had a wider compass than the two 膜孔-less 笛子. And so the temptation was gently pushed away.

I spent the next couple of hours just walking about Bras Basah Complex, exploring various stores, staying clear of bookstores (and Artfriend) in general. I did enter Swee Lee though, and found that their renovated premises to be more stylish than before.

As I wend my way through, I finally reached the top of the commercial part of Bras Basah Complex, and sat down to this interesting panorama:
It was just this strange juxtaposition of a public housing residential apartment [behind me and atop Bras Basah Complex] while the buildings around were obviously non-residential in nature, with the National Libray clearly within a stone's throw away.

I would've sat there longer had the rain not start to pick up and scatter me away from the open air ``roof-top''.

------

I think that my urge to revisit many places again might be related to the concept of transactive memory. Mumbo-jumbo aside, the premise is that when we remember things, we tend to build strong associations as part of the encoding of the memory. Association is a very strong mechanism in the reinforcement of a memory, it is part of how the method of loci can be used to memorise stupidly long lists of things.

More mundanely, it also means that if one's memory of a place was when one was with someone else doing something, it often is the strongest memory of that place.

This is bad for me because it means that I do not have another way of looking at the [objective] reality, which means that I will keep getting reminded of a reality that is no longer true. This constant reminder from an old memory is a great way to develop more and more ``down'' episodes.

As I mentioned in my earlier SMS-musing, life's experiences (as both mental and physical ones) have hysteresis loops involved---even when we ``go back to a previous state'', we don't actually go back to a previous state verbatim since we have already been conditioned with whatever that has happened in between visits. Memories cannot be erased, but they can be put into a different context, the so-called ``time will heal'' effect. And the fastest way to put memories into a different context (thus dulling the one causing a stronger [negative] affect) is just to build new ones.

So visiting Bras Basah Complex alone today doing similar enough but different things compared to the time that I was here with someone else helps to recontextualise the memory and reduce the pain that it will cause.

Am I just rationalising things to myself, or is there another purpose behind this?

------

In other news, I have a new ear worm.
I first heard it while I was at my favourite bar.

What drew me to the song was the repeated refrain:
Back from the edge
Back from the dead
Back before demons took control of my head
Back to the start
Back to my heart
Back to the boy who would reach for the stars
Oh, back from the edge
Back from the dead
Back from the tears that were too easily shed
Back to the start
Back to my heart
Back to the boy who would reach for the stars
Who would reach for the stars, yeah
(Lyrics sub-texted from Musixmatch.) It's not that the lyrics are particularly deep, but that the delivery of the lines just resonated with me. It's a mix of wistful, anger (especially from the line beginning ``Oh, back from the edge''), and a certain victorious feel to it.

That's about all I have for now. Till the next update.

SMS Musing #8

While waiting for the bus:
Life is one big hysteresis loop. Things happen and affect us, and even though after that we sort of "get back" to where we were before, we never actually do. Because the context has changed, and more importantly, the innate bias encoded in our mind has changed due to the experience. It is yet another agathokakological set up, since the retainment of memories and experiences encompass both the good and the bad -- it is not possible nor is it healthy to keep only one set without the other. Life's experience is the autoencoded sum-total of all experiences.

Tuesday, March 16, 2021

Hougang Green Shopping Mall

I got a head shave again today as the hair was starting to get rather unruly. I went on a short walk about the neighbourhood once more, but headed northwards instead of westwards, ending up somewhere in the Hougang Green Shopping Mall region.

Wait, Hougang Green Shopping Mall?

I swear that at times, I have no idea how to process the different crazy names that we give to our places. The reason for my incredulity is that despite being called a ``shopping mall'', Hougang Green is more like some kind of open-air two-storey commercial building, something that is a little bit more removed from what one might normally consider a shopping mall. But to be fair, the idea of a multi-storey air-conditioned shopping mall is only common from the late nineteen nineties or so, when the regional centres (a concept from the early nineteen eighties) started having these centralised multi-storey air-conditioned buildinds that mimicked the shopping malls that were to be found in the major shopping district that is/was Orchard Road. Many of these regional centres had terrace house-like shopping arcades that were the proto-shopping malls, just about a step above just setting up shop along the road.

And when the regional centres had their upgraded shopping district-esque shopping malls (and the subsequent ``super-scaling'' into multiple such malls within the same region---see Tampines and Paya Lebar for examples), the fringe areas like Hougang and Sengkang started to have smaller scaled versions of such shopping arcades that were multi-storey buildings that were better classified as ``shopping malls''.

Anyway, Hougang Green Shopping Mall had quite a few interesting shops there. My favourite fried chicken place, Arnold's Fried Chicken, has a branch there. I did not eat there though, getting accidentally shanghaied into trying food from Chef's Hats that was also located in the shopping mall. I tried the burger set lunch, the carbonara penne, and escargots. They taste alright, and their price were closer to that of a café pricing, which is also okay I suppose given the slightly more up-scale choice of ingredients and cooking style. I would eat there if I wanted the ambience to do something else in addition to having something more traditionally western in style as opposed to the usual bak chor mee, but if I just wanted to have a tasty ``high class'' burger or escargots, I would probably choose somewhere else, if not for the fact that Chef's Hats was literally within walking distance.

Eh, support local. They have their good points, I suppose. ``Satisficing'' is often a better deal than ``optimising'' anyway, if the recent chapter that I was reading in OpenStax College: Organisational Behaviour is anything to go by. Sometimes I feel that the lengths that some people go to find the ``perfect'' food place is just a bit too excruciating---sure, the ``perfect'' food place probably tastes more amazing than the less-than-perfect one, but when one starts factoring in the effort/time taken to research to find that place, and then the time/effort needed to actually get a spot in the queue to eat there, all that ``perfection'' gets severely marred, with the expectations set so high that when reality strikes, it hits like a truck, and in a bad way.

My rules of thumbs for a lot of things are very simple, really:
  • Is it good enough, objectively?
  • Is it ethical?
  • Is it cost effective enough?
  • Is the effort to get the next better option an opportunity cost that I want to pay?
Bullet point one sometimes does not have an optimisable search space, simply because there are dimensions of the problem that I may not know of, or even if I do know of, have no way of accounting/controlling for them. In short, it is less about full objectivity, but so-called bounded rationality-based objectivity, or ``is it good enough given the information that I know in the time horizon that I need to have the decision made''.

Put in that way, it would seem that I am not exactly an achievement hunter. And anyone who comes to this conclusion is much closer to the truth than they would be expecting. Don't get me wrong, I dislike losing like the next person---I'm not so inhuman that losing causes absolutely no reaction in me. However, I am not one who only seeks to win, which is problematic in this world because the ``need'' to win is the very definition that powers this post-industrial capitalistic world. To many people, this need to ``win'' ensures that they are more likely to make decisions that can go against their conscience and/or put them in a long-term advantage, if their short-term goals can be met.

For a ``win'' cannot be defined without a goal. Long term goals are muddy by definition---for instance, what does ``long term sustainability'' as a goal mean? More importantly, how can that ever compare against the much easier to articulate (and actualise) short term goal of ``maximise shareholder value''?

For the record, I am not demonising the idea of business. Business is an important process to match what people need against what can be created to satisfy this need through the resource allocation process via economics. But the conduct of business can sometimes be rather shady and superficial. Many regulations that are devised as laws govern less over science and technology per se (reality acts as the final arbiter of what can and cannot be done) but govern more over the various ways businesses may be conducted. New laws are often created to patch any loop holes of some previous conduct of business that was either deemed to be detrimental to society by the rabblement, or by the government, either through the government's independent observation of the abuse, or through the various lobbying efforts by other businesses whose existence and success may be negatively affected by the loop holes that were exploited.

Business is one of the few things that take something that modern societies value the most (money) and make more of it (i.e. more money), and thus gains a certain amount of fascination and obsession by many people. Many do it against good ethical/moral behaviour and the ``more noble'' approach of advancing human knowledge, just so that they can gain the type of recognition by being an amasser of large quantities of what modern societies value the most (money).

So my admonition still remains: as crude as it sounds, whenever anyone makes a pronouncement about how something is ``good'' or ``bad'', always look deeper into their motivations, with money being a very important source of motivation for many, or as they say, ``follow the money trail''. If they are believers, the standard of behaviour required is higher, because they are supposed to know God's views on what counts as moral/ethical behaviour, so they have little excuse to do things that are morally sketchy in the pursuit of money. Non-believers have no excuse either---they may not know of God's views on correct morality, but they should at least have enough critical thinking present to really see what it is that they are doing.

In either case, I am not advocating being the vigilante to demand that these pronouncers follow what one believes in---that is stupid and unlikely to work. But at least when one needs to deal with such people, with a better understanding of their motivation and the inherent ethics/morals, one knows the better way of interacting with them to avoid either promoting that which is morally/ethically questionable, or to just walk away.

Anyway, that's all I have today. Till the next update.

Monday, March 15, 2021

Ides of March

Immediately after π-day is a great day to make a Shakespearean joke.
CAESAR
The Ides of March are come.
SOOTHSAYER
Ay, Caesar; but not gone.
Indeed, at the time of writing, the Ides of March isn't completely gone either, seeing that [in this time zone], we are still on March 15.

Today was mostly focused on reading the Bible. There is the usual daily devotional readings from Bible in One Year 2020 with Nicky Gumbel (I'm on day 311 of 365; once I'm done with this, I will switch over to Through the Bible in One Year by Dr Alan B. Stringfellow). I finished up the last half of Matthew (in NKJV), and worked my way through Exodus again via listening to the reading of the NKJV.

``But wait,'' you might ask, ``didn't you do that just about two weeks ago already?''. Well, yes, technically I've listened through Exodus already, but ah, it was in ESV, not NKJV. There is ``a difference'' only because of my completion stint: like almost everything I do, I keep track of which books of which Bible version I have been reading. And I am ``only a few books'' from completing NKJV, which means that after I completed all 66 books of NKJV, I can add another entry to my read list.

Part of the reason why I maintain such a tracker is to validate this statement that I keep hearing from many people: ``Oh! I have read the whole Bible more than ten times'' (emphasis mine).

I'm just wondering if it is possible to read ``the whole Bible more than ten times''. Maybe there are some books that keep getting revisited so many times due to their importance in doctrine and/or theology that it feels as though they have read the whole Bible more than ten times.

Since I have doubts, I set up some kind of data collection and see what I get.

Notice that some books have fractional distributions. This came about because while I was on the Bible in One Year 2020 with Nicky Gumbel set of readings, there were times that I spent roughly half the book reading using ESV, while I spent roughly the other half using NKJV. So it felt more accurate to just mark the book's coverage as being shared across versions. This also means that the vertical coverage of versions end up not counting such fractional coverage, which is reasonable I think.

------

It's the end of month two of my sabbatical. Frankly, it doesn't feel like anything other than ``natural''. Is a little strange to just wake up, and plan about three big things to do (each thing covering about 2.5--3.0 hours), do them, and then turn in for the night. No need to scramble and panic due to uncooperative people, mind is significantly less foggy due to the relative freedom to just think about things without having to worry about how to sugar-coat things to make excuses instead of actually finding a solution.

Really seductive to keep this going on for as long as it is possible. Again, I don't have apartment/wife/children/care to ``feed'', so monthly expenses can be kept low enough that whatever I have lying around can be made to stretch for a while.

Mmmm.

Funny enough, I haven't been gaming much for the past month. Yes, I played The Outer Worlds, but after that, I kinda just went back to reading, playing some flute/笛子 here and there, and watching YouTube videos of cool people doing cool stuff that I might like to do, had I have more space to run a physical workshop.

Alas, I am stuck with only a mental/virtual one over my computer, in which case is Eileen-II.

I did think about why people are more drawn to things that involve mechanical engineering (think gears, rolling marbles, big builds and the like), and the answer seemed obvious to me: people are drawn to things that involve mechanical engineering because mechanically engineered things can be filmed well. I mean, yes, people like ElectroBOOM and Mark Rober do some cool electronics projects, but the types of electronic projects that they choose (and the way that they present them) are those that can be filmed easily.

Imagine, if you will, a video showing the type of lab that a computer scientist would work in, messing around and building [say] a toy Huffman encoder, a type of compression software.

Most of the things are going on in the computer scientist's head, and wanting to film that would require the said computer scientist to pull up a white board and start to draw things out using technical jargon just to save four more white boards of pre-cursor information.

And unlike the visceral view of someone getting hurt [in a controlled way] (I'm looking at you, ElectroBOOM), watching a computer scientist doing debugging is super boring since it is a lot of sitting in front of the screen and staring at code, writing random-looking state dumping statements to check for various invariants. Unless said computer scientist monologues the thought processes, which may make for either a short video, or a confusing one due to jargon.

I mean, the closest example of the monologuing is from the LockPickingLawyer, who demonstrates how he picks certain locks by sounding off the steps that he is taking, and verbally confirming what his fingers are feeling on the lock pick ``nothing on one; two feels binding, got a nice click out of him; nothing on three; four feels binding, got a click on that, but there is some counter-rotation, so we'll ease up on that a bit; nothing on five; going back to one...''.

Hmm.

Anyway, that's all I have for today. Again, for those who suddenly appear here and read what I am writing, it is not the case that I write here daily---it is just that I am on a sabbatical for now, and I promised myself that I would write something once a day. Most of the time, it would appear that writing a blog entry in this blog is the thing to write, though sometimes I do write some poems, or even stories.

Here's to another fruitful month in my sabbatical. Till the next update then.

Sunday, March 14, 2021

Happy π-day!

Happy π-day everyone!
I love π-day---it is a day where, no matter where I was working at and who I was working with, I would find the time to scour around for a [large] pie to share them.

I love π-day because it is a great day to share my inner (hahaha... ``inner'') geekiness with those whom I spend a lot of time with. It is one of the few geek-oriented festival days that can be easily understood and associated with (try explaining Star Wars Day without explaining the whole story of the Star Wars canon, or the even weirder Mario Day without explaining who Mario is) since most people will have some kind of passing familiarity with π through their interactions with any level of mathematics.

π is one of the first ``strange'' mathematical constants that many would know of when they were learning about circles and their associated areas and diameters. Some would happily remember it as 227 as the first approximation, before the non-repeating decimals of 3.14... are taught. Bigger nerds will remember the next best approximation as 355113, and then fall in the rabbit hole that is continued fractions.

Those who go further than primary school mathematics will learn of all the different fun of π. Firstly in the form of the change of ``natural'' angle units into radians, where a full revolution is 2π rad or just 2π (radians are so natural that they are technically a dimensionless quantity). Then π will start appearing as seemingly ``magical'' constants when various summations and integrals are taken into account, especially in the world of statistics (normal distribution, anyone?).

Those who aren't that mathematically inclined will remember some nerd whose claim to fame is the dubiously useful ability of reciting the digits of π to a thousand places or more, when about 15 decimal places of it is good enough for Jet Propulsion Laboratories (JPL) in their space applications, and also from the article, 40 decimal places of it are good enough to figure out the circumference of the visible universe with an absolute accuracy equal to the diameter of the hydrogen atom. Nowadays, we often hear of how fast a computer computes a certain [large] number of digits of π as a type of benchmark for the computer's computation speed, or as a way of stress-testing the machine.

There are those who pooh-pooh π-day, claiming that π is a usurper of the True Constant of the Circle that is τ (τ=2π), and that we should be celebrating τ-day (June 28) instead. Personally, I don't really care much about that particular line of thought---everyone has their choices of course. However, since τ-day was created almost in defiance to π-day's success, it has a strong Johnny-come-lately vibe to it that makes it just a tad more contemptible, though I would not stoop to making that an active sabotage.

Anyway, this year's π-day is a quiet one. It falls on a Sunday, and I am not working for anyone at the moment. So I will just enjoy this circle (2 pies, i.e. 2π, get it?) my own today.

Oh, this post is deliberately set to go out on March 14, 15:56hrs (SGT). This corresponds to the mixed base number of 3.141592-ish. The minutes is 56 because there isn't such a thing as 92.653589793 minutes, so I just used that to mimic the percentage of the hour.

Saturday, March 13, 2021

``Almost Surely''

I could be writing a file I/O module to support the ghetto Huffman encoder/decoder I wrote this evening, but I think I will save it for tomorrow instead, where I will then think about how to further enhance my understanding of flute/笛子 harmonics for devising a more systematic set of advanced techniques on the much lower flutes/笛子.

I still haven't played a video game. Strange huh?

Anyway, I want to talk a little bit about a thought I have regarding the resolution of the apparent contradiction of the sovereign nature of God against the free will that is apparently available in that of a human. This concept came to me as I was listening to the message as presented by the pastor at church earlier this evening.

When people think about God's will, two fallacies are committed. The first is that God's will is always about doing things that they (i.e. the person thinking about this) will see immediate benefits to whoever is thinking about God's will. This is often a central point of many refutations against those who ask things like ``if God is all-knowing, then why does He not help me now when I need it `the most' ''. Primarily, God's will isn't about furthering any single human's life in the sense that we understand---it is about furthering His overall plan for humanity to drop their sinful nature and then to glorify Him. Secondarily, it is often a problem of what I call ``temporal scale mismatch''---God is the definition of asymptotic time since He exists outside of time and space as we know it. So the time-horizon for the fulfilment of God's will is at least א‎0, i.e. at least countably infinite (the units do not matter if we are talking about infinities, since a unit is just some finite scalar, which is nothing when compared to infinity), while our puny mortal time-horizon is limited to only about 100 years, if we are lucky. The Bible, the source of God's Word, does not hint on anything remotely relating to specific deadlines in terms of prophecies---all it often does is to set up a series of signs that one needs to observe before the main event. But note that even these set of signs only declare their order [sometimes], and not the duration that spans between the signs.

Given that, it is thus very unlikely for the prophecies made of God to happen in any specific person's life-time, which is alluded to with the metaphor of ``...like a thief in the night...'' (Revelation 16:15, 1 Thessalonians 5:2, and 2 Peter 3:10, to name a few).

That segues into the second fallacy: the assumption that God's will is deterministic. I think that a lot of the big arguments about the collision between God's sovereignity over how the universe operates (or more microcosmicly, how people operate) is the assumption that God's will is like a computer program, a formulaic antecedent→outcome ``machine''. With that fallacious assumption, people get understandably uncomfortable when they try to reason about free will, arguing that if God ``is real'' (conflating existence with determinism), then free will is not possible because God's all-knowing nature would render individual thought and decisions impossible.

I don't think that God's will is deterministic. I don't think that the Bible portrays God's will as being deterministic. Don't get me wrong, God has defined rules that are clearly of the form of antecedent→outcome, but the caveat is that very few such rules have a hard deadline. The rules that have some kind of ``hard'' deadline involve those of rituals in the Old Testament, but those are rather cyclical and are largely done/led by the priests of old. There are, however, very little indication of the time duration between antecedent and outcome, and is exemplified within the Bible itself (see the time duration between when King David committed a sin against God and when he was punished (2 Samuel 11:28, then 2 Samuel 12:18)---we only know the order of the events, but not necessarily specifically when).

God's will, based on my current understanding of the Bible, can be understood as the set of ``almost surely'' temporal events. This has several implications: it means that God's will does not contradict the prophecies by virtue of the fact that the prophecies are the temporal events that will occur ``almost surely'', but the actual path through the temporal event space by the universe is still subjected to the statistical effect of combining the multitude of individual free will. Put in another way, our free will can still allow us to make localised decisions that do not affect the overall thematic movement that is characterised as God's will.

Without going through all these mathematical concepts, that is basically what the pastor said at church today. There is no contradiction because God's view of the universe is unfathomably larger (in both space and time) as compared to us, that the free will that exists within us can still be exercised without necessarily screwing up God's will, i.e. in the end, God is still in control, no matter what we believe we can do.

So if a series of action now leads to, for the sake of argument, World War III, it is not because God has forsaken us, but that World War III (while detrimental to those involved in it) itself is a catalyst for yet another ``almost surely'' prophecy of God's will (communicated or otherwise).

I think perhaps part of the reason why the Bible is written in the way it is (and getting the misinterpretation that it probably does not deserve) comes from the limitation inherent in trying to record and communicate the big concept of God within the very primitive and limited media that is the written word in the Bible.

I wonder if things would have been different had Jesus's first coming, crucifixion, and resurrection appeared at an era where it was possible to capture and retransmit more than mere words, maybe as a podcast. Would that have made it less likely to be misinterpreted?

I suppose that there's no way to know. After all, God sent His Son at the time that He did because He had a reason to do so at the time and manner that He did. Perhaps it was time because the sending of His Son was how He could redeem all of humanity, both the Jews and the Gentiles, and sending His Son at any other time would not have as great an impact as compared to when He did it. But there is no way for any of us puny mortals to know about this.

Friday, March 12, 2021

Removing the Lint

I promise this is the last entry for the day.

I didn't play any games, preferring to watch more ESA 2021 Winter VODs, well specifically the Pokémon X one. I've always enjoyed the Pokémon runs in general---they are long relative to most other games that are speedrun, but a lot of thought goes into the routing of which Pokémon to pick up, what statistics to look out for, what items to get, and movement optimisations. Pokémon speedruns are also where the ``X-items'' (X-ATTACK, X-SPEED, specifically) and ``repel items'' are extensively used. And since the runs are usually at least an hour or two, the couch commentary is usually very chill with lots of funny conversations going on as they explain the mechanics for that particular generation of Pokémon and tease each other. It's a very relaxing watch most of the time.

I did spend some time working through pylint results on the recent Huffman code, the sitemap generator code, and the basic database object for my Bible text mining set up.

I've used linters before, but never one for Python3. Let's just say that I've learnt quite a few things from it that may make me reconsider the style that I have been using for Python3 till thus far.

Anyway, it's shower time, then bed time.

Till the next update.

Nostalgia from School Songs

Okay, a post at stupid o'clock is probably not as fun as it might be. So here's something a little bit more nostalgic.

In Singapore, we have schools, and schools have school songs. These are something akin to the national anthems, except at the scale of the schools instead.

The one thing that we don't usually talk about is how we usually sing them every day at the start of the school day---no pop song even survives this level of intensity. With that, of course, comes some serious nostalgic vibes. To me, this nostalgic feeling is really quite agathokakological (my new favourite word after defenestration)---there is the good of something familiar from a time long ago that was a part of my childhood, but there is also the somewhat bad of the levels of conformity that have been ingrained from a very young age by this specific society that I grew up in.

Anyway, I brought this up because I had been digitally remastering the lead sheets of the school songs, because I can.

First up is from my primary school. For reasons of avoiding getting smacked down with automated copyright take downs, I will refrain from naming the school in writing (it is in the image though, so see for yourself and nod your head quietly).
This is circa 1997. The school song is printed behind the front covers of the old A5-sized ruled writing books that had brown covers with the school crest up front. This one was remastered from one of those old [thin] writing books that I found while I was spring cleaning and preparing my shelf to finally reclaim my own space at home.

This next one was only remastered today.
This is circa 2001, and is from the speech day booklet. The original quality was terrible---it seemed like a facsimile of a facsimile of the original handwritten version that was handed down through the ages. The lyrics were hand-written (not a problem), but the staves had poor definition, with note heads, accidentals, and stems a smeary mess. It is the most sophisticatedly set up lead sheet, since it actually has four-part harmony on it. I could have improved on the remaster by combining rests and maybe reducing the fermata to only appearing once per clef, but it feels a little too much effort. I remember that every time we sang this school song, we always ended up about an octave higher, and that the feel of this piece was less rousing and more like some drunken poet reciting his poem, which is probably less far away from the truth than expected (except maybe for the drunken bit).

The final one is from the time I was in junior college.
This had a full concert band backing it ``live'' on Fridays(?) when we would assemble in the school hall for the morning assembly. I think it actually shares the same song as the affliated secondary school with it. I have had lots of interesting and happy times at my junior college, even volunteering to return for nearly two years after that while I was serving out my national service to train up the existing students for competitive programming at the National Olympiads in Informatics, and even the National Software Competition (NSC) held by Singapore Polytechnic, though the format of that competition now is different from the past (and so I'm not linking to them). The old NSC was more like the ACM ICPC, but geared towards secondary school students instead of undergraduates in that one fielded a three-person team and with one computer to program on using languages of the team's choice. In the old days, it was a choice of [Turbo] C, Microsoft QBasic, or [Turbo] Pascal, but it then evolved to also include Java. The competition was very algorithm-heavy, with speed as a major factor as well.

Anyway, nostalgia is just a rose-tinted window to the past. There are lots of good things there to reminisce fondly, but there are also many, many bad things from the past that I would rather not remember, except for the fact that they too have contributed to the me that is today.

It is said that those who forget history are doomed to repeat it, but I think that it is more of a case of how we, both individually and as groups/mobs, have certain thought patterns that keep recurring in an imperfect manner. Some of these thought patterns are beneficial to us, but there are some that are not, either through context or otherwise. In either case, ``knowing/remembering history'' is less about memorising the details of what had happened, but about being made aware of the thought patterns that one had gone through then, together with their consequences.

That last paragraph is important to myself because as I am starting to re-discover who I am, really, it is important to not fall into the traps that un-mindful thinking would lead me to due to the old thought patterns.

As I might have pointed out before, it is really seductive to just hermit up and ignore the world outside; as weakly introverted-dominant thinker, this temptation is real. But it is not beneficial to future-me---mostly because I am not rich nor powerful enough to continue to stay hidden from the world this way. Despite the treachery of the world, it is impossible to stay completely segregated from it, since I live right smack in the middle of an urban city, and have the ``highest skill levels'' [relatively] in things that require working at so-called higher industries.

Unless of course if I off myself. Then all these things are academic in nature and have no other use. =)

But no, suicide is distinctively off the menu.

I just realised that I have not actually played any video games in a while, having defaulted to doing more reading and pursuing other semi-random geeky interests. Maybe I should rectify that.

Just maybe.

...and Suddenly, Huffman is Basically Ready

Okay okay, I know it's stupid o'clock.

Remember how I said a few hours ago that I was pending the canonical Huffman codes?

Well, I finished writing the generalised canonical Huffman code generator. I actually went one step further and made it bi-directional---I could transform from the generalised canonical Huffman code into the code book that was generated by the normal Huffman encoding algorithm.

I went even further than that though---I added a rudimentary [lazy] encoder that emits output symbols based on an iterable input, and also a rudimentary [lazy] decoder that emits source symbols based on an iterable of coded symbols.

In short, I have a working [abstract] Huffman encoder/decoder. I just need some file I/O related support routines, and some means of generating the first order statistics that the Huffman encoder needs to generatee the relevant encoding.

And it's only nearly 0200hrs. Urgh.

I should go take a shower and turn in for the night.

Till the next update.

Thursday, March 11, 2021

Python Takes the Tedium Out of C

The Thursday came and is just about gone.

I continued reading a little bit more of On Playing the Flute: The Classic of Baroque Music Instruction (2nd Edition), and spent a little time watching various YouTube videos, but I had a concept of something to work on at the back of my mind.

A long time ago (end November 2014), I started on a small side project that was tentatively called filemanip. The side project was supposed to be explorations on various compression techniques, using a ``universal'' wrapper that would provide backward compatibility to any of the previous compression algorithms. Part of the reason for starting on that project was to explore the use of online machine learning techniques to provide better compression.

However, the last commit to that code base was some time in September 2016.

Part of the reason was that I was writing it in C99, and even though I love the C programming language, it was rather... cumbersome for something that was more research-y.

That was why even at the end of the last commit, all I had was run-length encoding with some bitstream I/O using Elias gamma coding for certain unbounded integers. And even then, the RLE was only for the encoding, and not the decoding.

In short, it was a bloody mess.

So I am starting from a different tack. This time, I'm just going to rely on good old Python3 as the main language, and writing the algorithms in some abstract way, before doing bit-stream I/O using the struct module. And to start things rolling, I just completed the code for generalised Huffman coding, or at least, the tree-building part. It runs fast enough, even when we have ridiculous input (265536 counter sizes anyone?). It's currently missing the generation of the canonical Huffman code, as well as other support modules to feed information in and out of the encoder/decoder.

Part of working with struct is a way of getting my hands dirty with the idea of using Python3 as a tool for lower-level programming. Most of the Python3 programming that I have done is very high-level in comparison---think writing RESTful services and/or orchestrating numerical computations. Most of the I/O that I have done are very text-centric---the concept of low-level byte or even bit I/O is something that I am not so familiar with in Python3.

But re-implementing bit I/O when I already have that set up in the C version seems like re-inventing the wheel. Perhaps what might happen is that I do some hybrid thing, where the C parts provide the lowest-level operations, but they call Python3 modules via an embedded Python3 interpreter to run the algorithms with the associated niceties.

Hmmm. That actually sounds fun. But maybe I will look into that if performance becomes more of an issue.

Anyway, that's all I have for today. Tomorrow's going to be a Friday---perhaps I should go cycling; I have not done so in a while thanks to really bad skin at the ankles where my sandal strap rubs on.

If it rains though... then it's back to being at home all over again.

Ah well, till the next update then.

Wednesday, March 10, 2021

6 Pints of Guinness Down the Hatch

Today began strangely.

A pigeon flew at high speed through the apartment from the west-side windows and exited through the east-side windows just as I was sitting down to chug a mug of instant coffee. It was a quick swoop through of less than a second, with a short pause of grabbing a low-hanging horizontal drying rack bar for re-orientation before exiting.

It was some class A flying that was more exhilarating than terrifying. At least the pigeon was observant enough to not ram its head into the glass.

I did more reading for a while before heading out to ``Georges @ TS'', a franchise outlet of the Georges brand for some beer, food, and of course, reading. I could have read OpenStax College: Organisational Behaviour, but I chose to read the dead-tree version of On Playing the Flute: The Classic of Baroque Music Instruction (2nd Edition) by Johann Joachim Quantz instead.

I like that particular bar because it was actually very close to the headquarters of the company that I was working for, and it was the place that I would often head to after work to just unwind with a Guinness (or three), some food, and lots of reading on whatever I had lying around. The location of ``Georges @ TS'' was where the old ``Meats N Malts'' bar was located. The location may be the same, but the vibes were definitely different.

Eventually the owner [of the outlet] and the staff figured me out as a regular and I had been going there at least once a week ever since. That is, until I resigned from my position at the company to go on my sabbatical.

Missing out a little on some Guinness and the ambience, I decided to head out there in the afternoon/evening for old time's sake.

The owner wasn't there, but he did have an assistant manager running the place. I think she learnt about me as a regular before I finally tapped out of the company, and among the first few things that she asked when she saw me earlier today was ``woah, haven't seen you in a while''.

On a tangentially related side track, I was infamous as a regular mostly because I was the only idiotnerd who would actually read at a bar during happy hour. To be fair, I was also drinking like a fish while reading, but it seems that I made my mark partly also because I wasn't one of those folks who would sexually harass the wait staff, as told to me by a wait-staff-turned-friend.

I just raised an eyebrow. So my claim to infamy was being an über-nerd and not being a dick. That's really odd to be remembered for.

Anyway, I spent a nice afternoon with the reading, and based on the old eye-balling, am about halfway through On Playing the Flute: The Classic of Baroque Music Instruction (2nd Edition).

Serendipitously, just as I was about done for the day [with 6 pints of Guinness down with two meals and one snack], a couple of my ex-colleagues happened to pass by the bar, and somehow managed to recognise me. They stopped by to say hi, and asked me if I had a job already, to which I naturally replied ``nope'' in the most cheerful countenance I could have.

I think that's about it for today. Till the next update I suppose.

Tuesday, March 09, 2021

Missing the Pasar Malam

I had a bible study session with my care group today. It was a little detour from the study of Romans, heading back to the Old Testament for some background information for the upcoming Romans 9.

Other than that, it was mostly watching more VODs for ESA 2021 Winter, and some light reading.

I did head out of the apartment for a short walk to get some light snacks (there goes OMAD... but I will catch up on it), and realised that I missed the whole pasar malam concept. It's all that different food that was available---like the kebabs, the Ramly burgers, the Thai iced teas, the Taiwanese sausages, the grilled mushrooms, the ersatz ``bird's nest'' drink.

Then there's all the sundry pop-up shops with some haberdashery stuff, cooking utensils...

I don't know if the pasar malam will ever return. It does feel like the kind of thing that would just quietly die away if there is too much inertia from its return.

This whole idea of having stopping inertia making things harder to return scares me on many levels.

But it is getting late, so I may write more about this some other time instead.

Here's to the pasar malam.

Till the next update.

Monday, March 08, 2021

Giving Thanks

I've just had my dinner, and am just sitting quietly in my room, looking out of the window with OpenStax College: Organisational Behaviour open next to me in SumatraPDF.

I spent the day watching some videos from Linus Tech Tips, a Youtube channel that I have heard of before, but have not really spent any measure of time looking into. Being on a sabbatical afforded me with the time to really pick up some of the videos randomly. The coverage on enterprise-level hardware was definitely very eye-opening, and I think I have learnt quite a few new things of hardware that I would not have easily known otherwise.

Of course, nothing beats studying some basic electronics engineering, and that is on my list of things to look into at some point. For now, the focus is on ``organisational behaviour'', or ``How to be a Manager 101''. I see it less of learning to be a manager and more of reminding myself what the literal textbook definition of a good manager is, as a type of rebellion against the multitude of dysfunctional management-types that I have the [mis-]fortune of having to deal with.

But the purpose of today's entry isn't about criticising what has happened. Today, I want to write about things to give thanks for.

I'm not a very expressive person---I have been told that I am ``very hardcore'', ``very intense'', ``very serious'', and other epithets that depict me more as some kind of unrelenting mechaniod faking to be a human. I don't know nor do I care too much about how true those are, but ah, I'm getting side tracked again. As I was saying, I'm not a very expressive person, and because of that, I am not one who would be ready to give thanks to the good things that happen to me.

I am, however, seemingly masochistically comfortable with acknowledging the bad that happen to me. No, I do not derive pleasure from bad things that happen to me---it's more of a situation where I am unsurprised when bad things happen to me, and not if.

Anyway, I digress once more. Giving thanks, right.

Among the deep muck that I find myself in (mentally), there are many other good things that I should be giving thanks for. Naturally, giving thanks to God is a must, but I don't think that's a big reason why anyone would continue to read this blog of mine. Among other things to give thanks for (remembering that the final attribution is always back to the Lord), are that I actually have the privilege to be in a position where I can actually be on a sabbatical in the middle of a pandemic which is happening in the middle of yet another somewhat catastrophic adjustment of the economy.

The truly poor will never have the means to ``take time to rethink things'' the way I am doing now. Remember that my nett income now is zero---I am literally not doing any paying jobs. I am still alive and somewhat angsty through the twin privilege of having jobs that paid me well enough that I could save up for rainy days (like this one), and leveraging upon the already paid-for living abode that my parents have.

That is why, despite not having a job now, I am not in a state of panic in looking for one and am relatively calm in allowing myself to actually take this sabbatical.

I am also thankful that despite all the health issues that I had/have, I still managed to get my undergraduate and Masters degree from internationally reputable universities. Maybe those degrees will prove to be less useful to me now with the heavy focus on hiring yes-men in Singapore companies, but at least it is a stamp of approval of a [superior] society that I am capable of hard work in a highly technical (yet very general) field that is computer science.

I am also thankful for the musical talents that I was given, together with the teachers and peers who have taught me many things that I needed to know to master music-making on my favoured instrument of the 笛子 and other flutes. I am also thankful for the various opportunities that I was provided to play with amazing people despite being an ungraded, and unlicensed amateur player.

I am thankful too for the companionship of those who had walked with me, either as friends, or as acquaintances. I know that not all of them will walk with me from when we first met till ``forever'', I am still thankful for the short time that we had together. To those who decided that our life paths were not well aligned to keep the friendship alive and thus move on, I am still thankful for choosing to spend their precious time with me during the times that we were still [close] friends. To those who somehow are still walking with me now, I am thankful for their steadfastness and loyalty.

Despite my frustrations at those who have questionable ethics, I am thankful that their actions made observable to me, so that I can, from their negative example, learn how not to be the person that I do not wish to be. And for those who are good role models in their specific contexts, I am thankful for them being there so that I can learn from their positive examples.

I am thankful, in general, for all who have taken up a teaching role in my life thus far, be it explicitly, or implicitly, and am thankful for the lessons that they have taught me, whether they realised it or not. In many ways, I cannot become who I am if not for all the people whom I have interacted with both directly and indirectly.

I am also thankful for all the lovely animals who had befriended me; in many ways, I think that they could sense my true nature better than anyone else can. Despite meeting them only very shortly, they have always extended a paw to me in welcome, even those whom their very owners knew not to be of the gregarious sort.

I think that's all I would like to write for today. It's time for yet another shower, and then probably more reading. Till the next update.

Sunday, March 07, 2021

Eliana is Anomalously Designed?

Hmm. I think I have an anomalously designed alto flute.

Here's the context. I was checking out entries in the Flute Forum in Facebook when I stumbled upon this picture post of the Muramatsu alto flute as put up by a member. It was a pretty picture of the Muramatsu alto flute, and I was enjoying it very much when I noticed something strange about this particular picture. I will replicate it here for ease of reference:
Look at the upper right corner of the picture of the alto flute---this is where the upper part of the flute (i.e. the part of the flute body closest to the head joint) is located.

There are keys attached to levers that actuate the covers that cover the tone holes for the entire left hand there.

On Eliana (my alto flute), I instead have this particular set up:
Don't mind the yellowish colour---it is reflective of the wall colours than any type of tarnish. Look carefully at the upper right corner of the picture as well---notice that Eliana does not have those levers that I saw. In fact, the keys are what I would call ``direct driven'', in that my fingers immediately actuate the covers that cover the various tone holes for the left hand.

I got confused. Was the Muramatsu alto flute special or was Eliana weird?

I went to the Muramatsu alto flute page, and looked up their alto flute schematic. I will replicate it here for ease of reference:
The picture is correct; the Muramatsu alto flute does have levers in the left hand that actuate the tone hole covers.

What about alto flutes by other makers then?

A quick check with Altus' alto flutes showed the same. I replicate the image here for ease of reference:
Yep, levers in the left hand.

Another quick check with Kotato's and Fukushima's alto flutes showed the same too. I replicate a rotated version of one of alto flutes here
Yes, levers in the left hand.

Dizhao's alto flutes? Replicating the rotated and cropped image here for ease of reference:
Yes, levers in the left hand also.

I was getting confused. The last major flute maker that I knew that made alto flutes was Eva Kingma. This is where I was a little amused. Looking at the details of the left hand, we see the levers. I replicate the image here for ease of reference:
But if we scroll down the main alto flutes page to the section on ``open hole'' version of the alto flute, we find that the left hand are also ``direct drive'' on the key covers. I replicate that image here for ease of reference:
This sort of makes sense because the idea of the ``open hole'' alto flute is to allow better venting like the open-hole versions of the regular concert flute.

There was one more thing I had to check, and it was The Flute and Flute-Playing by Theobald Boehm, father of the modern concert flute design. In it, he references the ``bass flute in G'', which is what we call in modern times as the ``alto flute''. In it, on p127, he shows his mechanism schematic for the left hand (or upper parts of the flute).
From this, it is clear that everyone who was making alto flutes were basically following this idea of using levers.

I mean, even the Wikipedia entry's picture of the Yamaha alto flute shows the same left levers. I replicate the image here for reference:
It is therefore rather clear that Eliana's design is indeed anomalous.

Eliana's design seems to follow closer to that of an upsized concert flute than one that is based off of Boehm's design, possibly as a way of avoiding the need to fabricate longer and more complex parts.

That said, she still plays like a charm, and I was glad that I had enough knowledge to figure out what was going on. I suppose the lever mechanism helps reduce the arm stretch that might be needed for the left hand, which can help in the support of the rather long instrument, but for me, there really isn't that much of a difference. It is possible that I'm just used to the correct support from playing the 倍大 D 笛子, which is roughly of the same tuning as that of the alto flute.

In either case, that is all for today, I suppose; I'm kinda sorry that I nerded out again. Till the next update.

Saturday, March 06, 2021

A ``Proper'' Rant?

Yeah yeah, I know I had already written something for today, but like many of my recent posts, they tended to be rather technical in nature.

For me, for this blog, ``technical'' can mean anything from this set of categories:
  1. Something related to computer hardware;
  2. Something related to computer software that I use (not program);
  3. Something related to computer programming that I did;
  4. Something related to music things like composition or research;
  5. Something related to 笛子, flute, or one of the many music instruments that I have experience playing.
To most people, they are too geeky because they aren't proper rants.

Well, here's a ``proper'' rant in a while.

The more I look at Singapore, the more that I am starting to find that at some fundamental level, we seemed to have lost what it means to be Singaporean. This is not a rant about immigration/emigration, but a rant about how the values that we inherited from our progenitors are starting to be the main reason why we are facing all kinds of strange social issues today.

In the Old Economy, with a heavy focus on manufacturing, hard work meant that more widgets could be made, which had a direct impact upon productivity. Because of that, a lot of policies were constructed then to support this mode of production; the work ethic then was also revolving around this.

Everyone was working as hard as they could in whatever they were involved in. Education levels were not as high as they are now, and thus hard work was seen as the prize of the workers that were available then.

But in the New Economy, where manufacturing is much sidelined in favour of tertiary industries like ``the knowledge economy'' or even the ``service industry'', hard work alone is insufficient. This is because the nature of work has evolved---gone are the days where quality can be quantified, controlled, and replicated, leaving productivity to just the careful execution of the controlled process by hard work in generating more and more of the widgets. The New Economy demands actual intellectual capability, a certain nous that provides the type of competitive advantage that separates an okay company from a great company.

My generation is stuck in between the Old Economy and the New Economy, because we are at the age group where we do not have enough capital to try new ideas, and have to be stuck with those with the capital who are still running things like it was still the Old Economy. This means that we are in a situation where many of the current bosses still believe erroneously that putting in long hours is still the right way to achieving success for the company.

They suffer from the survivor bias fallacy---``back in my day, I worked eighteen-hour days, and my bosses had to beg me to not work so long hours''. How does working eighteen-hour days work in the generating and testing of good ideas is something that I, after having undergone post-graduate training, cannot understand. And even if it were possible to work eighteen-hour days to generate/test such good ideas, working eighteen-hour days means that there is no time to go out and do something social/recreational, both of which are beneficial to the mental health and in some ways, the national reproductive rate.

``But if you have the passion, then working eighteen-hour days will not feel like working!''---that's the battlecry of the capital holders who thrived in the Old Economy.

I call bollocks on that. There is a reason why the whole forty-ish hour work-week was a thing that was instituted as laws all around the world---this was a right that was fought for with blood and sweat from workers of the late nineteenth century just after massive industrialisation against the capitalists of that era that wanted to exploit the crap out of all the workers (both adults and children) from the under-classes then.

I am not saying that no one should work eighteen-hour days. I'm saying that working eighteen-hour days should be something that is stated up-front to be presented as a choice to the potential employee, with suitable amounts of compensation/remuneration, and not be unethically snuck upon them post facto.

But who am I kidding? It has always been the nature of capitalists to exploit their labour---that is literally how they turn profits from their businesses. Of course they don't say it the way I do; they instead couch it in more pleasant sounding terms like ``looking out for our bottomline'', or ``employee motivation while keeping expenses controlled'' and the like.

That was why slavery was a thing. It would still be a thing, except for the bunch of wars that were fought over it.

Oh wait. It is still a thing---it is only hidden behind Hobson's choice.

I think I'm getting a little too bitter to write coherently, so I'm just going to stop here now.

Till the next update.

Eileen-II with Hyperthreading and Lowered Temperatures

Okay, I left it as a question. The answer to that is ``no''.

I think this though is the final solution to Eileen-II's temperature issues.

First, let me put up the final numbers, then I will do the explanation:
Okay, the last time I was talking about this, I mentioned that for heat-related issues, I had turned off hyperthreading, undervolted by 90.8 mV, and adjusted the Turbo Boost ratios to [40×,39×,35×,33×,31×,30×] for 1 to 6 active cores respectively. This was all done through using Prime95 as the load-tester, and ThrottleStop as the adjustment tool.

All that work meant that the peak temperature of Eileen-II's CPU never exceeded 85°C.

That is all well and good, but as I continued to use Eileen-II, I realised that I was losing some performance from the lack of hyperthreading. Specifically, the benchmarking from WinRAR under multi-threaded computation was giving me a rough throughput of 7 MB/s. It is definitely faster than the 4 MB/s processing speed of Edythe-III, but is actually quite bad, especially since I seem to be operating on RAR files pretty often (in the form of archiving e-books, and compiling comic book archives from web comics).

I remembered that with hyperthreading on, I was getting more than 10 MB/s of processing, or something like 14 MB/s, if memory serves me well---this is anything from 42% to 100% improvement over no-hyperthreading (I'm not much of a speed demon and am not really going for something super rigorous, and so a rough ballpark is good enough for me).

With the system relatively stable, and me getting rather bored(!) at 0000hrs in the morning, it is back to more recalibration to squeeze more output.

I turned on hyperthreading from the BIOS, and proceeded with the same methodology as before. Since I was about to load my processor with about 100% more load, it seemed prudent to undervolt as much as I can to reduce the initial pre-stress thermal load as possible. I started at −90.8 mV as it was, and gradually lowered it by 1 mV for both CPU Core and CPU Cache, waiting each time for a lowered idle CPU use to drop the voltage enough to test for stability---remember that when undervolting the CPU, we are finding the lowest effective voltage that does not stall the CPU.

I managed to lower it as low as −98.8 mV, however, the results were unstable, with the screen flickering when the voltage dipped low enough to ``stun'' the CPU into cranking its voltage higher up. Getting low-enough idle CPU use with hyper-threading on was very finicky and hard, and it was at −99.8 mV when I hit my first blue screen of death. It was funny, because the main display was showing the blue screen, while the side display [that I use for reading PDFs---see this earlier entry for details of that display] was still showing the desktop background.

When I finally rebooted Eileen-II, I noped out and just cranked the offset voltage to −92.8 mV, a number that I was confident that would not allow the lowest voltage of the CPU to drop below 0.5 V---I noticed that when the voltage dropped lower than 0.5 V was when the screen flickering would start and things would Get Weird.

Armed with that new offset voltage, I started up the stress tester and ran the same protocol. With the original turbo ratio limits, I was (as expected) getting very high spike temperatures in the 90+°C range. And so, I used the same protocol as before to fine tune the ratios for the n hottest physical cores, for n in 6 to 1.

Due to hyperthreading being turned on, I needed to alter the protocol a little, and adjust the affinities by the pairs of logical CPUs that would run on a physical Core. Thankfully, the formula relating them is straightforward enough. Each time after tuning, I would just take away the two logical CPUs for the coolest physical Core in the affinity, and rinse/repeat.

The final turbo ratio limits were [37×,34×,32×,31×,29×,28×]. On average, I would be taking away anything between 1× to 3× from the original no-hyperthreading tuned ratios.

It sounds like I have reduced my CPU's capabilities through all these lowered ratios, but really I haven't, since hyperthreading meant that I was getting double the number of processing cycles per active physical Core. Take 6 active cores for example. Without hyper-threading, the total work done in ratio of base clock speed is 6 by 30×, which is 180×. With hyper-threading, the total work done in ratio of base clock speed is now 12 by 28× which is 336×, which is about 87% more available raw clock cycles in comparison to being without hyper-threading, with similar thermal loads (≤85°C). Of course, hyper-threading doesn't quite work that way since there is an actual overlap from synchronisation issues of hyper-threaded CPUs that share the same physical Core, but the point remains that I am increasing the total available capacity for the given generated thermal load despite having lowered turbo ratios.

Oh, and all these led to WinRAR benchmarking at about 13 MB/s compared to 7 MB/s, an overall 86% increase in throughput between no-hyperthreading and with hyperthreading. So, it is more performance overall, in the multi-threaded case.

Definitely a win in my book. By the time I was done, it was already 0145hrs...

------

In other news, I had finally updated my LilyPond installation from v2.20.0 to v2.22.0. The reason for the delay was waiting for Cygwin version to be updated first before updating the tooling for my Windows version that I use with Frescobaldi for music writing. The reason for that is due to my auto-building scripts being designed to run under Cygwin or Linux.

Well, v2.22.0 broke all my sources for v2.20.0/v2.18.0. Reading the changelog revealed that a couple of features that I used, namely \compressFullBarRests and \partcombine, had been renamed to \compressEmptyMeasures and \partCombine respectively, with no real backward compatibility despite the existence of the \version statement.

It was a straightforward enough fix, and I completed it using my favourite combination of
find -type f -iname '*.ly' -print0 | \
  xargs -0 sed -e 's/\\partcombine/\\partCombine/g' -i
No biggie, but it was something that needed to be done.

Alright, that's about all that I have to write for now. Till the next update.

Friday, March 05, 2021

Essay for a Forum Post

Something I wrote in a public forum on concert flutes regarding materials used for the flute and the scientific results [that they don't matter] conflicting with anecdotal evidence [that perhaps they do].
My two cents worth is that any real-world musical instrument design is an engineering problem with artistic elements. As an engineering problem, there are compromises that need to be done to ensure that the instrument is acoustically efficient enough for human playing, has the appropriate timbre as required for the instrument, is ergonomically constructed for human playing, is relatively easy to put together, and is of an affordable price point.

There are also two competing aspects that we need to take into account---the makers, and the consumers. The makers want to make and sell flutes (maybe with a profit), while the consumers want to buy and use the flutes (hopefully getting the ``best'' for the cheapest). These two perspectives are competitive in nature, so at the risk of offending people, I will say that if the science of musical instrument making is kept sufficiently muddy and vague, the makers will have the competitive advantage here over the consumers, ergo it is better for makers if there is enough confusion about (in this case) whether material of the walls of the concert flute matters or not. The reason for this claim is that makers have more samples from the engineering design space (they make many, many flutes) compared to the consumers (they buy only a few flutes), and even if the science were actually that muddy and vague thanks to the interplay of many complex variables, the makers' empirical understanding is still light years ahead of the consumers, since "making mistakes in understanding and then correcting for them" is just a part of the R&D process of product development, compared to the consumer who only wants to buy that ``one flute for a life-time''.

Now, on to my perspective on the issues of the science.

Part of science, apart from all the testing methodology, is also about coming to a consensus on the terms that are used to describe various phenomena---it is the agreement of the hypothesis space that assists in defining the scientific problem that leads to the various hypotheses that can later be subjected to various methodologies for testing. Already I see terms like ``resonance'', ``bright'', and ``dark'' being bandied about with only the vaguest of consensus on what they actually mean; we also have not come to any consensus on to whom the quality of the flute sound should be measured (player versus audience). This is problematic because it makes the hypothesis space fuzzy enough that anyone who wants to deliberately confuse matters can wade in and throw enough shade to prove/disprove any point they so choose, and for those who are actively trying to have a proper discussion will find it hard to do so as well.

At some level, I think that part of the reason why some consumers (and scientists) are starting to ask harder questions and wanting quantification of various physical aspects of the modern concert flute is due to the heritage we get from Theobald Boehm. He basically ``open sourced'' his flute design, and it is from this design that many of our modern concert flute cousins come from. This heritage of sharing what works (with some empirical explanation) was further extended through Albert Cooper's ``open sourced'' Cooper scale. So in our common concert flute heritage, these types of ``open source'' sharing of empirical experiments on improving our favourite instrument has precedent.

And empirical experiments are just a first step towards a scientific explanation.

Then, does the ``scientific quantification'' degrade our music making on our favourite instrument? I don't think so---if any thing, a deeper understanding of how something affects (or does not affect) the produced tone (and quality) from the instrument actually empowers us as musicians, because it tells us more on how we can control our instrument to achieve our specific artistic goals. It, again at the risk of offending people, gives some control back to the consumer, who can now have a somewhat more objective way of evaluating the suitability of the various concert flutes available out there against the kind of sound that they are looking for in their next flute.

My final two cents on this awkward question of material and instrument is this personal observation: beyond a certain set of material parameters (like stiffness, hardness, and porosity) to contain the air column (that is really what we are controlling when we are playing the concert flute), the key difference in the concert flute that affects its timbre is its geometry. But geometry alone does not explain the timbre of the flute---the geometry only provides a guideline to what the flute is capable of generating, provided that the coupling between the acoustic system of the air column in the flute with that of the player has their impedence matched.

In more layman's terms, geometry is better controlled through workmanship, and the price of the material (to me) is a proxy on the amount of care being put into the workmanship. In the end, that geometry must match the way that I, the flute player, play the flute in order to be the best possible concert flute for me. This includes player-only tangibles like whether the body vibrates (I don't like that), or if there's some kind of high frequency harmonics in the timbre when I want it (I like that), or even if the flute is heavy enough to not wobble (I like that).

Sorry for the essay---these are the thoughts that have gone through my head a few years ago when I was looking towards getting my "final flute".
In other news, I have started reading OpenStax College: Organisational Behaviour. I also went for a long walk about the neighbourhood, finding a park that I had never seen before despite living in the same apartment for more than thirty years. It has been an alright day I think.

Here's to tomorrow being a good day also. Till the next update.

Thursday, March 04, 2021

Reading Day

I met up with an old colleague last evening for dinner, and we caught up on our lives ever since we both were done with working at I²R. He's doing alright, but was undergoing similar issues about matching what he was trained in with what was being expected of him at work, with the single big difference that he had started a family (with a child on the way), and was therefore more ``stuck'' about just holding it out instead of walking away from the nonsense.

Call it confirmation bias, but hearing that coming from him was not exactly a good thing in my mind. Already I have been feeling ``stuck'' in the environment that is Singapore with respect to work, and the session that I had with my old colleague was just feeding me with more information that is leading towards exasperation at the labour market in Singapore.

I am not just a ``cheap-ass warm body'' to be pushed about by people who believe they know more than me through the blind following of so-called ``best practices'' that they themselves have no understanding over. Charlatans... society is run by many charlatans, and it makes me fume.

Did I study so much and think so hard just to be lackeys of conmen?

This is something that I need to think really hard for myself.

Of course, there's the whole other aspect of ``am I really ready to commit to a full life of singlehood with Christ at the centre of it all?''. If I commit to a life of singlehood, then there are many more options that are available since I do not have to hedge any resources that I may possess for the eventual family that I am supposed to raise.

I don't know if I am ready to make such a commitment. In many ways, such a commitment is akin to declaring the equivalent of monk-hood, or the concept of a 出家人 in that one is simultaneously capable of loving all and no one at the same time. It is a very tough call to make. I pray that God will grant me the appropriate amount of wisdom to understand the consequences of the choices so that I can know what He intends me to do.

------

The thing about Feudal Alloy is about how annoying the control scheme is---analogue stick for a 2D platformer. I played a little of it yesterday afternoon, but had to put it away when I was stuck on the same two screens for the past half an hour. That meant that today, instead of trying to play Feudal Alloy in the bid to complete it as talked about a while back, I procrastinated and ended up doing more reading.

The big book that I was reading was No Surrender: My Thirty-Year War by Hiroo Onoda, translated by Charles S. Terry. It is the semi-autobiography of Hiroo Onoda, a Japanese army officer hold out that waged a one-man guerilla war against the Fillipinos even as World War II has ended. The main thing about the whole autobiography that struck me was his final doubt about just what he had did with those thirty years of his life living in the jungle, twisting every single piece of evidence that the outside world was trying to tell him that the war was already over and that he should stand down.

It hit a little close to home for me. Yes, I am in no war with no orders from superior officers and what-not, but the same level of doubt about what I had been doing with my life till this point was a sentiment that I could understand. It was not a situation where one was just sitting around and doing nothing---things were indeed done, but at the end of it all, when one finally has the opportunity to take a step back and reflect upon all that has happened, only one question remained:

Why did I do all that; was it really worth it?

I don't think that what I had done in the past has contributed towards the glory of God. I was/am a sinner, and prior to becoming a believer and being saved by Christ Jesus, I was at best an agnostic, which definitely won no favours of God for sure. The intentions of all that I did then had nothing to do with God in mind, and thus cannot be contributing towards anything towards the glorification of God.

To sum it up, I don't think I got happy from it all. I was much happier making music than working.

Anyway, the other book that I read was A Grave of Fireflies by Nosaka Akiyuki, translated by James R. Abrams. Everyone dies in A Grave of Fireflies, and they all die for the saddest of reasons that is from human suffering and human greed. At least in No Surrender: My Thirty-Year War, the protagonist ended alive---his comrades died one after another over the thirty years, but he managed to live on.

I remembered a few years ago, back when I was still pretty close with Janet that I talked about wanting to watch the Studio Ghibli version of Grave of the Fireflies over a Chinese New Year holiday that I spent at the I²R office while working on something, without knowing what it was other than it was a good piece of animation. Thankfully, I had heeded her advice of not doing so as it was a great way to get all depressed from it all.

I wonder how she is doing now. I could reach out to her---she still exists in cyberspace---but it has been so many years since. Whatever commonality we had before is probably just reduced to being she and I are both humans who once studied in UIUC.

Ah well.

Now that the ``short books'' have been read to offset the craziness that is Deep Learning, it is time to start on another text book, namely OpenStax College: Organisational Behaviour. Hopefully this one will be less excruciating than Deep Learning---OpenStax's open text books tend to be quite readable, but to be fair, most of their text books that I have read tend to be on the soft science aspect and not hard-core mathematics-related.

That's all for today's entry. I'm going to watch some more ESA 2021 Winter VODs before calling it a night. Till the next update.

Wednesday, March 03, 2021

CPU Cycle Reduction

I just wanted to write a quick blurb before I run off to do other things.

Yesterday I mentioned about fixing the auto-injected navigation for the 笛子 Materials set of articles to be more mobile friendly, and also the updating of the pretty-printer to poll for changes.

I found a better way of doing the latter using MutationObserver. This reduces the amount of CPU cycles by only triggering the recursive walker when there are changes in the DOM tree. I could make it more adaptive by only running the recursive walker on the nodes that are changed, but to do it correctly will require some way of finding the set of sub-tree root nodes among the mutation list, which is annoying---it is just faster to note that there are changes made to the DOM tree, and just re-run the recursive walker.

Speaking of re-running the recursive walker, I have fixed it to be idempotent, i.e. f(f(x))=f(x), meaning that the recursive walker, when applied to the output of itself, does not change any output. This is important to avoid the leaking of unseen space characters that I use to keep certain symbols more tightly bound to each other.

The auto-injected navigation fix has the hacky styles taken out and shoved into a proper CSS file, and is working beautifully.

While doing testing on the MutationObserver, I learnt that setTimeout() uses a 32-bit signed ``integer'' for its millisecond parameter, and if there is an overflow, defaults to executing immediately. setTimeout() is used to automatically update the fuzzified update-timestamp in web pages so that the smallest viewable unit gets updated accordingly. I saw this instant execution issue when I was doing testing on a page that was last updated about 1.5 years ago---the update process was being triggered every half a second or so (instead of every 0.1 years), much to my confusion. The fix was just to clamp it down to the maximum if it is exceeded.

And with that, it is off to my next adventure.

Tuesday, March 02, 2021

Done with Deep Learning

Well, thank goodness for that. I have finally powered through the remaining 313 pages, of which 65 were the index and bibliography. That was quite a doozy. I would say that I am much more confident with the concept of deep learning now. It also seems that the ``cutting edge'' (circa 2016) was still about meshing graphical models with deep learning architectures.

I wonder how much of it is still true today, some 5 years later.

To be fair, after reading Deep Learning, I am starting to veer towards the conclusion that going down that path for so-called ``data analytics'' and/or ``artificial intelligence'' is nothing but tears.

Despite all the advancements, the fundamental limit is still that of good training data. We're not even talking about labelled data, which is the precursor to supervised learning protocols. We're just talking about good quality training data, something that only the largest of large companies can have easy access to.

Puny SMEs are never going to reach that level, especially if they are hoping that all that ``deep learning'' is going to help them. The more traditional techniques are more likely to be suitable than not, but I digress.

I'm just happy that I have finally finished reading the book. Now, I'm just going to take a small break and read a collection of Chinese poems from the Tang and Song dynasties from a small booklet entitled 《唐宋诗精选》 . Funny story, this booklet has actually been with me since 1992-08-28, as a prize for being Best in Chinese waaaaay back in Primary One.

I have never really read it, having been too frightened by all the difficult-looking Chinese characters.

I am just silently thanking whoever the teacher was who picked this book prize for me back in the day nearly three decades ago. He/she has picked well.

The book is so old that the postal code of the printing company (Seng Wah Cultural Publisher Co.) and the distributor (Seng Yew Book Store) were only four digits, and the telephone numbers were only seven digits.

I also want to point out that Seng Yew Book Store is still alive and well, and has not moved from Blk 231, Bain Street #01-15/17, Bras Basah Complex, Singapore 180231.

------

In other news, I fixed a couple of oddities from my personal web site. One of the things that I fixed was the auto-generated navigation bar for my 笛子 Materials set of articles. I tested it out on my cellphone, and was horrified to find that the long text that appeared fine on the web browser of the desktop was quite hard to read/use when displayed in the mobile.

And so, I cobbled together some horrible styles to generate a small table for navigation. This allowed better text wrapping for the three navigation elements, and gave a little more control over their overall appearance in a space-limited setting.

I also adjusted the table width for the Books column of my bible study tracking page. Previously, Song of Solomon was mysteriously relegated into a multi-line presentation when the bible books filter was activated to ``poetry'' while in mobile mode.

Apart from those two fixes, I also tweaked the prettifying JavaScript to default to polling if it is not being run on my personal domain. The polling was done to take into account the case where new textual elements were being inserted into a page which had elements that needed to be prettified---the classic example is the navigation side bar of this blog. Try expanding ``2021''⟶``January'' and check out ``Career'' is a Misnomer. Without the polling, it would appear as ``Career'' is a Misnomer instead.

The prettifying script is originally executed during the onload event via injection, so any new text elements that occur after the script is done with the prettifying will not be updated.

Anyway, that's about all I have for today's entry. Till the next update, I suppose.