Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ericbb
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
12 ms
·
91.
▲
by
ericbb
15y ago
Here's a question about blocks: should they even have return values? I was wondering about that because (1) they are supposed to have an equivalence with a code sequence and code sequences don't have values and (2) one awkward difference b
92.
▲
by
ericbb
15y ago
Thanks for the links. It's neat to see such things being considered. My feeling is that such complicated language devices are out of place in JavaScript but it was fun to run the experiment. While I'm thinking about it... I wonder about t
93.
▲
by
ericbb
15y ago
Alternate formulation with hypothetical shift/reset (delimited continuation support) and blocks that return the same way functions do: mtime: function () { return reset { var mtime = shift (succeed) { this.with
94.
▲
by
ericbb
15y ago
Hehe. That's quite a monster. I'll try to be a bit more helpful. 1. Use loop instead of dotimes so you can make the index range over 1-100 instead of 0-99. 2. Factor out the string calculation so you only need one print statement. 3. Mayb
95.
▲
by
ericbb
15y ago
Surely, the lispiest way is to write an interpreter! Write a function fizzbuzz-eval so that the following is a solution (left as an exercise). ;) (fizzbuzz-eval 100 '(((3 5) (print "FizzBuzz")) ((3) (print "Fizz"))
96.
▲
by
ericbb
15y ago
I like both of those solutions. The Haskell solution is almost the same as what I had come up with but I wasn't familiar with iterate, which makes it even nicer. So thanks for that. Looking at the C version, I wondered if it could be done
97.
▲
by
ericbb
15y ago
This kind of problem has really short solutions when you have access to collection-at-a-time operations. For example, in Haskell: pascal 1 = [1] pascal i = zipWith (+) ([0] ++ pascal (i - 1)) (pascal (i - 1) ++ [0]) I'm not an
98.
▲
by
ericbb
15y ago
I just skimmed through it and there's a really controversial claim in there that the functional paradigm was a bad idea! I also found it surprising that he disliked Dijkstra's display idea since I've used a variant of that to great effect.
99.
▲
by
ericbb
15y ago
For language enthusiasts with hobby compilers, the question does not have to be a hypothetical. :)
100.
▲
by
ericbb
15y ago
I haven't read much at all about Dart yet so forgive me if I'm missing something but it seems to me that dynamic-typing capabilities do not rule out absence-of-null. Doesn't Dart's use of optional typing mean that it really behaves as a sta
101.
▲
by
ericbb
15y ago
Sounds like the Ubiquitous Language idea from Domain Driven Design is a closer analogue. I haven't read Christopher Alexander's book so I'm just going on the article's summary. http://domaindrivendesign.org/node/132
102.
▲
by
ericbb
15y ago
Cool! This is something I wanted to have and had started making for myself. Mine is much less useful than asciiflow but the thing I like most about it is that it allows writing and drawing more in the way I use my notebook. It's easy to
103.
▲
by
ericbb
15y ago
Isn't "New Jersey Lisp" a contradiction in terms?
104.
▲
by
ericbb
16y ago
I actually liked the earlier article better. But I think it's good to see the paths that have been taken to get to where we are today. Just because you have seen what the original LISP was like doesn't mean you are forever doomed to bel
105.
▲
by
ericbb
16y ago
Go does. See my other comment in this thread: http://news.ycombinator.net/item?id=2058963 .
106.
▲
by
ericbb
16y ago
Seems a lot like Go ( http://golang.org ). See http://golang.org/doc/effective_go.html#interfaces_and_types and http://golang.org/doc/effective_go.html#embedding .
107.
▲
by
ericbb
16y ago
http://norstrulde.org/tty/tty.html An ASCII-art, note-taking, {box,line}-drawing thing. Was the first thing I made with Javascript. Drag-n-drop to draw. Type to insert text. Edit: I think Safari is the only browser it kind of works in.
108.
▲
by
ericbb
16y ago
What's so bad about C? It's not very pretty but the following was easy enough to write and worked first try. http://pastebin.com/QBAgzWWJ Pipe the result through "sort -u" if you don't want dups.
109.
▲
by
ericbb
16y ago
They want to protect the public from unsafe false copies? I can suggest this for software: educate the public on the use of simple cryptographic tools. The public needs to know how to check for themselves that their torrented copy is an
110.
▲
by
ericbb
16y ago
A good read on this topic: John Carmack's .plan entry from 14 Oct 1998. He writes about replay as a development tool, how it's necessary to record time, and how journaling inputs "turns a realtime application into a batch process".
111.
▲
by
ericbb
16y ago
Having skimmed the PicoLisp interpreter a long time ago, I remember it being like Emacs Lisp in that common performance-critical functions like mapcar were implemented in C. It seems like a very pragmatic way to get the performance you nee
112.
▲
by
ericbb
16y ago
Of particular note to some hackers: it is written in Go.
113.
▲
Tonika: Own your social ties
(5ttt.org)
2 points
by
ericbb
16y ago
|
1 comments
114.
▲
by
ericbb
16y ago
If you are mathematically inclined, this might help. It's how I, as a non-musician, came to understand tuning a little. Equal temperament uses frequencies that are scaled by powers of the twelfth root of 2. Moving up one semitone is the s
115.
▲
by
ericbb
17y ago
From the article: Edit 2: One quick question for the "Anything can be cracked right away." crowd. Where do I get my cracked copy of World of Warcraft that can play the real game (not some cobbled together emulation server) without
116.
▲
by
ericbb
17y ago
Me too. This was my primary resource while learning the language and I highly recommend it.
117.
▲
by
ericbb
17y ago
Closures are different from objects in only a couple of ways: (1) the creation protocol is extremely concise (lambda) (2) the access interface is the function call Say that closures lower the syntactic overhead of accessing the same flexibi