Better HN
topnewbestaskshowjobs
Log inSign up

dustingetz

7,912 karma · joined Sep 11, 2009 (17y ago) · 3,625 submissions

Founder Electric Clojure https://github.com/hyperfiddle/electric

https://twitter.com/dustingetz

Submissions

comment 9y ago · link · parent

the D in ACID addresses this. Your standby transactor process is attached to the same storage as the previous transactor (EBS block or dynamodb or whatever cloud HA storage people use these days). If they don't share storage, it's not a single writer.

comment 9y ago · link · parent

What good is ACID writes with AP reads? It doesn't lose data! Don't like eventual consistency? You have options! Check out Datomic - ACID transactions and strongly consistent + distributed reads. http://www.datomic.com/

Git is another ACID single-writer system with strong consistency and distributed reads.

comment 9y ago · link · parent

Postgres will NEVER lose an increment if two transactions try to swap the same counter at the same time, even if denormalized or distributed reads. ACID means "doesn't lose data"

Postgresql with read replicas is ACID-Consistent transactions because there is a single writer process to prevent data loss. Only the reads are distributed and thus cap-AP eventually consistent.

comment 9y ago · link · parent

i think 50% of comments in this thread are Mongo's PR team trying to head off criticism with fud!

comment 9y ago · link · parent

Ease of use - you can get a lot done with only one developer

Mongo doesn't have JOIN pain, sparse tables, many to many join tables, etc - all stuff you need programmers for on sql

comment 9y ago · link · parent

ACID's C is about the write side: "ACID is a set of properties of database transactions" (wikipedia) which is different than CAP's C: https://en.wikipedia.org/wiki/Consistency_(database_systems)...

Postgresql with read replicas is ACID-Consistent transactions because single writer, and CAP-AP eventually consistent because distributed reads.

It is easy to agree with you here: "PostgreSQL basically stops working well too, once you start mixing transaction processing and business reporting and BI in the same box at scale." It's worse than that - the app has to be coded before it can be scaled so you get fucked by complexity-scale via ORM a lot sooner than bigdata-scale. But as you sort of say, the point of a data warehouse is to be cap-AP (eventually consistent) through read-replicas without breaking ACID-consistent transactions for the system as a whole.

as to the argument "everything is bad at scale" i think that has merit too, I just gave a talk at ClojureNYC about building real apps with Postgres (tables) vs Neo4J (graph) vs Mongo (documents) vs Datomic (eavt): https://github.com/hyperfiddle/hypercrud.browser/issues/4 (Did I say real "apps"? I meant "balls of mud")

comment 9y ago · link · parent

Mongo going public for same reason all tech companies go public in 2016+ - they are done growing, they are not going to win it all after all, they're fucked, and now the investors want to liquidate

comment 9y ago · link · parent

First of all https://en.wikipedia.org/wiki/Consistency_(database_systems) There is no strawman, postgres is literally acid and mongo literally isn't, full stop.

Second of all, Mongo marketing and ecosystem is foremost about making dashboard crud apps easy with not a lot of engineering. dashboards are not about point reads. Whether or not mongo is engineered for it, this is what the customers are using it for.

Third, I just wrote a proposal today for a client on Mongo, not at scale, who experiences silent database failures due to lack of acid. they only noticed because Mongo sometimes tells them there are -2 people left in the room.

Nobody at scale uses mongo because somewhere along the way you spend your giant bags of scale-money to hire a real engineering team to solve the silent errors and failwhales you've been suffering by migrating to an architecture that actually lets you reason about failure a little better than "it looks like something bad happened but we have no idea when how or why"

comment 9y ago · link · parent

"its "closed" architecture seemed reasonable. How else would one implement persistent two-way links"

That's a great example of a concrete implementation detail - unbreakable links means a central link database - that has significant implications in the shape of the vision. For example the only way I can think of to do unbreakable links but also distributed is an immutable public ledger perhaps something like a blockchain. And now we can talk about specifics like what other properties does a blockchain implementation shape? What does a database app with HTML forms and such look like? But did Nelson understand this? Can anyone cite an implementation source that goes into Nelson's analysis of this stuff?

comment 9y ago · link · parent

I read Ted Nelson's autobiography. My impression was he had great visionary scale ideas, but couldn't describe a concrete implementation. I actively sought to understand concretely what Xanadu is and came up empty, a lot of high level words that could mean anything to different people reading them. Nothing concrete, at least that I was capable of understanding in the amount of time I was willing to invest. Nelson's research and vision predates computers and programmers as we know it today, so it makes sense that he wasn't a programmer. Tim Berners Lee was of course a programmer, and wrote in Weaving the Web, "having a working demo is table stakes."

comment 9y ago · link · parent

yes! Data driven UI (which is what this thread is about) will never succeed on sql.

comment 9y ago · link · parent

It was my understanding that you just had to provide a safe language without infinite loops (so no ⊥) - is this not true?

https://en.wikipedia.org/wiki/Bottom_type

comment 9y ago · link · parent

Urbit does this cool trick where you use pure lambda calculus arithmetic (church encoding), use this theoretically correct impl as a basis of your proofs and reasoning, and then at runtime provide a polyfill that uses hardware arithmetic operators. The runtime impl is thus not equal since it can for example overflow, but in practice that doesn't inhibit our ability to make useful programs.

https://en.wikipedia.org/wiki/Church_encoding

Facebook does this also with GraphQL - GraphQL queries are theoretically dynamic and defined by the client, but you can bake them when you ship, and then provide optimized implementations of the query that also have knowledge of the UI and database that they aren't supposed to otherwise have.

comment 9y ago · link · parent

See also Morte: an intermediate language for super-optimizing functional programs

"Now suppose there were a hypothetical language with a stronger guarantee: if two programs are equal then they generate identical executables. Such a language would be immune to abstraction: no matter how many layers of indirection you might add the binary size and runtime performance would be unaffected. Here I will introduce such an intermediate language named Morte that obeys this stronger guarantee."

http://www.haskellforall.com/2014/09/morte-intermediate-lang...

https://en.wikipedia.org/wiki/Superoptimization

comment 9y ago · link · parent

JOIN tables, sparse tables, deeply nested JOINs - all this is needed to code link-following in the relational model. So you need an ORM to handle the JOIN pain for you, but relational db query perf degrades as your joins get deeper, so the ORM needs to make hard choices around caching and database query round tips - but the ORM doesn't have enough information about the UI to make these choices - you end up needing to code the app logic into the ORM via caching and query optimizations. And now you're writing code, that's not links and forms anymore.

At ClojureNYC last night I gave a talk about literally this! Here are the slides: https://github.com/hyperfiddle/hypercrud.browser/issues/4

comment 9y ago · link · parent

Facebook does not benefit from liberating data. Blockchain users do, the public ledger is what gives blockchain value. There is no good reason to run social on blockchain, it reduces surface area to profit and there's nothing forcing it to stay.

comment 9y ago · link · parent

I think network effect companies are indeed natural monopolies. Not all network effects are possible to federate. You can't force facebook to federate. And if social was federated, facebook would buy up the competitors and/or embrace-extend-extinguish.

2118.

GData (Google Data Api) – what ever happened to it?

1 points · by dustingetz · 9y ago · discuss

comment 9y ago · link · parent

ClojureScript forces the whole ecosystem into doing immutability, properly, all the same way

2120.

Maze generation code, inspired by working through Mazes for Programmers(github.com ↗)

26 points · by dustingetz · 9y ago · 1 comment

comment 9y ago · link · parent

you can run the javascript client in the server, that is what http://hyperfiddle.net/ does

For example, server side rendering. Though Hyperfiddle is a bit more sophisticated than that.

comment 9y ago · link · parent

shark tank is not a VC, it's a tv show

The founder's response is: "That would be a mistake, because ..."

comment 9y ago · link · parent

My project is a bit of a spiritual successor to HyperCard: https://github.com/hyperfiddle/hypercrud.browser

2124.

Bitcoin Forum Alternate Cryptocurrencies Announcements (Altcoins)(bitcointalk.org ↗)

3 points · by dustingetz · 9y ago · discuss

comment 9y ago · link · parent

Aren't all these people just going to be arrested?

It's not illegal today, but it will be soon enough, and when you piss off powerful people they find a way to shut you down, one way or another.

comment 9y ago · link · parent

Yeah, S1-2 gave deep insight into the characters and their motivations and the way their world worked. E.g. watching Tywin navigate power structures. Like the first three books. S6 is a soap opera.

comment 9y ago · link · parent

One work book (read before work or weekends) and one self help book (read before sleep). Each highlighted, and then a second pass to type the highlights into a document, and a third pass to organize the document into a summary with key ideas broken down with quotes. And about 7h/wk of podcasts while jogging.

comment 9y ago · link · parent

yeah, so i'm essentially doing that actually

comment 9y ago · link · parent

In clojure you write it like this, so the parens indicate scope. No need to mutate an environment here. dunno about hy

    (let [result (- (/ (+ 1 3 88) 2) 8)]
      ; result defined inside the expression only
      )
1
707172
121