
Security News
Follow-up and Clarification on Recent Malicious Ruby Gems Campaign
A clarification on our recent research investigating 60 malicious Ruby gems.
Karaboga's Artificial Bee Colony in Rust (and in parallel!)
Documentation, including sample code.
There's also a demo, which animates the algorithm for your viewing pleasure. It also uses a couple useful techniques for applying the algorithm to a complex, persistent state.
Available from crates.io as abc.
The Artificial Bee Colony is an optimization algorithm. It considers a set of solution candidates by sending conceptual "bees" to work on those solutions. There are three kinds of bee:
The ABC algorithm can be -- and has been -- applied to a variety of applications. As with many such algorithms, the logic is fairly agnostic about the domain that it works in. In fact, the prerequisites for using the algorithm are:
A solution could be a game-playing AI, a blueprint for a building, or just a
point in space, and the abc
crate treats them all alike. Simply implement
the Context
trait for a type of your choice, construct a Hive
, and start running.
Speaking of running,abc
supports two run modes:
The abc
crate takes advantage of Rust's excellent concurrency support to
explore the same space. This means that heavy computation can be distributed
across multiple CPU cores, or I/O-bound evaluation can run without blocking.
The hive maintains a queue of bees, and the threads each take bees from the
queue and apply the bees' logic to the solutions. So, at a given moment, there
is a different bee working in each thread.
FAQs
Unknown package
We found that abc demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers 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 clarification on our recent research investigating 60 malicious Ruby gems.
Security News
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.
Research
/Security News
A malicious Go module posing as an SSH brute forcer exfiltrates stolen credentials to a Telegram bot controlled by a Russian-speaking threat actor.