
Security News
New Website “Is It Really FOSS?” Tracks Transparency in Open Source Distribution Models
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Set algebra solver for Redis.
Stal
receives an array with an s-expression composed of commands
and key names and resolves the set operations in Redis.
Meet us on IRC: #lesscode on freenode.net.
Install Redis. On most platforms it's as easy as grabbing
the sources, running make and then putting the redis-server
binary
in the PATH.
Once you have it installed, you can execute redis-server
and it
will run on localhost:6379
by default. Check the redis.conf
file that comes with the sources if you want to change some settings.
Stal
requires a Redic compatible client. To make things
easier, redic
is listed as a runtime dependency so the examples
in this document will work.
require "stal"
# Connect the client to the default host
redis = Redic.new
# Use the Redis client to populate some sets
redis.call("SADD", "foo", "a", "b", "c")
redis.call("SADD", "bar", "b", "c", "d")
redis.call("SADD", "baz", "c", "d", "e")
redis.call("SADD", "qux", "x", "y", "z")
Now we can perform some set operations with Stal
:
expr = ["SUNION", "qux", ["SDIFF", ["SINTER", "foo", "bar"], "baz"]]
Stal.solve(redis, expr)
#=> ["b", "x", "y", "z"]
Stal
translates the internal calls to SUNION
, SDIFF
and
SINTER
into SDIFFSTORE
, SINTERSTORE
and SUNIONSTORE
to
perform the underlying operations, and it takes care of generating
and deleting any temporary keys.
For more information, refer to the repository of the Stal script.
$ gem install stal
FAQs
Unknown package
We found that stal demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.