HNHacker News
TopNewBestAskShowJobs

herdrick

2,711 karma · joined February 19, 2007

- github.com/herdrick

- linkedin.com/in/herdrick

- x.com/herdrick

Interests: AI/ML, Startups

---

submissionscomments
herdrick··on Clojure++ (notes from Rich Hickey talk)
Oh, sorry! I transposed the words.
herdrick··on Clojure++ (notes from Rich Hickey talk)
Right, but the initial quote seemed to say that promoting to BigNums would no longer be automatic. But I may have misunderstood.
herdrick··on Clojure++ (notes from Rich Hickey talk)
Really? That'd be fantastic. Did I misunderstand this?
herdrick··on Clojure++ (notes from Rich Hickey talk)
2^63 numbers ought to be enough for anyone, huh?
herdrick··on Clojure++ (notes from Rich Hickey talk)
That Clojure's target is to replace slow old Ruby (actually that never happens, rather a successful language gains dominance in some niche and spreads from there) is only more evidence that it isn't worth breaking the abstraction called "numbers" to get merely an order of magnitude better performance. Seriously, I almost can't believe this is still an open issue in 2010. And Rich Hickey, who has designed such a great language otherwise, is on the wrong side of it? I'm boggled.

EDIT: If peregrine's comment is right, then we're arguing about something that isn't happening. I hope so.

herdrick··on Clojure++ (notes from Rich Hickey talk)
"... most numeric functions in Clojure, will no longer auto-promote values to Big numbers..."

Oh no! Clojure is choosing the route of premature opt. What a terrible shame.

herdrick··on So A Blogger Walks Into A Bar…
Michael Arrington is impressively gung-ho, and I admire him for it, but is this big news? See point #16 here: http://www.paulgraham.com/guidetoinvestors.html
herdrick··on Google's new data center in Finland
I don't think you would need IP lawyers to set up and run a data center. And yes I do trust the Icelandic government.
herdrick··on Google's new data center in Finland
I've been wondering for a while why Google and others don't put data centers in Iceland. Electricity there is almost free of charge and has zero carbon footprint - in fact zero emissions of any sort. (It's geothermal.) The location is remote so you would have some extra latency but for lots of stuff that'd be fine.
herdrick··on [Firefox] Jägermonkey: it’s in ur browser
OK, thanks, I might try that.
herdrick··on [Firefox] Jägermonkey: it’s in ur browser
Those new versions aren't compatible with any of my installed plugins. (If I can't get Tree Style Tab I'm just going to use Chrome.)
herdrick··on A bike with a reverse-spinning wheel
Actually it shouldn't matter to stability whether a recument (or other) bike is front or rear drive. In fact it appears some recuments are front drive. I would think that rear drive is prevalent because that's the wheel carrying most of the weight.

Also I think the larger effect on your experiemt is the "trail" thing the author mentioned. If you spin the front wheel 180 degrees (possible for some bikes) and try again I think you'll mostly see the reverse result: pushing the bike backwards will let it roll a while, but pushing it forwards will result in immediate crash. But the leaning effect you mention could be important too, I don't know.

herdrick··on Peter Thiel: There Are No Good Bets Against Globalization
Some interesting ideas, but: http://www.imagesjournal.com/issue02/features/groeng1.gif
herdrick··on Adioso (YC W09), Flight Search For People Keeping Their Options Open
I used this as my primary travel site in Australia and really liked it.
herdrick··on What they say about age is true
I have yet to hear a cogent argument on why folks in their late 40s or early 50s are not adequately represented

This is a lot simpler than it seems. Highly experienced, working programmers are rare because there were far fewer programmers twenty years ago compared to today. So of course they are now far outnumbered by newcomers.

This happens in any booming field, in fact any booming demographic.

herdrick··on Self-Improving Bayesian Sentiment Analysis for Twitter
Very cool. That seemed to work better than I'd have expected.

The explanation of the 'naive' part of Naive Bayes isn't quite right, though. Throwing out the possibility of the animal being human based on the datapoint "four legs" is orthogonal to naivety. A more sophisticated Naive Bayes system could reject classifying an animal as human based on having four legs, and conversely a non-naive system i.e. one that used joint probabilities of the features, might not be more likely to.

I guess the most rational way to do that would be to express and calculate the conditional probabilities with some statistical distance, like the # of standard deviations. So 100k examples of humans without a single one having the "four legs" feature would make that a very strong indicator of being non-human. And that'd work just as well with a naive algorithm as any other.

Is there a name for this?

herdrick··on Why Clojure?
I don't understand you.

By this I merely meant, "I don't understand what you are saying". Hope that was clear.

herdrick··on Why Clojure?
I don't understand you. If you don't like to write boilerplate, why do you appreciate Clojure making mutation verbose?

There are times when the imperative style is more natural.

herdrick··on Why Clojure?
'replace-in-form' is a tree-replace, which in Clojure is done with clojure.walk/postwalk-replace. The clojure.walk package is basically tree-map stuff.

Sadly, as far as I know, you need to roll your own tree-reduce.

herdrick··on Why Clojure?
Also, where did you find reset! ? It's not on the atoms page in the main documents.
herdrick··on Why Clojure?
Ah, thank you.

But what I really want it something that doesn't require dereferencing syntax:

    (zet! c (* c x))
herdrick··on Why Clojure?
OK, thanks for the tip about atoms. I hadn't dug into the var/atom/ref/agent docs. I should have before commenting.

What I was looking for can be done with atoms, and is made more like traditional lisp mutation by defining a "st!" (or maybe "zet!" is a better name).

    (defn st! [atm v]
      (swap! atm (fn [_] v)))
Now making ordinary lisp clojures is reasonable:

    (def fns
      (let [c (atom 0)]
        {:add (fn [x] (st! c (+ @c x))) 
 	:mlt (fn [x] (st! c (* @c x)))}))

    > ((get fns :add) 3)
    3
    > ((get fns :add) 3)
    6
    > ((get fns :mlt) -5)
    -30
Though I sure could do without the calls to 'atom' and @. Referencing and dereferencing is for C programmers. Maybe using swap! directly is better after all.

    (def fns
         (let [c (atom 0)]
           {:add (fn [x] (swap! c #(+ % x)))
    	    :mlt (fn [x] (swap! c #(* % x)))}))
herdrick··on Why Clojure?
It's not totally true, either; there are other ways to do state in Clojure. But none of them simply let the programmer, you know, change the state of a variable.
herdrick··on Why Clojure?
...any time a Clojure programmer want's to change the state of a variable, they must do so using the same kind of transaction management as they would use for a database.

Not a good thing. The word 'must' is the glaring red flag.

herdrick··on The Lisp Before the End of My Lifetime
Agreed. For example on pattern matching it's arguably the leader. But it's weak on others, like first class environments.
herdrick··on The Golden State’s War on Itself
Probably they are reacting negatively because California wouldn't seem to have a revenue problem. It's number 6 in % of income taxed. http://blogs.law.harvard.edu/philg/2010/01/10/visit-to-berke...
herdrick··on It's easier to port a shell than a shell script
Right, that's part of 'worse is better'. Easier to build the system, harder to program well on it.

EDIT: I wrote that before reading. The title isn't very relevant to the post.

herdrick··on Western civilization runs on the mainframe
There are estimates that 80% of the world's data are processed by mainframes.

Pretty clueless estimates I'd have to think.

herdrick··on Paul Graham’s Checklist, Would You Make The Cut?
Where's the rest?
herdrick··on Ask HN: (No) Microsoft based start-ups?
splashup.com does. anywhere.fm did.
← PreviousPage 10 of 29Next →