Better HN
topnewbestaskshowjobs
Log inSign up

refset

1,514 karma · joined Aug 24, 2015 (11y ago) · 537 submissions

https://github.com/refset

[ 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

---

Submissions

comment 2y ago · link · parent

> Nice work with TXDB btw

It's X.T. (as in 'Cross-Time' / https://xtdb.com), but thank you! :)

> 1: https://aidanhogan.com/docs/ring-graph-wco.pdf

Oh nice, I recall skimming this team's precursor paper "Worst-Case Optimal Graph Joins in Almost No Space" (2021) - seems like they've done a lot more work since though, so definitely looking forward to reading it:

> The conference version presented the ring in terms of the Burrows–Wheeler transform. We present a new formulation of the ring in terms of stable sorting on column databases, which we hope will be more accessible to a broader audience not familiar with text indexing

comment 2y ago · link · parent

Having read something vaguely related recently [0] I believe "Lookahead Information Passing" is the common term for this general idea. That paper discusses the use of bloom filters (not HLL) in the context of typical binary join trees.

> Letos join

God-Emperor Join has a nice ring to it.

[0] "Simple Adaptive Query Processing vs. Learned Query Optimizers: Observations and Analysis" - https://www.vldb.org/pvldb/vol16/p2962-zhang.pdf

183.

Datomic Entity Id and Datom internals(favila.github.io ↗)

3 points · by refset · 2y ago · discuss

comment 2y ago · link · parent

Thank you for the explanations. Do you happen to know why transactions ("transaction requests") are represented as lists and not sets?

comment 2y ago · link · parent

I don't know whether it was intentional or not, but IIRC DataScript opted for sequential intra-transaction semantics instead.

comment 2y ago · link · parent

> Trust is the decision to forgo attentiveness

> If you can’t trust, you have to pay attention in order to verify – and verifying is expensive

> We’d like to believe that goodness brings us together, but that’s not what the data reveal. According to group studies, we don’t come together because we trust: we come together because we align our intent to mistrust.

> We stick together because our interests align and we suffer the mistrust of others until we can no longer justify it.

Interesting perspectives.

Makes me wonder... what is the state of the art in software systems that could help us to "align our intent" in this "impending cyborg age"?

187.

How shall we live? (2023)(mark-burgess-oslo-mb.medium.com ↗)

2 points · by refset · 2y ago · 2 comments

comment 2y ago · link · parent

3) Basilisp (https://github.com/basilisp-lang/basilisp, "A Clojure-compatible(-ish) Lisp dialect targeting Python 3.8+")

comment 2y ago · link · parent

> What is the relation between "start with why" and "databases are becoming a commodity"?

My assumption is that the author is painting out a longer-term vision both for Confluent and its audience.

It probably makes more sense in the context of other posts, e.g.

> This trend towards object storage is not just happening at Confluent but across the data ecosystem. Many different types of cloud data systems are integrating object storage into their architecture, and I have covered a few of these such as Neon and ClickHouse Cloud. There is also a flurry of start-ups doing logs (such as the Kafka API) over object storage directly (six and counting). There is money being plowed into data systems that use object storage as the primary, and sometimes, only storage layer.

https://jack-vanlightly.com/blog/2024/5/2/hybrid-transaction...

In other words: managed Kafka is becoming a commodity and Confluent should "start with why" to figure out where to go. I figured the advice and perspective is of general enough interest.

190.

Clojure: Managing throughput with virtual threads(andersmurphy.com ↗)

165 points · by refset · 2y ago · 15 comments

comment 2y ago · link · parent

H2 offers quite a comprehensive solution for dealing with this:

> [H2] provides a way to enforce usage of parameters when passing user input to the database. This is done by disabling embedded literals in SQL statements. To do this, execute the statement:

> SET ALLOW_LITERALS NONE;

> Literals can only be enabled or disabled by an administrator

https://www.h2database.com/html/advanced.html

192.

The Sisyphean struggle and the new era of data infrastructure(jack-vanlightly.com ↗)

17 points · by refset · 2y ago · 3 comments

comment 2y ago · link · parent

It's great how the very first SQL query in that paper is still completely valid and runs on countless implementations:

> SELECT NAME FROM EMP WHERE DEPT = 'TOY'

comment 2y ago · link · parent

This is how I see things also. Clojure is extremely practical and naturally attracts people that want to ship products.

The "Figma OSS Alternative" post that's also on the HN homepage right now doesn't mention Clojure anywhere (no comments about it either!), but Penpot is clearly also yet another app successfully shipped using Clojure: https://github.com/penpot/penpot

195.

Pareto-Optimal Compression (2021)(insanity.industries ↗)

2 points · by refset · 2y ago · discuss

comment 2y ago · link · parent

Codapi looks very slick! It's great that you kept everything generic enough to support many different backend use cases.

Coincidentally my colleagues recently built a custom version of almost this exact same interactive UX for writing SQL tutorials: https://docs.xtdb.com/tutorials/immutability-walkthrough/par...

If only you had launched sooner :)

197.

2.5x better performance: Rama vs. MongoDB and Cassandra(blog.redplanetlabs.com ↗)

10 points · by refset · 2y ago · discuss

comment 2y ago · link · parent

Considering the functionality on offer the service does look particularly easy to work with, even though there's still a notion of a stateful cluster with per-node sizing & pricing. Perhaps the MemoryDB team will offer something more 'serverless' eventually.

comment 2y ago · link · parent

Anything that helps turn RESP into more of a commodity protocol seems like a good thing in the long run. It seems to be simple enough that workloads can legitimately migrate around and users can vote with their wallets for whoever operates the most secure/available/portable(OSS) platform. By contrast SQL tech is in a far more precarious state.

comment 2y ago · link · parent

If nothing else, MemoryDB demonstrates that Valkey could be extended with much richer durability/HA guarantees.

comment 2y ago · link · parent

Relevant context & reading:

> for most of the history of sql we did not know how to translate it to relational algebra, and now that we do know most databases still don't do it.

https://www.scattered-thoughts.net/writing/unexplanations-sq...

> None of this could be expressed in the original relational algebra, and once you add it all it's not obvious we should even still be calling this an algebra, let alone granting it any mathematical mystique. I'd settle for calling it the 'sql calculus'. Or 'the algebra formerly known as relational'.

> It is still a reasonably good compiler IR though, and that's still the most useful way of thinking about it.

https://www.scattered-thoughts.net/writing/unexplanations-re...

comment 2y ago · link · parent

How about as a motivational aid and means of verifying that your code has compiled: https://squint-cljs.github.io/squint/

203.

Storage Models and Data Layout (2023) [pdf](15721.courses.cs.cmu.edu ↗)

3 points · by refset · 2y ago · discuss

comment 2y ago · link · parent

For analytical queries note that you really have to learn how to express the queries efficiently with Postgres - unfortunately the optimizer is still missing lots of tricks found in more sophisticated engines [0][1][2]. JIT compilation alone can't get close to making up for those gaps.

[0] https://pganalyze.com/blog/5mins-postgres-optimize-subquerie...

[1] https://duckdb.org/2023/05/26/correlated-subqueries-in-sql.h...

[2] "Unnesting Arbitrary Queries" https://cs.emis.de/LNI/Proceedings/Proceedings241/383.pdf

205.

Neon Serverless Postgres is generally available(neon.tech ↗)

324 points · by refset · 2y ago · 217 comments

comment 2y ago · link · parent

Shameless plug, but XTDB v2 is being built for low-latency bitemporal queries over columnar storage and might be applicable: https://docs.xtdb.com/quickstart/query-the-past.html

We've not been developing v2 with ML feature serving in mind so far, but I would love to speak with anyone interested in this use case and figure out where the gaps are.

comment 2y ago · link · parent

> Von Neumann was still deeply involved in hydrogen bomb development beyond simply developing the prerequisite plutonium implosion bomb

This. https://en.wikipedia.org/wiki/John_von_Neumann

> In 1955, von Neumann became a commissioner of the Atomic Energy Commission (AEC)

> He used this position to further the production of compact hydrogen bombs suitable for intercontinental ballistic missile (ICBM) delivery

> He was adamant that H-bombs delivered deep into enemy territory by an ICBM would be the most effective weapon possible

It seems much of his life was dedicated to applying Game Theory.

comment 2y ago · link · parent

Looks nice! I would suggest to pointing users to a small demo csv file and query that can be quickly loaded/pasted to see it working. Or even have a "Load example CSV and query" button.

comment 2y ago · link · parent

I stumbled on this after realising that Mark Burgess, who created CFEngine, is also the author of this other recent HN post on "Using Promise Theory to solve the distributed consensus problem" [0] (from the same blog).

[0] https://news.ycombinator.com/item?id=39676493

210.

CFEngine's Star Trek and AI Origins (2023)(mark-burgess-oslo-mb.medium.com ↗)

63 points · by refset · 2y ago · 19 comments

1
678
18