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

It's because of all the icky data-sync for the client/service round trips. An async, slow, failure-prone concern wired throughout the entire codebase. I/O hurts everyone in subtly different ways and it's hard to solve so you see a lot of churn.

service/database has this problem too (the ORM flamewars of the 00s) but to a much less degree because it is in a happier place on the latency chart: https://gist.github.com/jboner/2841832

comment 8y ago · link · parent

Many reasons, cultural, not often on github or developed openly, huge variance in quality, maybe not so agile, huge code drops every 6 months with tons of churn so even tiny patches can add huge overhead to the rebase when you upgrade versions soooo you don't.

comment 8y ago · link · parent

he means we can fork and vendor locally but it doesn’t scale when doing enterprise java for many reasons

comment 8y ago · link · parent

There is a cost to everything-private, which is that downstream consumers of your software hate you because now they have to get PRs merged for every little thing that you didn't anticipate. Actually it probably makes the problem worse because we're just going to patch your shit and access the private fields anyway.

The functional programming and especially the data driven schools of thought tackle the same problem more elegantly.

comment 8y ago · link · parent

nil doesn't have to be a failure mode, if we are programming with data it can just mean "empty". The trouble, I think you would point out, is that (.send bus payload) doesn't have a sensible definition of empty – because the bus reference is imperative/stateful/object oriented, not data oriented. Nil punning can't help with foreign interop to imperative systems, but that doesn't mean nil is the root cause of the pain. The imperative dependency is.

comment 8y ago · link · parent

Nil is monoid-zero – what do you think of this idea?

    assoc {}               (assoc nil :a 10) => {:a 10}
    concat '()             (concat nil '(a b c)) => (a b c)
    str ""                 (str "abc" nil) => "abc"
Except where host language interop is prioritized:

    comp identity          ((comp nil inc) 42) => NPE
    + 0                    (+ 1 nil) => NPE
    * 1                    (* 1 nil) => NPE
AFAICT, everywhere where nil could be sensibly defined as zero without complicating interop, it is. And we can of course pave over the interop examples with `fnil`.

comment 8y ago · link · parent

Are you suggesting that there is a meaningful difference between (:firstname record) and (.-firstName record), or (func x) and (.method x), the first of which is nil safe and the second isn't? (It doesn't seem you are, because you're focused on the ifs, but nil punning is about eliding ifs)

comment 8y ago · link · parent

Teach a poor child how to read

comment 8y ago · link · parent

Charge the officers and the entire chain of command

comment 8y ago · link · parent

read “do the work”, a 2 hour motivational read

comment 8y ago · link · parent

2nd and 3rd gen blockchain tech is not vulnerable to double-spend attack, i believe. Only the legacy chains (Bitcoin, Litecoin etc) are

comment 8y ago · link · parent

Game theory is the more fundamental thing that power ultimately derives from. From the paper I linked:

"Focal arbitration power is power to redefine property rights, which of course may be profitable for the focal arbitrator himself. But a society's generally understood rules for recognizing leaders can impose constraints what a leader must do if he wants to retain his generally recognized position of authority."

comment 8y ago · link · parent

Consider finance options contracts. It's math, there aren't ambiguities, "that's not a bug, it's a feature". Also consider that if lawyering was not an available tool in software contracts, there would still be a game theoretic equilibrium, just a different one, but markets would still function. Before contract law there were other coordinating forces, such as royalty and religion, and things worked out well enough. http://home.uchicago.edu/~rmyerson/research/stratofc.pdf

comment 8y ago · link · parent

Is there such thing as waiting too long to raise?

comment 8y ago · link · parent

The trust is still decentralized unless coinbase someday drops external blockchain interop, i have a hard time imagining exactly how that could come to pass

comment 8y ago · link · parent

You could go be a bankruptcy lawyer and write the same threatening letter over and over every day for the rest of your life

comment 8y ago · link · parent

This is why there is a clear chain of command, there can only be one CEO who is it?

comment 8y ago · link · parent

I once saw a paper proposing a generic system connector type for composing systems-of-systems (it was much more sophisticated than just I/O) - I can no longer find the paper, do you know it or what is the state of the art here?

comment 8y ago · link · parent

Consulting, remote or Philadelphia

React.js, Redux, Javascript, ClojureScript, Clojure, Scala, Java, Meteor and MongoDB, Datomic

we also offer NO RISK PROTOTYPING — only pay if you want it

http://www.hyperfiddle-consulting.com/

comment 8y ago · link · parent

SEEKING WORK – remote or Philadelphia

React.js, Redux, Javascript, ClojureScript, Clojure, Scala, Java, Meteor and MongoDB, Datomic

we also offer NO RISK PROTOTYPING — only pay if you want it

http://www.hyperfiddle-consulting.com/

comment 8y ago · link · parent

This is a FAQ https://hn.algolia.com/?query=gdpr%20hn&sort=byPopularity&pr...

comment 8y ago · link · parent

agree but also, ClojureScript didn’t have runtime eval for a long time (because the compiler is bootstrapped on jvm) and that didn’t stop anyone. Even today, runtime eval costs sending all of clojurescript over the wire and no dead-code-elimination; cljs users are quite used to not having runtime eval in prod

comment 8y ago · link · parent

emojis are text “body language”

edit: hacker news filtered them and now the nuance of my message was lost!

comment 8y ago · link · parent

so no eval at runtime which seems not to be such a big deal; we can develop at repl and then bake images for prod

1885.

Reddit says Bitfinex insolvent(reddit.com ↗)

6 points · by dustingetz · 8y ago · 1 comment

comment 8y ago · link · parent

the military actually has quite a huge amount of influence over forex markets why do you think we invest in it? https://www.quora.com/Why-is-oil-priced-and-traded-in-U-S-do...

comment 8y ago · link · parent

That is what dynamic scope is, and javascript doesn't have it, but ClojureScript does, and React still breaks it.

comment 8y ago · link · parent

It surprised me to find out that you're right, for anyone following along, I ended up here: https://news.ycombinator.com/item?id=3453141

comment 8y ago · link · parent

Real functional languages have "lexical scope" and "dynamic scope", both are necessary for proper functional programming. React.js "functions" don't evaluate depth-first like a traditional call stack, but rather "breadth first" (because it offers optimization opportunities) and this breaks dynamic scope, so these Context hacks are an attempt to get it back. You are right though, I think React.js is not the end state and the harder we push it the more the "almost-functional-programming" abstraction is going to leak.
1
626364
121