2020-04-17 at

Comment: When will Vector-based Video Compression go mainstream?

Update: Tada. See? Leave any obvious solution unimplemented for long enough, and someone will figure out how to do it.

Throwback to 2008 - when I started spending more time on studying software, I noticed that video calls were extremely bandwidth inefficient. I thought it would be much better to use Vector-based graphics, like SVG, instead of Raster-based graphics, which is how most video calls are still implemented today. I know it's been one of many projects I haven't expended much time on for over a decade, but I think now that video calling is so much more popular, we should see a shift in technology towards such innovations. Wish I had more time to spend on it - but one has to make a living first.

Examples processed using Inkscape:

1000px despeckling - good enough to start research, for video. People can still recognise the subject. Normal vision is not normally precise.

100px despeckling

10px despeckling

Base Image


Update : In 2026, with all the fancy focus on data processing and linear algebra utilisation in industry, surely someone can fix this now?

2020-04-08 at

Proposal: Syarikat Berisiko Tinggi Berhad (BT Bhd)

I don't want to spend too long on this note as the motivation for writing it comes out of nowhere at a busy time. I just happened to chance upon two articles today, an interview with a former leader of a government agency helping startups, and a recommendation by a business operator and executive.

The video interview was a reminder that labour markets are freer in the US than in Malaysia, and the textual recommendation carried a bit of comic relief by suggesting that taxpayer funds should not be used lightly, while also suggesting that coupled with founder-guarantees, and revenue-multiple-limits, up to 70% of loans to struggling startups should be borne by the federal government.

My initial thought was:
70% federal loan for sector with 90-99% failure rate is extravagant. Instead, government could focus on making the regulatory environment more frictionless for private individuals and corporations to invest equity or debt in high risk startups. There should furthermore be a new corporate entity type managed by Companies Commission called "Berhad Mikro" with relaxed Employment Act compliance and other legal exemptions. This makes the entire asset class easier to manage with agility - it needs to be demarcated, explicitly with high risk, but with greater market freedoms. All of this should be parked under the Securities Commission's purview.
Following which, some private banter resulted in this nut:
BesFren : But Malaysia is too conservative for that.
Me : 90-99% failure rate. The risk should be on the label. This is where you go to die. This is where your money goes to die. This is where your career goes to die.
BesFren : But who would want to join these companies?
Me : THIS IS ESSENTIALLY WHAT STARTUPS ARE.
In any event, within a few minutes, I decided I should flesh out the proposal a bit more before putting it down and getting back to real work.



Perhaps it is not just the notion of a Berisiko Tinggi Berhad which should be formalised, but the entire startup lifecycle. The earlier the stage, the more liberal the regulations should be.

For example:

Syarikat Berisiko Tinggi Berhad (BT Bhd.)

All stages:

  • Good citizenship
    • Every BT Bhd to receive a case officer from the Securities Commission (or another agency). Case officers to manage fortnightly supervision of 20 startups each.
  • Standardised term sheets
    • Every BT Bhd financing round to be officially regulated, through a formal process, with standardised term sheets. There can be various mutations of term sheets of course, the same way that McDonalds innovates on burgers, but there shouldn't be the freedom for everyone to simply pen their own. New varieties on offer every six months, ok?
    • Things like convertible debt need to be locked down and made the same for everyone who uses this vehicle (it's just a temporary vehicle, if you don't like it, move on!)
  • Investment Incentives
    • All capital injected as equity by private individuals or companies, to the BT Bhd, should be tax deductible up to a specific quantum, with a multiplier for further sweetening at early stages of funding.
    • All capital injected as debt by private individuals or companies, to the BT Bhd, should qualify the lender for an interest-discounted backing loan from the central bank.
  • Deregulated Sandboxing
    • Explicit exemption by act of law, to allow BT Bhd companies to be subject to a very small subset of regulatory compliance requirements. 
    • Employment Act requirements are an obvious subject of discussion - as the act is written, it already incentivises clever employers AND staff to always sign freelance contracts  to circumvent it.
    • Foreign Worker / Working Tourism opportunities are another obvious subject of discussion.
    • I mean, we could really go on and on here... about how the rules that were written to regulate large listed corporations in Malaysia are also the ones which hamper innovation and agility for new business owners who just want to test new markets.
  • Mandatory Up-or-out Lifecycle 
    • The point of the BT Bhd is to encourage risk capital to move. Incentives to move such capital should be sustained only by some quantitative milestone, and otherwise retired.
    • If a BT Bhd hits milestones, it should formally be allowed to be reclassified to the next stage, or it must convert itself to a non-BT Bhd entity such as a Sdn Bhd,  PLT, or sole-proprietorship (of course, there needs to be a manual for this).

Staged limits:

  1. Angel stage
    1. Maximum paid-up capital of RM 20,000, including both debt and equity.
      1. Equity contributed in cash by investors, reduces taxable income to investors by a multiplier of 1.5x. If you put RM 10,000 in as equity here, you get a RM 15,000 reduction in your taxable income for the fiscal year. 
        1. There is already no capital-gains tax in Malaysia for the most part - can't do much there.
      2.  Debt contributed by investors should qualify 100% for a 0% backing loan from Bank Negara.
    2. Maximum of eight (8) shareholders, including ...
      1. ... a maximum of four (4) corporate bodies,
      2. ... a minimum of two (2) operating shareholders, 
      3. ... a minimum of one (1) external director, possibly the case officer from the regulatory agency.
    3. Maximum lifetime of 12 months. After which, it must have passed the following milestones, or be decommission as a BT Bhd (the details of implementation for monitoring, warnings, appeals, and enforcement are left as an exercise to the reader):
      1. Some sort of revenue hurdle, say RM35,000.
      2. Some sort of traction or personal data collection hurdle, explicitly converging with PDPA requirements, say 35,000 sign-ups.
      3. Some sort of investment hurdle, say RM50,000 in equity,
      4. Other hurdles - oh, go talk to a venture capitalist, I'm sure they'd be happy to enlighten us.
  2. Pre-seed stage
    1. Maximum paid-up capital of RM 200,000, including both debt and equity.
      1. Equity contributed in cash by investors, reduces taxable income to investors by a multiplier of 1.3x. If you put RM 100,000 in as equity here, you get a RM 130,000 reduction in your taxable income for the fiscal year. 
      2.  Debt contributed by investors should qualify 90% for a MAX( BLR-minus-3%, 0) backing loan from Bank Negara.
    2. Maximum of 20 shareholders, including ...
      1. ... a maximum of 10 corporate bodies,
      2. ... a minimum of two (2) operating shareholders, 
      3. ... a minimum of two (2) external directors, possibly including the case officer from the regulatory agency.
    3. Maximum lifetime of 24 months. After which, it must have passed the following milestones, or be decommission as a BT Bhd (the details of implementation for monitoring, warnings, appeals, and enforcement are left as an exercise to the reader):
      1. Some sort of revenue hurdle, say RM200,000 within a 12 month period.
      2. Some sort of traction or personal data collection hurdle, explicitly converging with PDPA requirements, say 200,000 sign-ups.
      3. Some sort of investment hurdle, say RM500,000 in equity,
      4. Etc.
  3. Seed stage
    1. Maximum paid-up capital of RM 2,000,000, including both debt and equity.
      1. Equity contributed in cash by investors, reduces taxable income to investors by a multiplier of 1x. If you put RM 1,000,000 in as equity here, you get a RM 1,000,000 reduction in your taxable income for the fiscal year. 
      2.  Debt contributed by investors should qualify 75% for a MAX( BLR-minus-2%, 0) backing loan from Bank Negara.
    2. Maximum of 50 shareholders, including ...
      1. ... a maximum of 20 corporate bodies,
      2. ... a minimum of three (3) operating shareholders, 
      3. ... a minimum of two (2) external directors, possibly including the case officer from the regulatory agency.
    3. Maximum lifetime of 24 months. After which, it must have passed the following milestones, or be decommission as a BT Bhd (the details of implementation for monitoring, warnings, appeals, and enforcement are left as an exercise to the reader):
      1. Some sort of revenue hurdle, say RM1,000,000 within a 12 month period.
      2. Some sort of traction or personal data collection hurdle, explicitly converging with PDPA requirements, say 1,000,000 sign-ups.
      3. Some sort of investment hurdle, say RM3,000,000 in equity,
      4. Etc.
  4. Series A
  5. Series B
  6. Etc.
So from this sketchy draft, we see a few possibilities:
  • A nimble startup might punch through angel and pre-seed stages within a few months, and continue on in the program until it was basically a medium-sized company. 
    • As a BT Bhd, the later stages could involve regulatory requirements and investment opportunities customised for different genres or types of SME. Some SMEs are operating at a loss, but raising lots of money to gain traction, others are profitable but subject to specific regulatory exemptions, etc.
  • A weak startup might take up to five years (1+2+2) to be kicked out of the program, or it might be able to just make it and graduate upwards to later stages.
Etc.

I'll just leave this here - I think it's a sufficiently detailed note that captures the intuition I had about this.

    2020-04-04 at

    Comment: Crash the Ringgit, Now

    (I) kinda hate to admit it, but the way I've run my business (for the last five years) really does inform my opinion on what Malaysia should be doing in terms of CV19 economic stimulus. First, let's establish that if Malaysia prints money, it is simply borrowing resources from Malaysia's time in the future, and spending those resources in the present. Second, let's establish also that NEARLY ALL countries are now borrowing resources due to the economic outlook for 2020-2021. What remains to be detailed is, FROM WHOM is each country borrowing , and HOW MUCH is each country borrowing?

    In the recent past, Malaysia has been conservative about borrowing because of the political narrative that the country's debt had been mismanaged - once again, let me say that the time for that political narrative has passed, given that the reason for that narrative has already been deposed. When we talk about managing Malaysia's competitiveness as a nation, we're talking about it in terms of the universe of all countries on Earth. If we ever had to borrow to invest on Malaysia's growth, we should probably do it when our competitors (the other countries) are also in pain and distracted from fighting us. This is a view I would like to study over the coming months, but since I'm not a professional researcher, my reading on this is likely to be somewhat slow. This is the rough intuition that we need to borrow more to spend now.

    The final question is simply a matter of whether we should be borrowing from other countries, or from our own future. For most of the last few years, my little cafe business has been in piles and piles of debt - to me. The reason for this is that I can choose to charge the business zero interest, but if the business borrows from anyone else, I cannot arbitrarily choose that other people will not charge the business interest. If the business finally caves in, I can choose to a limited degree what sort of debt forgiveness I am willing to grant the company - whereas if the business owes money to outside parties, there is a lot less freedom for negotiation (granted, in a liquidation, there generally isn't going to be much room for anything).

    So in summary, as a Malaysian small business owner who spends far too much time on social media marketing despite being banned from using our commercial marque on social media, I still think that Putrajaya needs to crash the Ringgit. Just print more money, and use it to make everyone work harder. We're in the middle of our first national lockdown, and whenever it is over we want to be accelerating economic activity as quickly as possible. This almost certainly won't be the only lockdown Malaysia will face - it is likely that we will be seeing local lockdowns based on cluster outbreaks until the end of 2021. The economy needs to be energetic, to rest during bad weather instead of thrashing around, and to quickly snap up opportunities in between the multiple stops that will inevitably come. In order to do this, we need to boost money velocity, and consumer confidence in general.

    Thank you for coming to my TED talk... :P