5 ms·
Cruncher: An implementation of Bret Victor's Scrubbing Calculator
- taeric 13y agoSo... I have to confess I can't figure out how to get this to do anything. :( I'm guessing I'm supposed to be able to "scroll" to change some values. However, I can't even get it to calculate anything. Does this only work from chrome?
- duncanawoods 13y agoI'm in the same boat with Chrome.
- arikrak 13y agoSame here, but then I saw the creator's link above, which works.
- osnr 13y agoHey all! I've been working on this on-and-off for a few months, but it is sort of in a broken state right now on GitHub. I'm playing with some modifications to the charts and dependency graph, and the localStorage autosave/load is a bit glitchy. Just saw Dan posted it now, and figured I should chime in (and push my last few commits). The version here works the OK-est, but it still needs work: http://www.omarrizwan.com/cruncher/ http://www.omarrizwan.com/cruncher/ Hoping to get back to it sometime within the next few weeks.
- fit2rule 13y agoI'd love it if you could post some demo's!
- ivan_ah 13y agoThx for the link to the better demo. I like all the graphical add-ons like the data flow graph: you have an expression graph so why not show it to the user... This file is very interesting: https://github.com/osnr/cruncher/blob/master/src/jison/parser.jison https://github.com/osnr/cruncher/blob/master/src/jison/parse... How would one have to change the grammar to allow for things like sin(30°) in the equations?
- kolev 13y agoEven the demo doesn't work for me in Chrome dev.
- tianshuo 13y agoVery interesting! Could be a useful tool to teach algebra. I've posted some bug reports on github. Please keep up the good work!
- deleted 13y ago[deleted]
- leephillips 13y agoVictor has some interesting ideas about interfaces, but his campaign to replace simple, powerful, and quick algebraic manipulation with slow, laborious, trial-and-error pushing of numbers around with a mouse is, I think, seriously misguided. Algebra, in addition to giving you an exact solution more quickly, can help you discover general formulas for your problem, and reveal relationships between things, that you can use again the next time the problem comes up. The scrubbing calculator approach means you have to start over from scratch each time. You're throwing away all the conceptual power of mathematics and trying to replace it with arithmetic.
- taeric 13y agoAgreed. In this case it seems even worse because it plays with the way you typically denote units. I suppose it is best to think of the 'ignored' words as variable names instead of units. But... I have never seen things written that way before.
- yuubi 13y agoIt seems aimed at cases where someone would spend about as much time setting up the problem and solving algebraically as dragging the numbers around for a single instance. Now let's talk about REPLs, where you have to type in your program every time you want to run it; surely it's faster to write your program into a file instead of starting from scratch each time.
- leephillips 13y agoIt seems to me that in all of his examples the symbolic approach, or just the equivalent in your head, would be way faster than fiddling with the computer interface, even if you know you'll never see the problem again. I'm not sure if your evocation of REPLs was ironic, but surely most people do what I do, and load a file into the REPL at the beginning of an interactive session.
- asolove 13y agoI don't think this is inherent in the idea. You can absolutely make an interface somewhat like this that could arrive at general solutions. Indeed, I think Bret would consider this most of the point. He covers this in "Up and down the ladder of abstraction" [0] If by algebra you mean "the transformation of one written notation to another by rule," that is only one way of finding general solutions to mathematical problems. There is a lot of writing about "how" people doing original math think, and many of them work in ways far divorced from algebraic notation. Some seem to develop graphical models they picture in their head, others report using other senses like sound and smell. Freeman Dyson on Feynman: "The reason Dick's physics was so hard for ordinary people to grasp was that he did not use equations... Dick just wrote down the solutions out of his head without ever writing down the equations. He had a physical picture of the way things happen, and the pictures gave him the solutions directly with a minimum of calculation." Einstein on his thinking: "The words of language, as they are written or spoken, do not seem to play any role in my mechanism of thought. The psychical entities which seem to serve as elements of thought are certain signs ( symbols ) and more or less clear images which can be voluntarily reproduced and combined... The above mentioned elements are, in my case, of visual and some muscular type." More interesting discussion here: http://www.sv.vt.edu/classes/ESM4714/methods/vizthink.html http://www.sv.vt.edu/classes/ESM4714/methods/vizthink.html The idea that "real math is bare symbols" isn't true. Not only isn't it true for doing groundbreaking math, it isn't true even for easy math. I would challenge you to teach children mathematics as a purely symbolic game, never showing them that numbers correspond to physical entities, or that derivatives correspond to tangents on a curve. Those of us who are "good" at algebra are good at it because we understand it in a way deeper than the symbols. Yes, symbolic notation is a great form of communication and necessary for proof, but it is usually not the way to create the initial intuitive spark underlying a solution. [0] http://worrydream.com/LadderOfAbstraction/ http://worrydream.com/LadderOfAbstraction/
- cvalleskey 13y agoIn Photoshop you can increase/decrease a value with more control by holding Shift (+/- 10) or Option (+/- 0.1). Similar shortcuts might aid in finer value control without adding anything to the UI.
- nullz 13y agoIf you haven't seen it yet, checkout this value and time scrubber, a pretty faithful recreation of Bret Victor's demo http://www.fullstack.io/choc/ http://www.fullstack.io/choc/