Discover and read the best of Twitter Threads about #COLANG

Most recents (3)

In #colony #colang, bytes type is really not required as primitive type. str type should exist since it is unicode and mostly used by developers. However, bytes can be represented as Array<u8>.
Since #colony #colang is GC'ed using Reference Counting, refcount, or RC, we can introduce special kind of references called "immortal references" and an example is `bytes: type = Array<u8>`. This should be implementation detail and not exposed to developers.
Immortal objects are GC'ed. So, incref or decref is almost fast as NOP. It will need to check flag on object and determine if object is immortal. Immortal means it stays forever alive while programming is being executed.
Read 5 tweets
In C implementation of #colony #colang, every object has two fields, 64bit kind and 64bit value. Which means that we spend 2 64bit registers just present single value in case of primitive values such as bool, u8, u32, u64, i64, f64.
In case of GC'ed objects such as generic, array, dict, struct, union, and so on, we need indirection because these "structures" simply require more space. But in case of everything above, I think we can do better.
Perhaps, for abstract types we can move RC in "type" field, and limit mac RC count to 2 **56 which is quite large number, and currently good enough for our GC needs.
Read 8 tweets
«La beauté vient en premier. La victoire en second. L’important, c’est la joie»
Socrates
Début de la coupe du monde de football
Tout match sera une intrigue à forte intensité dramatique au dénouement incertain
Vive le spectacle
Vive l’émotion
Vive le sport #cdm2018 ⚽️🇵🇹♥️💚
«Le football, c’est l’émotion de l’incertitude et la possibilité de jouissance»
Jorge Valdano
#cdm2018 #PORESP ⚽️♥️💚🇵🇹
« le football, une passion absurde et dévorante. Soudain, les gens se parlent, les classes sociales disparaissent, les émotions sont collectives et universelles.»
Olivier Guez #cdm2018 ⚽️
Read 28 tweets

Related hashtags

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3.00/month or $30.00/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!