Developing inside a Toolbox container

When I wanted to make a patch for some library, I always disliked installing all of the build dependencies on my system and messing with LD_LIBRARY_PATH (link) to be able build and run the patched library. I never took time to uninstall build dependencies afterwards and LD_LIBRARY_PATH is a step that I would’ve liked to skip when possible. If you are having similar issues and are using Fedora then you can use the Toolbox containers to avoid these issues. [Read More]

Inter-Process Texture Sharing with DMA-BUF

The problem we are solving in this post is how to efficiently share textures across processes on Linux. We want to do this as fast as possible without any texture data transfer between GPU and CPU memory. For our example we have two processes named server and client, with both rendering a texture to a window. We want to make the server create a texture and share it to the client so that both can render the same texture. [Read More]
opengl  egl  mesa  render  c 

Simulating Recursion with Generators

I’ve recently had an idea to use generators to define and iteratively execute recursive functions. Well why would we need to change the recursion to iteration? Because when the recursion runs too deep we can get a stack overflow. thread 'main' has overflowed its stack fatal runtime error: stack overflow In these cases we normally transform the recursive algorithm to an iterative one by using our own heap stack to simulate the recursion. [Read More]