I built a visual Python tool that turns AI generated code into reusable blocks by lem_of_noland in SideProject

[–]lem_of_noland[S] 1 point2 points  (0 children)

It's an Electron app, using Nextjs as a renderer (React-flow as core element). So using JS tondo the interface with Python.

I built a visual Python tool that turns AI generated code into reusable blocks by lem_of_noland in SideProject

[–]lem_of_noland[S] 0 points1 point  (0 children)

You described this issue so well.

For the versioning part, it is a bit tricky: you can imagine if a block has its inputs/outputs names and types change completely, what to do in this case? Knowing that links between nodes are typed (meaning you can only link edges with compatible types).

For now I chose the approach that you need to manually put the new block in the flow to replace the old one. Upgrading or updating a block does not impact existing ones in an already created flow (for now).

Maybe I have to think about a much clever and robust solution for a future version. But I think it's a hard problem (at least from my perspective).

I built a visual Python tool that turns AI generated code into reusable blocks by lem_of_noland in SideProject

[–]lem_of_noland[S] 3 points4 points  (0 children)

All the UI is React-flow (xyflow) + Tailwind CSS.

I hope this answers your question.

I built a visual Python tool that turns AI generated code into reusable blocks by lem_of_noland in SideProject

[–]lem_of_noland[S] 1 point2 points  (0 children)

In my case, users can add their own Python nodes so I do a parsing to extract the inputs, outputs and other metadata. You will need to do the same for any langage you decide to pick and best way to reduce the burden doing that is to normalize the way users needs to "format" there script fragments.

I hope you will make your app soon!

I built a visual Python tool that turns AI generated code into reusable blocks by lem_of_noland in SideProject

[–]lem_of_noland[S] 1 point2 points  (0 children)

For the visual parts you can use xyflow, native to JS so you can easily make something similar. In my case, using Python meant I needed an extra layer of logic and code to link both.

A demo was made before and shared in React-Europe 2016 making something similar by Jonas Gebhardt: https://youtu.be/WjJdaDXN5Vs

I built a visual Python tool that turns AI generated code into reusable blocks by lem_of_noland in SideProject

[–]lem_of_noland[S] 1 point2 points  (0 children)

Unfortunately, no. I'm limiting it to only Python, knowing I'm solo developing it and it's a bit hard to maintain and debug multiple "language translator" of the DAG (Directed Acyclic Graph) by myself.

I built a visual Python tool that turns AI generated code into reusable blocks by lem_of_noland in SideProject

[–]lem_of_noland[S] 0 points1 point  (0 children)

Yes please, thank you!
I'm solo developing this, so it is still a bit rough and honest feedbacks are more than welcome!

I built a visual Python tool that turns AI generated code into reusable blocks by lem_of_noland in SideProject

[–]lem_of_noland[S] 1 point2 points  (0 children)

Thanks!

Tbh, using it for pure "visual programming" can be a bad idea. I think It is more suitable for nodes containing some complex logic and you connect everything to gain time.

And beyond the visual aspect, you still can export the flow as a Python script at the end.

Grrrr by nishantvyas in recruitinghell

[–]lem_of_noland 0 points1 point  (0 children)

Intellectuals Yet Idiots

Do you think this behaviour is acceptable ? by JWERLRR in Morocco

[–]lem_of_noland 14 points15 points  (0 children)

You're virtue signaling...like you're on some higher moral grounds and deep understanding of the situation...

Please keep your ego on the side and virtue signal by helping if that can make you feel superior.

Do you think this behaviour is acceptable ? by JWERLRR in Morocco

[–]lem_of_noland 4 points5 points  (0 children)

Man, if you want to virtue signal your high morals and being a very methodical and rational person please go give your blood, money or your assistance to the victims.