Thursday, 8 April 2021

Stakeable cryptocurrencies comparison

What are they, and what do they want?

In this post, I present a highly subjective ranking of Proof of Stake cryptocurrencies. My inspiration stems primarily from a couple of shower thoughts. The first being that Proof of Work is indeed unsustainable. Obviously, this is not an original thought of mine, but the more I think about it, the more it seems to be true. Whilst I do not think Proof of Work will die before I do, it feels natural to look for alternatives, which brought me to discover Proof of Stake. Again, that is not my idea, but it is a charming idea, so I will roll with it for now. My second thought came when my wife and I were looking at stock savings accounts, and I realised that the Bitcoin I have mined with my new GPU has even worse interest rates than the Yen in my bank account. Sure, Bitcoin is projected to rise in value, but the same is true for most cryptocurrencies. Rather than just sitting on the Bitcoin and then see how far it can rise, or converting the Bitcoin to Yen, pay taxes, then invest the remains in an index fund or the like to get returns, perhaps staking can be a good option. However, even if we look only for Proof of Stake options, there are still heaps of cryptocurrencies to choose from. That is where I had my third thought, that money for the sake of money is rather lame, so I would look at the story behind the numbers. Why are the cryptocurrencies here? What is their purpose beyond profits? Why pick this one over the next one? In addition, I will look at the staking process and its requirements to say something about how difficult, or easy, it is to stake your coins once you have them. This is a relevant question for a scrub like myself. One thing to keep in mind is that most, if not all, coins can be staked using staking pools, a solution that can circumvent most of the barriers that make staking difficult. However, I will not look at third party staking pool services in this post, rather I will consider the native staking options built into each platform.

Note that this ranking is not intended as a guide for those who are looking for the quickest way to get rich. Currencies are listed by their sense of purpose, and ease of staking. This is of course highly subjective, and opinions in this post are based on information from the different currency’s official web pages. Considering this is the internet, it is possible that the developers, or their marketers, are full of crap and do not even intend to live up to their promises, but this post is based on the bold assumption that they are decent people with the best intentions. With that in mind, on to the ranking.

1. Reddcoin

What is it?

Reddcoin markets itself as “the social currency”, and the idea is to integrate a tipping feature in social media platforms so that anyone can send a tip to anyone as a reward for a great post, or comment. To facilitate this microtransaction behaviour the blockchain has fast transactions of one minute, and low to zero transaction fees. The absence of both mining and transaction fees is compensated by a yearly inflation of 5%, with no supply limit. These 5% are distributed as rewards to the stakers.

How does one stake it?

Staking Reddcoin is as simple as downloading their latest software wallet, the Reddcoin Core Wallet, and putting some Reddcoin in it. First, the wallet needs to download the entire transaction history. This took my old laptop about 2 days, but uses surprisingly little disk space. Coins will “mature” 8 hours after you put them in the wallet, and the wallet will stake mature coins automatically as long as the application is open, and the transaction history is fully up to date. Keeping the wallet open uses very little resources, so one can stake on any device with a stable internet connection. A mobile wallet with staking functionality also seems to be on the horizon. If your wallet goes offline, it simply stops staking until it gets back online. 

Why this rank?

Reddcoin tops this ranking simply from ease of staking. Just download their wallet, add funds, and wait, it does not get simpler. Whilst still pretty much unknown to the public, I like that they have a clear niche, which could be an advantage over the many other chains that seem to compete on pretty much the same field. Another thing that counts positively for Reddcoin is that they are the only entry on the list that is upfront about their monetary policy, and how staking rewards are distributed.

2. Polkadot

What is it?

Polkadot is a blockchain that is interesting exactly because there are so many other blockchains to choose from. Simply put, Polkadot aims to be the connection between different blockchains. Through something called a Bridge, Polkadot is able to connect more tightly to external networks than blockchains normally are, which allows for richer interaction between the different systems. They also promote something called Parachains, more or less independent blockchains that run in parallel to their main Relay Chain, whilst sharing the security of the Polkadot network. This can be a great idea, because the security of a blockchain depends on the size of its network.

How does one stake it?

The Polkawallet, Polkadot’s official wallet, is a mobile wallet that seems to have all the functionality required to stake your DOT. One thing to note about Polkadot is that their consensus mechanism is not plain Proof of Stake, so the staking options might be a little different from other currencies. 

Why this rank?

Polkadot scores well on concept. If any number of networks do well, there will be a need to harmonize their interaction. If Polkadot can deliver on this promise, they should have a bright future. Also, full staking features in the native wallet count positively.

3. Cardano

What is it?

Cardano is a blockchain built on science. Whilst it is built on many of the same principles, and with a similar purpose to Ethereum, it aims to do better through more scientific methods of development, and more democratic processes. Their purpose is to make the world a better place, and to empower the many. Their currency, Ada, is much like Ethereum’s Ether, meant to be used with the variety of applications that will be built on the Cardano network. Additionally, since Ada is a stake in the Cardano network, it can be used to participate in votes on the future direction of the network. The issue for Cardano is probably how to distinguish itself from Ethereum. It puts a lot of emphasis on being the best, as in the most secure, the most reliable, built on the most well grounded theories, and so on. However, a layman like me has no way to tell if this is actually the case, I can just take other people’s word for it. So it seems to be a better version of Ethereum, but the question is whether the improvements will be enough to make up for Ethereum’s head start.

How does one stake it?

Cardano promotes two ways to stake your Ada. You can set up a Stake Pool, or join a Stake Pool. The easiest way is of course to join an existing Stake Pool, and both of the native wallets recommended on Cardano’s official site appear to have built in functionality to help you find a pool, and delegate stake to it. Setting up your own Stake Pool seems to be a somewhat complicated process, and staking on behalf of others comes with a certain amount of responsibility, but it is also possible to run a private Stake Pool just to stake your own coins. If you want to create your own pool, you might be incited by the fact that there is no lower limit on your own stake, the pool requires very little hardware resources, and there appears to be no economic penalties for going offline, apart from loss of potential rewards. Rather, pools are ranked on various criteria to promote the best performing pools, so if your performance is inconsistent you are likely to attract less stakers.

Why this rank?

Cardano is perhaps doomed to be compared to its older brother Ethereum, but at least on this ranking it comes out on top, much because the staking features seem a lot more matured. The low threshold for setting up one’s own Stake Pool also counts positively.

4. Binance Coin

What is it?

Binance is a big cryptocurrency exchange platform that also handles exchange from and to fiats. They have their own currency, Binance Coin, native to the Binance Smart Chain. It actually looks like they have two blockchains, the Binance Smart Chain, and the Binance Chain, not smart edition. On the smart chain, Binance Coin can be used with various apps that reside on the chain. As Binance is an exchange, their coins can also be used to pay for transaction fees on the network.

How does one stake it?

Binance has made a slight twist to the consensus algorithm, so that it runs with only 21 Validator nodes on the entire network. These 21 Validators are elected from the available Full Nodes based on who has the most stake in their pool. Setting up a full node seems to require some technical skills, decent hardware, and a minimum stake of 10000 BNB. The easier alternative is to Delegate your stake to an existing Validator. This seems to be a relatively simple process, available from several wallets, and the Binance official page has guides on how to do this. The only thing to keep in mind here is that staking locks your coins for a period of time, so you need to wait before using them for something else.

Why this rank?

Whilst Binance Coin seems very legit in isolation, it sort of just comes across as “we can do our own blockchain too” kind of exercise. The fact that they can might be some of the charm about cryptocurrency in general, but I just do not feel it on this one. Considering Binance is already pretty big their coin might be a pretty good investment, but for the purposes of this post they end up a little on the weak side.

5. Ethereum 2.0

This is sort of the elephant in the room here, but the list would not be complete without Ethereum. I say this because Ethereum is not really Proof of Stake yet, it still relies mostly on Proof of Work, but the transition to Proof of Stake started with Ethereum 2.0 Phase 0 in December 2020, and staking Ether is already possible. 

What is it?

Ethereum is actually a software platform that comes with blockchain technology and its own currency, Ether. The idea seems to be that one can create and run entire applications on the Ethereum network, and our imagination is the limit. This could for example be used to provide banking services to people who do not have access to conventional bank accounts, a noble goal indeed. Applications built on Ethereum pay a fee in Ether to give the network incentive to run them.

How does one stake it?

To stake Ether one sets up a Validator Node. In order to do that it is required to make a deposit of 32 Ether, and then perform various setup operations, by the looks of it the client is not plug and play. The recommendation is to use dedicated hardware, and that is somewhat understandable when they point out that the current blockchain requires about 400GB of storage, where they recommend SSD, and this is estimated to grow by as much as 1GB per day from now on. It is also worth noting that after the Validator is online you will receive penalties for going offline, roughly equal to the rewards for staying online. A final thing to consider is that the stake cannot be withdrawn before the current Mainnet has merged with the Beacon Chain, a process that is supposed to take place within a few years, but the date is not fixed yet. It is probably safe to say that running one's own Validator is not for everyone.

Why this rank?

I am tempted to say “unfortunately”, but Ethereum staking just does not seem to be for the masses, yet. Most people cannot afford 32 Ether, and their approach to pools is very hands off. Additionally, there is the fact that we do not know when we can withdraw our funds. In its current state I simply cannot recommend staking Ether, unless of course you are hellbent on sitting on them for years anyways.

Closing comments

As I explore more blockchains and currencies, I will add more entries to this post. If you have a suggestion, please leave a comment and I will take a look.

Friday, 7 August 2020

From zero to 英雄, a comprehensive Anki deck for Japanese

This post is made to receive feedback on my Anki deck for Japanese learners. Please leave your feedback in the comments below. The following description is largely the same as the one you can find on the deck download page at https://ankiweb.net/shared/info/2079503898

Release: Template released (01/08/2020)

The first version of the template, and deck, was uploaded.

Update: Finally "completed" the template (07/03/2021)

After using the deck for a while I found that the card feels a bit "narrow" in portrait mode on AnkiDroid, so I ended up moving the tags to their own "row" on the answer side, that way cards with many tags, or long answers and hints, will look a little more natural. I also realized that the very round edges didn't blend in with AnkiDroid as intended, so I made everything square again. Also made the perfomance timer "adjustable" by setting it with an easily modifiable variable in the script. Finally, I made a simple implementation of the LaxAnswer field, but this requires all Answer fields to end on semicolon(;) to not break the script. That's a point I might have to review later.

TODO:

  • Add quite a bit of basic vocabulary that wasn't included in the old deck because I wasn't a complete beginner when I started making it.
  • Add grammar cards.
  • Add hints to all but the most basic cards...
  • Add and improve explanations.
  • Add word class tags to Adverbs
  • Add tags for JLPT levels
  • Reduce the amount of alternatives presented as the answer, especially on ambiguous cards that have a ton of similar alternatives, to make a more concise QA that strengthens the meme. Ideally simplify each visible answer to no more than 3 alternatives.
  • Fix a layout issue where wide tables stretch beyond the card and look stupid.

The template can also be used as a base to make your own deck.

The main feature is a timer function in the deck template that gives you a hint about your performance. If you flip the card within 4 seconds the background will be blue, 4-20 seconds will make it green, more than 20 seconds will turn it orange. The idea is that you can "easy" your card if it's blue, "good" it if it's green, and "hard" it if it's orange.

There is also a function that checks your typed answer and makes the background red if you made a mistake. The comparison is case insensitive, and checks against each alternative on cards that have multiple correct answers. In case you don't want to type, the function is designed to ignore blank answers.

Tags:

Hiragana: Single characters that are a part of the Japanese hiragana syllabary.

Katakana: Single characters that are a part of the Japanese katakana syllabary.

Kanji: Single characters that are defined as a kanji aka. Chinese character.

Radical: Shapes that make up a part of a kanji, but is not used as a symbol in itself.

Vocabulary: A word, that is an entity that can convey some meaning on its own, and be conjugated where relevant.

Expression: A fixed expression that conveys some meaning it is relevant to remember as an entity. What separates an expression from a word is often that it already contains conjugations or other grammatical elements.

Kunyomi: Marks that the note is read using only Japanese readings.

Onyomi: Marks that the note is read using only Chinese readings.

Noun, Verb, Adjective: Mark their respective word classes.

HiraganaWord: A word that is written entirely in hiragana. This tag has some technical implications, it marks a note for random sort.

KatakanaWord: A word that is written entirely in Katakana. This tag has some technical implications, it marks a note for random sort.

Readme:

The notes in the deck are ordered the way they are for valid reasons, please learn the notes in order added. However, I bumped into an issue that cards cannot be reordered in a feasible way. Because of this, cards I added after the inital release does not show up where they are supposed to.

Fields names that end with "Req" mark required fields. The script will likely die without them. 

Answers, and LaxAnswers are semicolon(";") separated, and can therefore not contain semicolons. The Answers field needs to end on a semicolon for the typed answer to be displayed if it is correct. This has to do with how Anki displays the output of type fields, and how I implemented my LaxAnswers functionality. Just make sure to terminate Answers fields with a semicolon.

Tags are space(" ") separated and can therefore not contain spaces.

There is a field called LaxAnswers. The idea is to add common typos and lazy spellings that we might want to allow (things like "its" for "it's", "favor" for "favour" etc.) in this field, then these will be considered correct answers by the input check. This way we don't have to litter the backside of the card with almost identical definitions.

Saturday, 12 November 2016

Why I went to Japan of all places

Apart from the obvious "What is your name?", and "Where are you from?", the question I am most frequently asked by people I meet in Japan is "Why Japan?". Usually, I jokingly reply something along the lines of "The weather is better", or "I grew up with Pokemon", considering there is rarely time to go into detail. The full answer to this question is of course a long and complicated one, but I will try to spell it out today, mostly for my own sake since no one is listening anyways.

In reality, I probably had the dream about going to Japan ever since I realised this is where all my favourite anime came from. Also, my favourite video game series, Gran Turismo, is Japanese. This was however, not enough to tip the scale far enough for me to take action. It was probably some time last fall when I realised I was nearing the middle of my twenties, and I would finish my bachelor by the next summer, that I started thinking seriously about what I actually wanted from my life. I also realised that the time of sitting on the fence watching life pass by, kicking pebbles around the yard waiting for my time to come, every summer thinking "just another school year until summer", was nearly over. I realised that the time I had been waiting for all my life was right around the corner, but I had no idea what to do about it.

A considerable amount of thinking later, I came to the conclusion that the natural place to start was figuring out where I wanted to live. Considering I had lived my entire life in Norway, a country time and time again receiving awards(UN rankings) for being the best country in the world to live in, the list started out by looking at which countries share many of the same attributes, like a good education system, good health services, and low crime rates. I also considered other important attributes that are not reflected in these rankings, like local humour, probability of encountering good looking women, and the weather. In the end the list came down to basically just Japan, what a lucky coincidence.

Sunday, 2 October 2016

My first week in Japan

So far during my stay the weather has been really warm. This warmth is a totally new thing for me, considering my home town Ålesund is roughly 25 degrees Celsius colder than Osaka in this moment of writing. Certainly, we also have warm days at home, but they are rare. The biggest difference however, must be the humidity. Whilst a warm day in Ålesund is practically always accompanied, or likely even caused by a strong southern wind, the warm days in Osaka seem to have no wind at all. The feeling is best explained by comparing it to a sauna, everything is hot. The sun is hot, the air is hot, and the water is hot. For the most part, I feel no difference whether I am in the sun or in the shade, it kind of feels like walking submerged in a hot bath of very light water. Additionally, the tap water is so hot that it is probably hotter than the exercise pool at the swimming hall back home. On my first day here I showered without turning on the heater, and although a little colder than my liking, it was totally doable. This is not to say that I miss the weather I left. If I had to pick between a little too warm, and a little too cold, my choice would still be the warmer. Mostly I am just happy that I was able to try some real warmth before fall sets in for real.

Saturday, 1 October 2016

The road to Japan

Last Monday, I woke up at 4 AM to eat breakfast. I ate my usual two baguettes, one with ham and cheese, the other with cheese and jam. This was also the last time I had coffee. After breakfast my mom was kind enough to drive me to the airport, and two undersea tunnels later I entered Ålesund airport Vigra, ready to get on the morning plane bound for Amsterdam. My transit time in Amsterdam was 5 hours, 5 long hours. In the end my departure time was creeping closer, and the other passengers started arriving at the gate. During the next hour I probably grew 15 centimetres taller. The flight itself was not only long, but also horribly cold. I wore a shirt, a sweater, and covered myself in a blanket, but still spent most of the trip freezing. On the bright side they kept bringing us food and drinks. My original plan was to sleep as much as I could during the last half of our flight, but in the end I only managed to sleep about an hour. On the bright side we arrived at our scheduled time.

The moment I set my foot outside the plane an incredible heat welcomed me, the contrast to the freezing plane could not have been bigger. It felt like stepping out of a cold Norwegian winter day and into a sauna. First up was the immigration control, a somewhat tedious process of waiting in line for some immigration officer to look at my documents and print me a resident card. After I got through this despite not being able to communicate with the non-English-speaking officer in any meaningful way, I went to the arrivals hall where I found my luggage waiting for me next to the conveyor belt. Then I waited in another line for the toll declaration check, and then at last, I could step outside after 23 hours of travelling.

Except it was not over quite yet, I was now at Kansai Airport, but my pickup point was Nagai station. First, I needed cash, a peculiar thing I normally only use if someone for some reason gives me cash instead of doing a bank transfer. So I found an ATM, probably my first time using one in several years, but I got my Yen without any issues, and went on my merry way looking for the train station. When I found the train station I was met by a route map that looked kind of like the one I got from the school, but at the same time not. I tried to find Nagai station on the map, but was unable to locate it. I did however remember that I needed to swap trains at least once, so I looked for the station where I should swap, and found something that looked familiar. Bravely I went up to the ticket machine, inserted some Yen, clicked the fare that was listed under the station I thought I was going to, and waited a brief moment. A ticket came out, followed by a large pile of change. Then I had to look for the actual trains. I first walked into something that appeared to be a staffed ticked office, thinking to myself that I should probably have gone here before I bought my ticket, I walked back out. Then I found something promising, a line of ticket gates. I slowly approached them, apparently looking like a big question mark, because a man in a uniform gestured at me for attention. I walked over to him and coughed up a sentence supposed to mean "Do you speak English?", to which he answered "Little." in distinct Japanese accent. I said "Nagai?", and he nodded, guided me over to the another route map and started pointing, said something about express train, local train, swap. After some minutes of him trying to explain me where I was going, and me trying to explain him that I might have bought the wrong ticket, we arrived at the conclusion that everything would be okay if I got on the next train from the platform directly underneath us, as long as I remembered to swap. I would like to thank this man for not letting me get on the train I thought I was looking for, that would have taken me in the opposite direction. When I sat down on the train, still not entirely sure if this was the right one, I noticed that I was the only foreigner in sight. Actually, this entire week I have seen a total of two foreigners who are not going to the school. It turned out got on the right train, and luckily there was a route map and a sign that always showed the next station, so I managed to find the station where I was supposed to swap even though I forgot the name the man at Kansai had told me. In the end I got off at Nagai station where I found a ticket checkout machine. It said insert ticket. I looked around for any signs of human life, but saw no one, so I tried to do as the machine said. After a brief moment the machine spat my ticket back out and started beeping. A man quickly came out from a door at the other side of the hallway, pointed at the window next to him, and ran over to the machine. I walked over to the window and waited. When he came back, he looked at my ticket and said "Okay.". I looked back at him and said "Okay?", and so he repeated "Okay." and pointed at the exit. A little puzzled I walked out towards the street, where, luckily, a school employee approached the only foreigner in sight. She then guided me to the school office, which turned out to be so close to the station that you could probably throw stones in between, if you are a little better at throwing stones than I am.