News for hackers. Stuff that matters.
Re:Show HN: Paper Programs – Run JavaScript on pieces of paper by nni on Tuesday January 23, 2018 @04:03AM (#16212045)
I've been seeing folks get excited about this, and haven't yet been able to see why it is so interesting. However, the people behind it (Bret Victor et al) and who I've seen playing with it are too interesting for me to ignore this...
Re:Show HN: Paper Programs – Run JavaScript on pieces of paper by vitovito on Tuesday January 23, 2018 @08:24AM (#16213342)
Seeing the Dynamicland tweets made me rethink all of Bret Victor's previous work, and I wrote up why it's interesting from a design perspective here: http://vitor.io/on-dynamicland
Re:Show HN: Paper Programs – Run JavaScript on pieces of paper by shakna on Tuesday January 23, 2018 @05:25AM (#16212374)
I'm excited, because it fits my current workflow.

I do very little of my coding on a computer. Instead, I build up all the discrete parts of my code using sticky notes, that kind of get constantly re-organised while I'm writing.

So my desk ends up as a mess of sticky notes that get pushed and pulled around, which seems a lot like what you can do with this - except you can also run each part of this code, instead of relying solely on your memory.

Re:Show HN: Paper Programs – Run JavaScript on pieces of paper by theon144 on Tuesday January 23, 2018 @05:54AM (#16212519)
It's a very different kind of interaction than with code on the screen, and fits the way one thinks in a much more concrete way. It's like an embodied metaphor, one that people are intimately familiar with, and the immediacy of it allows you to iterate quickly as you have direct feedback, and the whole structure is made visible for everyone to see, enabling a kind of collaboration unusual for computer programming (image the dynamic of a group of people trying to build a tent together compared to a group of people all staring at a static view of an IDE).

Of course, it's nothing groundbreaking just yet, but I can't help but get excited at the possibilities of this sort of medium.

Re:Show HN: Paper Programs – Run JavaScript on pieces of paper by TeMPOraL on Tuesday January 23, 2018 @12:18PM (#16215224)
I still don't see how this is true, either in this case or in Dynamicland - neither of those seem to OCR programs from the piece of paper. So you still do classical programming alone, and only get to play with the results. A piece of paper may contain the actual program behind system's reaction to it, or it may contain a picture of a cat - the contents are irrelevant; it's the dots that matter.
Re:Show HN: Paper Programs – Run JavaScript on pieces of paper by janpaul123 on Tuesday January 23, 2018 @12:24PM (#16215278)
If you write small programs that interact with other programs, then rearranging them on the floor/table becomes a form of programming (similar to how combining UNIX-style programs in shell scripts is a high-level form of programming).

So even when playing just with the papers, you can be programming.

Re:Show HN: Paper Programs – Run JavaScript on pieces of paper by meemoo on Tuesday January 23, 2018 @10:41PM (#16220125)
There's also the interplay of arranging papers, and live-editing the code in a particular piece of paper. In Dynamicland, the projector highlights printed code in green/red to visualize diffs.

You can sketch a UI element on the paper (eg a rectangle and token for a numerical slider), then go back to code the interactivity. Units in the code are inches on the table. Subtle things like that break you free from the laptop.

When you want to "commit" your code changes, you print a new version.

Re:Show HN: Paper Programs – Run JavaScript on pieces of paper by vertex-four on Thursday January 25, 2018 @04:33AM (#16229790)
One of the more interesting things that I've seen in Dynamicland is that it allows you to create programs that modify other programs - basically the beginnings of a physical IDE. You can use a scrubber or dial to modify a constant, as a very basic first step.

IMHO, the ability to create new physical interfaces to editing code might allow for new programming paradigms to pop up, or better interfaces for people to develop logic in their own domain. Someone could combine a calculator interface and a context-sensitive variable selection interface to write arithmetic logic using an interface/"syntax" that they already understand, and debug all the way through that with a testbed program that allows the programmer to set variables to specific values and work through how the math works. You can have yet another program which describes a program as a flowchart and allows people to edit it that way.

The thing is, as you make the IDE physical, you get to invite people to interact with it more - rather than staring at a screen, suddenly you're livecoding, you can have multiple people working on it at once. "Ah, but doesn't that fail if you do this? Sets some variables on the testbed", or "I can fix the UI while you update that calculation".

And then, when your accountant has something on a piece of paper that works, they could point a "make this an app on my computer" program at it and bring it out of Dynamicland, into their workplace.

Re:Show HN: Paper Programs – Run JavaScript on pieces of paper by vanderZwan on Tuesday January 23, 2018 @06:23AM (#16212681)
I wouldn't be surprised if tangible coding could be a lot better of an environment for debugging. Something with real physical space makes it much easier for me to follow the flow of things than scrolling things on a screen.
Re:Show HN: Paper Programs – Run JavaScript on pieces of paper by Kiro on Tuesday January 23, 2018 @11:44AM (#16214916)
What project are you referring to that Bret Victor is involved in? I don't see his name anywhere.
Re:Show HN: Paper Programs – Run JavaScript on pieces of paper by meemoo on Tuesday January 23, 2018 @10:42PM (#16220135)
Talk from 2014 that previewed the vision: http://worrydream.com/SeeingSpaces/
Re:Show HN: Paper Programs – Run JavaScript on pieces of paper by jf on Tuesday January 23, 2018 @12:45PM (#16215497)