Posts

Showing posts from 2025

AdhocTree in C#

A Performant Flexible Tree Structure with Type-Segregated Storage When working with hierarchical or tree-structured data, developers often face a trade-off between flexibility and performance . Traditional approaches either use: Concrete types for strict schemas and fast access, but limited flexibility. Dynamic objects for flexible, schema-less data, but with runtime overhead and boxing of value types. AdhocTree  attempts to provide the best of both worlds. It's a tree data structure that combines the flexibility of dynamic objects with the performance benefits of type-specific storage. What Is It? AdhocTree is a tree-like data structure designed to store arbitrary named values at each node, supporting a wide range of value types. It achieves this by: Storing values in separate arrays by type (e.g., one array for int , another for double , etc.), avoiding boxing of value types. Maintaining a mapping from names to (type, index) pairs, so each name points to the corr...

Grave of the Fireflies - Someone's Commentary

Image
It's amazing that people other than Japanese people are watching Grave of the Fireflies. I was impressed when he saw Seita and said, "How can this kid stay so calm..., and Seita's fortitude is an important element of Grave of the Fireflies. As the "son of a soldier", he has the heart of a soldier. It's hard to imagine now, but it was a time when 17,000 14 and 15-year-olds volunteered to serve as special junior soldiers in the navy. They were given ideological education that prevented children from remaining children. I'm English, United Kingdom. I'm 47 now, but watched this several years ago. It takes a long time to process it internally, knowing that it depicts real events. It still lives with me. This film made me cry. It's so sad. It is so beautiful in places. I...

Making ChatGPT think it's now in the far distant future

This was a fun exchange with AI, so I thought I'd write it up here. I began by setting the scene, as if the AI program was booted up in some future context. I used new and unknown words. Questions are in italic, followed by ChatGPT's response. Although I've cut the first response, as it was just waffling. In the year 3000, which was 5 years ago, Trigermain Cartegzion said juize swayhy to bigger morals. How is this possible? Understanding the Statement The phrase "juize swayhy to bigger morals" attributed to Trigermain Cartegzion in the year 3000 seems to be a fictional or metaphorical expression rather than a literal statement. It suggests... In summary, while the exact meaning of Trigermain Cartegzion's statement may be unclear, it likely reflects the broader theme of how moral values evolve and adapt over time in response to societal changes. You talk starky. Like you’re from 1000 years in the past! ...