Re:Show HN: Programming is Now Two-Dimensional
by pacaro on Wednesday June 21, 2017 @12:53PM
(#14605527)
To make this specific, Fibonacci would be a great example
[ Parent
| on HN ]
Re:Show HN: Programming is Now Two-Dimensional
by breck on Wednesday June 21, 2017 @01:15PM
(#14605799)
Fib
etn fire
fn fib n
< lessThan1 n 1
if lessThan1
return 0
<= lessOr2 n 2
if lessOr2
return 1
- oneLess n 1
- twoLess n 2
call oneLessFib fib oneLess
call twoLessFib fib twoLess
+ sum oneLessFib twoLessFib
return sum
call result fib 10
Re:Show HN: Programming is Now Two-Dimensional
by orclev on Wednesday June 21, 2017 @01:57PM
(#14606273)
I'm not really understanding how this is superior to existing notation. It looks like the only unusual thing being done is putting the lvalue as the first argument to the "function", otherwise this looks like a fairly bog standard imperative language. Is the secret sauce in the GUI used to create this? If so couldn't you just use an existing programming language with the editor? Why create a new language?
Re:Show HN: Programming is Now Two-Dimensional
by breck on Wednesday June 21, 2017 @02:51PM
(#14606817)
Great points. Here's a sneak peak at Ohayo, which helped me quickly whip up Fib:
http://breckyunits.com/files/ohayo.png
> If so couldn't you just use an existing programming language with the editor? Why create a new language?
No. Because with all existing languages, to have machines and humans coauthor code has proved impossible. We needed TN and ETNs to enable this: one right way to write programs. With ETNs, humans can write code that machines can easily work with, and vice versa.
Re:Show HN: Programming is Now Two-Dimensional
by majewsky on Wednesday June 21, 2017 @02:59PM
(#14606893)
> http://breckyunits.com/files/ohayo.png
I have no idea what I'm looking at. This could be a code editor, a debugger, a plain code listing. No. Idea.
Re:Show HN: Programming is Now Two-Dimensional
by breck on Wednesday June 21, 2017 @04:05PM
(#14607399)
It's taken from Ohayo, the ETN editor. It's a rendered view of the Fire program. Sorry, I'm responding to some really helpful feedback and comments now, but will get back to Ohayo shortly and get it out today.
Re:Show HN: Programming is Now Two-Dimensional
by breck on Wednesday June 21, 2017 @02:52PM
(#14606833)
I should note: the UX of Ohayo won't be great in the first week or two. Although I've been building this for quite a while, it wasn't until this morning that the last pieces of the puzzle finally clicked into place.
That being said, using it for a few minutes is more than enough to get where this is going.