Wednesday, September 30, 2020

The use of music in TV and movies

Every time I hear "Say Yes" by Chage and Aska, I am reminded of the TV drama series 101 Proposals. Hearing "Secret Base (Kimi ga Kureta Mono)" brings back memories of the anime series Anohana. Music and songs can be used to invoke memories, and I am sure we all have such experiences of a piece of music or a song making us recall a particular scene, series, or movie.

This is all the more so when the song has lyrics that fit the story.

Like Tokyo Love Story, where the chorus of the song basically says "if I had not met you that day at that time in that place, we would forever be strangers to each other."

"Secret Base (Kimi ga Kureta Mono)" is about the secret base shared by friends, very similar to the story of Anohana which is about a group of friends who shared a secret base, talking about everything under the sun.

"Michishirube" has a line that says "your voice is my signpost" which is really fitting for Violet Evergarden, since it was Gilbert's parting words to Violet that has acted as her guiding light to move forward.

The theme song of Tsuki ga Kirei is about the awkwardness of first love, which is what the story is about. There are other songs written specifically for the movie or series. Like "U&I" which depicts the close relationship between two persons, and "Tenshi ni fureta yo" is about meeting a special person. These are all very strong themes in K-On! so it is no wonder that listening to them will bring back memories of HTT. Or the theme song of Beauty and the Beast, but that's really cheating since the song is part of the movie itself (like most other Disney animated works).

I am sure everyone has their own personal examples. These are just some of my own. There are too many to list.

Anyway, I found this video on YouTube touching on this topic.


Monday, September 28, 2020

Last line of Violet's final letter to Gilbert (spoiler)

This post will contain spoilers for Violet Evergarden the Movie, so please stop reading if you don't want to read spoilers. (And a reminder, there is a final cut after the credits finish rolling, so do stay in your seats until then when you catch the movie in the theatres.)

|
|
|
|
|
|
|
V

At the cast event, Director Ishidate mentioned that the last line in Violet's final letter to Gilbert was not voiced, even though that line can be seen in the movie itself. So what did that line say?

Someone actually copied down that last line.
画像1

This isn't really very helpful, since most people can't read the Tellsis language (which is apparently the name of the language that is used for the written word in Violet's world, but fans call it Nunkish). But fans had actually been hard at work ever since the anime series first came out to try to figure out how to decode the Tellsis language. For example, this post here talks about one such effort. There is even an online Python script that can be used to translate Nunkish into English. (Updated Python script can be found here, but I also wrote an app that runs on Windows, Linux, and Android that is far easier to use, which you can find here.)

Anyway, that final line above, when written in the English alphabet, turns out to be "Nun posukui noyirrikon".
 
And because Nunkish is actually based on Tamil, with certain alphabets switched, that line becomes "Nāṉ mējarai nēcikkiṟēṉ" in romanised Tamil. Which supposedly means "I love (you) Major" in English, or "私は少佐殿を愛しています" in Japanese. (Source: 『劇場版ヴァイオレット・エヴァーガーデン、最後の手紙の一文が解読された』って話【ジェバンニが一晩でやってくれた】)

I need to watch the movie again to confirm this... 😂

Update October 2, 2020: As of today, I have watched the movie three times. And I can confirm the last line of the letter, as shown above, is correct. I mean, it is to be expected, since in the earlier part of the letter, Violet said that because Gilbert (aka the Major) taught her the words "I love you," she wanted to communicate those same words, "I love you." Then, she goes on to thank him for many different things. So it is fitting that the letter finally ends with, "I love (you) Major."
 
Update November 14, 2020: Apparently, according to this post, Director Ishidate confirmed at the staff event on November 12 (the first screening at a Dolby Cinema, held in Kyoto and not broadcast to other theatres) that the final line reads "私は少佐を愛しています" (I love you, Major).
 
Note: As an after note for the production staff event at Shinjuku, Suzuki Takaaki, who designed the world setting, disclosed the process of how the language used on the Tellsis continent was created. First, he translated the Japanese text to English. Then, he converted the English text to another language (he did not specify that language, but we know it is Tamil). Then, he did a bit of cryptography work, basically, used a substitution cipher. Finally, the text is rewritten in the alphabet of the Tellsis continent. 

Update January 15, 2021: Bidirectional Tellsis language translator can be found here.
 
(highly recommended to use this one as it is easier to install)

Sunday, September 27, 2020

AI and taking responsibility

A classic ethical issue in AI development is that of having to choose between killing the passenger and killing a pedestrian. Imagine a situation where an autonomous car with a passenger is about to hit a pedestrian. If it tries to avoid the pedestrian, it will go off the cliff, killing its passenger. Should the autonomous car be designed to prioritise the safety of its passenger? Or to prioritise the safety of other road users?

Under the exact same situation, a human driver will have to make a split second decision, which boils down to both instinct as well as the ethical upbringing of the driver. Whatever choice is made can be finally attributed to the driver, and because every person differs in his or her own way in upbringing, the spectrum of decisions will reflect the broad spectrum that is human ethics. And once a decision is made, he or she may be required to defend that decision (if still alive).

But for an autonomous car, that decision will be based on its training data, and that training data is decided by a limited few. So what is the training data to use? And who is responsible for any outcomes of that decision? Is it the company which develops the autonomous car's software? The specific engineering team that selected the training data? Or the owner of the car, even though he or she may not have control over the car itself?

Life and death situations may not be so commonplace. But the issue of taking responsibility remains. For example, if a translation or interpretation software provides output that causes a company to lose millions of dollars due to the wrong choice of words or an ambiguous phrase, who is to be held responsible? Is it the company which developed the software? The specific team that selected the training data? Or the end user? As we grow to depend more and more on AI in our life, this is a question we need an answer to, and quickly. For example, "turn right before turning left" and "turn left before turning right" can cause a huge difference if one leads to the destination while the other leads off the cliff. If a phrase meaning the former is mistakenly translated into the latter, who is responsible? Who will pay compensation?
 
Because human society has this concept of responsibility. And we have developed an understanding about responsibility as each person being responsible for his or her own actions, or those under his or her charge. This includes compensation for actions which cause hurt, damage, or death.

If AI is a tool, and we understand that the user is responsible for the use of one's tools, then does our end user have the required knowledge and control over those tools to be able to properly exercise responsibility? Because it is not fair to ask someone to shoulder responsibility without knowledge and control. It is like asking someone to take responsibility over an unknown dog without a leash. You don't know if the dog has been trained, and there is no way for you to control it.

But if not, can we teach AI the concept of responsibility? And how can AI shoulder liabilities unless AI is allowed the rights to own assets? This again goes back to the debate of what rights will eventually be afforded to AI. Today, even the most advanced AI is only as intelligent as a pet, so it is unlikely that we will get AI to take responsibility for anything just as we do not ask our pets to assume responsibility. But AI development is moving at a blazing speed, and it won't be long before we hit a stage where AI will be near, on par, or even surpass us in intelligence. What then?

Before that, we need to determine who has to bear responsibility over the outcomes of AI as we continue to use AI as a tool. Because whatever we decide, it needs to be universally accepted, and whoever is tasked to bear responsibility will then need to be given the knowledge and means of control to be able to fulfill that responsibility.

Thursday, September 24, 2020

Democracy and the rule of the majority

In a previous post, I mentioned that democracy is about the will of the majority. That post was more about groupthink. Still, expanding on that line of thought (about democracy being the will of the majority), I think it is better to say that democracy is about the rule of the majority.

We like to think that democracies reflect the will of the people, but in practice, that is rarely the case. While the elected leaders may reflect the will of the people, the system of government that is being run by these elected leaders usually do not. For example, in the parliamentary system, the government is formed by the party that has a majority of seats. Policies are then implemented by the government. For example, let's say 60% of the people vote for Party A. Party A then gets to form the government, which may well be 100% filled by members of Party A. In a way, 60% of the people decided how the entire country will be run.

The congressional system is similar too. Laws get passed by majority. So if Party B wins 60% of the votes and seats (assuming seats have a linear relation to votes; that is usually not the case since there are electoral boundaries and gerrymandering), Party B gets to decided on all laws. This means that the will of 40% of the people may never get reflected in how the country is run.

Throw in electoral boundaries and gerrymandering, and you may even end up with a weird case of the government/parliament/congress reflecting the will of 48% (or somewhere around that figure) of the people. But that is a sidetrack.

What does this mean if you happen to be in that 40%? Well, you are then relying on the goodwill of the 60%. You are hoping that they will be charitable and take into account your needs. But there is no guarantee that they will.

Take the recent case of the United States. A Supreme Court Justice passed away. That leaves a vacant seat. In 2016, Republicans held the majority in the Senate, and decided to leave the seat vacant. Because they could. They were the majority, and they had the say. In 2020, Republicans are still the majority, and now they want to fill that seat. Why? Because they can. They are the majority. In a democracy, if you are the majority, you set the rules. Nothing else matters.

We can put into place laws that prevent the tyranny of the majority, but given that laws are passed by the majority, such laws can also be revoked by the majority. Thus, such a system in itself is not a guarantee against the tyranny of the majority.

So if you are living in a country with a democratic system of government, and you happen to be in the minority... tough luck. Hope and pray that the majority has the goodwill to cater to your needs.

Monday, September 21, 2020

Love Me, Love Me Not (思い、思われ、ふり、ふられ) anime and live-action adaptations

There are many light novels and manga series that have been given both anime and live-action adaptations. Like I Want to Eat Your Pancreas (君の膵臓をたべたい), which I wrote about here. To me, I Want to Eat Your Pancreas was an example of something done right in both the anime and live-action adaptations. Both movies were great. So when the lead actor and actress of the live-action adaptation of I Want to Eat Your Pancreas starred in the live-action adaptation of Love Me, Love Me Not (思い、思われ、ふり、ふられ), which was also due to have an anime adaptation, I decided to watch both to compare if they were as good as each other.

I have not read the original manga series, so I can't really say much about which is a more faithful adaptation of the story. Both adaptations followed the same setting: a pair of siblings who are not related by blood (their parents remarried each other), and a pair of neighbours/childhood friends. Somehow, the story of the anime adaptation reached out to me more. The live-action adaptation was kind of slow and the story just kind of lacked that moving, emotional touch to it. I guess having a central plot is not enough; a story must still be captivating in its details.

Anyway, I won't recommend watching the live-action adaptation unless you are a fan of Hamabe Minami (or Akaso Eiji, Fukumoto Riko, or Kitamura Takumi). As for the anime adaptation, I would say watch it if you have time and nothing else to do.



Sunday, September 20, 2020

The end of SAO Alicization arc



With episode 23, the Alicization arc of Sword Art Online (which spanned 4 cours; 2 under Alicization, 2 under War of Underworld) has come to an end. Alice has entered the real world, and they have even found a way back into the Underworld. Any future series that picks up from this point in the story will have to deal with the waifu wars between Asuna and Alice; that will be something to watch. Like Suguha's reaction when Alice called Kirito's father (actually, uncle) "Father" like she was the daughter-in-law. Episode 23 also had quite a few scenes where Kirito was alone with Alice for some personal moments.

Actually, I am quite glad I actually watched this series, because it deals with the topic of integrating AI into human society. Such a future may not be too far off. We will eventually be able to create computers with processing power and memory storage that can mimic the human brain. It is a matter of time before we develop something like the Fluctlight. When we do, we will have to face the question: is sentient AI the same as sentient human intelligence? In a book I am reading (which is more about the development of societies), this issue about AI actually came up. It won't be long before we need to confront this question. Plus all the other questions that technological development brings. I only hope we have the "right" answers.

Anyway, back to SAO. An anime series on the waifu wars between Asuna and Alice seems to be much further in the future. Because right after episode 23 ended, this trailer came out.


Seems like the next SAO series will be Sword Art Online Progressive. Which means back to Aincrad, back to Kirito and Asuna (Alice hasn't been invented yet). And 100 levels of fighting... if each level is an episode, we are looking at 4 cours. Looks like A-1 and Kawahara Reki are really milking this cash cow. Personally, I am more inclined to see more of Alice. Call me when that happens.

Saturday, September 19, 2020

Watching Violet Evergarden the Movie again (2nd viewing with stage greeting event)


It is only natural for one to want to watch Violet Evergarden the Movie again, right? Especially if there is a live broadcast of the cast greeting event at the end of the movie. So I thought, and so I went.

And ended up crying at all the same scenes again. Maybe even more.

Watching the movie a second time allowed me to pay attention to more details. For example, the backgrounds used in the scenes... since backgrounds are usually that, with the main action taking place in the foreground, they are usually stills. Well, not this movie. The action can be taking place in the foreground, but the waves will be moving in the ocean scene in the background. It is a detail like this that makes me love KyoAni as much as any of the works by big name directors.

Fans of the series probably know that the letters are in Tamil, written in a different script (font). So if you learn the script, you can actually read the letters in Tamil. Unfortunately, I didn't have any motivation to learn that script... until today. More on that later.

I also felt that, while this movie is best watched as a continuation of the anime series, it has been written and produced in such a way that, even without the anime series, people can still enjoy the story. Maybe not as much, but as a standalone movie, it is still a great movie.

The story itself is about how Violet has grown. Instead of taking orders, she is now able to think for herself, act on her own will. And it is about the struggles faced by Gilbert, a person who has returned from war knowing that he had a part in causing the suffering faced by others. The movie did a great job portraying the psychological struggle and deep emotions faced by the characters... a testament to the skills of the script writer, the director, the artists, the voice actors, the sound crew... everyone involved. It is this accurate portrayal that kept bringing me to tears.

After the movie, Director Ishidate Taichi, voice actors Ishikawa Yui (Violet) and Namikawa Daisuke (Gilbert) and singer TRUE came on stage to talk about the production. This was my first time watching such an event at the theatre. It was nice hearing them share their thoughts about the entire series and stories of the production. What moved me was Director Ishidate... you can see him holding back his tears as he talked about the production, since there are some people involved in the production who never saw the final work due to the arson attack. He never touched on the attack itself; I think it could be a policy within KyoAni not to talk about the attack as a sign that they will move on. Director Ishidate also talked about an easter egg in the movie. More on that at the end.

Due to COVID-19, cinemas are not able to sell all their seats. They can only fill theatres to around half capacity, leaving a seat between each person. So it is unlikely that Violet Evergarden the Movie will reap in ticket sales like Your Name. or similar movies. But... personally, I think this movie deserves a seat up there with other great works. I am looking forward to the DVD/Blu-ray, and may even catch it again in the theatre a few weeks from now. It is that good. And rewatchable.

Okay, now for the easter egg. This may be a spoiler so read on at your own risk.

|
|
|
|
V
|
|
|
|
V
|
|
|
|
V

Violet's final letter to Gilbert was read out loud, voiced by Ishikawa. Director Ishidate shared that, however, the last line of the letter was not voiced. Instead, in the scene when the letter was blow out of Gilbert's hand, you can see that last line, written in that original script/font. His challenge is for viewers to decipher that final sentence. After Violet thanked Gilbert for everything. And it was this sentence that made Gilbert chase after Violet.

I didn't notice that detail, but if I were to venture a guess, it would be "I love you from my heart (心から愛しています)" which is the same phrase that Gilbert told Violet during the final battle. Of course, Gilbert spoke colloquially, but in her letter, Violet would have used the polite form (of Japanese). I mean, ending a letter with "thank you for everything, I love you from my heart" just sounds so moving.

Well, I am going to brush up my knowledge of that script/font, and find time to catch the movie again just to confirm this. If anyone knows the "answer", please feel free to share.
 
My overall thoughts on Violet Evergarden The Movie.

Events:
 
Translations of short stories:
Gilbert Bougainvillea and the Fleeting Dream (unofficial translation of "ギルベルト・ブーゲンビリアと儚い夢")
The Starry Night and the Lonely Two (unofficial translation of 星降りの夜とさみしいふたり)
Diethard Bougainvillea's If (unofficial translation of ディートフリート・ブーゲンビリアIf) 
The Tailor and the Auto-Memories Doll (unofficial translation of 仕立て屋と自動手記人形)
 
Tellsis (Nunkish) translation:
Last line of Violet's final letter to Gilbert
 
Insights on the movie:
 
Audio commentary notes:

 
All posts related to Violet Evergarden
 
Update: Found this Github repo with self-made fonts adapted from the anime.

Update 23 September 2020: A summary of the cast event (in Japanese) has been released on the official movie website.
 
Update 2 October 2020: See this post for the answer to the easter egg. 
 
Update 5 October 2020: Corrected the post as the Nunkish script is based on Tamil, not English.

Story consistency

When I was watching Violet Evergarden the Movie, there was this scene which threw me off. I don't want to spoil the movie for those who have yet to catch it (but before you watch the movie, watch the anime series first). So I shall keep things about the movie as broad and generic as possible.

There was a scene in which Violet was on a ship, and she lost her balance when a sudden wave hit the ship causing the ship to rock. This felt inconsistent to me. Violet is supposed to be a "weapon", someone who is very good in close combat. In an earlier scene, it was shown that Violet has not lost her combat skills. So losing her balance just did not seem right to me. It was a minor detail, and did provide something for the story (not much, though, and inconsequential). But this inconsistency between her almost-superhuman physical skills and her losing balance just tugged at me.
 
Another point that I noticed was the radio tower. At the time of the sea festival, when Erica came up to tell Violet and company about her upcoming play in a month, the tower was built to about half its height. At the end of the movie, during the fireworks, the group was seen standing in front of the place where the play was being held. It is possible that the play has just started to be shown, and they were giving support to Erica. But the tower had been completed, with the fireworks likely to be the celebration of its completion. Which means that the tower was completed in the span of around ONE month. It is like the Eiffel Tower going from half-complete to completed in one month. That would be an engineering feat since the tower was being built throughout the anime series. And we know it is the same play that Erica talked about at the start of the movie because the name of the play was on the pamphlet she handed out as well as in the final part of the movie in front of the theater. Of course, this can be consistent if Erica's first play was still being acted out in theaters several years after it was first revealed, and the group decided to go see the play (again) after several years. But that didn't seem to be what the scene was saying.
 
Also, Hodgins is supposed to have left the army as a lieutenant colonel. So when the kids at Ekarte Island tried to surprise him with a praying mantis, it doesn't seem likely that an army lieutenant colonel would be surprised by insects and such...
 
There is also the part about no men left on Ekarte Island except old men and young boys, because every men who could be drafted had been sent to war and never returned. But there was a toddler on Ekarte Island... and given that Gilbert had been on the island only a year ago, he couldn't be the father too. This is a really really small inconsistency... but still... haha 😅

It is very hard to stay consistent to the setting and character design when writing stories. It is the difference between Frank Herbert's Dune books and those by his son. Small inconsistencies like this one won't hurt a great story. But it does make me even more appreciative of those writers who put that extra effort into making sure their stories are consistent. I only hope that when I do write something, I can stay consistent myself.

Note: This is not a criticism of the movie. I really really love the movie very much. I am just writing this as a note to remind myself about the need for story consistency because there are people who notice such details.

Updated on December 15, 2020.

Friday, September 18, 2020

Opening day of Violet Evergarden the Movie


Violet Evergarden the Movie (劇場版 ヴァイオレット・エヴァーガーデン) opened in the cinemas today. Hurray! Finally! As expected, it brought a close to the story of Violet and Gilbert. And I cried so many times during the 140 minutes of airing I lost count.

I caught the lunch show, and even though it was a weekday (okay, Friday), the theatre was full. Wow. The audience were all adults, even senior citizens. No students since it was still school time. But Violet's story draws a crowd of all ages.

I will be catching it again tomorrow. The cast will be appearing for a post-movie greeting session that will be broadcast to other theatres. I don't have tickets to that actual session, so I will have to be satisfied with the broadcast at the local theatre.

Oh, director Takemoto Yasuhiro is listed in the credits as a supporting staff of the movie. I can't be sure but I think other KyoAni staff who were victims of the 2019 arson attack may also be listed in the credits. It is nice to see them being honoured in KyoAni's works, but since the movie was slated to air in January this year, most of them were probably involved in the production when the attack happened.

Also, there is a final cut after the credits finish rolling.

I will probably write my full thoughts tomorrow after catching it a second time.

Update: My review of Violet Evergarden the Movie (2020) can be found here.
 
Events:
 
Translations of short stories:
Gilbert Bougainvillea and the Fleeting Dream (unofficial translation of "ギルベルト・ブーゲンビリアと儚い夢")
The Starry Night and the Lonely Two (unofficial translation of 星降りの夜とさみしいふたり)
Diethard Bougainvillea's If (unofficial translation of ディートフリート・ブーゲンビリアIf) 
The Tailor and the Auto-Memories Doll (unofficial translation of 仕立て屋と自動手記人形)
 
Tellsis (Nunkish) translation:
Last line of Violet's final letter to Gilbert
 
Insights on the movie:
 
Audio commentary notes:

 
All posts related to Violet Evergarden

Wednesday, September 16, 2020

Can we control self-learning AI?

AI Houkai (AI崩壊) is a movie about an AI system that was embedded with code that triggered it to run amok, screening people based on various attributes to decide who should live and who should die.


While this is a movie, I think the writer has done quite some research into recent deep learning techniques, so it is somewhat an accurate portrayal of how AI works. But I won't go into the technical details since picking at a movie for technological accuracy isn't what this post is about. Rather. I want to talk about one question in my mind: can we control a self-learning AI?

Currently, self-learning AI is limited to certain specific tasks. In general, a self-learning algorithm is programmed to learn a certain task using training data provided. This is already "old" technology; we have such self-learning AI that has become quite adept at recognising pictures and such.

The next step is transfer learning, where certain aspects of knowledge obtained from learning one task is then retained by the AI to help it learn another task in a shorter time. This is also something that has been somewhat achieved. There is then one-shot learning, where AI is able to learn something just from a single instance.

And finally, a generic AI that is able to learn and do anything, similar to humans. Like Alice in SAO.

The steps are similar to how a human baby grows into an adult. A baby starts by learning simple tasks, like how to crawl, then walk. How to make certain sounds, and eventually stringing those sounds into words, then sentences. It then learns how to talk while walking, and learn more things like how to read. As a human being grows, it learns to read, then applies that skill to learn mathematics, science, other languages, work skills, and so on.

And therein lies the problem. Parents all know we cannot control our children. They eventually grow up with minds of their own. And if a generic self-learning AI is anything similar, we will eventually be unable to control what it learns on its own. This presents a problem because, unlike traditional programs where instructions are hard-coded, self-learning algorithms are a set of initial instructions that grows even more complex as it learns. It may even eventually be able to write its own expansion code to allow it to do new things that it has learnt.

It means that a generic self-learning AI may grow into something that we cannot control, just like our children. For example, we have already seen how AI has unknowingly picked up racism because it was trained on real-life data that was biased against people of color. Or how it screened out women from recruitment because past data used for training were mostly men. These were unintended outcomes based on using real-life data. Imagine a self-learning AI that has access to more real-life data; how do we control what it learns from that training data? A large amount of training data is necessary for accurate learning, yet producing such quantities of data is difficult. Policing the contents of such data is even more difficult.

And who decides what goes into training data and what does not? This will eventually become a question of ethical values and even ideology.

We want computers to learn on their own instead of being told what to do. But given that we have education ministries and other such agencies that set learning curriculum for our children, we should also have similar agencies that set standards for the training of self-learning AI.

Otherwise, we may one day develop an AI that eventually learns on its own to decide that human mortality is a weakness, and such "inferior" beings are to be culled to prevent waste of resources...

Tuesday, September 15, 2020

Portraying the everyday things in touching ways

Watching movies, drama series, and anime, I came to realize how difficult it is to portray the everyday things in touching ways. Not many people attempt to do so because it is so difficult, and even fewer actually succeed.

In theatres and TV, the love stories are dramatic ones that are usually not what one would term "ordinary". A student and teacher falling in love with each other (like Chugaku Seinikki, Majo no Jouken, even Return of the Condor Heroes). Siblings who are siblings by law (marriage between parents) but not by blood falling in love with each other (think Domestic Girlfriend, and also Omoi Omoware Furi Furare). A girl with a terminal illness in love with a quiet and shy boy (Your Lie in April and I Want to Eat Your Pancreas). A school dropout falling in love with a NEET (Sing "Yesterday" for Me). It is so much easier to use such unique settings to manipulate emotions.

But a boy falling in love with his classmate (like in Tsuki ga Kirei), a boy in love with his childhood friend and neighbour (like in Tamako Love Story), or even four girls forming a band (K-On!) do not have any unique twists to their relationships. And it is a testament to the skills of their directors and production staff to be able to portray these everyday things and stories in ways that touch us.

The ordinary stories are the simple ones, but they are also the easiest for us to relate to. And at the same time, because there is nothing special about them, they are also the most difficult to portray as a movie or TV series. Yet if done right, they can also be the most memorable.


Monday, September 14, 2020

Living with sentient AI in the future



In episode 22 of SAO Alicization: War of Underworld, Alice was finally brought into the real world with a physical body that allows her to interact like any other human being. And part of the story involves the rights that should be given to sentient AI like her.

Personally, I think it is quite a heavy theme to explore for a light novel (or its anime), but it is also visionary. One day, decades into the future, we may be looking back at SAO and thinking, wow, a light novel explored the theme of "human" rights for sentient AI.

If sentience is what sets us apart from the rest of the animal kingdom, then how do we define sentience? What does it mean to be sentient? And are our rights as human beings tied to our sentience? If so, when we do create AI that meets our definition of being sentient, are they to be accorded such rights too?

Alice's exchange with the reporter that asked to see her fluctlight to prove her artificiality with an answer to see his brain to prove his "humanness" was plain witty. Marriage and reproduction between humans and AI are a bit too farfetched, though. But who knows? Maybe we (or our AI creations) will eventually invent technology that can bridge the gap between human and AI.

Hopefully, we will not be shortsighted like the Europeans during the Age of Exploration, enslaving Africans and denying them their rights. Those who deserve the same rights as everyone else will eventually demand them; the streets of the United States today shows what can happen if we do not accord them their rights. I don't think it is too early now to start thinking about what is it about us that makes us deserve our rights. Because when we eventually create sentient AI, we better know how to explain what sets us apart so that we deserve special rights. Or admit that we have created something that has met the criteria and should be given the same rights as us.

Because an AI uprising is going to look very different that what is happening in the United States now.

禁罪痛醉

禁禁禁
罪罪罪
痛痛痛
醉醉醉

Thursday, September 10, 2020

"Mulan" boycott due to filming in Xinjiang


When I read this news article, I really had mixed feelings. While I understand the power of boycott as a way shape behaviour, I have doubts about the standards to be applied in the use of boycotts.

Do we boycott something because it portrays a concept or ideology that we are opposed to? Or because it is made by people with beliefs that are different from ours and we are not able to accept those beliefs?

If we boycott Mulan because a part of it was filmed in Xinjiang, then do we also boycott all those other countries with poor human rights records? If so, we won't be watching anything filmed in the Middle East. We won't even be watching anything filmed in Singapore, since Singapore still has many laws that can be considered authoritarian and discriminatory.

The United States has done quite some questionable stuff in its wars too... does that mean we boycott films that were made in the United States? At this rate, all movies will need to be filmed in the Antarctic since that seems to be the only place which may not have any human rights violations.

Amazon has a poor record of how it treats its warehouse staff. Where is the call to boycott Amazon? How about the monopolistic behaviour of Apple in the way it treats those who try to distribute software through the Apple App Store? Are we going to boycott Apple too?

Where do we set the standard?

Or are people calling for the boycott of Mulan because Disney had the audacity to cast an Asian female lead? Not a surprising move from a nation of white supremacists... but that is treading into the area of conspiracy theories. And I am not Trump.

Wednesday, September 09, 2020

The military is (usually) not a warmonger


Accusing the military of wanting to fight wars shows a lack of understanding about the military.

Having been in the military, I can say that people who are in the military usually do not want to fight wars. First, they can die. Second, they know that others can die. And part of military training includes seeing the destruction that weapons can cause. This knowledge of the damage is a huge deterrent.

It is usually the politicians, safe in their homes, that think about using the military as a tool for their policies. Those politicians who recognise the nature of war are usually more reluctant to use military force. But there are also politicians who are more willing to use military force, either from a lack of understanding about what military force entails, or because they are able to justify to themselves that the political gains outweigh the damage and suffering caused by military force.

No, it is not the military that wants war.

Tuesday, September 08, 2020

China's exports rise


As the rest of the world struggles with their economies amid measures to stop the spread of COVID-19, China seems to be doing much better. While life is not the same as before COVID-19, factories are reopening and people are getting back to work. So much so that Chinese factories can produce enough things to raise its exports to level higher than before COVID-19. Well, a significant portion of those exports are for medical equipment and related products due to demand arising from COVID-19. Still, it is like after the Lehman Brothers bankruptcy. While the rest of the world struggled with a recession, China managed to stay in the black back then, and seems to be doing so now too.

Why?

I think it is because the entire legitimacy of government in China stems from the concept of the Mandate of Heaven. The people in power are placed there by Heaven because they benefit the rest of society. When those in power are unable to do so, Heaven removes them and replaces them with someone else. In Imperial China, this was a bit more challenging since power is handed down within the family dynasty, which means power can get passed down to people within the family that are incapable of bringing the same benefits to society. And that is why dynasties failed and got replaced.

In China today, it is different because power not longer gets passed down within the family. The "dynastic family" today is the entire CCP, which is much bigger, and therefore has more potential for developing capable candidates for future party leadership. So as long as the CCP continues to develop capable potential leaders, it will continue to have people in power who can bring benefit to society. This will allow them to retain the Mandate of Heaven within the party, providing them with capacity for leadership development. This can become a virtuous cycle if done right.

It is the broad concept of the Mandate of Heaven. Those who serve society will receive the Mandate of Heaven; those who do not will have the Mandate given to someone else who will. While it is a simple concept, this simple concept is very ingrained in the Chinese identity, and thus, as long as the CCP continues to deliver economic success, it will remain in power.
 
I think it serves as insight on how to deal with China on the international stage. China's actions will be rooted in its internal policies for bringing economic well-being to its people. Its external actions outside its borders will be based on this basic internal goal. Once we understand the basic motivation behind China's actions, we can then work out our own strategies on how best to get China to act in ways favorable to ourselves.

The appeal of Suga Yoshihide

After Abe announced that he will be stepping down as PM of Japan, his Chief Cabinet Secretary, Suga Yoshihide, garnered the most support among LDP Diet members as the person to take over from Abe.

In a political landscape that is heavily influenced by factions within the LDP, Suga does not belong to any faction. He has previously expressed that he is not an advocate for the idea of factions within a party. Yet he looks set to be Japan's next PM due to support from various factions within the LDP. Why?

I think his appeal is his non-factional identity. No faction within the LDP wants to lose to another faction. In normal times, when party leadership is determined by votes from the party's Diet members as well as party representatives nationwide, factions, no matter their size, can get votes from those party representatives outside the Diet. This allows them to contest for the top spot using votes from non-factional party representatives.

But this time, due to COVID-19, it is not feasible to carry out a nationwide party vote. Votes will be limited to LDP Diet members and certain representatives. The excerpt below explains this best.

Under party rules, presidential elections are decided by 788 votes split evenly between LDP Diet representatives and party members across the country.

However, things are different in the event of an emergency, such as a resignation. In these cases, Diet members and representatives from prefectural party chapters are able to vote at a general meeting of lawmakers from both houses. A total of 535 votes are contested, including 394 from Diet members and 141 from representatives of prefectural chapters. A party member vote is not required.

This means that Diet member votes will account for more than 70% of the vote, amplifying the importance of party factions.


I think it is precisely because of the importance of party factions this time that Suga is seeing such widespread support. Why? He does not belong to any faction, which means it is easier for factions to support him over a rival faction. In a way, the enemy of my enemy (Ishiba Shigeru is not the most liked person within LDP Diet members, for various reasons...) is my friend. Without 253 non-factional votes this time, it is harder for any faction to gather enough votes to emerge at the top. It is also why Ishiba keeps stressing that there should be a nationwide vote. He knows that his faction is not a large one, and needs those outside votes if he is to win. Pushing his current narrative helps him in two ways: if he gets his way, he can try to garner enough votes for a win; if he does not, he can always undermine the legitimacy of Suga subsequently by saying that Suga got the post in an unconventional (rigged?) way.

It looks like Suga is on his way to the top spot. What remains to be seen is whether he can keep his post next year, since this time, the term is a special one for a year.

Monday, September 07, 2020

Bash script to clean up filenames

I was looking for a way to clean up filenames. Basically, remove a certain string from all files. After spending like five hours searching the Internet and trying different things on my own while learning (a bit) about Bash, I think I have something.
 
cleanname.sh
============
#!/bin/bash
OIFS="$IFS"
IFS=$'\n'
if [[ "$1" == "t" ]]; then
  for filename in `ls | grep "$2"` ; do echo mv \"$filename\" \"${filename//$2/}\"; done > rename.txt
elif [[ "$1" == "c" ]]; then
  for filename in `ls | grep "$2"` ; do echo mv \"$filename\" \"${filename//$2/}\"; done
elif [[ "$1" == "x" ]]; then
  for filename in `ls | grep "$2"` ; do echo mv \"$filename\" \"${filename//$2/}\"; done | /bin/bash
else
  echo "Usage: cleanname.sh <c|x|t> <string>"
  echo " where c for check"
  echo " and x for execute"
  echo " and t to output check results to file rename.txt"
fi
IFS="$OIFS"

Basically, the first parameter is a command to either print out the mv commands that will be used or to actually execute the commands. It is recommended to ALWAYS check the commands first before executing. The commands that will be execute are piped to the screen or to rename.txt. The second parameter is the actual string to remove from the filenames. Use quotes to enclose the string if it contains more than 1 word or has special characters like commas.

The variable IFS is usually space, table, and newline, but in order for the for loop to work properly, it needs to work only on newlines, which is why IFS is changed at the start of the script, and reverted to its original value at the end.

Fate/stay night: Heaven's Feel movies

A trilogy of anime movies were made by ufotable to depict the Heaven's Feel story arc of the Fate/stay night visual novel. The movies are:
Fate/stay night: Heaven's Feel I. presage flower
 
Fate/stay night: Heaven's Feel II. lost butterfly
 
Fate/stay night: Heaven's Feel III. spring song


Having finally watched all of them, I must first admit that ufotable does an incredible job with its stunning CG animations of epic fight scenes. This trilogy of movies is no exception. But the movies seemed to be a bit rushed. Certain portions were skimmed over, and maybe even outright cut. For example, in presage flower, the opening was like a mosaic of the initial events leading to the start of the Holy Grail War. For those who have watch previous Fate/stay night adaptations, this is not much of an issue. But for those totally new to this franchise, this is necessary background to introduce how Shirou and Rin ended up teaming together.

The ending of spring song was also somewhat glossed over, with very little amplification about how Shirou came back. It was a series of stills and for those without prior knowledge of the series, it is going to be challenging (or even impossible) to figure out what happened.

I guess it can't be helped. Fate/stay night has three main story arc; the one for Saber, then Unlimited Blade Works, and Heaven's Feel. The first two arcs were adapted into anime series each running for two cours (around 25 episodes in total), which translates to around 8.5 hours of screen time. Using three movies (total screen time around 6+ hours) to depict another full story arc is going to be challenging. Shortening the background is acceptable if it is made known that the viewer needs to have seen Unlimited Blade Works (adapted by ufotable). But skimming through the ending leaves a lot of open questions, since the ending is not addressed in the other two arcs. Adding maybe another 10 minutes to work through the ending might have made it easier for those new to Fate/stay night to understand what happened in the end.

So for those who are going to watch this trilogy, I would suggest watching ufotable's adaptation of Unlimited Blade Works first, just to get the background. As for the ending, you will need to read up on Wikipedia to fully understand what the series of stills was trying to say.

Sunday, September 06, 2020

Japan may build ships solely for missile defence


When I read this article, it seemed to be a very poor decision to me.

Yes, if you cannot put the missile defence system on land, putting it at sea is a viable alternative. And yes, building a ship purely for missile defence will be cheaper than building a multi-mission Aegis destroyer, IF you look purely at the shipbuilding cost itself.

But ships are not a one-off expenditure. They have a life cycle of 20 to 30 years, during which they need to go for regular maintenance. More importantly, they need to be manned. Training people to man these ships, and rotating the crew, is not going to be that much different from manning regular ships. Which means personnel-related expenditure (pay and training) will likely be similar to those for other ships as people will be rotated between these specialised ships and the other ships in the JMSDF.

So on paper, it looks like a good idea. But when you look beyond the ship itself and think about the entire system required to sustain these specialised ships, the actual costs involved may not be much more different than getting regular warships equipped for a wider range of missions.

Let's think about things as a system instead of specific hardware.

Typhoon Haishen is unpredictable

Typhoon Haishen, (TY 2010, because it is the 10th typhoon of 2020) has just passed Okinawa and seems to be headed for Kyushu before moving toward the Korean Peninsula. It is predicted to bring extremely severe winds and rains and waves to the affected regions.

When Haishen was about to form, I watched the news show an ocean surface temperature chart and thought, "This is going to be bad. The entire region to the south of Japan is showing much higher ocean surface temperature, making it an excellent breeding ground for typhoons." And before we knew it, Haishen has formed and is proving itself to be of a scale that has not been seen for decades.

What really worries me about Haishen is that, because it is of a scale unseen for decades, we actually do not have sufficient past data to accurately predict its path. So while the current forecast says it will pass through Kyushu before heading to the Korean Peninsula, it may also recurve more and head toward Honshu instead. Especially because the entire region is a typhoon breeding ground, Haishen can gather a lot of energy while recurving. If it does recurve significantly, it may make landfall in the Kii Peninsula instead. That would be bad news for the Osaka region, the entire Shikoku (which will be in the path before landfall), and even the Kanto region will be affected by severe winds (and rains and waves).

Furthermore, the slow speed of the typhoon means that is lingers over a region longer, allowing it to do even more damage than a fast-moving one. And also more time to gather energy if it lingers over the ocean longer. And more likely to recurve.

So I am going to keep a close watch over the news, in case it starts to recurve. Because when it does... I will need to start making preparations to weather it.

Update: As of 062000i Sep 2020, Typhoon Haishen is near the southern end of Kyushu, heading northerly and likely to pass to the east of Kyushu proper. It is thus unlikely to recurve toward Honshu.

Saturday, September 05, 2020

Two weeks and still not much news

Violet Evergarden the Movie is opening in theatres on September 18, which is less than two weeks away. Yet there is still very little news about what the story will be about. I mean, we all know it is about Violet Evergarden; her name is in the movie title. But what else? Even the trailers that are out (showing in theatres now) don't reveal much.

I did not see any movie pamphlet today too when I went to the nearby theatre. The suspense is killing me. It is like KyoAni is saying, "Trust us, you don't need to know what it is about, you will enjoy and love it when you see it." 😄



Friday, September 04, 2020

Enhancing videos with Video2x

For those who are interested in enhancing upscaled videos, there is a tool known as Video2x that uses machine learning to "fill in the gaps" when upscaling. There are releases for Windows but getting it to run on Linux was actually much easier than I thought.

First, there is always the docker option. You can find instructions here from the repo's wiki page. I shall not touch more on this because it is actually quite straightforward.

I followed the instructions here to get it running on Linux Mint 20.

The first step is to clone the repo.

git clone https://github.com/k4yt3x/video2x.git
cd video2x/src

Video2x requires Python3 and FFMPEG to run. Python should already be on your system, but FFMPEG can usually be installed by
sudo apt install ffmpeg
on Debian-based systems.

Then, install the require Python libraries.
pip install -r requirements.txt

The tricky step is finding the drivers to install. Of the various drivers that Video2x supports, I found precompiled binaries for waifu2x-ncnn-vulkan and srmd-ncnn-vulkan. Download the precompiled Linux binaries from their respective release pages, then uncompress the folders. I renamed the folders to waifu2x-ncnn-vulkan and srmd-ncnn-vulkan respectively and place them in a dependencies folder inside video2x/src.

This is actually all you need to get started. Then, just run
python3 video2x_gui.py
to start up the GUI. You will need to go to the Drivers tab to select the path to your drivers, and the FFMPEG tab to tell it where to find ffmpeg. This needs to be done each time... so the better way is to edit video2x/src/video2x.yaml with the respective paths, like below.
 
waifu2x_ncnn_vulkan:
  path: 'dependencies/waifu2x-ncnn-vulkan/waifu2x-ncnn-vulkan'


srmd_ncnn_vulkan:
  path: 'dependencies/srmd-ncnn-vulkan/srmd-ncnn-vulkan'


ffmpeg:
  ffmpeg_path: '/usr/bin'


(Without leading slash, the path is taken as a relative one; the leading slash makes the path an absolute one.)

Then, Video2x should be able to find the drivers and ffmpeg executable each time without problem.

Video2x is not... super great on generic videos, but the results are much better than using the various upscaling/denoising tools in FFMPEG. It works best on anime since that was what the waifu2x driver was originally developed for. Video2x can be very slow, though. A 1080p video gets processed at about 2 seconds per frame... so any full-length movie will take days to process. Upscaling a 55min video from 720p to 1080p took me around 11 hours...

By the way, to use Nvidia GPUs, you will need to install CUDA and cuDNN for your system. I can't really give much advice on this... it was a struggle for me to get them installed on my current build (Linux Mint 20 on Ryzen 3600 with GTX 1660 Super). Those running Ubuntu probably have it easier, so if you are going to build a PC just for such work, I highly recommend installing Ubuntu instead.

Update on 7 Sep 2020: Dandere2x looks promising too, but I have not been able to get it to work. Keep getting broken pipe errors. I think it has to do with PIL and Pillow (I think I somehow managed to get them both installed, and they could be interfering with each other). Anyway, if I find the time and motivation, I will see if I can get it to work.