ChunkDev 🦋 @chunkdev.bsky.social · Nov 22

This is my first time implementing class inheritance via vtables (in my tiny Kotlin runtime). A::foo() vs B::foo() get resolved through vtables in the generated code if they cannot be resolved statically. Seeing it work correctly is more satisfying than it should be. #kotlin

654 likes 17 replies

?

Replies

@LuLuRoche · Nov 23

what?

ʀօɮɛռɦɛɨʍɛʀ · Nov 23

why would you want to do this to yourself? (serious question)

David Cornelson · Nov 23

I can only relate this to writing my first recursive expression evaluator and seeing it work correctly.

oreo | 💚✊🇺🇦 · Nov 24

waa i wanna understand how android apps work

Blasé Pascal 🏳️‍⚧️🇺🇦🐝🇨🇦 · Nov 23

Why do you need a vtable? Can't it be statically resolved here?

One of the Millions of Joe Kellys · Nov 24

This makes me wish I had chosen the Compilers course when I was studying computer science. I had just gone through Operating Systems which was basically writing MINIX from scratch, and was burnt out on all this detail-oriented stuff. I audited a dozen or so courses and found it very interesting. 👍👍👍

HDR · Nov 23

I wish

H.Res.537 - Impeach Donald J. Trump · Nov 23

Shut it all down... Watch the world, how has paper docs? Shut it all down... Waste of time space...

@jurgenhissen.bsky.social · Nov 23

For real. The rush of getting a program working.

S. Lelli · Nov 23

Why does kotlin needs "fun" for methods?

@derorfa.bsky.social · Nov 24

There is no "than it should be". It's always exactly as satisfying as it should be.

@neilio6.bsky.social · Nov 23

Respect! You keep learning and doing. Thank you for sharing your journey. Going to follow you. 👊🖖

H

Hollygirl · Nov 23

Felt the same way in school making my first compiler work. No feeling like it.

jackisherenow · Nov 24

I’m not familiar with the environment you’re working in, but I absolutely know the feeling.

Jmeyernj · Nov 23

Sexy! (: