
Research
/Security News
Contagious Interview Campaign Escalates With 67 Malicious npm Packages and New Malware Loader
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.
A collection of thread-safe versions of common core Ruby classes.
This code base is now part of the concurrent-ruby gem at https://github.com/ruby-concurrency/concurrent-ruby. The code in this repository is no longer maintained.
Add this line to your application's Gemfile:
gem 'thread_safe'
And then execute:
$ bundle
Or install it yourself as:
$ gem install thread_safe
require 'thread_safe'
sa = ThreadSafe::Array.new # supports standard Array.new forms
sh = ThreadSafe::Hash.new # supports standard Hash.new forms
ThreadSafe::Cache
also exists, as a hash-like object, and should have
much better performance characteristics esp. under high concurrency than
ThreadSafe::Hash
. However, ThreadSafe::Cache
is not strictly semantically
equivalent to a ruby Hash
-- for instance, it does not necessarily retain
ordering by insertion time as Hash
does. For most uses it should do fine
though, and we recommend you consider ThreadSafe::Cache
instead of
ThreadSafe::Hash
for your concurrency-safe hash needs. It understands some
options when created (depending on your ruby platform) that control some of the
internals - when unsure just leave them out:
require 'thread_safe'
cache = ThreadSafe::Cache.new
git clone git@github.com:you/thread_safe.git
)git checkout -b my-new-feature
)rake jar
) NOTE: Requires JRubybundle install
)git commit -am 'Added some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that thread_safe demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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.
Research
/Security News
North Korean threat actors deploy 67 malicious npm packages using the newly discovered XORIndex malware loader.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.