Blogue

Walnut AI - a CPU-optimized AI neuronal network

Our brain is shaped like a walnut. And that's for a reason. The whiskings and bulges of our brain are a clever way of nature to provide a very interesting structure to process data. At the intersection of two bulges, data can be interchange

Accessing MemCP via scheme

MemCPs native access technology is the scheme scripting language. In scheme, you can do functional programming with scheme. This is an example scheme terminal session in MemCP: carli@launix-MS-7C51:~/projekte/memcp$ make && ./memcp go build

Writing a SQL parser in scheme

Functional programming languages are a neat tool to write parsers, especially when equipped with a pattern matching mechanism. Here's the beginning of our SQL parser in memdb: (define parse_sql (lambda (s) (begin (define identifier (lambda

How to benchmark a SQL database

To compare databases against each other, a benchmark like TPC-H is used. At first, you have to download the TPC-H benchmark from tpc.org Then you will adjust the makefile (copied from makefile.suite) ################ ## CHANGE NAME OF ANSI

When the benchmark is too slow... (golang http server performance)

Just a shmankerl from the daily life of a developer. When I tested memcp performance, I ran into the problem that my benchmark tool was too slow. The goal was to test golang's http server throughput in memcp. The setup is fairly easy: golan

On Compressing NULL values in bit-compressed Integer Storages

Usually, databases store NULL values in form of bitmasks. In this case, each value eats up 1 bit for the possibility to become NULL. I will prove that we can do better. Uncompressed column stores of integers are a continuous column of i.e.

Memory-Efficient Indices for In-Memory Storages

Most databases implement indices as a kind of tree. I will show you that columnar storages can do even better. The most widely used kind of tree structure in databases is the B-Tree. A B-Tree is a n-ary tree whose nodes fit exactly into one

How In-Memory Compression Affects Performance

Modern computers are fast. So fast that there is a huge gap between computing speed and memory bandwith and latency in memory-heavvy applications. It's All About Cache Cache levels in modern computers refer to the different levels of memory

How to balance a database between OLAP and OLTP workflows

In this blog article, we will be comparing OLAP (Online Analytical Processing) and OLTP (Online Transaction Processing) databases. We will discuss their differences and similarities, discuss the ideal database architecture for a database th

On designing an interface for columnar in-memory storage in golang

The advantages for columnar storages over row based storages are the ability for good in-memory compression (low memory usage) and cache locality when accessing only few columns (performance). Designing an Interface When designing an interf