Code Monkey home page Code Monkey logo

fast-bitset's Introduction

Hi there ๐Ÿ‘‹

I'm Matt. I use tech to help people work together.

Here are a few of my favorite things to geek out on:

  • ๐Ÿค– Machine Learning / Computer Vision / LLMs
  • ๐ŸŒŽ Distributed/Decentralized systems like WebRTC & bittorrent. Not crypto.
  • ๐Ÿ“ Collaborative editing (OTs, CRDTs, everything in between)
  • ๐Ÿง‘โ€๐Ÿ’ป Single Page Apps (React, GraphQL)

I'm hiring. Let's work together.

Matt's github stats

fast-bitset's People

Contributors

gitter-badger avatar mattkrick avatar micahscopes avatar pipi32167 avatar tdzienniak avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

fast-bitset's Issues

Behavior of dehydrate

The docs describe dehydrate as...

Turn the bitset into a comma separated string that skips trailing 0 words...

The tests don't seem to be skipping them, unless I'm misinterpreting what "skip" means?

I would have expected

expect(bs.dehydrate()).toBe('0,1,99');
expect(bs.dehydrate()).toBe('2147483647,99');

based on the README.

Am I just misunderstanding? :)

Next published version?

Allo! When do you plan to cut the next release? Need any help with it?

Also, are you on IRC/Gitter/anything? I was literally going to write this exact library last night, then I found this on npm just a few hours after you published v1.0.0.

.not operation

It would be really nice to have the .not function for the negation of two bit sets:
111 NOT 010 = 101

Best,
Ctibor

bit operations in O(1) time?

It says on the front page that bit operations are done in O(1) time. Shouldn't that say O(n) time? The time complexity of bitwise operations between two words might be O(1), but this iterates over multiple words, so the time complexity is still scaling O(n/32) = O(n).

This would be different if these operations were done in parallel of course, which they definitely could be.

Consider rewriting to native ES6

The latest version of V8 can optimize functions that have let and const. This should provide some performance gain. Node 4.2+ takes it just fine, as does Chrome & Firefox nightly. Still waiting on Firefox & webkit to catch up.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.