Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
mtdewcmu
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
74 ms
·
691.
▲
by
mtdewcmu
12y ago
Actually, I made fun of Fortran for that down below. I don't think my comment is a rant.
692.
▲
by
mtdewcmu
12y ago
It's embarrassing that Fortran gets beat by Java.
693.
▲
by
mtdewcmu
12y ago
Supposedly, Java is going to be faster than native code any day now. It's been said for years. The case was somewhat credible at one time, because the opportunity exists to optimize using runtime information. I think the reason it didn
694.
▲
by
mtdewcmu
12y ago
Well, I think the concept is to force you to write documentation by holding your code hostage. :)
695.
▲
by
mtdewcmu
12y ago
There is a convention of providing concise documentation of options in `<command> --help` and more verbose documentation of options in the man page. When you look through a variety of common tools' documentation, you will notice
696.
▲
by
mtdewcmu
12y ago
What would make this killer is if it automatically generated a top-notch bash completion script, like the kind that exists for git. There are very few that exploit the full potential. In fact, without that feature, this seems like overkill
697.
▲
by
mtdewcmu
12y ago
I think he forgot the most important rule of all in the Kingdom of Apple, which is that Apple makes the rules. Apple isn't interested in hearing advice, so if you have your own ideas and want to make them happen, the Kingdom of Apple i
698.
▲
by
mtdewcmu
12y ago
If there was an entry for "List of lists of lists that don't contain themselves," would that page contain itself?
699.
▲
by
mtdewcmu
12y ago
New ideas are often just old ideas applied to new problems.
700.
▲
by
mtdewcmu
12y ago
It's been folklore in the Drupal community for years that it's the deeply-nested arrays that are slow. It's Amdahl's law. Profile Drupal, WordPress and the other heaviest users and look for the big wins.
701.
▲
by
mtdewcmu
12y ago
His good sense is obvious by the way he stopped going down the JIT route and zeroed in on the bigger performance drain, memory allocation, instead. The smart programmer knows how to write a JIT; the wise programmer knows how to not write a
702.
▲
by
mtdewcmu
12y ago
But then it would become a scientific instrument instead of a toy, and you'd be in a whole different market.
703.
▲
by
mtdewcmu
12y ago
If you want to find all the implicit gotos, just disassemble the compiled code. Your program will be littered with jmp instructions and the conditional versions of jmp. There's no getting away from them.
704.
▲
by
mtdewcmu
12y ago
I've been mulling over issue tracking lately, since I hate Jira and all the other ones I've used. Wouldn't issues being in states and having owners violate the distributed model? Version control used to have file owners and l
705.
▲
by
mtdewcmu
13y ago
Actually, his main point is "here is a workload that is kernel-bound that ordinary users deal with, and here is where the time goes." He has explained in the past that he works on whatever interests him, period. So profiling page
706.
▲
by
mtdewcmu
13y ago
Though it's equivalent, I think it's worse than just using gotos. I'm not sure I could judge what it would look like just using gotos, because I've never seen it that way. I think in virtual machine implementations, th
707.
▲
by
mtdewcmu
13y ago
You can get the same effect as goto without using the dreaded goto statement by combining a while loop and a large switch. Instead of 'goto nextstate', you just assign the state to the variable that controls the switch and fall th
708.
▲
by
mtdewcmu
13y ago
The easiest way to handle things like sparse files correctly is to invoke a program like GNU dd that already has this feature built in. GNU cp handles it, too, but it doesn't accept input from stdin.
709.
▲
by
mtdewcmu
13y ago
I think there is some amount of write back caching in the kernel so that the application doesn't have to wait for each individual chunk to go to disk before it can submit the next chunk. I believe there's a sync on either file clo
710.
▲
by
mtdewcmu
13y ago
It's a little bit reassuring that there weren't any clear winners and losers. In a perfect world, the OS and hardware would figure out what your intent is and carry it out the fastest way possible, right? Ideally, you'd write
711.
▲
by
mtdewcmu
13y ago
Theoretically speaking, any machine that keeps a fixed (finite) amount of state is a finite state machine. Once you recognize that, you will realize that you have written lots of them without even trying. If a problem inherently requires a
712.
▲
by
mtdewcmu
13y ago
I suspect that the programming landscape has changed so much that the goto debate of the 70s is no longer relevant. People used to use gotos because they were necessary; naturally, bad code got written; a theory emerged that goto caused bad
713.
▲
by
mtdewcmu
13y ago
This sounds like it could be a good fit for mobile on iOS (I can't speak to android). If the app has significant startup costs, this lets you basically save a core dump of those structures that were slow to build. Then you could have a
714.
▲
by
mtdewcmu
13y ago
SQLite does it for you; here you do it yourself. Presumably you'd have done a cost/benefit analysis before choosing this over SQLite, so your reasoning would be sound...
715.
▲
by
mtdewcmu
13y ago
BerkeleyDB?
716.
▲
by
mtdewcmu
13y ago
I'm proposing that the more iOS/Android devices grow to intrude on the PC's domain, the more they will become just like PCs.
717.
▲
by
mtdewcmu
13y ago
Contrarian to the last? Now you get to find out why almost nobody writes that. Good luck!
718.
▲
by
mtdewcmu
13y ago
I too use my tablet and phone these days for things I used to do on a pc. The natural question to ask, then, is what's the difference? What differentiates pc from mobile? I guess it's the OS, mostly. Android uand iOS are distinctl
719.
▲
by
mtdewcmu
13y ago
A web browser is a GUI for viewing a directed graph, the web (vertices = pages, edges = hyperlinks). It's quite popular.
720.
▲
by
mtdewcmu
13y ago
What always jumped out at me when I looked at Windows code was all the capitalized type macros/typedefs.
More ›