Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
spencertipping
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
by
spencertipping
13y ago
It has both, but the short options are more compact when you're doing multiple transformations at once.
2.
▲
by
spencertipping
13y ago
No, this encoding uses a bitwise encoding for each float, so they are fixed at 10 characters each and encoded with constant speed (except possibly for subnormal numbers, which I've heard are slower in some environments).
3.
▲
by
spencertipping
13y ago
That's a definite possibility. We went with base-94 because it avoids UTF-8 overhead in situations where the browser will treat your data as a string (e.g. no typed-array support). We also wanted copy/paste to work, and for Flotsa
4.
▲
by
spencertipping
14y ago
That's not why I did it. I felt bad because my family and friends know me as being unreasonable, idealistic, etc. But HN doesn't know anything about me and might assume I'm an otherwise reasonable person. So I wanted to make sure I wasn't b
5.
▲
by
spencertipping
14y ago
Hang on, you're being a little unfair about this. I believe in what I said. I think FP is a great step forwards and I think it's going to win out. I'm biased because I think this. But Google is worth billions of dollars and is succeeding wi
6.
▲
by
spencertipping
14y ago
I'm really glad you wrote this, and I'm now linking to it from my post. Definitely agree that you should try Google for yourself. It didn't work out long-term for me, but hopefully it's obvious that that isn't saying a lot.
7.
▲
by
spencertipping
14y ago
That, and because my main machine is a 1024x600 netbook, so I sized it to fit on that screen.
8.
▲
Zero-risk consulting
(spencertipping.com)
1 points
by
spencertipping
15y ago
|
0 comments
9.
▲
by
spencertipping
15y ago
I originally wrote it for that reason: it's sort of a mind-bending exercise and I wanted to see if it could be done. (The first attempt was actually in Bash, but that didn't work at all.) Since refining the implementation a bit, I've found
10.
▲
by
spencertipping
15y ago
Two questions: First, may I quote you; and second, are you being sarcastic? (Because if you are, then I really want to quote you.)
11.
▲
by
spencertipping
16y ago
I think it's an imperfect solution, though it might still be solid. It depends on your reduction strategy (basically breaking associativity). If you do a fold-left, then you'll accumulate such high relevance that you'll quickly start discar
12.
▲
by
spencertipping
16y ago
Well actually, I did end up writing Lisp on top of Javascript this way: http://github.com/spencertipping/caterwaul . The basic mechanism is to call f.toString() on some function, then construct a new one the way you want it using either ev
13.
▲
by
spencertipping
16y ago
Very true. It's also one of the only languages out there to let you inspect functions' source code, which means you can implement full-blown Lisp macros in it using eval(). Given its popularity and the runtime performance of V8, I think thi
14.
▲
by
spencertipping
16y ago
Project Euler is nice because Lisp (Common Lisp anyway) is good at dealing with large numbers. It's also reasonably fast.
15.
▲
Lisp in JavaScript
15 points
by
spencertipping
16y ago
|
0 comments
16.
▲
by
spencertipping
16y ago
I have a preliminary implementation of this, geared for map/reduce-style parallelism in Perl, up at http://github.com/spencertipping/metaoptimize-challenge (in the fcm directory). It may be a start to solving step 3 -- using reduce-by-two
17.
▲
Operator overloading and syntactic macros in JavaScript
(github.com)
1 points
by
spencertipping
16y ago
|
0 comments