Showing 10 posts
Yesterday was release day: I pushed out Lutok 0.3, Kyua Testers 0.2 and Kyua CLI 0.8.
There are not a lot of changes in these new releases. The reason I cut them was to publish the new TAP-compliant tester and make it available for use in FreeBSD as soon as possible. I will be using this new feature as part of the FreeBSD Test Suite in order to hook existing test programs without having to rewrite them to use the ATF libraries (or at least not as a first step).
December 8, 2013
·
Tags:
kyua, lutok, release
Continue reading (about
2 minutes)
Lutok 0.3 was released yesterday evening. The packages in pkgsrc-current, Fedora 19 and Fedora rawhide have all been updated accordingly.
The major highlight of this new release is support for Lua 5.2 while retaining backwards compatibility with Lua 5.1. The incompatible changes between 5.1 and 5.2 only affected a small subset of the functionality in Lutok, which made this dual support possible.
For those that don’t know what this project is about: Lutok is a lightweight C++ API for Lua. It is lightweight because it’s an almost 1:1 mapping of the C API into C++. However, the major design criterion behind Lutok is to provide an interface that is fully C++ native and that is safe to use in the face of exceptions. For this reason, Lutok is not as performant as the native C library, which is OK for many use cases out there.
June 15, 2013
·
Tags:
lutok, release
Continue reading (about
2 minutes)
I finally took the plunge. Yesterday night, I migrated the Kyua and Lutok repositories from Subversion to Git. And this morning I migrated ATF from Monotone and custom hosting to Git and Google Code; oh, and this took way longer than expected.
Migration of Kyua and Lutok
Migrating these two projects was straightforward. After preparing a fresh local Git repository following the instructions posted yesterday, pushing to Google Code is a simple matter:
February 26, 2012
·
Tags:
atf, git, kyua, lutok
Continue reading (about
3 minutes)
The purpose of this post is to tell you the story of the Version Control System (VCS) choices I have made while maintaining my open source projects ATF, Kyua and Lutok. It also details where my thoughts are headed to these days.
This is not a description of centralized vs. distributed VCSs, and it does not intend to be one. This does not intend to compare Monotone to Git either, although you’ll probably feel like it while reading the text. Note that I have fully known the advantages of DVCSs over centralized systems for many years, but for some reason or another I have been “forced” to use centralized systems on and off. The Subversion hiccup explained below is… well… regrettable, but it’s all part of the story!
February 11, 2012
·
Tags:
atf, git, kyua, lutok, monotone, vcs
Continue reading (about
8 minutes)
/usr/tests may not be appropriate.February 7, 2012
·
Tags:
atf, kyua, lutok, report
Continue reading (about
1 minute)
This comes two days late… but anyway, I felt like posting it now instead of waiting until next Sunday/Monday.
The activity past week focused mostly on implementing support for the
require.memory test-case metadata property recently introduced into
ATF. This was non-trivial due to the need to write some tricky Autoconf
code to make this “slightly portable”. Seriously: It’s scary to see
how hard it is to perform, in a portable manner, an operation as simple
as “query the amount of physical memory”… but oh well, such are the
native Unix APIs…
February 1, 2012
·
Tags:
kyua, lutok, report
Continue reading (about
1 minute)
A few months ago, I introduced
the Lutok project, a simple C++ API for Lua. To recap: the
major goal of this API, which does not mimic the Lua C API bit by bit,
is to enforce correct coding practices on the client side. This is done
by (ab)using the RAII programming pattern to automatically free
resources when not needed and to ensure that the Lua stack is correctly
managed. The library also adheres to common C++ programming idioms and
exposes exceptions for error management and uses the pimpl idiom to
completely hide the Lua C API from clients of Lutok (unless you use the
c_gate backdoor!).
January 29, 2012
·
Tags:
lutok, release
Continue reading (about
1 minute)
utils::lua to a new project,
Lutok.atf-report will be replaced, so once this is done
we should be able to finally kill atf-run and atf-report
altogether :-)September 18, 2011
·
Tags:
kyua, lutok, report
Continue reading (about
1 minute)
As you may already know, RAII is a very powerful and popular pattern in the C++ language. With RAII, you can wrap non-stack-managed resources into a stack-managed object such that, when the stack-managed object goes out of scope, it releases the corresponding non-stack-managed object. Smart pointers are just one example of this technique, but so are IO streams too.
Before getting into the point of the article, bear with me for a second
while I explain what the
stack_cleaner
object of Lutok is. The “stack
cleaner” takes a reference to a Lua state and records the height of the
Lua stack on creation. When the object is destroyed (which happens when
the declaring function exits), the stack is returned to its previous
height thus ensuring it is clean. It is always a good idea for a
function to prevent side-effects by leaving its outside world as it was
— and, like it or not, the Lua state is part of the outside world
because it is an input/output parameter to many functions.
September 17, 2011
·
Tags:
cxx, lua, lutok
Continue reading (about
3 minutes)
It has finally happened. Lutok is the result of what was promised in the “Splitting utils::lua from Kyua” web post.
Quoting the project web page:
Lutok provides thin C++ wrappers around the Lua C API to ease the interaction between C++ and Lua. These wrappers make intensive use of RAII to prevent resource leakage, expose C++-friendly data types, report errors by means of exceptions and ensure that the Lua stack is always left untouched in the face of errors. The library also provides a small subset of miscellaneous utility functions built on top of the wrappers.
September 15, 2011 · Tags: announce, cxx, kyua, lua, lutok
Continue reading (about 2 minutes)