To start things again I decided to make a minimal Raylib integration and see what it teaches me/us about the language.
Raylib is a very interesting project on it's own, it's a "simple and easy-to-use library to enjoy videogames programming". It works on an unusual number of platforms (also Linux, rPi and Android), has bindings for many programming languages (in Rye we use golang of course) and has a nice straight-forward API, with good support for graphical primitives that could also be good for quick immediate UI/visualisation experiments, similar to (imho legendary) Processing.
One question I asked myself was how to best "namespace" the raylib related words. I had one more unusual idea that I might try later, but for now I made words generic, dispatch on the first argument which is raylib native. The screenshot shows really minimal example using two styles of coding. A more usual one with variables and the one using the pipe/op words and so called "injected block" mechanics.
Komentarji
Objavite komentar