Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
silentbicycle
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
1691 ms
·
3661.
▲
by
silentbicycle
18y ago
There's viper-mode to emulate vi, but the first real roadblock is probably learning how to explain to the built-in help system what you're trying to figure out. C-h t (that's Control-h, let go of control, t) will open up a thorough tutoria
3662.
▲
by
silentbicycle
18y ago
The kill/yank names rub me the wrong way because where "cut and paste" suggest X-acto knives and glue sticks to me, that is, editing text on paper, there's no metaphoric grouping between "kill" and "yank". It also makes expressing the act o
3663.
▲
by
silentbicycle
18y ago
Thanks! I checked in a couple of the usual places and they were 404. It was already time for bed ... :)
3664.
▲
by
silentbicycle
18y ago
M-x re-builder can help you learn them interactively, though.
3665.
▲
by
silentbicycle
18y ago
I used vi (vim) for about five years, before switching to emacs (gnu emacs), which I've used for about two. They're both excellent text editors, but are clearly optimized for different things, and have tremendous differences in interface, e
3666.
▲
by
silentbicycle
18y ago
Two more quick tips: 1. The "kill ring" (what other interface cultures might call a clipboard) is a circular stack, not just one slot. If you try to paste ("yank") and discover you cut/copied over what you meant to paste, you can hit alt-Y
3667.
▲
by
silentbicycle
18y ago
For one example, what about if the arguments in the switch list had side effects? >>> def boo(x): ... print "BOO" ... return x + 3 >>> [1, 2, 3, boo(4) + 0, 5][1] will result in BOO 2 . Each element of the list
3668.
▲
by
silentbicycle
18y ago
At least part of the significance of Lisp macros is that they let you use the full facilities of the language at compile time. Your method doesn't really do anything but run another Python instance at runtime (assuming there is one availa
3669.
▲
by
silentbicycle
18y ago
BeOS felt really fast, on a 200 mhz computer, several years ago. While the article's example is of Assembly optimized for performance over readability/maintainability (and I know people have written entire GUI OSs in Assembly, e.g. http:
3670.
▲
by
silentbicycle
18y ago
The lookup would remain O(1) fast, which will overtake O(log N) skiplist lookup, true. The insertion and other costs differ between the two as well, though. A hash table would be clearly best in a case where the approx. final table size nee
3671.
▲
Open Documentation for Hardware: Why hardware documentation matters so much...
(openbsd.org)
1 points
by
silentbicycle
18y ago
|
0 comments
3672.
▲
by
silentbicycle
18y ago
A constant time, yes, but that constant time may be significantly higher than expected. There are quite a few factors that can reduce hash tables efficiency. This post summarizes several potential problems with hash tables: http://enfranch
3673.
▲
A couple GC algorithms in more detail
(useless-factor.blogspot.com)
16 points
by
silentbicycle
18y ago
|
3 comments
3674.
▲
by
silentbicycle
18y ago
I meant to link to William Pugh's original paper when posting, but submit doesn't seem to take FTP links: ftp://ftp.cs.umd.edu/pub/skipLists/skiplists.pdf
3675.
▲
Skip Lists: A Probabilistic Alternative to Balanced Trees
(en.wikipedia.org)
13 points
by
silentbicycle
18y ago
|
21 comments
3676.
▲
by
silentbicycle
18y ago
No, uo eu oeu oeu oeu oeu oeu ;)
3677.
▲
by
silentbicycle
18y ago
Well, yes, but the fact that it even has comments should be a giveaway. People are asking for the shirt two days later.
3678.
▲
by
silentbicycle
18y ago
Correct, for custom toplevel domains.
3679.
▲
by
silentbicycle
18y ago
All things considered, 1. I'm not surprised a plugin like that put heavy load on Google -- Bookmark every page? But the bookmarks being linked to searching is a small surprise. 2. It's quite impressive how smoothly they handled things. Don'
3680.
▲
by
silentbicycle
18y ago
C for low level stuff, Objective Caml after you feel confident after C.
3681.
▲
by
silentbicycle
18y ago
Qmail, both at a source level and the way the overall system fits together. See also: http://c2.com/cgi/wiki?GreatProgramsToRead and the linked pages, which discuss your question further.
3682.
▲
by
silentbicycle
18y ago
Summary: Software tends to grow haphazardly, and often instead of being internally organized in any fashion, more code is just piled on. As code bases grow, they become very hard to manage, and "smaller and nimbler" competition can step in.
3683.
▲
by
silentbicycle
18y ago
That the language has a concise placeholder for such a value means that it's probably culturally significant. I don't know how much it characterizes Swedish culture as a whole, but making it as easy to consider such a thing as, say, "truth"
3684.
▲
by
silentbicycle
18y ago
A language's common vocabulary ("dog", "bicicleta", "Handschuh") probably has little effect on thought in a language. Idioms have great influence on expression, however. They are crystallizations of the culture that has shaped a language, a