News for hackers. Stuff that matters.
Re:Show HN: Paper Programs – Run JavaScript on pieces of paper by janpaul123 on Tuesday January 23, 2018 @01:37AM (#16211518)
Hi! I was asked to repost this (a la https://news.ycombinator.com/item?id=11662380), so here goes. I'm JP, and I created this project after visiting Dynamicland a couple of times. I wanted to capture some of the magic there in my living room, and decided to implement the "programs running on pieces of paper" part.

It was super fun implementing this. I ended up using OpenCV.js, which has only just been released, reimplementing an OpenCV algorithm and learning about computer vision, learning about OffscreenCanvas, which is so experimental that it crashes periodically (a bug I was able to isolate and submit to the Chrome dev team), learning about how to mount a projector facing downward, and so on.

Few things are as satisfying as a piece of paper rolling out of a printer literally onto the floor, where it starts executing. And then cutting it up with a pair of scissors to change its shape.

I hope you have as much fun with this as I do!!

PS: If you want more inspiration for building cool stuff with projectors and cameras, check this out: http://tangible.media.mit.edu/project/pico/ :) They have a ton more interesting projects like that!

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)
Re:Show HN: Paper Programs – Run JavaScript on pieces of paper by genmon on Tuesday January 23, 2018 @01:57PM (#16216285)
Respect for the fact you give generous credit to Dynamicland while also saying honestly how your project is differentiated. It would have been easy not to
Re:Show HN: Paper Programs – Run JavaScript on pieces of paper by zestyping on Tuesday January 23, 2018 @08:39PM (#16219629)
Hi, I'm honestly confused by the statement "Paper Programs is not a clone of Dynamicland". All the ideas about how it works seem to come from Dynamicland, and everything it does seems to be designed to work exactly the way it does in Dynamicland.

So, how is it not a clone? If I had to describe it to someone based on what I learned from the website, I would say "Paper Programs is a browser-based JS clone of Dynamicland's paper programming system." Is that incorrect?

Re:Show HN: Paper Programs – Run JavaScript on pieces of paper by meemoo on Tuesday January 23, 2018 @10:33PM (#16220097)
I think that section is clear. It's not a clone because Dynamicland is a building in Oakland. An open-source software project can port some of the experience, but to clone it you would need to establish a large physical space.

I'm excited about Paper Programs. I got to spend an afternoon in Dynamicland, and after exploring a couple hours I was sure that I wanted access to the system back home. Their response was "wait a couple years." Not everybody can make it to Oakland!

Dynamicland focuses on in-person collaboration. Maybe Paper Programs will explore tangible computing with remote collaboration.

Re:Show HN: Paper Programs – Run JavaScript on pieces of paper by janpaul123 on Wednesday January 24, 2018 @12:01AM (#16220455)
Also, Dynamicland uses Realtalk, a programming language / operating system / protocol for physical computing that is more general than projectors/cameras/papers.
Re:Show HN: Paper Programs – Run JavaScript on pieces of paper by pault on Tuesday January 23, 2018 @11:35AM (#16214848)
The title made me think it was js running on printed arm chips: https://venturebeat.com/2015/01/21/thinfilm-teams-with-xerox...
Re:Show HN: Paper Programs – Run JavaScript on pieces of paper by verytrivial on Tuesday January 23, 2018 @04:54AM (#16212243)
Projector added to my Amazon basket immediately! Thanks for sharing.
Re:Show HN: Paper Programs – Run JavaScript on pieces of paper by _pmf_ on Tuesday January 23, 2018 @05:01AM (#16212278)
Do you have a specific product link?
Re:Show HN: Paper Programs – Run JavaScript on pieces of paper by theon144 on Tuesday January 23, 2018 @06:01AM (#16212556)
Seconding; choosing an appropriate projectors (resolution, luminance, throw distance) is not a trivial task. I'd like to hear what people have found that fits.
Re:Show HN: Paper Programs – Run JavaScript on pieces of paper by eerikkivistik on Tuesday January 23, 2018 @12:51PM (#16215550)
I am eagerly awaiting the Bobby Tables (https://xkcd.com/327/) version for eval()