DrinkingTea

General tech commentary and technichal deep dives on software development

MaybeView

Note: this is based on the version of Ox in following revision in the Nostalgia repo : 1b629da8fc658a85f07b5209f2791a5ebdf79fa1 Problem In C++, hash maps are often used with strings as keys. This would typically look something like this. std::unordered_map<std::string, int> ages; ages["Jerry Smith"] = 54; And here is an example of a lookup: int age = ages["Jerry Smith"]; There is a hidden inefficiency here. The lookup operator does not take a std::string_view or a C string....

April 24, 2024 · 2 min · Gary Talent

The Importance of the Church

Synopsis On the last pages of your Bible, in what seems to be the final book of Scripture we will ever receive before the coming of the Lord to bring the final redemption of the creation, in the final pages of Revelation, we are treated to a description of a city. That city, the new Jerusalem, represents the Church. The big reveal at the end of mysteries is the redeemed people of God, and that is fitting for what the Church is....

April 10, 2024 · 10 min · Gary Talent

20 Years of Grace

It was 20 years ago tonight that the Lord saved me. Early in my life as a Christian, God gave me what was then and has remained one of my favorite hymns: Come Thou Fount. I don’t know if it has ever been my absolute favorite hymn, but of all the hymns that have come and gone from ranking among my favorites, Come Thou Fount has is the only one that has endured from the dawn my Christian life....

April 12, 2023 · 3 min · Gary Talent

Ox Preloader

Note: this is based on the following revision in the Nostalgia repo : e9965a63ce6a8df6427052b5464f0525c61b65fc This might be the most insane piece of software I have ever written. That’s probably mostly because I have never heard such a system as this, which should usually be a deterrent when you think you have come up with a brilliant new idea. But questions of whether or not I should proceed with this idea never stood a chance against my firm conviction that it could be done....

February 27, 2023 · 10 min · Gary Talent

Ox Model System

Note: this is based on the version of Ox in this commit in the Nostalgia repo : 5fa614ab83ee0fd080ccb5f9465e086199777859 Synopsis In languages like Go and Python, there is a feature called reflection. This essentially allows functions to iterate over arbitrary struct types to get or set its data, or simply get information about the type. Reflection is most commonly used for object serialization, and that is the main use for it in Nostalgia....

January 30, 2023 · 10 min · Gary Talent