Skip to content
#

immutability

Here are 128 public repositories matching this topic...

jafingerhut
jafingerhut commented Nov 4, 2019

This comment in the source file RrbTree.java:

    // (MIN_NODE_LENGTH + MAX_NODE_LENGTH) / 2 should equal
    // STRICT_NODE_LENGTH so that they have the same average node size
    // to make the index interpolation easier.

confuses me. The values I see for these constants are:

 NODE_LENGTH_POW_2 5 
 STRICT_NODE_LENGTH 32 
 HALF_STRICT_NODE_LENGTH 16 
 MIN_NODE_LENGTH 22 
garrett-gottlieb
garrett-gottlieb commented Apr 10, 2020

Hi,

I'd like to start by saying kudos for the AMAZING work with this project and massive improvement over MST. You deserve many pats on the back!

I have a small project so far (~3k LOC on the client) and am wondering how easy it would be to switch from MST. It would be very helpful and reassuring for anyone who is considering the switch to have some sort of migration guide (like a blog post

chaos
f00stx
f00stx commented Apr 22, 2020

Installing from source on MacOS Catalina (other versions untested) seems to require that you manually add Homebrew's version of bison and flex to your path, and the appropriate LDFLAGS/CPPFLAGS etc, otherwise make fails. The XCode toolchain's version of bison fails with:

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/bison: invalid option -- W

Coul

maarky
maarky commented Feb 7, 2018

In the docs for the copy trait you show a naive solution where the $size property is made public. You say it needs to be public in order for the with method to work, otherwise it cannot change the value of the cloned object's $size property. This is not true and if it was the copy trait would not work. If you take the naive solution and simply make the $size property private it will still work. In

Improve this page

Add a description, image, and links to the immutability topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the immutability topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.