
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.
Hamster Matrix is a gem providing a persistent immutable matrix for functional programming in Ruby. It is an extension for the popular Hamster gem. It creates a matrix by using nested Hamster Vectors.
It's great for keeping the board state in 2D video games, where the state must be modified while leaving references to the old state unchanged, such as when using a time travelling debugger or implementing undo functionality. It copies the interface from Ruby's Matrix class as much as possible.
Add this line to your application's Gemfile:
gem 'hamster-matrix'
And then execute:
$ bundle
Or install it yourself as:
$ gem install hamster-matrix
require 'hamster-matrix'
a = Hamster::Matrix[[1,0,0],[0,1,0],[0,0,1]]
b = a.set(2,2,'foo')
puts b
# [[1, 0, 0]
# [0, 1, 0]
# [0, 0, "foo"]]
puts a
#[[1, 0, 0]
# [0, 1, 0]
# [0, 0, 1]]
Implements the following methods replicating the behavior of Ruby's Matrix class as closely as possible
Bug reports and pull requests are welcome on GitHub at https://github.com/bradurani/hamster-matrix. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
FAQs
Unknown package
We found that hamster-matrix 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.