unit
openscad-graph-editor
unit | openscad-graph-editor | |
---|---|---|
12 | 30 | |
2,563 | 173 | |
- | - | |
9.7 | 8.1 | |
5 days ago | 5 months ago | |
TypeScript | C# | |
MIT License | GNU General Public License v3.0 only |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
unit
- Unit – Next Generation Visual Programming System
-
Visual Node Graph with ImGui
https://github.com/samuelmtimbo/unit recently, which at least uses some kind of hinted auto-layout (besides the more propriety fancy)
I really want to see more graphical coding for years, but node/graph-based and blockly seem to be the only approaches that got sone traction so far. So I like this thread and it seems at the right place.
I'd wish to see
- Next Generation Visual Programming System
-
Unit (Visual Programming System) [video]
Interesting, and clearly a lot of work's gone into this (60,000 lines of Typescript), particularly the UI, which is impressive (if, sometimes, over the top). I've been developing a similar system (http://www.fmjlang.co.uk/fmj/tutorials/TOC.html) and it's interesting to note the similarities and differences.
Similarities: code as directed graphs (less obvious in FMJ); can only connect outputs to units of compatible type; if and wait (looping is handled differently); sticky values; sliders. These design decisions are practically forced on you, but are often absent in earlier visual dataflow languages (e.g. Prograph, LabVIEW).
Differences: (1) inputs are named in Unit, ordered in FMJ (though they're named in formulas and edges can be labelled). (2) I experimented with automatic code layout but found this was too slow and not always what I wanted. Well done for getting this to work. (3) FMJ is now fully homoiconic - this maybe isn't a priority for Unit.
The Unit design philosophy is explained in https://github.com/samuelmtimbo/unit/blob/main/src/docs/conc... . This doesn't mention earlier approaches (e.g. the Manchester Dataflow Computer, Prograph) and it seems to be based on vaguely similar ideas developed more recently (Morrison's Flow Based programming; possibly React and similar systems for web development - I'm unfamiliar with these).
I have a number of questions:
(1) How does the type system work? Is it Dependently typed, Hindley-Milner, or something more basic? (FMJ is Hindley-Milner, with dependent typing partially implemented). How are new types be defined?
(2) How is the visual representation stored? One criticism I faced was that people wanted a readable textual representation which would work well with existing version control systems, a problem I have now largely solved.
(3) How are runtime errors handled?
(4) Is recursion supported? (I assume yes, but I didn't see any examples.) What about macros?
(5) What does Unit compile to? (FMJ has an experimental compiler where programs are compiled by running their source without evaluating their inputs, output is Lisp.)
- Unit.land
-
A personal history of visual programming environments (2021)
I enjoyed reading this. I knew of quartz composer but I never did anything with it.
I love visual tools and I think they are underutilized today. I cut my teeth in ~2005 with Houdini[0] and Fusion[1] which are both heavily graph / node based (and procedural).
Most recently I have been rekindling my love for visual programming and flow based programming and plan to spend some time in January and February doing more research around flow based programming for infrastructure management.
I plan to get this sort of info published on my website which I have neglected for half a decade or more but if you are interested in visual programming you might enjoy checking these out:
Unit from Samuel Timbó:
https://github.com/samuelmtimbo/unit
https://ioun.it/
A video of me exploring what I figured out about it (while also learning to stream) https://www.youtube.com/watch?v=vwknTfGVDq8
Behave-Graph from Ben Houston:
https://github.com/bhouston/behave-graph
And the products I learned so long ago
[0] Houdini https://www.sidefx.com/products/houdini/
[1] Fusion https://www.blackmagicdesign.com/products/fusion
-
Ask HN: More “experimental“ UIs for editing/writing code?
https://github.com/samuelmtimbo/unit
- A code drawn in unit is simply a Directed Graph.
- Programming can be partially performed by Gesture and by Voice.
- Unit: Next Generation Visual Programming Platform
openscad-graph-editor
-
Ask HN: Modern Day Equivalent to HyperCard?
I really wish Livecode hadn't pulled their opensource/Community Edition (and I'd be very glad for someone to do something with that code).
Gambas is something I keep wanting to try and seems promising.
I did one small app w/ Python and TKinter, but it was a dense wall of text/code when I was finished and not something I was interested in revisiting. I keep seeing suggestions that Python w/ QT support is supposed to be quite good.
One unlikely option is Google's Blockly (which I wish had a stand-alone desktop implementation which would make graphical programs), which has a nifty version implementing OpenSCAD:
https://www.blockscad3d.com/editor/
which I've used a fair bit. Moving on from there, there is: https://github.com/derkork/openscad-graph-editor which has the advantage of encompassing the entirety of OpenSCAD. It's also possible to wrap up Python using PythonSCAD.org
If you're willing to consider other node/line connection systems two promising options are:
https://ryven.org/
and
https://nodezator.com/
What sort of coding, on what sort of projects do you want to do?
-
PSChess – A Chess Engine in PostScript
The Cube was a gift, and the PS work didn't go that far.
I found PS pretty inscrutable, esp. the function-filled variant used in Virtuoso, but did manage to get dimension lines coded up (which promptly ran into precision problems which I eventually gave up on).
OpenSCAD is a lot more approachable, and METAPOST was easy to pick up and make use of:
http://ftp.tug.org/TUGboat/tb40-2/tb125adams-3d.pdf
Still working through this at:
https://willadams.gitbook.io/design-into-3d/3d-project
and mostly using visual tools (which arguably is limiting me) https://www.blockscad3d.com/editor/ and https://github.com/derkork/openscad-graph-editor and of course, had to throw: http://pythonscad.org/ into the mix. Still a bit miffed that Nodebox and Processing or maker.js weren't a good fit.
-
Show HN: Flyde – an open-source visual programming language
As a visual person (traditionally trained as a graphic artist), I've wanted this sort of thing for a long while, and I've been trying to use it for 3D.
Surprisingly, there are multiple specialized tools for this:
- https://www.blockscad3d.com --- an adaptation of Google's Blockly to OpenSCAD
- https://github.com/derkork/openscad-graph-editor --- wires and nodes, it has the advantage of exposing _all_ of OpenSCAD's commands (the above has a subset)
- https://github.com/Tanneguydv/Pythonocc-nodes-for-Ryven --- a module for using PythonOCC in Ryven --- when I finally succeeded, I found the language inscrutable, even when provided w/ quite nice examples (definitely a failing on my part, not that of the tool)
- https://github.com/graphscad/graphscad --- it took a long while for the source code for this to be made available, and for a while it had compatibility problems (why was "cube" redefined?) --- probably defunct for political reasons, it had some interesting ideas, in particular the ability to have custom icons for modules
- https://www.nodebox.net --- if memory serves I got hung up by not easily being able to do 3D, and when doing 2D having precision problems (or maybe that was Processing.org)
and I've been using these tools to make various things:
https://willadams.gitbook.io/design-into-3d/3d-project
(and maybe eventually I'll finish something)
The problem I've been running into is there doesn't seem to be an answer to the question:
"What does an algorithm look like?"
I recently had occasion to mention Herman Hesse's _The Glass Bead Game_ (also published as _Magister Ludi_) and I'll bring it up again --- what is a meaningful graphical representation of a program?
The Drakon folks argued that there should be one true path but that's not really communicative and I would note that if this was a simple thing it wouldn't be decades since I last saw a physical Flowcharting Template:
https://americanhistory.si.edu/collections/object-groups/flo...
(and it's pretty rare to even see a well-done electronic drawing of a flowchart since Visio made its splash and vanished into the bowels of Microsoft)
The main problem seems to be one of expressiveness not scaling up well, hence:
https://blueprintsfromhell.tumblr.com/
https://scriptsofanotherdimension.tumblr.com/
Presumably, one doesn't want to define modules/variables unnecessarily --- but the question becomes where is that boundary?
If you define too many, then you're back to the "wall of text" which one was trying to avoid (but wrapped up in nice boxes with some lines or shapes), and if one doesn't use them (well, look at the pretty/awful images in the links above).
Ideally, a well-coded visual program would have a pleasing aesthetic appearance which is expressive and communicates flow and function, and I've tried for that at:
https://willadams.gitbook.io/design-into-3d/programming
(though I wish that there was an easy way to export an SVG version of a program)
I believe that what is needed here is some graphical equivalent to Literate Programming: http://literateprogramming.com
Is there a nice GUI toolkit integration which would allow making a graphical application with this? I have an idea I want to try it which might be a good fit.
-
Was BASIC that horrible or better?
_That_ is a question I want an answer for.
Currently I am using OpenSCAD Graph Editor: https://github.com/derkork/openscad-graph-editor to create programs:
https://willadams.gitbook.io/design-into-3d/programming#open...
but the fundamental question which remains unanswered is:
>What does an algorithm look like?
-
FullControl: Unconstrained gcode design for 3D printers
Interesting.
I've long been frustrated by traditional CAD/CAM, so finally worked up:
https://github.com/WillAdams/gcodepreview
which allows me to use:
http://pythonscad.org/
and:
https://github.com/derkork/openscad-graph-editor
to create joinery:
https://forum.makerforums.info/t/openscad-and-python-looking...
which would otherwise be tedious to draw up:
https://community.carbide3d.com/t/creating-drawers/19475/26
-
How to draw beautiful software architecture diagrams
Yes, unless you're a visually oriented person like myself who is trying to do the programming visually.
I use:
https://github.com/derkork/openscad-graph-editor
to try to design woodworking projects:
https://forum.makerforums.info/t/openscad-and-python-looking...
and I'd like to think that I'm managing to keep the visual appearance sufficiently expressive that it is easier to work with than a traditional textual code representation --- jury is still out on that, we'll see when I start re-purposing what I'm working on for odd/even sides, and then then doing the horizontal version of the joinery.
-
Visual Node Graph with ImGui
The problem here is that a fundamental question has not been answered, and as far as I can tell, has not been addressed by any of these visual environments:
What does an algorithm look like?
Herman Hesse alluded to this in his novel _The Glass Bead Game_, but despite decades of discussion and work, no one has made a convincing pysical representation of that system.
I love the concept, and have made some moderately complex attempts, e.g.,:
https://www.blockscad3d.com/community/projects/1430644
https://github.com/WillAdams/gcodepreview
it always devolves to screen size being out-paced by problem complexity --- one gets something of an inkling of this at:
https://scriptsofanotherdimension.tumblr.com/
Alternately, one can just break a project down into modules, but then the top-level view becomes the wall of text representation (albeit w/ nice lines or captured into pretty boxes) which one is ostensibly trying to escape.
I'd love to see someone succeed in this, and I've been using:
https://github.com/derkork/openscad-graph-editor
quite a bit, and put a bit of money towards:
http://nodezator.com/
-
RPG in a Box: A grid-based, voxel-style game engine built on Godot
I have been very pleased w/ and impressed by:
https://github.com/derkork/openscad-graph-editor
and really want to look deeper into it to see if it could be forked to create a version which creates Python code.
-
Godot 4.1 Is Released
Yes.
OpenSCAD Graph Editor is done with an earlier version and runs on Mac OS, Windows, and Linux:
https://github.com/derkork/openscad-graph-editor
- My attempt to make blockly based cad modellor
What are some alternatives?
vue-flow - A highly customizable Flowchart component for Vue 3. Features seamless zoom & pan 🔎, additional components like a Minimap 🗺 and utilities to interact with state and graph.
gcodepreview - OpenSCAD library for moving a tool in lines and arcs so as to model how a part would be cut using G-Code.
lisperanto - Lisperanto is a spatial canvas for programming; Lisperanto is a spatial canvas for knowledge; Lisperanto is a spatial canvas for ideas;
gdsdecomp - Godot reverse engineering tools
impulse - Impossible Dev Tools for React and Tailwind
Godot - Godot Engine – Multi-platform 2D and 3D game engine
metadesk
GoDotTest - C# test runner for Godot. Run tests from the command line, collect code coverage, and debug tests.
newspeak - Newspeak is a live object-capability language in the Smalltalk tradition
jsketcher - Parametric 2D and 3D modeler written in pure javascript
nodezator - A multi-purpose visual node editor for the Python programming language
luxtorpeda - Steam Play compatibility tool to run games using native Linux engines