1,514 karma · joined Aug 24, 2015 (11y ago) · 537 submissions
[ my public key: https://keybase.io/refset; my proof: https://keybase.io/refset/sigs/pyTK0thu8g5O4Zs7EA3HrQYKkYZjeEz_TUr8nZV2hlY ] c0ba44896414421c9009bc8a77a86ceb
meet.hn/city/51.0612766,-1.3131692/Winchester
Socials: - github.com/refset
---
391.
Emotional Management (2021)(scattered-thoughts.net ↗)
1 points · by refset · 3y ago · discuss
comment 3y ago · link · parent
I'm no expert, but I believe synthesis approaches are a strong step in that direction: https://arxiv.org/abs/2205.12425
comment 3y ago · link · parent
comment 3y ago · link · parent
Absolutely agreed, Winternitz is very approachable!
At one point ~10 years ago I was particular enamoured by this "Dahmen-Krauß Hash-Chain Signature Scheme" (DKSS) built on top of Winternitz. It is a stateful scheme optimised for signing small messages...appropriate for things like lightweight sensor networks (e.g. 8-bit sensor readings), but I was imagining possibly also for quantum-proof p2p systems based on replicating event logs :)
https://web.archive.org/web/20110401080052/https://www.cdc.i...
...and from there I learned about "hash chain traversal" algorithms which are slightly trickier to reason about, but still within reach of a casual programmer.
At the time this really felt orders of magnitude less intimidating than any other options for adding post-quantum signatures to my JavaScript app :P
comment 4y ago · link · parent
comment 4y ago · link · parent
I'm not the OP, but I built this visual tool recently which might be of interest https://bitemporal-visualizer.github.io/
comment 4y ago · link · parent
- https://github.com/nearform/temporal_tables
- https://github.com/xocolatl/periods
- https://github.com/scalegenius/pg_bitemporal
- https://github.com/arkhipov/temporal_tables
I haven't used any of them but I work on https://xtdb.com which is also implementing SQL:2011's temporal features :)
comment 4y ago · link · parent
Also relevant as a Phoenix-like alternative for Clojure: https://github.com/tatut/ripley
comment 4y ago · link · parent
comment 4y ago · link · parent
Facebook's LogDevice had a similar sequencer component too https://engineering.fb.com/2017/08/31/core-data/logdevice-a-...
comment 4y ago · link · parent
> Today, almost ten years after I wrote this book, one idea stands out clearly for me as the most important in the book: the idea of the diagrams. [...] I reject the whole idea of design methods as a subject of study, since I think it is absurd to separate the study of designing from the practice of design. [...] No one will become a better designer by blindly following this method, or indeed by following any method blindly. [...] In the process of trying to create such diagrams or patterns for yourself, you will reach the central idea which this book is all about.
I think this explains why Inkscape is my favourite piece of software :)
[0] https://monoskop.org/images/f/ff/Alexander_Christopher_Notes...
comment 4y ago · link · parent
[0] https://writings.stephenwolfram.com/2021/11/the-concept-of-t...
comment 4y ago · link · parent
[0] https://www.oxfordsemantic.tech/product [1] http://www.cs.ox.ac.uk/dan.olteanu/papers/mnpho-aaai14.pdf
comment 5y ago · link · parent
More specifically, I would argue for the ability to run arbitrarily complex, non-locking, fully-consistent queries against all historic versions of the database, a.k.a. "the database as a value" (also "transaction time" or "system time" temporal queries)
407.
Clojure Radar 2021(juxt.pro ↗)
5 points · by refset · 5y ago · discuss
comment 5y ago · link · parent
Undoubtedly too late for you, but https://github.com/juxt/crux/blob/master/crux-core/src/crux/... :)
comment 5y ago · link · parent
comment 5y ago · link · parent
comment 5y ago · link · parent
>To get the full value out of it, your app code should be aware of transactions, participate in database mechanisms (versionstamps), correctly handle asynchronous streaming of large amounts of data with backpressure
This is an excellent point, and broadly aligns with Crux's design also, since the transaction semantics provided are relatively raw and therefore much of the interesting parts of the "database" logic live firmly in the application code.
It sounds like you have a really interesting system and I would love to hear more about it one day :)
comment 5y ago · link · parent
Whilst Kafka itself is almost certainly not as simple to operate as FDB (although I can't speak from experience), it does in turn provide Crux with dead-simple clustering, because each Crux node acts as an isolated replica. FDB could be used equally instead of Kafka, but the maximum write throughput would then be somewhat lower. The only key part of the story Crux doesn't currently supply out-of-the-box is a load-balancing layer atop a cluster of nodes.
I expect the real drawback of Crux's current design, by comparison, is that each node is an ~expensive full replica, whereas your system (built on FDB) will benefit from fully sharded indexes running across a cluster of (smaller) machines. The main trade-off then is the low-latency query performance of a fully local KV store.
comment 5y ago · link · parent
It's not. For example, see SAP HANA's "Timeline Index" https://websci.informatik.uni-freiburg.de/publications/sigmo...
comment 5y ago · link · parent
Incidentally, I was writing up some notes earlier today about the nightly benchmarks we run for Crux (another Clojure-flavoured Datalog DB), which may be of interest: https://opencrux.com/articles/benchmarks.html
comment 5y ago · link · parent
Crux is usually quite competent at selecting a sensible variable ordering but when it makes a bad choice your query will take an unnecessary performance hit. The workaround for these situations is to break your query into smaller queries (since we don't wish to support any kind of hinting). Over the longer term we will be continuing to build more intelligent heuristics that make use of advanced population statistics. For instance we are about to merge a PR that uses HyperLogLog to inform attribute selectivity: https://github.com/juxt/crux/pull/1472
EDIT: it's also worth pointing out that the workaround of splitting queries apart is only plausible because of the "database as a value" semantics that make it possible to query repeatedly against a fixed transaction-time snapshot. This is useful for composition more generally and makes it much simpler to write compile-to-Datalog query translation layers on top, such as for SQL: https://opencrux.com/blog/crux-sql.html
[0] https://cs.stanford.edu/people/chrismre/papers/paper49.Ngo.p...
comment 5y ago · link · parent
Also, Crux maintains a point-in-time (a.k.a timeslice) temporal index which is really a Z-Order Curve[0] that stores the two dimensions for fast lookups in a local KV store like RocksDB or LMDB. By contrast, a userland RDBMS implementation of bitemporality will be significantly slower to execute similar point-in-time "as-of" queries.
[0] https://en.m.wikipedia.org/wiki/Z-order_curve
(I work on Crux)
comment 5y ago · link · parent
> In summary, the Crux indexes as a whole could be described as a "partially persistent and fully retroactive data structure".
[0] https://en.wikipedia.org/wiki/Retroactive_data_structure
[1] https://opencrux.com/articles/bitemporality.html#_retroactiv...
comment 6y ago · link · parent
There is at least one database that exists which does support a Git-like DAG for transaction-time temporality: https://terminusdb.com/
It should also be pointed out that "temporal databases" usually offer a lot more besides a linear transaction-time history. Although I've not seen anything that offers a DAG for valid-time histories yet :)
comment 6y ago · link · parent
I ask because I work on Crux [0] which at its core is a point-in-time bitemporal Datalog engine, and I see a lot of similarities (schemaless core, Worst-Case Optimal Join etc.)