peterc / bitarray Goto Github PK
View Code? Open in Web Editor NEWPure Ruby bit array/bitfield implementation
License: MIT License
Pure Ruby bit array/bitfield implementation
License: MIT License
The gem is not updated with code from the repository.
The repository contains no LICENSE file and no license is set in the rubygems.org entry for bitarray.
This results in a deny in the security risk analysis tool Diffend.
The following behaviour seems incorrect:
2.4.3 :100 > z = BitArray.new(12)
=> #<BitArray:0x00007fa023079d18 @size=12, @field="\u0000\u0000">
2.4.3 :101 > z[3]
=> 0
2.4.3 :102 > z[3] = 0
=> 0
2.4.3 :103 > z[3]
=> 1
2.4.3 :104 > z[3] = 0
=> 0
2.4.3 :105 > z[3]
=> 0
2.4.3 :106 > z[3] = 0
=> 0
2.4.3 :107 > z[3]
=> 1
Setting to 0
should be done with @field.setbyte(position >> 3, @field.getbyte(position >> 3) & ~(1 << (position % 8)))
Hi,
I'm seeking confirmation regarding the compatibility of the bitarray 1.3.0 with the recently released Ruby 3.3.0 (December 25, 2023).
While I reviewed the gem's documentation on RubyGems(https://rubygems.org/gems/bitarray) and github(https://github.com/peterc/bitarray) it only specifies a minimum required Ruby version of > 0. Unfortunately, I haven't found any explicit confirmation on compatibility with newer versions like 3.3.0.
Given your expertise in this area, could you offer any insights or leads on this matter? Any information you can provide would be greatly appreciated.
Thank you for your time and assistance!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.