157 points · by ngaut · 5y ago · 51 comments
This project seems very similar to Apache Arrow, if OP or anyone else is around to explain why one might be used over the other that would be great.
Arrow is primarily a serialization format to transfer data between distributed systems. It uses zero copy and other techniques to quickly process, and store large data sets in memory.
Other libraries allow you to query Arrow data once processed.
This project is an in-memory columnar data store with querying and other capabilities.
On the flip side, you could actually fit more data in-memory than with non-columnar methods, since the storage is column-by-column, it compresses very well. For example boolean values are stored as bitmaps in this implementation, strings could be stored in a hash map so there's only one string of a type that kept in memory, even if you have millions of rows.
Recently I'm starting to like this type of programming over OOP. Each part of your application accesses a global in-memory DB with the full state. But unlike a traditional persistent db it's really fast.
https://www.amazon.com/Component-Software-Object-Oriented-Pr...
Programming against Objective-C protocols, COM interfaces, Component Pascal framework, and so forth.
Component programming with interface separated from state is exactly what Objective-C protocols, COM, VBX, SOM, Component Pascal were all about.
Those that promote ECS as not being OOP 99% of the times never read books like the one I linked on my comment.
Instead they reference a talk done at GDC by one of the very first engines that made it well known to those that never read CS papers or books.
If I had an array of a million things, and I wanted to specify some large subset of them via a separate million element array (like in numpy/pandas), is it faster to do it via a million bytes or via a million bits (ie I think this is bitmap indexing, right?). I would think that the bytes would be faster, even though terribly wasteful of memory. From my rudimentary knowledge of CPUs I thought they didn't really operate at the bit level, and so you'd have to do a few instructions of calculations. Or would it be made up for by the cache line reading in more of the indexer in one fetch?
[0] http://cowboyprogramming.com/2007/01/05/evolve-your-heirachy...
As a reformed Java developer I can say that docker didn’t add much time to the build cycle and gave us a better way to package resources for Java code, but Go is far more ergonomic, so taking a <2 second compile time for a small microservice and adding docker to turn it into a 30 second build time just isn’t worth whatever utility you get from containers at dev time.
We build images (about 20, each with a Dockerfile) from a monorepo with a single go.mod. I have basically a full replica of prod running locally in k3s — letting k3s manage it all is easier than dealing with the pile of environment variables that would be needed to get everything hooked up properly. And with kustomize, we can reuse a bunch of yaml from prod.
Sometimes I’ll run go binaries locally on my machine for debugging (the builds still work because go’s packaging is finally stable). But the difference is minimal — using docker/k8s is more about streamlining deployment/config/rollback (and the occasional co-packaged asset) than anything else.
IT industry is full of Matthews that need to be proven wrong for us to advance.
“You believe because you see me. Great blessings belong to the people who believe without seeing me!” (John 20:24-31 )
Bringing it into the IT context, there are the visionaries that believe something is possible no matter what, and then there are those that even with stuff running in front of them cannot move beyond "yes but...".
Ironically, in the 80's in what concerns home computers and game programming, both C and C++ also belonged to the "yes but..." group.