ZZZ CODE AI

MichalK73

Well-Known Member
Licensed User
Longtime User
Hello.

I came across a site that can write code in various programming languages. It recognizes b4x and can write code described in words what to do. Admittedly, it may not be perfect and sometimes some strange bibiotech comes up with b4x.
In addition, I checked the conversion from another language to b4x. In this case from python because he also writes in it. Simple scripts convert quite well. It doesn't quite convert python's DIC type to b4x's MAP type, but rather does it to OBJECT type.
The description can be written in your own language, English is not required.
Is it possible to write a fully working b4x code? As for me, no, but can with your code suggest some other solution that you can use yourself.

WEB ZZZCODE

Example:
https://zzzcode.ai/code-generator?id=5fedb5fa-ae5c-4d52-a903-b01c02c2824c
 

omarruben

Active Member
Licensed User
Longtime User
Undeniable awesome, gives much of the code ready to refactor to your needs and without errors so far... great tool for people who has experience and know the basic concepts of software design and development.
Still if you need to create something usable, you need to WORK HARD!!!! you just got a little helper, get mad at , to do the repetitive an tedious small tasks
 

emexes

Expert
Licensed User
Admittedly, it may not be perfect
Is it possible to write a fully working b4x code?

I gave it a try at generating a binary search, and after a bit of fine-tuning to get it to always return the first match if there are multiple matches... I'd give it 9-out-of-10.

I'd give it 10-out-of-10 if it wasn't refusing to eliminate an unnecessary temporary variable, even after I've given it multiple hints of how to do it. What made me ? is that even though it refuses to eliminate the temporary variable, its says it has. Can AI lie? Or is it trying to fob me off and hope I don't notice? It is certainly acting very human-like.

If anybody has the time and interest to discover a magic incantation that persuades zzzcode to eliminate the temporary variable, perhaps there is a market opening for a "recipe book" or a book along the lines of "101 BASIC games" but for code generation by AI.

https://zzzcode.ai/code-generator?id=7b753a42-84de-4e24-8d0f-b67160792d39

The prompt input:

The code output:
Sub BinarySearch(s() As String, k As String) As Int
    Dim low As Int = 0
    Dim high As Int = s.Length - 1
    Dim result As Int = -456
    
    Do While low <= high
        Dim mid As Int = (low + high) / 2
        Dim compareResult As Int = s(mid).CompareTo(k)
       
        If compareResult >= 0 Then
            result = mid
            high = mid - 1
        Else
            low = mid + 1
        End If
    Loop
    
    Return result
End Sub

The lying description:
 

kimstudio

Active Member
Licensed User
Longtime User
I'm not sure whether these kind of AI is just learning the syntax and grammar rules of a language then it generates the binary search function or it aleady searched and recorded all open sourced binary search functions and just gets it from its incredible huge database and changes some var names...

Anyway the generative AI impressed me a lot as they are indeed destructive to current way of working, especially in generative image/video area for designers.

For coding I haven't tested complex(means there are almost none open sourced equivalent availabe on the internet) functions. For simple/general functions programmers don't need AI, or if you want to AI to make a baseline then you have to read/understand it throughly to add more functions to fit your special requirement which will not save much time. Let's wait for the day that no programmers are needed.
 

AnandGupta

Expert
Licensed User
Longtime User
AI is just a name given by media to exaggerate and hype a new technology, which is essentially a "natural language" conversion to "search pattern",which the program use to search in its database, created from public and private information, and display in more or less "natural" format for the user to understand easily.

Programmers will be needed to program this A.I. to understand and respond.
 

emexes

Expert
Licensed User
AI is just a name given by media to exaggerate and hype a new technology
...
Programmers will be needed to program this A.I. to understand and respond.

It does remind me of 4th Generation Languages in the '80s that promised to enable end users to do their own programming and make the rest of us programmers redundant.

Also how most 4GL's were rebranded database managers, at least until the fad ran out of steam.
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…