123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|558|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> Off Topic -> AI Code Generator

Fri, 05 Aug 2022, 05:54
Pakz
This seems to be a free ai code generator ai site(reg) Linkage
Fri, 05 Aug 2022, 05:54
Jayenkai
Seems functional enough..

"A function that draws an ascii art picture of a cat."


-=-=-
''Load, Next List!''
Fri, 05 Aug 2022, 05:57
Jayenkai
"A function that converts the ascii characters of a string a returns a string of binary values."


That "feels" right..

-=-=-
''Load, Next List!''
Fri, 05 Aug 2022, 06:12
Jayenkai
"A function that can tell how frustrated the user is, based on how furiously they're typing."



However ...
"Regex to convert "[url=https://test.com/page.html?part=5&chef=babs&fbclid=12376hvcdfujoi43895392]link here[/url]" into <a href=""> html, and strip away any fbclid and gclid data from the address."
it failed at.
.. I don't blame it.



-=-=-
''Load, Next List!''
Fri, 05 Aug 2022, 06:43
Pakz
I asked for a function that blends the color red and the color green. It created a function that returned the word "colorredcolorgreen".

I have to test a function that checks a collision between a point and a rotated rectangle(isometric tile) this looked ok.

Larger functions are not possible. Line vs line for example.
Sat, 06 Aug 2022, 07:02
Pakz
I am going to use it for my projects. I spend some time experimenting. There is quite some use for it. I think when using the right prompt, good code gets generated.

I have created a series of snippets here github.com/Pakz001/html5examples/tree/master/Programming-helper

I think once I learn to figure out how to describe better. Those long puzzle times might get less while coding.
Sat, 06 Aug 2022, 09:02
Jayenkai
My advice would be not to over-rely on it.
Be sure you understand why everything it outputs works the way it does, like it's an example from a book or something.
And stress test them.. and fix any issues along the way.
Otherwise you may end up getting weird bugs that filter down from tiny issues in the ai code!!

-=-=-
''Load, Next List!''
Sat, 06 Aug 2022, 10:18
Pakz
I feel like I found a big book with this. I wonder if more people wil start creating things with these tools.
Sat, 06 Aug 2022, 21:43
Kuron
A function that displays the futility of AI generated code


Wed, 10 Aug 2022, 12:20
Jayenkai
Good news, I checked the asteroid's position and it says we'll be fine.

"A function that analyses the trajectory of an object in space, to ensure it doesn't collide with the earth."


-=-=-
''Load, Next List!''
Wed, 10 Aug 2022, 12:41
Pakz
There's some use in it for those exotically named functions. I was reading about a ray casting line function. No idea what they were writing about. Wikipedia is written for professors and gives no clue.

I asked the generator for " Digital Differential Analysis" and got the function below. "DDA" lines.


Wed, 10 Aug 2022, 12:46
Jayenkai
That's just drawing a line....
Wed, 10 Aug 2022, 12:54
Pakz
Yeah, I know. But it would be one of the ingredients of a ray caster, apparently

I had been having troubles with lines the last few days. Normally I just get the angle and step using cos and sin. This is another way.

@Jay, btw. Do you have a html css setting for disabling the long touch with finger on screen on ipad? I think jse does not exit to system when long pressing the canvas? I seem to have not been able to find this. I can not do long presses in javascript right now.
Wed, 10 Aug 2022, 13:26
Jayenkai
Yeah, you'll first want a few addListener's, each with a preventDefault


BUT..
As soon as you Prevent Default, it disables EVERYTHING that a touch normally does.
So if you want finger pinch scroll and zoom, you're going to have to code it.
If you want multitouch prodding and poking, you're going to have to code it.
Even a single finger.. Get coding!

The code for the new touch functionality should be inside those functions, but should also be as fast as you can possibly make it. I think there's a 2 or 3ms cap on them, or something low like that.

-=-=-
''Load, Next List!''
Wed, 10 Aug 2022, 14:05
Pakz
Yeah, I need to investigate or learn more. I just can not understand it yet.