(ninth RacketCon): Andrew Blinn – Fructure: A Structured Editing Engine in Racket

10K views · 7 years ago · talk · expert · dated

Andrew Blinn presents Fructure, a structured editing engine written in Racket, at RacketCon. In a structure editor, code is edited as a tree and kept syntactically valid, and the talk shows the interaction design of such an editor.

HN people name it as a promising structure editor and point to it whenever structural editing or tools for thought come up.

“Andrew Blinn gave a neat talk[1] pertaining to structured editing at Racketcon”

9 comments from Hacker News

d
@disposedtrolley2020 · in “MicroBlocks: Scratch and Smalltalk-inspired MCU VM for live embedded programming”
I've seen a few attempts at "structure editors" which are keyboard driven but limit what you can type so it's always syntactically correct. Fructure is an example which looked promising! ▶ this video
RecommendsView on HN
l
@loosetypes2020 · in “Hazel: A live functional programming environment featuring typed holes”
For folks interested in this sort of thing, Andrew Blinn gave a neat talk[1] pertaining to structured editing at Racketcon, which credits Cyrus’ work with Hazel. [1] ▶ this video
RecommendsView on HN
t
@tartoran2020 · in “Andrew Blinn – Fructure: A Structured Editing Engine in Racket”
Submitted the video to Hacker News.
RecommendsView on HN
d
@disconcision2021 · in “Snap is Scheme disguised as Scratch [pdf]”
using a lisp here simplifies things from implementation and interaction model perspectives. you already have a simple, canonical AST out of the box, which in-principle suffices to support the entire language, not just a toy version. so it makes sense lisps are attractive targets for getting something rolling in this space, though it's certainly debatable whether it's long-term the best choice. (my own efforts in this space (a structured editor in racket), which i was able to get going as a novice programmer: ▶ this video)
CitesView on HN
s
@spaethnl2020 · in “Simula: A VR window manager for Linux”
I'm not sure I agree with the parent, but to give an example for a non-rectangular UI for manipulating (programming) text: Combine structural editing[1] overlaid on some kind of 3d graph that shows how your entire codebase fits together. [1] ▶ this video
t
@tartoran2020 · in “Maybe visual programming is the answer, maybe not”
I think this is relevant to the discussion: Fructure: A Structured Editing Engine in Racket ▶ this video
t
@threatofrain2019 · in “Lisp Programming in Vim with Slimv or Vlime”
In my mind the main reason why Vim still has relevance today is for seat-of-your-pants SSH'ing, which admittedly shouldn't be done but it still is. Outside of that... I still have hope for structural editing but I don't see Vim as the innovator in that space anymore. ▶ this video
T
@TuringTest2019 · in “How can we develop transformative tools for thought?”
> I still think excel is the leader in this category. Yes, definitely. The "reactive functional" programming paradigm of the spreadsheet is radically more understandable for end users than the imperative, as it doesn't require keeping a mental model of state changes in memory. Fortunately, React has popularized this reactive functional paradigm and it is no longer confined to spreadsheets. > I’m thinking the same elements presented in an environment perhaps more like Scratch could work An approach of visual building blocks could help for learning, though Scratch is imperative so it has all the trappings that make a language hard to learn for non-programmers, plus all the inconveniences of editing a visual language (much more cumbersome than editing text). I'd rather have a "structure editor"[1] for editing a textual language (like the spreadsheet, but with a tree representation instead of a grid one), which added enhanced visual representations over the base tree. You know, like the IDEs developers use, but with a functional reactive language that mixed code and data, like the spreadsheet does. [1] ▶ this video
CitesView on HN
d
@disconcision2019 · in “How can we develop transformative tools for thought?”
I'm currently working on a structured editor which is at its core a customizable rewriting engine; you specify a grammar, and essentially all editor actions are rewrites on that grammar. My current target grammars are for simple LISPy languages because of the simplicity, but my original (and eventual) goal was/is as a tool for exploratory mathematics. I've always felt mathematical manipulation as more of tactile, synesthetic phenomena than a verbal/linguistic one; I feel like the current state of haptic input is not quite up to reifying this yet, though it is improving very rapidly these days! So I'm trying to tackle some of the software side, and seeing what can be done towards this goal with extant input devices. What I've done is pretty rudimentary so far, but I have a talk about it here if anyone is interested: ▶ this video
CitesView on HN