3 ms·
Glad to see this has some vscode support now. I wonder how well it displays arrays though. I used the TimeStore Q editor last year while doing advent of code an
by maximus-decimus 4y ago
Glad to see this has some vscode support now. I wonder how well it displays arrays though. I used the TimeStore Q editor last year while doing advent of code and the ability to display nicely at least 2d arrays was a game changer when playing around with it.
I don't really get why none of those languages beside K/Q have associative arrays though. There's a reason why even Go has them : they're used all the time. Even better with Q, it automatically transforms your dictionaries of arrays into arrays of dictionaries so you get good cache locality while being able to bundle related data into a dict as if it were a struct.
- mlochbaum 4y agoThere are some consistency issues with multidimensional arrays versus dictionaries, so BQN will eventually support these as system functionality. See https://news.ycombinator.com/item?id=31367355 https://news.ycombinator.com/item?id=31367355. I think you have Q's transformation backwards (a table is a "flipped" dictionary of lists, that is, a list of dictionaries all with the same keys, represented as a dictionary of lists). Obviously it's good for databases, but I don't think every field benefits from this representation. With objects, users can implement such a thing for themselves. Documentation for the array display at https://mlochbaum.github.io/BQN/doc/arrayrepr.html https://mlochbaum.github.io/BQN/doc/arrayrepr.html.