r/dailyprogrammer • 1 3 • Sep 09 '14

[Weekly #10] The Future

Weekly Topic:

Read enough blogs or forums and you can see the future. What trends or topics are coming down the line? Is it a new language? New design? New way to engineer software?

Last Week:

[Weekly #9] (http://www.reddit.com/r/dailyprogrammer/comments/2f6mo2/weekly_9_binary_trees/)

54 Upvotes

45 comments sorted by

View all comments

Show parent comment

4

u/Laremere 1 0 Sep 09 '14 edited Sep 09 '14

Couple points I forgot:
Incremental compilation - Genetic Algorithms and more time expensive optimizations take to long. As the programmer is writing code, the compiler should be constantly keeping code almost compiled. When the user hits run, it should take less than a second for code to be running. Possibly even on compiled languages using something closer to a virtual machine or interpreter so that the code starts running instantly.

Garbage collection - As program correctness increases and compilers are able to do whole program inspection, garbage collection will move closer and closer to not having to run garbage collectors, but simply freeing memory when it has proven it won't need it anymore. Graphs and circular structures are hard for GC (compared to doing it manually in C/C++) however if the compiler knows exactly how the programmer is using all values, it should be able to choose the optimal way to reduce garbage (using genetic algorithms as mentioned above)

Edit: One last point: On program correctness. Programming languages will in the future have more ability to move from initial code to fully correct code. Dynamic languages make it easy to write functional programs but leave a lot of places where code can fail that the programmer doesn't know about. Strict languages prevent those failures, but it costs of programmer time to getting the first working version, which dramatically reduces the programmer's ability to iterate and find the best solution. Future programming languages will allow you to have code which will fail all over the place, but will explicitly let the programmer know about those failures, so when the programmer moves to make the code fully correct then they will be able to do it.