You are viewing archived messages.
Go here to search the history.

Kartik Agaram 2023-12-27 03:55:01

Combining charting with the pinch-zoom gesture

akkartik.itch.io/carousel/devlog/656473/building-an-equation-plotter

I've written a couple of programs now that have felt too large for this particular devlog, which I've been trying to limit to a size I can comfortably edit on a phone, around 200 lines or so.. 🤔

Kartik Agaram 2023-12-27 06:14:10

For example, adding adaptive ticks is very satisfying, but the line count goes from 90 to 150.

Maikel van de Lisdonk 2023-12-30 12:16:54

In this video youtu.be/YtDvPAfJ8jE I show an implementation of the quicksort algorithm using my visual programming system and not only that, but also the different steps of the output of the algorithm are visualized using a node tree.

One thing I noticed when making these kinds of algorithm flows, that they tend to grow horizontally quickly. So, to help prevent that, I've introduced the concept of "decorators" (they are in the "stacked" nodes). Decorators can be added before or after node-types that support this.

Now at least flows can also grow vertically a bit more. In the future I also want to be able to combine multiple nodes in a component or grouped node.

There are currently only 2 decorator types: expressions and sending data to the node-tree. Editing is not yet possible via the editor itself but only directly in the underlying json data of a flow. Also I needed to improve the way scoped variables work with regard to recursive functions, the same for the "merge"-node-type. Each node receives a scopeId depending on the scope within it is executed (every call to a function creates a new scope, this scopeId is passed to the function-node which passes it through to its connected nodes and so on).

Maikel van de Lisdonk 2023-12-30 12:18:15

This is the flow which is in the video:

Image from iOS

Kartik Agaram 2023-12-30 21:31:34

Screenshot_20231230-051117.jpg

Maikel van de Lisdonk 2023-12-31 15:25:03

Is this a screenshot of a mobile friendly layout editor?

Kartik Agaram 2023-12-31 16:23:46

Thank you! Layout editor was the term I was groping for.. but still highly aspirational.

Jason Morris 2023-12-31 08:44:17

Thought about a new architecture for my tool that would make it play better with LLMs, so as to get more help with generating code. Built an MVP version of it over the last week, or so, with just text-based code, and it works well enough that I'm going to have to re-implement my visual language in the new architecture.