Alif Wahid

Ridiculously long integers, but still nowhere near infinity!

So, isomorphismes posted something interesting earlier in the week to demonstrate the difference between \(2^{2^{2^2}}\) and \(2^{2^{2^{2^2}}}\). That’s hyper-exponentiating 2 to itself 4 times and 5 times respectively. These are actually part of a fascinating mathematical operator called tetration (i.e., the next operator in the series of operators: addition, multiplication, exponentiation). It’s amazing how many programming languages do NOT support calculating such long integers, which is not surprising given their rarity. However, python is pretty sweet for such calculations. Here is the sequence of numbers corresponding to hyper-exponentiation of \(6^6\), starting with 2 and ending with 5 (and the actual tetration will literally take more than a lifetime to compute on my laptop!). Note that the python operator for exponentiating is ** (e.g, 6**6 means 6 raised to the power of 6, and 6**6**5 means 6 raised to the power of 6**5, which in turn means 6 raised to the power of 5).

$ python -c ‘print 6**6**2’ # \(6^{6^2}\)

10314424798490535546171949056

$ python -c ‘print 6**6**3’ # \(6^{6^3}\)

1204120867648235108202090056857283403336732693457453224358121221145020555710636789704085475234591191603986789604949502079328192358826561895781636115334656050057189523456

$ python -c ‘print 6**6**4’ # \(6^{6^4}\)

3048038843157366051156451562587960914683843070009432577720371743970260248988253388734087776516378135275070793705483810168992174078819457229916982909272972117802705538546043924392880249338669607593617565773503681777562894648411193991668219111024140760301610404587920245316338496104651309961792720642767736988127034593657473200942901910918843867439542131034903455333688218414524168236538840952909280093318279899396079306730083204209917234906371378011735099583017148436711446474063192400558782588545007076563578617663198436110485321365453724515867573206330463738004176650289141225099730033358933544597672427393530251774965047211695506312946306762294998433468262930173135236327015973465126381014128785885984902934363536428840380015651386113570744138512750613093972490684498513211851441804268854063729284096776385783954252916394679043883583422253317285565365659687584910629328675433251717593584447460445269780478280767340984528217318932238565096396250980632747766225123954084888838021720715193156305805969620729856

$ python -c ‘print 6**6**5’ # \(6^{6^5}\)

801905114177186421268233247183671872285611243790287670326429840266965276859090994232722804099071308208566642345342525473839197857922206826881247686613054597643639074114299814658910570299338387275018144418060451356204425587436618355894265899469206493496576567060902508216857234809659411883436856907262181406555792173257484458552977375606894392453200909034506894234184478236418421979962663479216120643800922939369420248674473362609602187661563551041157505739642033306712744000213561038789775549335115383195493100990320977797431849066454349854112351669394350351724119648421429675482501486302736500144621886523347992629826999974724330860189653089828532182794794248240477416274638167362282413526807854514320952096682617889397115584667137201322422937457729214489407907405518444344340089061930346769872400573045001311080100230425970533942745847972064970363330555794582550644070075448682407064391762605241178885977478172470439245614352782718873090563810918058676016196022517960964002392982148152622058158104958518830487349863461522737045419079805176828913337987237167998461268815906214056666240308532663321889986375962262141989078341225419274892934633471601337630145021177561682163361588301146273292029772181095793682371661321565671179250200873481397054591452273317157196303425228704984654767851075710532634534940796785677558890950799401875263511992661902169258890278086716291023843497372147231848593552275703330179333395157137953888601584226588131426100524625525615311244683340215525755193173697123985498932994880224661923242660863038692352636818818091446575100518750311622740988660944192795623802082203241025300988864720691114284336174884722725160551906710564699824148484730470707902578930619626494023221095499047958286617225276486876179287677463797214957475199592111410409161111024724320181524607190511675442364059199832339531178389332438871670894278123643702026198922090184989766828514386825218944751917133528352820304932965893847129193929732262192111912880919222840357641983028044015106742642713134002917504796175868158080020653346101062376128143166925008124162624778493310053821947745097837762493928482536937358487491224793636348213860230948090092608071270697036421316013417589210684049327427491895567716870540159334726003182535675968082210912512117117036411988561552555424135025992192431252311247070107037564320408519913415791972361428643569407291782230769633403762980911951260235335468415654697223881790965348650156255150470465709634202169556242801373930782315697735699489821418879261442079714412155375949060050935369523298480393127780154774697206538820578852481294171389639340821243198793285107034663451816584313178509573270340714717653972268811979935455568659825920079977104240044757023571324964943766412817014787831726000431239296277568149403379174685366513529096824121631549336050517240784764044158530092410468898790882906726991168235676755052595083949405892993514487989629327303507999701858400364951812663411243218524311814960565403396906101566037518454582866326674740652656967374738643546913572072027015270654024870872914125274032777679768834616330289620042855458464404935752253141307743949799679373788177021131263060724194551523232678825949835712984835004658258078967038721817894573819554326478723879110512134676175579870238496958283594595247111635504199858696576767040558179086446871276735764539552108394244368401906598270272523213985019325867597404117299522896174182781347656228133260501669599573840643828131130837868317552037425215982186057658406291543623646877113038178380490129752610988187060310837787799219303381539699528293723206372177059719935531506073859021197524406579643039883039728628836461474751067864431977032358675848360773708387211420116787599737621317224241346875009176863639530452676627730931378159457365569487241901935734071637648678771531953675914311001534496147038332750307708867979198279698026903039770263012642154401276299002427289117685602673262358039948743624480371236137632544504304823818957992107773203870105130812284336956828027729321903579499814164578180299915045407689667530374597860119037107839602699845102433609954824008871263055281424268092422912559273889700924995226448267306343535545322900135542162984089368300143981387952516535890373585769044768270079232745085310534780379433679641764412570375902770137404074177820073270088260988742823688892707845709507869126201853287365775198969687579436875786108977542040269149258582213880806730504418248217557255761673402533058045211820437282641288015597565632574887136806808091337017274509640585947630061378243713693613162003445998800513844020356593674967439236032719297765887804559453426094291753338337320872533167029618779345490908355556740326053560776376448793273729369475913183616635968036303958961312252848799884953039291437629677310491001983631561495387558374254249597009726836978531354929462178177642763033790164067445673502415866746505721852575827258860644876762985518399443861444129789611155823260748613960983738802730799807870324833863673572794179621716686213597175126065963043765314408250036111188043650982973774434447477841745166609106376305766597815630308332278922332012868449774553692733717992022275716188668002733820424048869010692647287753683032329124547512690629495028349649028761229072342231520826626527689967862367744521152658974319063649327835030970627742864238920810668385925185216817124523427167003892110153204070727224612710173873389921936290442205620640819677053163599111244195701659784290628033387794423384897379043640715550904349542341988051448696644729119321923974170788984946987136512729765351867471308995876186529082842949528120694579172451660355612447630749890773691802401321948599241617171873740187460875541452669196018430458379320978910452677708740121149389289049260368909671797571587872574361576403325458450829959641703568470576948819313050657979060435743564740553565911085870118497098825973672356583186516354715506718750007325734787689281138147193205163931032061943134231140199543095420684425751639787908398865190601747112700042196582032481766506799648617686643106868998527331337192639617847034473260672095881810378587492712587519328256

Composite image of the sun, overlaying solar flares to highlight the clustering. Why do they cluster?

Composite image of the sun, overlaying solar flares to highlight the clustering. Why do they cluster?

My research in social psychology has focused on morality and how it varies across cultures. I conducted my early research in India and Brazil in the 1990s, trying to understand why so many cultures and religions moralize food and sexual practices—think of kosher laws, or the widespread condemnation of homosexuality—even when such behaviors don’t seem to harm anyone. Why do many cultures treat rules about food and sex as seriously as rules about murder and theft?

- by Jonathan Haidt in his article titled “Of Freedom and Fairness”, which appears in the current issue of Democracy: A Journal of Ideas. Quite an ingenious research question, when you think about it carefully. His findings are rather fascinating, too. He developed something called Moral Foundations Theory to explain what he found in researching this question. I’ve never read Haidt before (only in passing, which doesn’t count). Definitely have to read him now!

Politicians in my home, New Zealand, are mostly the stereotypical type, as in other countries. But once in a while kiwi politicians conjure up the courage to be bold and beautiful. This week, New Zealand became the 13th sovereign nation to have legalised gay marriage. A proud moment for kiwis of all seven colours. And this is how we celebrate the love and joy of such pride in our democracy - the public gallery in the upper level spontaneously sings a Maori classic called Pokarekare Ana.

There’s a bit of buzz around Bitcoin this month, simply due to the volatile exchange rate for buying bitcoins with greenbacks (and vice versa). Expectedly, the lamestream media has focused on all the circus sideshow. I’ve yet to come across one report in TV/Radio/Print media that actually explains what a bitcoin is…sigh. There are the oversimplified terms like “online currency” (which makes no sense, because how is an existing currency not an online currency given that you can buy/sell with it almost anything over the Internet?). Then there are claims that bitcoin is not under any state control or beyond the monetary regulation of a sovereign central bank. Distinctly false! Sovereign states and central banks have simply chosen to leave bitcoin alone so far, given that it’s smaller than a small potato. But that will change, you can bet your bottom dollar on that outcome :P

Anyway, the pertinent question of what, exactly, is a bitcoin was answered by the original academic paper that proposed the damn thing back in 2009! Full-text PDF is available here. It was authored by an anonymous pseudonym called Satoshi Nakamoto. Most likely multiple smart cookies were behind that paper. It’s a marvellous invention, only from a technological perspective! Just read the paper and educate yourself, instead of putting any faith on the non-existent brains of journalists. 

Then there’s the economics and ethics perspective, which makes bitcoin an especially not marvellous invention! Again, you won’t find anyone in the lamestream media capable of doing the requisite analysis to arrive at that conclusion. There are plenty of “financial advisors” that are both recommending and not recommending investment in bitcoin for currency traders. But the only one that has actually analysed bitcoin with a deductive dose of logic is Karl Denninger at Market-Ticker.Org. Read that article to once again educate yourself on all the non-technological things that are wrong with bitcoin.

That’s it folks, just 2 articles is all it takes to bust this buzz into a non-mystery. But the irrational circus circulating throughout the lamestream media would fool everyone and anyone that this is the craziest thing to have happened since the invention of money. What a load of dung poop :P Anyway, just to reiterate: IGNORE everything you hear about bitcoin from both proponents and opponents. Then just read this and this, and rest assured that the earth is still a semi-spherical object in orbit about a magnificent monster.

Radiating Rambling Ruminations

I totally agree with isomorphismes about follow friday being a boring idea, and failure friday being a far more interesting idea. Regardless of how far this little meme radiates, it’s quite fun to ruminate and ramble on about what makes me a fundamentally flawed person :P My trivial failures are obviously easy to guess. So let me see if I can regurgitate juicy tidbits to chew on for some self-twisted, end of week entertainment :)

My academic record has a bunch of notable failures (as in flunked courses), but these I am particularly fond of because they built much needed character and resilience. One that comes to mind readily is that I flunked a major maths course in the third year of undergraduate engineering. The university let me off for doing well in other courses by the end of the year so that I didn’t have to repeat it in the following year, even though I never asked to be let off. But the failed grade is still glaringly visible in my transcript, and rightly so! This was a case of total and utter boredom with a course to such an extent that I didn’t bother doing any of the weekly assignments (which cumulatively carried a big proportion of the final grade) and submitted an almost empty exam paper at the end. Motivation (or lack thereof) is a mysterious manifestation in my case :P

Driving must go down as a failure for me. It took three attempts before I passed my full license test in New Zealand. That was a while ago and I’m more experienced now. But still, in Melbourne I use public transport almost exclusively to save me (and others) from my unsafe driver self. Concentrating on the road in front of me is too boring a task ;-) My mind (and the car by extension) ends up wandering toward poetry, philosophy, physics…and all the more interesting things worth pondering. Unfortunately, that means people around me everywhere are in danger when myself is driving :(

I have a particular propensity to miss deadlines, especially conference submission deadlines :P I missed a few notable deadlines while working on my PhD thesis (e.g., the little beauty was 12 months overdue when I eventually submitted). I was fortunate to have had an awesome supervisor who tolerated a certain number of these on the basis that I am a pedantic prick who cannot express precisely what he wants to say in his writing (some might call it writer’s block). The rate of passage of time in my headspace is far removed from the rate of passage of time in ordinary existence (one more reason why my reflexes are slow when driving). I simply fail to feel the sense of urgency and desperation that comes before a deadline, which everybody else seems to feel innately. So I’m a pain for anyone whose job it is to manage the projects that I’m working on, and I do enjoy being like that ;-)

Speaking of conference submissions, I’ve had a number of brutal rejections that were difficult to accept. But the referees were generally correct in pointing out my errors and I just had to take it on the chin :P This is frequent across the dominion of science. In fact, I would say that this is universal. And that’s how it ought to be! But what I fail to understand is the lack of acknowledgement of rejections and the very deliberate attempt to cover up one’s past rejections. I had four rejections in total during the four years that I was a PhD student. I also only had four publications in total (two journal papers and two conference papers). Both of these counts are very low since most students typically end up with double digit publication counts by the time they submit their theses nowadays, although I’m not aware of any reliable statistic on the typical rejection count.

On the topic of rejections, I’ve been rejected by plenty of employers throughout my short career so far. More than anything this is due to my total failure at wisely selecting which jobs to apply for and which ones I have to hide from. As with every other aforementioned failures, this is very much a work in progress (and will be for ever). So I’m not fussed about this at all. Fortunately, I’m happy with my current job situation being a contractor and all. I sense a strange sort of entrepreneurial urge that might manifest in a profound sort of way. Or maybe not :P Remains to be seen ;-)

Apr 9

It’s plausible that A1 is a superposition of uncountable quantum fluctuations, which cannot be tamed into an orderly existence. The elementary sub-atomic personalites that comprise such a chaotic connectome have only ever been statistically determined to exist in an unobservable form (after all, no one has ever seen me, myself or I). But I used to think that the audible quacks in my ears were just me and myself. Well, not necessarily. It appears that anti used to think the same about anti-me and anti-myself. For fear of annihilation, none of us can be squeezed into too small a confinement, although a jelly lump (about the size of an apple) enclosed inside an empty cavity is occasionally permitted. However, that does make it terribly difficult to string together unique utterances due to the need to translate a loopy graph into a spanning tree. Information is lost along the way that cannot be recovered. Furthermore, the impossibility of reaching a consensus amongst such sub-atomic personalities regarding the expression of a sentiment is entirely inconsequential for the charming quarks that underwrite the right to asymptotic freedom of speech. And none of this makes any sense, whatsoever, to me.

Apr 8
Apr 7

Daylight saving ended earlier today. It always screws up my internal clock (and that of Microsoft Windows OS). I’m pretty sure that humans didn’t evolve to have this kind of messing with their innate sense of time (perhaps more importantly, a sense of the relative passing of time). At any rate, it reminded me of a journal paper that I read long ago and keep referring others to read, simply because it’s an absolute gem. I never developed an intuitive sense for Einstein’s relativity until Leslie Lamport’s paper explained how “Time, Clocks and the Ordering of Events in a Distributed System” are all linked together. Seven and a half pages of heavenly enlightenment.

“Time, Clocks and the Ordering of Events in a Distributed System”, Leslie Lamport, Communications of the ACM, volume 21, number 7, pp. 558-565, July 1978, URL.

PS. Leslie Lamport nowadays works for Microsoft Research :P

(Source: research.microsoft.com)

Apr 6

Rarely read, but highly influential, journal papers

Nope, I’m not going to create a list here, only attempt to leave behind a memento for my future self from my current forgetful self.

An Empirical Approach to Economic Intelligence in World War II, Richard Ruggles and Henry Brodie, Journal of the American Statistical Association, volume 42, number 237, pp. 72-91, March 1947, URL

I’ve yet to come across someone who has actually read this paper. I read it couple of years ago and keep coming back to it for a number of reasons. Chief among them is the fact that this paper demonstrates a level of humility that simply does not exist today in any form of scholarship. Ruggles was with Harvard and Brodie was with the State Department at the time of publication. I’m not going to paraphrase the paper since people are perfectly capable of reading it on their own, especially when a paper on statistics is such an endearing, exhilarating and enlightening read!

Apr 6

isomorphismes: Things I Failed

isomorphismes:

I’m bored of #ff meaning follow Fridays. Let’s do Failure Friday instead and talk about things we’e failed at.

  • I failed an arithmetic test.
  • I failed judo class.
  • I failed to attract interest with my CV.
  • I failed to be married or have a stable job by my 30th birthday.
  • I failed an entrance…

Yup, totally agree.

Apr 2

Lyrics of the song “Lanterns” by Birds of Tokyo

Lately I’ve found
When I start to think aloud
There’s a longing in the sound
There is more I could be
In darkness I leave
For a place I’ve never seen
It’s been calling out to me
That is where I should be

We never carried days on our own
But now it’s up to us to know
The weight of being so much more
We will find ourselves on the road

On we march
With a midnight song
We will light our way
With our lanterns on
On we march
Till we meet the dawn
We will light our way
With our lanterns on

As we walk out
Without question without doubt
In the light that we have found
It is finally clear
Our day has come
And we’ll stand for who we are
We are ready we are young
We have nothing to fear

We never carried days on our own
But now it’s up to us to know
The weight of being so much more
We will find ourselves on the road

On we march
With a midnight song
We will light our way
With our lanterns on
On we march
Till we meet the dawn
We will light our way
With our lanterns on

We held the light
To our faces
And realised
We were chasing
Shadows behind
Not worth saving
So burn it bright
Forever illuminating

On we march
With a midnight song
We will light our way
With our lanterns on
On we march
Till we meet the dawn
We will light our way
With our lanterns on


In darkness I leave
For a place I’ve never seen
It’s been calling out to me
That is where I should be

(Source: youtu.be)