Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jayferd
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
11 ms
·
31.
▲
by
jayferd
13y ago
If multiple elements of the same tag exist, a proper array of elements is returned otherwise an Element is returned. STAHP. Please don't make the type of the return value dependent on runtime state. This is exactly
32.
▲
by
jayferd
13y ago
Uh, ruby can be parsed, it's just hard. It's waaaay saner than perl.
33.
▲
by
jayferd
13y ago
"Code is meant to be consumed by machines" Well, partly. Code is actually a piece of writing intended for two very different audiences - one human, one machine. The machine doesn't actually care how long your lines are - th
34.
▲
Monad.java
(gist.github.com)
5 points
by
jayferd
13y ago
|
0 comments
35.
▲
Extensible Effects - An Alternative to Monad Transformers
(lambda-the-ultimate.org)
1 points
by
jayferd
13y ago
|
0 comments
36.
▲
by
jayferd
13y ago
Yeah but they all boil down to the central charge of "embarrassing the government".
37.
▲
by
jayferd
13y ago
Just asked about this on #altjs, and it looks like TypeScript will actually give you a static error if you try to assign to a free variable.
38.
▲
by
jayferd
13y ago
Hm, but it seems to be a runtime error. Is there a transpiler or other tool that will give you static errors if you try to set an out-of-scope variable?
39.
▲
by
jayferd
13y ago
Actually, good js implementations (like v8, for example) will only create one code object shared by all the unpack functions, with separate closures assigned to each. And since closures can (usually) be statically determined, they can use
40.
▲
by
jayferd
13y ago
An alternative would be the old lambda-calculus trick of just saving the function with values in the closure. function Tuple(/* args... */) { var args = arguments; this.unpack = function(fn) { return fn.a
41.
▲
by
jayferd
13y ago
I really like the way scheme does it. In order to mutate a variable (which is actually comparatively rare), you have to use `set!`, and to create a binding (much more common), you just call `define`. `set!` is incapable of creating new bi
42.
▲
by
jayferd
13y ago
I assume you're being facetious (tm).
43.
▲
Sticks, stones, but names are not useful to me
(blog.tmorris.net)
1 points
by
jayferd
13y ago
|
0 comments
44.
▲
by
jayferd
13y ago
Okay that's an awesome acronym. "Language for Systems Development" = LSD
45.
▲
Math::TAU
(rubygems.org)
2 points
by
jayferd
13y ago
|
0 comments
46.
▲
MySQL Bug #20786 gets cake for its 7th birthday
(youtube.com)
1 points
by
jayferd
13y ago
|
0 comments
47.
▲
Robot Programmed to Fall in Love with a Girl Goes too Far
(the-technology-zone.blogspot.com)
2 points
by
jayferd
13y ago
|
2 comments
48.
▲
Controversial ministry offering "alternative to homosexuality" to shut doors
(cbsnews.com)
2 points
by
jayferd
13y ago
|
0 comments
49.
▲
Turning Your Code Inside Out
(prog21.dadgum.com)
2 points
by
jayferd
13y ago
|
0 comments
50.
▲
Haskell Game Object Design - Or How Functions Can Get You Apples
(gamedev.net)
1 points
by
jayferd
13y ago
|
0 comments
51.
▲
The Day the NYSE went Yippie (2007)
(cnnmoney.printthis.clickability.com)
1 points
by
jayferd
13y ago
|
0 comments
52.
▲
by
jayferd
13y ago
"No."
53.
▲
by
jayferd
13y ago
Warning: auto-playing video.
54.
▲
Unions as Functions
(brehaut.net)
1 points
by
jayferd
13y ago
|
0 comments
55.
▲
by
jayferd
13y ago
"By electronic e-mail" groan
56.
▲
Working with Ruby Threads
(jstorimer.com)
2 points
by
jayferd
13y ago
|
0 comments
57.
▲
Reversible Javascript
(will.thimbleby.net)
1 points
by
jayferd
13y ago
|
0 comments
58.
▲
by
jayferd
13y ago
Let's beam! ...igos
59.
▲
by
jayferd
13y ago
Metaprogramming syntax isn't built in to ruby. Instead, it's really internally consistent and lets you leave out a few tokens, which means it's really easy to write libraries with beautiful interfaces . The built-in features usually try t
60.
▲
Extend the Web Forward
(yehudakatz.com)
3 points
by
jayferd
13y ago
|
0 comments
More ›