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

2191.

Ask HN: Place to discuss world economics and policy?

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

comment 9y ago · link · parent

i also think you have it backwards, FP is the higher level abstraction, pure FP is essentially pure math

comment 9y ago · link · parent

> is there a well-defined ordering? > a = 0; b = 1; c = a + b;

In pure functional languages, these expressions form a dependency graph and the interpreter or compiler may choose an ordering and may cache intermediate results

We may even represent the program itself as a graph, just like you suggest with ML programs, but this is a general purpose program

Obviously we can't do this in imperative languages.

I think pure functional programming enables this future of thinking about programs as graphs and not as text.

comment 9y ago · link · parent

Frontend development involves I/O (server data fetching), which has implications

- it is async - it can fail - it is slow

TLDR you need a programmer to hand-orchestrate the I/O.

REST (HATEOAS) link abstraction permits a general solution to data-driven user interfaces (this is why web browsers are a generic user interface for simple html-only applications), but they are slow due to the way the data fetching is handled - see former facebook manager Pete Hunt's quote here (2014) which predates GraphQL https://news.ycombinator.com/item?id=7601774. Essentially we are talking about the object/relational impedance mismatch, which has performance implications and generally requires hand optimizing by a programmer (tweak the backend queries to batch a lot of stuff and minimize database round trips; tweak the frontend to do as few network requests as possible..this causes the backend-for-frontend pattern (anti-pattern) where you get N backends each hand coded... you can't abstract over this and also have good performance. http://samnewman.io/patterns/architectural/bff/) So you need programmers to figure out the right perf compromises and write the same shitty glue code over and over.

BUT if you have a graph oriented database with something like GraphQL to query it from the frontend, it's pretty easy to imagine abstracting over this stuff in a way that doesn't require hand-tuned performance e.g. Relay and Netflix Falcor, just needs one generic backend, and this paves the way for generic CRUD app word processor that outputs performant apps. If you abstract over I/O, the actual user logic code isn't async, there's exactly one place doing I/O (the generic runtime) so user code can't fail, data fetching is automatically batched properly so user code isn't slow. Don't need a programmer anymore, what you need is more like a business analyst who can write excel formulas.

My startup is building exactly this, it's called Hyperfiddle, email me directly if you'd like to talk about this or be on our mailing list when we launch this year. You can read a little more about it in this transcript of my LambdaConf talk last summer: https://docs.google.com/document/d/1hb9qB_d9jlDUpgTSBcFELGhK...

comment 9y ago · link · parent

I had a lot of success back in 2013/14 by having our outsourced graphic designer directly modify JSX files in our codebase. He picked up just enough javascript to figure it out. I just told him where the file was or set up a test harness and he delivered pull requests against our actual codebase.

comment 9y ago · link · parent

imagine you had about ten excel tables linked in a graph, any interesting visualization or analysis involves querying it like a database, and many databases are very rigid in terms what they can store, not flexible like excel. Semantic web stores (triple stores) are mostly schemaless and solve the rigidity but they had their own problems [1], datomic's 5-store model maybe fixes them? So maybe we will see an excel-for-graphs based on datomic someday soon. I'm working on this problem so if anyone has any interest in discussing this you should email me! It's a really interesting problem because excel-for-graphs would be an amazing starting point for building CRUD apps.

[1] can anyone help me with clarity here as to why triple stores failed? Is it because no :db/retract and no time axis so cache consistency problems? or a deeper reason?

comment 9y ago · link · parent

point of jsx is to make react more intuitive to non-programmers

comment 9y ago · link · parent

SEEKING WORK - remote - dustin.getz@gmail.com

Javascript, React.js, ClojureScript, Clojure, functional programming. My partner and I are looking for medium term work. We are co-located and generally pair program out of a shared office in Philly.

Here is a transcript of one of my talks: https://docs.google.com/document/d/1hb9qB_d9jlDUpgTSBcFELGhK...

Lots of good stuff on github https://github.com/dustingetz and more talk videos available http://www.dustingetz.com/

comment 9y ago · link · parent

Sure, there's a couple in this post: http://tonsky.me/blog/the-web-after-tomorrow/

Humans think in language and as such the languages we use shape the ideas we can have, and as our ideas evolve we build upon old languages with new languages to express new ideas that old languages lacked the necessary atoms.

comment 9y ago · link · parent

Rich Hickey (Clojure, Datomic) and David Nolen (ClojureScript) - consistently helping us to express previously unthinkable thoughts

comment 9y ago · link · parent

Can you post a short video of your workflow? It might help a lot of people

comment 9y ago · link · parent

That's inverted I think. For JVM clojure I am always editing inside a .clj file, all the scrap goes in (comment) forms in the file and I send forms to the repl from the file. I rarely actually type in the repl.

comment 9y ago · link · parent

I love the JVM repl experience from Cursive and emacs. But I've never come close to it from ClojureScript for browser development. Can you describe your repl capabilities and dump some links? (I am looking for a real repl experience like on JVM where the IDE is hooked into the repl and forms can be sent across individually and the app can be built up piecemeal without restarts. If this isn't what I want, tell me what I want. Figwheel doesn't seem to be it.)

comment 9y ago · link · parent

The debugging experience still requires thinking in javascript (https://drive.google.com/file/d/0Bz3IhEqTy9ioZWQ1T24tSzVwaW8...). It's not that big a deal from a day to day. Obviously still worth it, clojurescript is amazing and no other language comes even close. I dont use a ClojureScript repl these days either but I know some are and I need to revisit it.

comment 9y ago · link · parent

the difference is 7% iirc, its kind of negligible which is why i dont even know exactly what it is. Because the hourly rates ratchet at higher increments than 7%. If you want more money you go release a side project, give a talk about it and poof 20% raise on next project.

comment 9y ago · link · parent

yes i am booked essentially whenever i want to be. https://news.ycombinator.com/item?id=13302154 for my portfolio. I can't tell you if it's rare but I can tell you that the stated rate was within reach of twenty-something me back when the portfolio was not nearly as good and i didn't work at google or anywhere like that. higher rates require more free-time investment and better portfolio (obviously worth). I have a friend with a worse portfolio who writes Scala and is always booked though i dont know if he is making $125 yet.

comment 9y ago · link · parent

freelancing 125/hr * 36 hr/wk * 44wk = 198k

comment 9y ago · link · parent

> The amount of work it would take to create a legal code which is internally consistent and always yields an agreeable outcome is not feasible.

Is there something you can cite here? The infeasible thing to me is refactoring a pre-existing lawbase into something formally verifiable; if we could throw it all away and start over at the constitution, it might work.

comment 9y ago · link · parent

what do you think of 3) the way we make law is deliberately "broken" such that inconsistent laws can be passed (with humans in the loop to sort it out) otherwise nothing would pass - if we could build a type checker for laws, active law would not type check and would be impossible to fix

comment 9y ago · link · parent

SEEKING WORK - remote - dustin.getz@gmail.com

Clojure, ClojureScript, Javascript, React.js. we are world-class application developers

Talk portfolio: http://www.dustingetz.com/ Here is a transcript of one of my talks: https://docs.google.com/document/d/1hb9qB_d9jlDUpgTSBcFELGhK...

github: https://github.com/hypercrud/hypercrud.client https://github.com/dustingetz/react-cursor https://github.com/dustingetz/react-chatview

Screenshots of work: (2014) http://curator-lilita-10664.bitballoon.com/work-area-metadat... (2016) https://drive.google.com/file/d/0Bz3IhEqTy9iocjd5RGJ6Wm1BZmc...

My partner and I are looking for medium term work. We are co-located and generally pair program out of a shared office.

comment 9y ago · link · parent

fluent interfaces from OOP are different than composition because they mutate-and-return the object reference; if the instance is aliased anywhere else in the program there is spooky-action-at-a-distance. Composition is about programming with values without mutation. As far as syntax goes it is a trivial macro to translate `x.f().g()` into `g(f(x))` (clojure actually provides it : http://clojure.org/guides/threading_macros)

comment 9y ago · link · parent

fp is the opposite of magical because it is essentially math, 100% predictable (follows laws) and all things composed of simple primitives

comment 9y ago · link · parent

market size is relevant, are the people doing the complaining willing to pay $$$ for cljs devs? I was on the market last winter and could only find $$ (baby startups) which was a 50% cut in rate to work in cljs. BTW I am about to start looking again, contact info in profile

2214.

Ask HN: Alternatives to blockchain for distributed but coordinated state?

1 points · by dustingetz · 9y ago · discuss

comment 9y ago · link · parent

Yeah, I played with react-aframe and a couple other webvr experiments over the summer. A huge benefit of virtual dom in web dev is immutability and programming with immutable state. But all these experimental libraries are backed by THREE.js which means your state is done with traditional imperative math primitives. Just composing a scene in React is not very interesting because the real fun is in interacting with the state of all the objects, for example coding physics. So in the end it does not feel like React. Though Arcadia (experimental Unity engine adapter for Clojure, a functional programming language) is onto a way to bridge these imperative and functional worlds, the fundamental abstraction of Arcadia is to dehydrate a fat object instance into immutable data, then you can program with immutable data, and then hydrate the data back into the fat object instance (which is optimized for use with Unity and the underlying imperative hardware). E.g. https://github.com/arcadia-unity/Arcadia/blob/6105770a780194...

Here are some related notes i dumped on reddit in April 2016 maybe helpful, about doing VR from Clojure: https://www.reddit.com/r/Clojure/comments/4sgjhz/new_clojuri...

1
737475
121