Codim Update (November 15, 2021)

Опубликовано: 22 Март 2026
на канале: AncientStraits
56
2

I know I said that my next video would be a tutorial, but I really do want to post update videos to my passion project. If you haven't heard, Codim is a tool I am creating that takes in a lua script and outputs a coding tutorial. It uses the FFmpeg, FreeType, and lua C libraries.

Codim is available here: https://github.com/ancientstraits/codim

The things that have changed from the last video are:
1. There was a segfault that happened a week ago if I put in a large string into Codim via a lua script. This is now gone.
2. As you can see, Codim has primitive syntax highlighting for the C programming language.
3. There is no cursor in this video, but I plan to implement cursors by the end of the week.

There are several things I want to add to Codim:
1. Audio and text-to-speech support. This will be hard because the part of my code that accesses the FFmpeg libraries is designed to only support video, so I will have to add audio support to that piece of code.
2. Add EGL support. Drawing everything to EGL, then using glReadPixels() to put it into the video's frame could be quicker than my original approach.
3. Better syntax highlighting. My current syntax highlighting uses a function that takes in the character that needs to be highlighted, then returns the type of that character. However, this approach has no lookahead, so I will need to take in a pointer to a character instead in order to gain that functionality.
4. Colorscheme support in lua. This should be very easy.
5. Full cursor support. I should be able to change text in Codim, not just insert this. This will be pretty hard, as I will have to change many parts of Codim's core functionality.

I hope to have a much better program very soon, and to be able to easily create full tutorials by the end of 2021.
I hope you guys have a great week.