Войти в систему

Home
    - Создать дневник
    - Написать в дневник
       - Подробный режим

LJ.Rossia.org
    - Новости сайта
    - Общие настройки
    - Sitemap
    - Оплата
    - ljr-fif

Редактировать...
    - Настройки
    - Список друзей
    - Дневник
    - Картинки
    - Пароль
    - Вид дневника

Сообщества

Настроить S2

Помощь
    - Забыли пароль?
    - FAQ
    - Тех. поддержка



Пишет nancygold ([info]nancygold)
@ 2024-07-20 17:12:00


Previous Entry  Add to memories!  Tell a Friend!  Next Entry
Настроение: accomplished
Entry tags:computing

Symta Rewrite Progress
Ok. I've updated the ECS system to use new tagged pointer system.
No changes to the type system were needed.
Yet I had to update the object creation byte code.
Now it returns an enum style tag for 0-sized objects.


Generally having these enums is useful for stuff like Nil or Empty lists.
Previously allocated these on heap, which slowed down garbage collection.
And obviously typed enums instead of raw integers are nice too.
Yet compared to C/C++ everything is dynamic, so I can convert a string to enum.
I.e. now it feels a bit more flexible and useful.

Here is how one can implement enums using this mechanism

CityNames: amsterdam kyiv moscow
type city Name: = Me = ref_ tag_(Me): CityNames.locate Name
city.as_text = "#<city:[CityNames.(gid_ Me)]>"
City city kyiv
say City //prints #<city:kyiv>


Too lazy to test the performance of the game before and after.
And it ran at 60 FPS before anyway.
Yet I can finally convert every terrain cell into an entity.
That was one of the major reasons I had to improve runtime.



(Читать комментарии) - (Добавить комментарий)


[info]nancygold
2024-07-21 00:15 (ссылка)
But as a communist I don't believe in capitalism.
You need to be born into a rich family to succeed under capitalism.
Examples: Donald Trump, Elon Musk, etc...

A mentally ill person, like me, doesn't have any riches.
Therefore I can be only communist.

(Ответить) (Уровень выше) (Ветвь дискуссии)


[info]nancygold
2024-07-21 00:17 (ссылка)
And yes, female hormones indeed cleared my mind.
I now understand my place and see "free market", the competition and capitalism for the great evils they are.

(Ответить) (Уровень выше) (Ветвь дискуссии)


(Анонимно)
2024-07-21 01:00 (ссылка)
>And yes, female hormones indeed cleared my mind.

More like actual attempts to compete in the jobs market in a western country, finally, without Russians hindering you.

(Ответить) (Уровень выше)


(Анонимно)
2024-07-21 01:05 (ссылка)
>But as a communist

This hour of the day, but not necessarily the next hour. Depends on the argument needed to conjure.

Also this is the specific kind of communism, not the orthodox one. The "give Sadkoff free shit, no social parasitism statutes" kind.

(Ответить) (Уровень выше) (Ветвь дискуссии)


[info]nancygold
2024-07-21 15:04 (ссылка)
Well, when I get a billion of dollars I will become a capitalist.
So never.

(Ответить) (Уровень выше)


(Анонимно)
2024-07-21 05:21 (ссылка)
>You need to be born into a rich family to succeed under capitalism.

Bunch of examples to the contrary. Also rich family's main contribution are probably good genes, that made the previous generation(s) wealthy.

You on the other hand aren't even trying to do any money making shit on the numerous online marketplace platforms that you have access to, while also having a chicken account.

(Ответить) (Уровень выше) (Ветвь дискуссии)


[info]nancygold
2024-07-21 15:05 (ссылка)
Keep believing in working hard.
That is what slave owners want from you.

(Ответить) (Уровень выше)


(Читать комментарии) -