Earlier quoted context omitted.
Language's own native data-structures are generally much more capable and vast. 99%+ developers use only a very limited set of those capabilities. This approach packages those most used ones into a nice, consistent DSL. It's similar in effect to what busybox does to shell utilities, though the motives are different.
Doesn’t depend on the language? Actually I am thinking of the standard library… Python’s in kinda huge and some are hard (for me) to grasp. Golangs seem pretty simple.
Redis 8.8: New array data structure, rate limiter, performance improvements
111–118 of 118 posts
Re: Redis 8.8: New array data structure, rate limiter, performance improvements
#112Earlier quoted context omitted.
Can you name a single language that can talk to redis and doesn't have these in a form of a library that integrates with an app better than mystical embedded redis? Every language you can talk to redis most likely has a library to do that, and it probably works much better with the rest of application than "embedded redis". If it doesn't, it probably has C-FFI and there is "fast, robust and well understood" implement…
Sure. But if Redis was embeddable you'd get a robust C-FFI style implementation of those data structures which has been tested a lot more than some random library that has almost no existing users or active maintenance. (I'm not personally sold on embedded Redis myself, but the question was "Aren’t your own programming language’s constructs much more well-defined / understood?")
What are these mystical random libraries you're talking about? There is a solid C implementation of every data structure on this planet.
Re: Redis 8.8: New array data structure, rate limiter, performance improvements
#113Earlier quoted context omitted.
Well, if you have a single instance than using language libraries and structures will be better in most cases. If you use multiple nodes, then you probably want your redis lifecycle not be tied to application lifecycle.
I am not aware of an in-process alternative similar to what Redis offers.
Re: Redis 8.8: New array data structure, rate limiter, performance improvements
#114While I love Redis as a versatile tool for external data structures, it's still lacking in two areas IMHO: One, it would be cool to be able to embed it, similar to sqlite, directly into applications. Two, the HA story is so much more complicated than it should be. I totally acknowledge that concurrency and distributed computing is hard, but it should not require reading heaps of documentation and understanding two en…
Re: Redis 8.8: New array data structure, rate limiter, performance improvements
#115Earlier quoted context omitted.
Sure. But if Redis was embeddable you'd get a robust C-FFI style implementation of those data structures which has been tested a lot more than some random library that has almost no existing users or active maintenance. (I'm not personally sold on embedded Redis myself, but the question was "Aren’t your own programming language’s constructs much more well-defined / understood?")
> you'd get a robust C-FFI style implementation of those data structures which has been tested a lot more than some random library that has almost no existing users or active maintenance. What are these mystical random libraries you're talking about? There is a solid C implementation of every data structure on this planet.
I went looking and the pure C ones all appeared to be untouched in 10+ years - https://github.com/ivitjuk/libhll and https://github.com/avz/hll for example.
Re: Redis 8.8: New array data structure, rate limiter, performance improvements
#116Re: Redis 8.8: New array data structure, rate limiter, performance improvements
#117Earlier quoted context omitted.
> you'd get a robust C-FFI style implementation of those data structures which has been tested a lot more than some random library that has almost no existing users or active maintenance. What are these mystical random libraries you're talking about? There is a solid C implementation of every data structure on this planet.
Show me a better C library for HyperLogLog than the one baked into Redis. I went looking and the pure C ones all appeared to be untouched in 10+ years - https://github.com/ivitjuk/libhll and https://github.com/avz/hll for example.
Why does it need to be pure C? There are C++ implementations. It's an algorithm not a social media app, it doesn't need to be updated once a week, C also not node.js - it doesn't break compatibility every release. What is wrong with these 10+ years touched ones?
Even the redis version of HLL isn't updated all that often.
Re: Redis 8.8: New array data structure, rate limiter, performance improvements
#118Earlier quoted context omitted.
Show me a better C library for HyperLogLog than the one baked into Redis. I went looking and the pure C ones all appeared to be untouched in 10+ years - https://github.com/ivitjuk/libhll and https://github.com/avz/hll for example.
Why? You can just adapt/use https://github.com/redis/redis/blob/unstable/src/hyperloglog... Why does it need to be pure C? There are C++ implementations. It's an algorithm not a social media app, it doesn't need to be updated once a week, C also not node.js - it doesn't break compatibility every release. What is wrong with these 10+ years touched ones? Even the redis version of HLL isn't updated all that often.
"You can just adapt X from Redis" is the whole point of this hypothetical.