by justin_vanw · 10y ago · 0 comments
"See the value of some binary logic in real time"
"You can't make syntax errors"
All of this and more, and it works on a small subset of a language that nobody uses!
These are the sorts of things that would be really interesting to a student in their first programming class. I can't imagine anyone with any experience needing or even wanting this.
This is presented and explained better than I could by Bret Victor's "inventing on principle" talk.
We need to get programming out of the "blindly manipulating symbols" phase.
Here's an explanation of what the term means: http://blog.absentdesign.com/2013/05/blindly-manipulating-sy...
What they call 'blindly manipulating symbols' I call 'automation'. That is the entire point of computers in the first place, to very quickly perform tasks so that a human doesn't have to. That means describing the solution to those tasks. This is no different than mathematicians using equations. We don't need to do the entire process of solving every problem if they are the same except for changes in some parameters, we can write an equation and plug the parameters in. In software, we can write an algorithm/program that solves some specific problem, so long as the solution is the same and only the inputs are changing. Since programming languages support branching, we can make these algorithms as general as we think is useful.
Lamdu is partially about bringing the benefits of spreadsheets to general purpose programming.
If you often have to run your code so that you can verify that it is doing what you thought it would do, you don't have any idea what is going on and it's going to be a disaster.
Of course you need to run it to catch mistakes that anybody will make, but not to check that the code does what you think it will do.
For example, in some language you have my_list.sort() method. What does this do to the list? Does it sort it in place? Does this lock the list from other changes? Will concurrent changes to the list corrupt it? What is the expected runtime of this? If the list contains strings, how are they sorted? By unicode code point? By binary utf-8 encoded value? Randomly?
You should just know all those answers in whatever environment you are working in. If you don't you should study up on it. Trying to get a project finished by repeated guess and check is going to take an eternity and you are going to do a poor job.