Live data from Hacker News

Cirru – An editor for AST

cirru.org

1–10 of 53 posts

Re: Cirru – An editor for AST

#4
What I want is for the editor to be aware of the semantics of the language and offer me language-unique tools to edit code, also to generate and work on macros, in the language it's editing, or at least one that is close enough to it I don't have to switch gears in order to get a tough task done.

Otherwise it really doesn't improve on a text editor. All of these things would require a ton of work, so I stick with Sublime for now. Text isn't that bad.

IDEs are kinda close, but I've yet to see one that could effectively work with dynamic languages. RubyMine is interesting-looking, but seems to want to impose a lot of its opinions on your workflow. I don't really see how RubyMine would really be that much better than Sublime and a terminal.

Re: Cirru – An editor for AST

#6
post #5

May be good idea for mobile devices, where editing text is hard but it's possible to make usable tree editing UI.

I was about to ask who edits code on a mobile device, then I remembered a brilliant young coworker of mine who, as far as I could tell, coded exclusively on his iPad when he joined the company. I guess it goes to show you the huge variance of workflows out there.

He transitioned to a laptop soon after joining the company.

Re: Cirru – An editor for AST

#7
I find myself wanting to edit the textual version of the AST itself, as the tree interface seems too cryptic

edit: I'm guessing its probably a bug that is confusing me the most, as I'm getting both a inline tree and a indented tree at the same time for a node

Re: Cirru – An editor for AST

#8

What I want is for the editor to be aware of the semantics of the language and offer me language-unique tools to edit code, also to generate and work on macros, in the language it's editing , or at least one that is close enough to it I don't have to switch gears in order to get a tough task done. Otherwise it really doesn't improve on a text editor. All of these things would require a ton of work, so I stick with Su…

You're describing the Common Lisp, emacs and slime combo. But that's only for lisp, though.

Re: Cirru – An editor for AST

#9

What I want is for the editor to be aware of the semantics of the language and offer me language-unique tools to edit code, also to generate and work on macros, in the language it's editing , or at least one that is close enough to it I don't have to switch gears in order to get a tough task done. Otherwise it really doesn't improve on a text editor. All of these things would require a ton of work, so I stick with Su…

> I've yet to see one that could effectively work with dynamic languages

That is a hard nut to crack, a dynamic language will frustrate static analysis.

Re: Cirru – An editor for AST

#10
post #2

Some context : https://medium.com/cirru-project/stack-editor-programming-by...

So the units in Stack editor is not “files”, it’s “functions”(or “definitions”). And we navigate by functions, edit by functions, and finally program by functions. It’s more like the program is running and we got a call stack here. We edit the code that’s collected for a specific purpose without constantly switching the context. It can be faster.

This is a very neat idea.

Post reply on HN