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 8y ago · link · parent

- Does the email fit in a slack? if not, delete it, go open slack and type the message into the slack box, then copy paste that into the email and send.

comment 8y ago · link · parent

It already is

comment 8y ago · link · parent

The deep idea we're really aiming for is proper separation of concerns. Hyperfiddle isolates your web clients from network I/O, so your components can stay declarative, data-driven and pure, and thus compose/nest arbitrarily deep and in recursive ways. If we accomplish this, it should compose a lot better than the ball of mud imperative UIs and APIs that make up today-era applications.

comment 8y ago · link · parent

Thanks Sean! You can use git if you want and just point the fiddle at a qualified var like "myapp.foo.bar/xyz-view". Tbh it will take some time for these ideas to settle in and figure out how far the idea of code-in-database can be pushed. One interesting thing to note is that any fiddle's cljs code is basically just little top-level React.js snippets that stitch components together, it just isn't very critical in the grand scheme of things, the components themselves are still a proper dependency rooted in git. There are also some new things we can do, for example: really good intellisense backed by a database, collaborative editors for pair programming, or even dependency splitting and analysis down to the function scale like explored in Codeq. Only time will tell!

comment 8y ago · link · parent

We do :) The Hyperfiddle Editor includes the whole ClojureScript compiler and standard library – because we are evaling userland cljs in the browser, obviously – but we will bake / pre-compile / dead-code-eliminate userland code in prod to get artifact sizes comparable to any normal ClojureScript project. We don't do this yet but it's straightforward to do.

comment 8y ago · link · parent

Fiddles are data and generally are transacted into a Datomic database. Which database is configured by URI, which you can see in the demo by clicking on "env" in the toolbar top right.

If you self-host, you can instead opt to store your fiddles on the filesystem in git as .edn, .cljs and .css, or whatever. You can wire up that webservice yourself in a couple lines of code. We have a lot of built in tools that work like this, for example the schema editor, the toolbar, and the hyperfiddle editor itself which is bootstrapped. Generally we prefer to store everything in the database where reasonable, because we can hot edit it and it's a much faster and fun workflow.

comment 8y ago · link · parent

Thanks for the feedback, will you ask me three questions right here (something more specific than "i dont know what this is"), so that when I rework the copy I can make sure they are clearly answered above the fold? That would be really valuable, thanks in advance.

comment 8y ago · link · parent

> What other advantages do I get from this as opposed to doing event-sourcing in my favourite SQL RDBMS?

You can do it real-time in your browser (including schema changes) without learning any other tools or writing any code, other than optional React.js views and css. Thank you for the feedback!

comment 8y ago · link · parent

Hi HN, we're excited to share this! Basically, it is an easy way to make web apps backed by Datomic, which is an emerging database from the Clojure ecosystem with some unique capabilities that make this kind of real-time tool possible. We have a very long way to go, but we think there is an opportunity here to make programming simple again. Read more here: http://www.hyperfiddle.net/

1750.

Show HN: We made a real-time editor for web database apps(demo.hyperfiddle.net ↗)

121 points · by dustingetz · 8y ago · 32 comments

1751.

Datomic Ions in Seven Minutes (Transcript) – Stuart Halloway(github.com ↗)

1 points · by dustingetz · 8y ago · discuss

1752.

Show HN: Make CRUD apps in real-time with ClojureScript(hyperfiddle.net ↗)

16 points · by dustingetz · 8y ago · discuss

1753.

Make CRUD apps in real-time with ClojureScript and Datomic (slides)(docs.google.com ↗)

7 points · by dustingetz · 8y ago · discuss

comment 8y ago · link · parent

it’s because if i’m writing sql, i’m definitely angry

comment 8y ago · link · parent

Functions have rich abstraction capability e.g. they compose and such. CSS has primitive abstraction capabilities (That said, i'm unconvinced, but i'm listening)

comment 8y ago · link · parent

Did Recurse Center in 2012. It started a snowball of growth that hasn't showed signs of stopping. The Recurse Center is a self-directed, community-driven educational retreat for programmers. https://www.recurse.com/

comment 8y ago · link · parent

i think you have it backwards- institutions that don’t self sustain, don’t survive.

comment 8y ago · link · parent

did you regret that last one? how much of a DMT trip can you actually remember?

comment 8y ago · link · parent

When infinite resources are available, organizations will somehow find a way to consume them. There are properly consistent not-SQL architectures that do not need clocks, Datomic is one, and it does not require coordination with any government agencies to operate. https://www.datomic.com/

comment 8y ago · link · parent

Standards compliance is short-term expensive, someone like Facebook would have to make it cheap and/or dangle a carrot to make it worth it

comment 8y ago · link · parent

If you take this idea a lot farther - imagine your entire application — frontend, backend, web-service, views — can run as a stored procedure inside the database, and thus load data so fast that it opens up new architectural possibilities beyond client/server. That sounds like crazyland for people from the postgres/rest mindset, but it starts to become possible when you have a simple and portable language that runs in many places. http://www.dustingetz.com/:stu-halloway-datomic-ions-in-seve...

comment 8y ago · link · parent

This is bullshit. I fund my startup by consulting 1-2 months per year at 40k/month. Zero people think it is impressive. But $25k of Obama cereal makes a better story.

comment 8y ago · link · parent

It's the competitive/capitalism culture - we go to the best college we can, and then to pay that off we have to get the best job we, the CEOs have to compete too so wages are pressed down and layoffs happen, and this means the labor has to job hop to make ends meet, and new job generally means relocation again ... in other words total destruction of communities. The laws of power aren't optional and neither is competition.

comment 8y ago · link · parent

Datomic, Rich Hickey's postgres killer http://www.dustingetz.com/:datomic-in-four-snippets

comment 8y ago · link · parent

Well if I have EDN or JSON on the wire, and have the same portable Clojure library running on both sides, doesn't that pretty much accomplish the same thing as serializing actual object instances? Or is that what you meant all along?

comment 8y ago · link · parent

I think that is a mistake, because data is universal but types and methods are not. Consider a value {"a": [42, 43]} - it could be mutable, immutable, persistent, optimized for ordered traversal, optimized for random access lookups, optimized for insertions.

comment 8y ago · link · parent

React.js, if you squint, is also a step in this direction – React.js on the client can bind to a DOM, or run in Node and stream strings to a socket. In other words React decoupled HTML rendering from platform APIs by making it data driven. Data is universal and can be manipulated on any platform, even pencil and paper. What other platform APIs can be replaced by something data driven? I know from my study of Haskell that the answer is probably: all of them.

comment 8y ago · link · parent

The question is motivated by the observation that a set of REST webservices, and a set of React views that consume them, are so different that there isn't any code reuse. I'd ask you to note the parallel structure between them. They are two sides of the same data sync problem.

Yes, of course there are common bits that can be factored out. The problem is that most people have never so much as thought about it, because of the language barrier, and other barriers – for example teams are structured around this artificial divide of frontend and backend. You need a new architecture to take advantage of the parallel structure. GraphQL is just the beginning.

1
585960
121