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

clickbait

comment 10y ago · link · parent

willpower pill is literally what a personal trainer is

comment 10y ago · link · parent

yeah but 40 years ago people said this about spreadsheets, and 25 years ago about web browsers, and 50 years ago about computers

comment 10y ago · link · parent

Hi rtens, I would like a concrete (not abstract) explanation of what a cell is and how to compose an application with them; your docs are very abstract. Perhaps a hello world application?

comment 10y ago · link · parent

you can use this to serve dynamic websites out of CDN, for example github pages, which we talk about as a static site but underneath it is a slow moving database (your git repo)

comment 10y ago · link · parent

The need to hold whole stacks in the head is the problem. That's not abstraction. That's not how math works. The mouse doesn't escape the wheel by running faster.

comment 10y ago · link · parent

software itself isn't intractable, it's that the field is young, and we are stuck with choices made when nothing was understood, and its gonna take a while to turn the ship. but i think we have a pretty good idea of where we are trying to go wrt writing secure software.

comment 10y ago · link · parent

the big idea here is that distributed systems are complicated and accuracy is often sacrificed to make an intractable problem easier.

comment 10y ago · link · parent

in distributed systems, counts are often incrementally maintained over time. There are many ways to trigger an unfollow (e.g. account deleted or country banned), and all the edge cases must be explicitly accounted for, or error creeps in, which is probably what happened. 3.8M is probably the more accurate count.

comment 10y ago · link · parent

does "loop" here just mean iteration, e.g. a for loop with delta-t for numerical integration

comment 10y ago · link · parent

what size raise is this article about?

comment 10y ago · link · parent

If twitter had more diverse early employees they would not have built a harassment platform - I read this in a HN comment once and it stuck with me. Nice to see this cost in terms the market understands.

comment 10y ago · link · parent

> but that is simply not how React works ... React calls into the children

That's not how function components work, and i can easily imagine how to get lifecycle methods back (including optimizations) on function components

comment 10y ago · link · parent

I think dynamic scope can work with setState by allocating a new closure that closes over the dynamic vars, aliasing them into lexical scope of the render function.

The problem with React Context is that it bypasses the general solution offered at language layer for a react-specific solution, essentially breaking any code written without prior knowledge of React.

comment 10y ago · link · parent

I have a question, lack of dynamic scope in render functions is causing me major issues in making highly dynamic and complicated UIs in ClojureScript. I understand that Javascript doesn't have proper dynamic scope so you guys probably weren't thinking about it, but I also see you guys moving farther and farther away, there's the whole Context hacks and now the web worker call stack serialization thing. Are there technical reasons that this can't be made to work with dynamic scope? I think you lose a lot of stuff by, well, not being actual function composition, only pretending to be.

    cljs.user=> (ns foo.core (:require [reagent.core :as reagent]))
    nil
    foo.core=> (def ^:dynamic *foo* 42)
    #'foo.core/*foo*
    foo.core=> (defn inner [] [:div *foo*])
    #'foo.core/inner

    ; React component call - broken
    foo.core=> (defn root1 [] (binding [*foo* (inc *foo*)] [inner]))    
    #'foo.core/root1
    foo.core=> (reagent/render-to-string [root1])
    "<div ...>42</div>"

    ; Direct function call - works
    foo.core=> (defn root2 [] (binding [*foo* (inc *foo*)] (inner)))    
    #'foo.core/root2
    foo.core=> (reagent/render-to-string [root2])
    "<div ...>43</div>"
A quick example of dynamic scope:

    cljs.user=> (def ^:dynamic *foo* 42)
    #'cljs.user/*foo*
    cljs.user=> (defn negate [x] (- x))
    #'cljs.user/negate
    cljs.user=> (binding [*foo* (inc *foo*)] (negate *foo*))
    -43

comment 10y ago · link · parent

Can you handle multiple users with different security/permissions? Is it possible to gracefully grow an object spreadsheet into a real application, on scale of facebook.com, with performance and battery concerns along with a fully programmable UI? If not what is missing?

comment 10y ago · link · parent

Demos are down (from here: http://objsheets-demo.csail.mit.edu/?examplesNamePrefix=fvQ6...)

comment 10y ago · link · parent

Point based moderation generates toxicity, hacker news gets toxic too. Stack Overflow went all in on moderation before they understood the social consequences of it. There's an opportunity here for a social network with a moderation system that cares about how it makes people feel and how feelings impact user generated content.

comment 10y ago · link · parent

No

    (map println [1 2 3])
Map is RT even when println is not

comment 10y ago · link · parent

yes we run on imperative hardware, a pure functional language can run out of memory too (but I agree that Staltz's stance is unhelpful)

comment 10y ago · link · parent

This is all about to change, think of Github as a database, with a server side rendered page hooked up to it. There exist databases that work like git, and React/virtual dom does server-side rendering, so coming soon are frameworks that give you proper database apps, coded in javascript, that are CDN compatible. I've actually built this already but we haven't launched it publicly yet. If interested, you can give us your email at http://www.hypercrud.com

comment 10y ago · link · parent

The coding tools of the future probably won't be so file/text based. At any given moment you're only really focused on a couple lines of code. That's what I think anyway.

comment 10y ago · link · parent

> unless you have devs that cannot actually deliver on the needs the dependency covers.

You say this off-handedly like its not a big deal. No single person or company understands all the dependencies from the app all the way down to the electricity. That's the real reason we use dependencies - for things that aren't core to our business, that we don't want to have to understand.

comment 10y ago · link · parent

I just wanted to say that the clojure ecosystem is littered with the carcases of half baked libraries. Including some of my own. Its not a JS problem, its the beauty of open source & low friction sharing.

comment 10y ago · link · parent

I know a guy like you who had to work so hard in class, we called him names because of how bad he was at coding. Somehow we ended up great friends. Now it's 10 years later. The guy is a contract Scala programmer and bills $100 an hour and is generally one of the best programmers at the companies he contracts for. Not big four, but regular bread and butter companies that build their own software. He got to where he is by not drinking in his 20s and by studying software before work an hour every single day. He even has a wife and young child... we are 30 btw

comment 10y ago · link · parent

i think command and control management structures have a lot of benefits at scale. Maybe at scale a company's competitive edge is essentially about executing on information, and information asymmetry, which is why things like trust and politics are more important than shipping efficiently. Just an idea.
1
747576
121