8,495 karma · joined Feb 1, 2017 (9y ago) · 2,551 submissions
comment 5y ago · link · parent
comment 5y ago · link · parent
It gets hairy whenever you have "behind your back" mutation within a single scope. Because db calls are costly, people usually batch the transaction and pass the result to mostly pure functions. If you were to do something silly like wrap a Redis get/set in a Mapping, it'd feel an awful lot like a global dict.
This is why things like transactions, event sourcing, and the reactor pattern exist. You batch all i/o to the global state so you a) deal with immutable structures everywhere else b) have ACID c) have traceability.
comment 5y ago · link · parent
However, I recently needed to just yeet some large data objects across two contexts. The solution I used was the Borg pattern with a Mapping interface and with an RLock around getitem/setitem.
It feels surprisingly clean. It behave much like an external message queue, which is what it was replacing.
https://github.com/faif/python-patterns/blob/master/patterns...
comment 5y ago · link · parent
Precisely. Spec sheets, unbiased reviews, ratings systems that vet purchases, those add value. Almost by definition, what we consider advertisement is designed to distort humans from making rational free-market choices. Stretching the analogy: Attention is finite, therefore every ad you consume moves you further from perfect information.
That's a purely pragmatic argument without getting into the whole bit where ads use all sorts of psychological tools to shape behavior.
comment 5y ago · link · parent
There are so many assumptions baked in to the early tools that a complete rewrite just bypasses.
comment 5y ago · link · parent
ROS seems almost like it wants to distribute state by default. And it has no primitives for sanely managing distributed state, health checks, etc. The lego brick approach to camera drivers is great, but trying to orchestrate all those bricks is a nightmare. Rosparam/master is woefully inadequte as a control plane.
I recommend anyone in this space look at tools like Consul.
comment 5y ago · link · parent
My 10,000' view understanding:
- Small feature size. M1 is a 5nm process. Intel is struggling to catch up to TSMC's 7nm process
- more efficient transistors. 7nm uses finFet. M1 probably uses GAAFET, which means you can cram more active gate volume in less chip footprint. This means less heat and more speed
- layout. M1 is optimized for Apple's use case. General purpose chips do more things, so they need more real estate
- specialization. M1 offloads oodles of compute to hardware accelerators. No idea how their code interfaces with it, but I know lots of the demos involve easy-to-accellerate tasks like codecs and neural networks
- M1 has tons of cache, IIRC, something like 3x the typical amount
- some fancy stuff that allows them to really optimize the reorder buffer, decoder, and branch prediction, which also leverages all that cache
comment 5y ago · link · parent
However, SpaceX is also tuning for engine temperature control and specific impulse. Raptor runs ~3.55 lox/methane (very rich), 4.0 is stoich.
https://www.researchgate.net/publication/255632584_On_the_Of...
comment 5y ago · link · parent
When the time comes, cleave these chunks off and wrap them in RPC/REST/graphql.
It's good form even for monoliths since it makes for an easy interface to test.
comment 6y ago · link · parent
> We can think of a functor as a container, which contains one type of item. ... > A pointer: *T is a container that may be empty or contain one item;
Despite that comparison probably making seasoned FPers groan, that was a big clicking moment for me.
Thinking along the lines of nullary-function:pointer::return:dereference, frames Linus' abstraction in an interesting light. You're manipulating the "function which yields the struct", not the struct itself. In fact it looks much closer to a map than the cs101 blurb in that now all nodes can be treated symmetrically.
[0] - https://awalterschulze.github.io/blog/post/monads-for-goprog...
comment 6y ago · link · parent
If you objectively listed ethanol's effects on paper without the name, people would clamor to ban it. Yet we all know how that went over. And the fact is societies largely coexist with it. It should be the poster child for how sensible drug legalization won't cause western civilization to crumble.
comment 6y ago · link · parent
comment 6y ago · link · parent
It involves getting a geometric understanding of e to the pi i, and 3blue1brown explains it better than I could:
https://www.youtube.com/watch?v=F_0yfvm0UoU [6.28 min]
https://www.youtube.com/watch?v=v0YEaeIClKY [3.14 min]
comment 6y ago · link · parent
It's less "cutting" and more "crunching" its way through. Sheer brute force plastic deformation.
comment 6y ago · link · parent
comment 6y ago · link · parent
Raw imagery contains a lot of entropy that usually doesn't affect the appearance perceptually, but still has sig figs that frustrate compression.
comment 6y ago · link · parent
That's some weird hot take on a 20 min video titled "The CIA is a Terrorist Organization". He's obligated to mention Moussad, KGB/FSB et al, because "both sides"?
Also last I checked, "we only did shady shit cause they did shady shit" isn't much os a defense anyway.
comment 6y ago · link · parent
- holy jargon, Batman! From what I've gleaned, "holographic" refers to Tony Plate's Holographic Reduced Representations
- "hypervector" is just a swanky term for very-high-dimensionality vectors, a la "hypersonic", "hypervisor", hyper-encabulator, etc.
- this reminds me an awful lot of thought vectors. The first abstract linked mentions HRRs alongside semantic vectors, so both are types of hypervectors I think?
- this also reminds me of Numenta/Nupic/sparse distributed represntations. I think SDR's are also hypervectors?
comment 6y ago · link · parent
Instead you either need sidecar files, archives, or custom binary formats.
It's as if the posix filesystem abstraction crystallized a bit too soon (same like tcp/ip)
comment 6y ago · link · parent
`[edist(S, b) for b in basis]`
Where edist is some Levenshtein edit distance. You can build feature vectors from these by analyzing adjacency within logical blocks. Take other known Go software, obfuscate it, and vectorize it on the same basis. Even though the obfuscation is random, similar code chunks should project to a similar "shape" manifold.