News for hackers. Stuff that matters.
Re:Light Table - a new IDE concept by kevinpet on Friday April 13, 2012 @02:45PM (#3838229)
"I'd like to update code and see the unit tests update automatically"

I think you have that a bit backwards there. I want to write the tests and have my code automatically update to make them pass.

Re:Light Table - a new IDE concept by nkwiatek on Friday April 13, 2012 @02:56PM (#3838293)

    /**
     * Auto-generated, do not edit!
     */
    function add(x, y) { 
      /* test 1 */
      if (x == 2 && y == 2) { 
         return 4;
      }
      /* test 2 */
      if (x == 1 && y == -1) { 
         return 0;
      }
    }
Re:Light Table - a new IDE concept by mkeblx on Friday April 13, 2012 @04:02PM (#3838609)
Simple. Do some monte carlo comparisons between a large number of generated functions, based on various heuristics like number of instructions. So quickly get rid of explicit mapping of tests, especially if used larger. Add some genetic algorithms and a little more AI stuff ;)

One interesting thing though with auto-generated code based on specific test code is that when the test fails at some point the process just has to be repeated, potentially being done automatically.

Re:Light Table - a new IDE concept by Tyr42 on Monday April 16, 2012 @01:52PM (#3848482)
Why not jump to prolog if you want to want to declare what the properties of the code are and have the compiler figure out how to actually do it?
Re:Light Table - a new IDE concept by mbrubeck on Saturday April 14, 2012 @02:46AM (#3840142)
"Combinatorial Sketching" is a surprising technique that does something close to this:

http://people.csail.mit.edu/asolar/papers/asplos06-final.pdf

Re:Light Table - a new IDE concept by bgruber on Friday April 13, 2012 @03:21PM (#3838409)