3 ms·
How come there isn’t a Moore’s Law for software? There has been some progress on this front. Average programmer productivity has been roughly constant over the
by stcredzero 14y ago
How come there isn’t a Moore’s Law for software?
There has been some progress on this front. Average programmer productivity has been roughly constant over the past several decades in terms of Source Lines of Code. (SLOC - Yes, it's a rotten metric, but it's good enough in huge aggregates.) SLOC per unit of functionality for mainstream languages stopped decreasing when we got to Smalltalk, and hasn't moved much since.
So to progress from here, we either have to:
- reduce SLOC per unit of functionality
- increase reuse of existing code
- increase the rate at which programmers can write correct code
I'm not sure the 1st is a good idea. When languages get too terse, they get harder to understand, and maintenance and debugging are a big deal.
The 2nd has been happening more and more. The way communities share good code has indeed progressed and increased the power of the individual programmer in the past two decades.
The 3rd one is quite a complex issue. I suspect functional programming can play some kind of role here, but it will have to be packaged in a way which is palatable to the programming mainstream.
Much could be done by a programming language that can enable the application of functional programming in much the same spirit as John Carmack's post here:
http://www.altdevblogaday.com/2012/04/26/functional-programming-in-c/ http://www.altdevblogaday.com/2012/04/26/functional-programm...
Just as OO became mainstream through "impure" implementations, FP could become mainstream through an impure implementation enabling programmers to easily incorporate it into their existing projects.
How about an FP-Lint for popular programming languages that can flag non-FP code in regions that have been designated FP?
- Confusion 14y agoAlan Kay's current project [1] is facinating. One of its accomplishments is [2]. One tool is a PEG parser embedded in a scheme like language and stacking DSL on DSL to succinctly express solutions. This sounds like a possible way to achieve Moore's law for software. [1] http://www.vpri.org/ http://www.vpri.org/ [2] http://news.ycombinator.com/item?id=846028 http://news.ycombinator.com/item?id=846028
- colomon 14y agoI think there's still a lot of potential improvement to be gained by increasing reuse. It seems to me what we need is to take the CPAN to the next level: to have a readily available, heavily tested repository of libraries that work with all major programming languages. Think of all the effort that's currently duplicated over and over again, once for each existing platform... Mind you, I have no idea how to do it. It's one of the goals Parrot was aiming for a decade ago, but Parrot doesn't seem to be particularly close to being a good answer yet.
- JamesLeonis 14y agoI would argue that Open Source software has offered a lot to your second point. Look at what powers web software now, from the servers, OSs, databases, and languages. It's easier than ever to "plug and play" different pieces of technology together with a little code glue.