Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Thin bindings for sled database (NoSQL) #3850

Open
dumblob opened this issue Feb 26, 2020 · 5 comments
Open

Thin bindings for sled database (NoSQL) #3850

dumblob opened this issue Feb 26, 2020 · 5 comments
Labels
Module Request This issue is made to request a module to be implemented to the language.

Comments

@dumblob
Copy link
Contributor

dumblob commented Feb 26, 2020

Currently there is lack of NoSQL support in V.

I think the sled DB is easy to integrate (it's written in Rust and exports C interface), extremely fast and really tiny (definitely smaller than SQLite). sled is also inherently multithreaded with highly scalable algorithms and overall very modern design while supporting ACID transactions etc. and can be tuned also for high-throughput and/or low-latency setups (it can even compete with in-memory DBs like Redis).

Of course such bindings would be a separate vpm package. Btw. is it possible to automatically generate V bindings for C interfaces?

@dumblob dumblob added the Feature Request This issue is made to request a feature. label Feb 26, 2020
@nedpals
Copy link
Member

nedpals commented Feb 29, 2020

@dumblob prime31 has the tool for that: https://github.com/prime31/V-C-Wrapper-Generator

@dumblob
Copy link
Contributor Author

dumblob commented Feb 29, 2020

@nedpals thanks for the pointer - it's interesting though, that it's written in C# 😉. Any experience with the quality of the generated bindings?

@prime31 for which sources was the tool already used?

@nedpals
Copy link
Member

nedpals commented Feb 29, 2020

@dumblob Haven't tried it yet but AFAIK it's been used in this module: https://github.com/vgtk/vgtk3

@prime31
Copy link
Contributor

prime31 commented Feb 29, 2020

@dumblob why would it matter what language a tool is written in? If it gets the job done who cares?

ive used the generator to wrap FMOD, Flecs, SDL, Kinc (an entire game engine), PhysicsFS and prolly half a dozen other libs I don’t use anymore.

@dumblob
Copy link
Contributor Author

dumblob commented Feb 29, 2020

@dumblob why would it matter what language a tool is written in? If it gets the job done who cares?

My words. Absolutely agree. Sometimes things catch my eye without any deeper meaning 😉 (one might think that tools for V will be written in something closer to V).

ive used the generator to wrap FMOD, Flecs, SDL, Kinc (an entire game engine), PhysicsFS and prolly half a dozen other libs I don’t use anymore.

Sounds pretty solid. Thanks for the work!

@nedpals nedpals added Module Request This issue is made to request a module to be implemented to the language. and removed Feature Request This issue is made to request a feature. labels May 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Module Request This issue is made to request a module to be implemented to the language.
Projects
None yet
Development

No branches or pull requests

3 participants