RUVIDEO
Поделитесь видео 🙏

Colony #16 - Design and Implementation - Small String Object

Colony Programming Language:
Implementing C-level co_small_str_obj_t for all strings smaller or equal to 15 bytes (3-15 Unicode chars).
Many strings are actually small strings. They are used for variable names and objects' attributes.
Small string objects do not require GC since they are treated as primitive values.

I explore the complexities of garbage collection, reference counting, and the intriguing concept of immortal objects in the Colony programming language. I kick off the discussion by simplifying the model, removing bytes, and focusing on UTF-8 encoded strings, which are more commonly used by developers. I also introduce the concept of ‘small string objects’, strings that can fit within 128 bits. The first 64 bits are reserved for the ‘kind’ of the object, and the remaining 64 bits are used for the string itself. This optimization is particularly applicable to strings because they are immutable by default.

As the video progresses, I delve into the concept of ‘immortal objects’. These are objects with a special value of reference count and will have a flag marking them as immortal. Built-in types such as bytes, array, dict, etc., will be marked as immortal as it doesn’t make sense to increment and decrement their reference count every time. I also demonstrate how to use these small strings, assuring viewers that the complexities of this implementation will be hidden behind the scenes, making it easier for developers to use.

In conclusion, this video provides a comprehensive overview of the design and implementation of small string objects in Colony. It offers valuable insights into garbage collection, reference counting, and the concept of immortal objects. I believe it’s a must-watch for anyone interested in the inner workings of programming languages.

Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Colony #16 - Design and Implementation - Small String Object», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.

Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.

Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!

Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.