Representation clauses in Ada

""

A record_representation_clause specifies the storage representation of records and record extensions, that is, the order, position, and size of components (including discriminants, if any). ARM12

They are very useful when interfacing with hardware. Doing this in C quickly turns into a mess of bitwise or'ing and bitshifting certain values by certain widths which might be fast, but is hard to read. Here I will try to show how this can be done in a better way in Ada, using representation clauses.

more ...

TinyWM_Ada XCB

This is an implementation of tinywm in ada/xcb. You need the ada wrappers for xcb and xproto, not included here because they're too big and still being worked on. I'll put them up on github when I have some time after finishing my minor.

with xcb; use ...
more ...