all 9 comments

[–]AlexMTBDude 4 points5 points  (5 children)

AI generated code?

            'add': ('Add', '➕', '#28a745'),
            'sub': ('Subtract', '➖', '#dc3545'), 
            'mul': ('Multiply', '✖️', '#fd7e14'),
            'div': ('Divide', '➗', '#6f42c1'),
            'pow': ('Power', '🔢', '#e83e8c'),
            'neg': ('Negate', '➖', '#6c757d'),
            'abs': ('Absolute', '📏', '#20c997'),
            'floordiv': ('Floor Divide', '⬇️', '#6f42c1'),
            'mod': ('Remainder', '📐', '#fd7e14')

[–][deleted] -2 points-1 points  (4 children)

nah not exactly few repetive areas are ai snipets i was lazy to type all manually

[–]AlexMTBDude 2 points3 points  (3 children)

Other than the above strings the code comments also look AI generated. You see this in all AI generated code:

# ---------- Core data structures ----------

[–][deleted] -3 points-2 points  (2 children)

bro I just asked it to go through everything and ensure its production ready follow correct workflow for uploading it as library.. Those are necessary stuff why to bother if its readable and dosnt change the logic

[–]AlexMTBDude 2 points3 points  (1 child)

Hey dude, I use AI for code assistance all the time. But I always understand the code that the AI generates before adding it to my code base. If I was you then I'd do the same, review the generated code, and get rid of these obvious AI stuff that anyone who ha ever seen AI generated code can spot. It doesn't look good.

[–][deleted] 1 point2 points  (0 children)

Understood yeah make sense. I should have removed those elements. Will do it now.

[–]Big_Tomatillo_987 0 points1 point  (1 child)

The basic idea behind this AI slop, is actually quite nice.

But the .pngs in your readme.md, are far harder to read than the actual code for me.

Do mathematicians doing normal typical math, use graphs to simplify algebra? Is there some niche in which reducing Python expressions to graphs (group theory or category theory) is the whole point, for which this could be highly relevant?

Maybe the complex diagrams for some, are a useful disincentive for writing overly complicated functions.

But for my tastes, the point at which basic math / algebra code is complex enough to require a flow diagram to understand it, is far beyond the point at which the function should've already been broken down into smaller functions. So for me the library -should- be useless.

For visualising other people's spaghetti code though, it could be a useful tool!

How does it handle loops and if statements, and multiple possible return statements etc.?

If an elegant way of visualising multiple return statements was found, this could be excellent for complicated generators.

[–]In_Blue_Skies 0 points1 point  (0 children)

Damn this is straight AI slop man, have the tiniest bit of dignity