thunderchez
thunderchez copied to clipboard
Initial Redis support, fixes to README, and a small cleanup
To start with the smaller things first, I updated the Readme to reflect the use of the addons for sdl2. Namely showing, (sdl2 mixer) (sdl2 image)... etc. Also included, is the new Redis library.
I renamed two files relating to sdl2 mixer since they were inconsistently titled. The only difference is mix is now mixer .
I removed the ttf_shim.so to adhere to some form of security. The users should compile that themselves (instructions are in the readme) to verify it's what it says it is instead of grabbing random libraries off github. Or at least that's what I would want to see from a library like this.
Si, Redis! (or just called Redis when integrated in the thunderchez library for consistency) is a freshly made library that implements the Redis protocol in Chez. It needs expansion but I thought it'd be useful if others are trying to use Redis and need to start from somewhere. I will continue to work on it in the meantime. For now it supports pipelining and transactions (no error handling yet) and allows you to define the commands you actually want to use or simple use them directly as symbols. It seems to work fairly well in my tests for the amount of code it is.
As an aside, I will be looking to work on Nuklear bindings and hopefully we can get that integrated into thunderchez too. Chez is such a great scheme that it's a shame to see it with so little libraries. :stuck_out_tongue:
Hi, thanks for the contributions.... Sorry for the delay I've been very busy lately. Regarding ttf_shim I took a look, we could completely remove that shim stuff... And decide to require a recent ChezScheme with struct parameters support (I think it's already supported) or, Since SDL_Color is a simple struct with 4 uint8_t bytes we could use a unsigned-32. Of course after checking machine endianness ;)
I'm happy someone is using thunderchez... I wrote it for myself but I'm also happy to share it. I'm actually running a website with it also... And plan to distill and publish the "web framework" that runs it.
Nuklear can be nice also. Did you take a look at miogui? Have you any suggestions? I'll come back to it soon when I'll have some "spare" time...
No worries,
I think you're right actually. Most of the Nuklear bindings are generated and I've been able to use structs instead of any shim for struct args. I'll see about replacing ttf_shim accordingly. I just have to write some helper functions in C for Nuklear to deal with loading fonts in a sane way and then it should be ready for testing.
I chose Nuklear because it seems to be the only gui that's in pure C and I wanted something "pure and simple" to bind to. The others are written in C++ which I didn't know if I wanted to attempt trying to bind to, but they still look like decent libraries nonetheless.
I've recently been working on a different app in CL but when I find time I'll update the SDL stuff and see if I can get the work I've done with Nuklear added into the pull.
A web framework would be very nice for chez, hope that materializes soon.
Thanks!
Did you take a look at miogui? Have you any suggestions? I'll come back to it soon when I'll have some "spare" time...
For some reason I thought you meant imgui or something. My bad. I rediscovered miogui, I'll have to take a deeper look at it.