102 karma · joined Sep 5, 2015 (11y ago) · 17 submissions
comment 10y ago · link · parent
I've heard it claimed that the reason some people think they dream in black and white is that there wasn't any color content at all (not even grayscale). They think back and can't remember any colors, and assume it must have been grayscale, because their waking consciousness can't imagine what it would be like to see something without color.
Similarly, it's hard to imagine how you could hear words with no voice speaking them (at least it's hard for me) even though we're experiencing it right now!
comment 10y ago · link · parent
comment 10y ago · link · parent
In general there's an arms race between hardware getting faster and native developers getting more and more lazy about efficiency. On the desktop, the hardware is finally winning--it's just too damn fast. Hopefully that will happen with smartphones too.
comment 10y ago · link · parent
comment 10y ago · link · parent
comment 10y ago · link · parent
This is still a very practical way to solve many problems and I'd wager for most programmers it's still the easiest way to do things. Maybe it will always be. It's hard to imagine there'll be a generation of programmers some day that finds it easier to compose dozens of tiny modules, chain callbacks with a variety of async abstractions, and implement as much as possible in tiny idempotent functions.
I feel like the worst case scenario for Python is that it will fade into the wallpaper of mature and unsexy languages like Java and C++ that nonetheless run the world and will probably be around for another 100 years at least. I'm guessing Guido would be cool with that.
comment 10y ago · link · parent
comment 10y ago · link · parent
comment 10y ago · link · parent
Of course, the language has matured and now it's also usable for building rich and complex apps top to bottom, just like any modern scripting language.
comment 10y ago · link · parent
Tcl is now about as fast as a typical scripting language and its implementation is regarded as a model of high-quality readable code. I wonder if John Ousterhout (the creator of Tcl) knew he was building a rough first system that he would need to rewrite later, or he really thought it was the right way to do things at the time.
(To be fair, Tcl is a whole lot simpler to parse than JavaScript and Ousterhout is a good coder, so even the pre-8.0 versions were fast enough to be practical for everyday scripting tasks.)
12.
Ask HN: Software gigs involving small, scripting-type tasks?
7 points · by normac · 11y ago · 5 comments
comment 11y ago · link · parent
The first thing that comes to mind is skipping past letters that don't appear very often at that point in a word with the current prefix--or to be more granular, you could change your counter (here g) to a float and somehow weight each letter by how rarely it occurs after the letters you've established so far. So if you've currently established that the first four letters are "pro," and "z" almost never occurs after those letters, "z" might be given a weight above 1 so the counter skips right past it.