ribs c++ core library