Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
brehaut
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
19 ms
·
121.
▲
by
brehaut
17y ago
I believe this Gist is being updated as the thread unfolds. ahem.
122.
▲
by
brehaut
17y ago
I was torn between those two formulations, but decided on the reduce because the academic purity of an implicit hylomorphism ;) However, your formulation is more idiomatic of a lispy solution.
123.
▲
by
brehaut
17y ago
;; python programmer who reads HN and Proggit (defn factorial [n] (reduce * (range 1 (inc n))))
124.
▲
by
brehaut
17y ago
I totally agree that lisp isn't magic once you have seen past the alien notation and a couple of new paradigms (pervasive meta programming, fp, symbolic manipulation, laziness). But I consider it foolish to discount that barrier for a progr
125.
▲
by
brehaut
17y ago
"...For the last time LISP IS NOT MAGIC..." Clarke's Law, "Any sufficiently advanced technology is indistinguishable from magic". If you are used to java, clojure - or any lisp - is sufficiently advanced to be considered magic. Edit: posses
126.
▲
by
brehaut
17y ago
Your claim regarding java on OS X does match my memory. I recall java beign one of the 3 core platform choices for developments on OS X since 10.0 (Cocoa, Java, Carbon). Java still ships with Mac OS X (though you need to switch to 64bit ja
127.
▲
by
brehaut
17y ago
For some additional information about the performance of caponia, heres some details about the pain points: The particular pathological case for this system is query where the search stems occur in the majority of documents (there is a smal
128.
▲
by
brehaut
17y ago
The top level index is a clojure map (a persistent hash-map by default i believe) of strings (stems) to another map of key to weighting. The hash-map is implemented as a Bagwell Trie under the hood. Check out http://blog.higher-order.net/2
129.
▲
Caponia - an in memory, full text search system in clojure
(github.com)
25 points
by
brehaut
17y ago
|
11 comments
130.
▲
by
brehaut
17y ago
Have you read http://www.negativland.com/albini.html ? The article is nearly 20 years old, so grain of salt and all that, but the system does appear to be set out so that the people making and recording music don't see any of your money w
131.
▲
by
brehaut
17y ago
This also means that you can write web apps in Clojure and deploy them on one of the many Java-based web platforms - that is, its reasonably easy to get your Clojure (or rather, JVM) based web app out there. Including App Engine (and thus
132.
▲
by
brehaut
17y ago
No, you just need to be willing to learn some java APIs (honestly though, not that hard. mostly they are larger, more long-winded versions of things you are used to in python). In particular for web stuff you could probably exist within the
133.
▲
by
brehaut
17y ago
I also came from Python (and c#/java, c, js) and have dabbled with Haskell and Clojure a bit, with a tiny bit in scheme. I personally think that learning both Haskell and Clojure concurrently has a lot of merit. Clojure is more pragmattic;
134.
▲
by
brehaut
17y ago
Not to mention the wonderful mouseguard RPG mentioned in that article. Its not free but its a great introductory product as well as a great game all round
135.
▲
by
brehaut
17y ago
Have a look at this little paper by Richard Gabriel http://www.dreamsongs.com/NewFiles/WhyOfY.pdf