Skip to content
This repository has been archived by the owner on Feb 3, 2020. It is now read-only.

Latest commit

 

History

History
54 lines (32 loc) · 1.14 KB

README.md

File metadata and controls

54 lines (32 loc) · 1.14 KB

Experiments

This repository contains a collection of sample code that was useful for prototype purposes during the course of developing lumail2.

cache

Time two different approaches to loading our cache, to see which is faster.

colour-string

A sample program to demonstrate how I think I can split up strings with embedded colour-information within them. We need to be able to change the colour before drawing each "segment".

dynamic-calling

I'm comfortable with wrapping C++ objects, such that they are callable by lua, and I'm also comfortable invoking methods in Lua, from C++ code.

This example covers the case where:

  • A C++ object is wrapped to Lua.
  • This means the object is available to Lua via a user-data table.
  • The Lua-side defines an additional method, to extend the object.
  • That method needs to be called by C++.

mime

A basic example of using libmagic to determine the MIME-type of a file, via content.

observer

Mock-up of a "Observer" pattern implementation which will suit lumail2.

ui-demo

A simple ncurses program with a toggleable "status-panel".