Skip Navigation
Comparing memory usage between node.js object and go map[string]interface{}
  • How are you measuring memory storage size? Are you sure you are looking as resident memory size and not just the virtual memory size?

    Actual storage of the structures should be nothing. Interfaces are "fat pointers" but that should really just be an extra word which node would have at least that if not more.

    My guess is that if you are looking at virtual memory that more memory/garbage is produced in PARSING and not storing and that the virtual memory size allocated is high even after garbage collection but RSS should be different.

  • Questioning Go's range-over-func Proposal
  • No harm intended but if you are reaching a conclusion that such a feature is not needed without going into more detail than “harm” can go the other way as well.

    Sorry I didn’t link the discussion as I was on my phone and no partonization was intended.

  • Questioning Go's range-over-func Proposal
  • Article is missing a lot of keys points. With iterator you can chain them together to provide even higher level abstractions.

    There are plenty of containers (new maps with different algorithms like a BtreeMap, linked lists, etc) that now with generics could also use a generic way of iterating over them.

    There was a pre-proposal discussion that went into a lot of detail of what is possible that wasn’t intended the release notes. I highly suggest the writer of this article dig much deeper into more benefits of iterators than the two trivial options that were included in the experiment description.

  • Why use hjkl instead of jkl;?
  • This is the terminal that was used by the creator of vi, Bill Joy.

    It should be obvious on why those keys were used. They weren’t “mapped” they literally were the arrow keys. It’s hard to change defaults. Anyone who knows vi keybinding and install work on vim or any other system.

    It would be easy for you to change your own keybindings. Why is there a need to change everyone’s default and break existing muscle memory.

    https://vintagecomputer.ca/wp-content/uploads/2015/01/LSI-ADM3A-full-keyboard.jpg

  • InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)NE
    nemith @programming.dev
    Posts 0
    Comments 15