#aidev.codes

178 messages · Page 1 of 1 (latest)

remote edge
#

Update: Site is live and currently free! https://aidev.codes
A site for creating and sharing programs written in natural language. A product that lets people create software with natural language can be valuable because it can:

  • Make it faster and easier to create software, especially for people who aren't programmers (or programmers who want to focus on high level details)
  • Open up software development to more people
  • Help teams collaborate better on software projects

Here is a little demo of current dev progress (and see below for examples):

zealous herald
#

Looks awesome!! Nice work.

remote edge
#

I just want to show a few simple examples of "natural language programming" using this tool (message me if you want to try it out):

#

Simple Clock

create a 500x500 canvas, then rotate it 180 degrees


translate by width


mirror canvas


draw a white circle radius 100 centered at 250,400


calculate (hours angle):
(hours float) = (current time in hours) + (current time in minutes/60)
(out of 12) = (hours float) / 12 angle = -1 * (((out of 12) * 360) - 90)
from center of circle, draw a black line 50 pixels long at (hours angle)


calculate minute hand angle: (minutes float) = (current time in minutes/60) angle = -1 * (((minutes float) * 360) - 90) from center of circle, draw a black line 90 pixels long at minute hand angle


draw 12 tick marks evenly spaced around the inside of the circle in black

#

Current Bitcoin Prices

add a stylesheet to HEAD in which the background of the page and all divs is black and the text is Open Sans Google font in white color


add the Tabulator script from https://unpkg.com/tabulator-tables@5.4.3/dist/js/tabulator.min.js, and the styles from
https://unpkg.com/tabulator-tables@5.4.3/dist/css/tabulator_midnight.min.css


inside of the window.load event:

  • using fetch, get the current price data from this URL https://api.coindesk.com/v1/bpi/currentprice.json and convert the "bpi" property into an array (flatten)
  • create a div called pricetable
  • finally, show the price data using Tabulator in the pricetable div
#

Graph a 3d Function

add Three.js to the head


wait for window to load


  • record the start time in ms

  • setup Three.js including an empty scene etc.

  • insert this code:
    const axisHelper = new THREE.AxisHelper( 200 ); scene.add( axisHelper )

  • and position the camera at 100, 80, 100 looking at the origin

  • plot the function z = 50 * cos( x/45 ) - 20 * sin( y/45 ) with x from -30 to 30, y from -30 to 30 using the color green

  • add the points to window to make it a global

  • in each animation frame, set the y rotation angle of the scene to ((now - start ms) / 200) in degrees

  • start the animation
lapis notch
#

Hello @remote edge, Have u deployed on any servers?

remote edge
lapis notch
#

Can't wait to see it.

primal sigil
#

Hey man

#

Very nice is it live?

cloud depot
#

How do you take Ai chat bot and make it chat in live videos with a 3d model like GPT-3?

remote edge
# primal sigil Very nice is it live?

I will try to work on it today. Have not heard back from OpenAI about code-davinci-002 but may launch with text-davinci-003 since it works about as well. Also trying to finish up a client project that I needed for funding but will make sure I get progress on the login system today

remote edge
cloud depot
remote edge
remote edge
#

also I forgot to mention this site will not currently work on a phone

#

have not even opened it in a phone, or started figuring out how to lay it out for that

remote edge
#

okay so it now works on mobile. still better on desktop but seems to load up okay on phone now

primal sigil
#

Nice man!

#

Excited to test it out

remote edge
#

let me know if you have any questions or want help debugging something

#

ok so Discord messes up the example when you paste them

iron acorn
remote edge
#

when you sign up it just goes to the login page if successful

#

are you not able to open the sign up page or what is the problem

#

its a little abrupt, if you enter sign up info successfully it will just redirect to login page without saying 'sign up successful'

#

did you get an error when you pressed submit on signup or what?

#

anyway signup works fine, just tested it again, I am taking a bath, soon as I get out I will try to help some more

iron acorn
#

It's ok now. x)

remote edge
#

I need to fix the username field on sign up so it doesn't allow punctuation and stuff because I have been assuming the usernames are just alphabetic

#

is there someone named artem? can you sign up again as just 'artem' maybe if you run into problems

iron acorn
#

@remote edge Your site only uses the power of chatGPT?

#

Do you think it is possible to create a complete code from A to Z, with a medium technicality? With 0 programming knowledge?

remote edge
#

That's a very vague question but I would say realistically no.. you can probably have some success with a lot of simple things

#

For example, if you ask it 'write a poem about birds' or whatever and then the next thing is 'make all of the text green'. 100% basic things like that will work.. but for like 'medium' a to z, it will help to have a little programming knowledge

#

you should try though and I will try to help

remote edge
remote edge
#

I added a thing: if you put !!cd2 by itself on the first line of a spec, it will use code-davinci-002, which is better. But you may want to Copy to Clipboard whenever you edit a large one because it will probably f up if it hits a rate limit (which is very small for that model).

primal sigil
#

ok its purely js/html?

remote edge
remote edge
#

that's the concept at the moment

#

you can probably make it generate anything

#

but the web page won't do anything if you have it spit out python

#

but you could copy paste it if thats what you want.. although you can do the same thing with chatgpt

#

I have some experiments handling multiple files

#

and a lot of plans

#

but this is the first thing

#

what language or whatever did you plan on using

primal sigil
#

Its very well built tho!

#

Good job!!

wind thunder
#

Works:) it moves from left to right

lapis notch
#

It didn't work when I try creating signup page in ReactJS @remote edge

remote edge
#

You can try with !!cd2 on a line by itself at the top. Also you may need to tell it to 'add React.js' or 'add React to head'. But still it may not be able to do it because React code out there assumes a bundler. Regardless it sometimes requires some level of debugging such as looking in the dev console for errors. It's just one index.hrml and script.js at the moment. So no rollup or anything.

remote edge
iron acorn
#

It's only JS code?

#

I thought we could generate code from any language. ^^'

remote edge
remote edge
# iron acorn It's only JS code?

currently only works with javascript if you want it to do anything. you may be able to get it to just generate it (without being able to execute in page) Python for example by saying: "generate some Python code that does X and display it on the page in a text area"

#

I have plans for how I can do hosting for something like Docker containers (or use a third party) and then run arbitrary code

remote edge
#

If you just want to generate it then you can say "generate Rust code for X and display it in a <pre> tag"

iron acorn
#

Can we make sure we don't get disconnected?

#

@remote edge

remote edge
#

Disconnected

#

Like the session timing out or something?

#

Wdym

iron acorn
#

I have to reconnect often.

remote edge
#

I think I may have had a problem where I had to refresh the page or log in again though

#

When you say reconnect

#

Do you mean the login page?

iron acorn
#

Yes

#

Need to login again.

remote edge
#

I will look into it

iron acorn
#

Okok Ty

remote edge
#

I am guessing it is losing the session or session expired or something

iron acorn
#

Expired maybe

remote edge
#

Thanks for reporting the problem

iron acorn
#

Np

#

The tool is very interesting, just chatGPT needs a big update of its AI.

#

Of course improvements can be made on your website.

remote edge
#

Did you try with !!cd2 on a line by itself at the start?

iron acorn
#

Nop!

#

I will try

remote edge
#

It will use code-davinci-002

iron acorn
#

002 better than 003? 🤔

remote edge
#

Only problem with code-davinci-002 is they only allow 10-20 requests per minute unlike the other model which is 1000-3000 per minute rate limit

#

The code one is focused on programming

#

I contacted OpenAI multiple times to increase cd2 limit will see if they respond . cd2 is in limited beta they don't even charge for it

#

For some things it is better than td3

#

Also I am planning on other things like making an option to just create a web page with a different prompt instead of only the incremental JavaScript thing I have. It may make it easier to add libraries

#

Also I will add caching to reduce repeat AI queries.

remote edge
# iron acorn Strong?

ok I restarted the server. sorry if it interrupted anyone. I changed several session things that might help with having to relogin

iron acorn
#
  • Delete project
  • Reedit project title
  • When I was disconnected and refreshed the page, my project was still on the page
  • Full screen on code not only the result
  • If label = void, display the 'READ THIS'
wind thunder
#

Multi sphere version, lol 😀

remote edge
remote edge
wind thunder
iron acorn
iron acorn
remote edge
# iron acorn READ THIS

um. still not sure what you mean.. do you mean the Clear button stopped working? Or you mean, you want a Delete Project button somewhere? What does READ THIS have to do with deleting projects? Sorry

spring minnow
#

Hey man. Nice project! I vote for Python 😉

remote edge
remote edge
#

I just added a new Explore page that has some examples.

mental tundraBOT
#

@remote edge

You have been warned and muted by AutoMod.
remote edge
#

please see the home page, there is a link to another c h a t server, scared to mention it in detail since the bot banned me for an hour last time I tried

remote edge
#

I added caching so it doesn't have to keep repeating the same queries to OpenAI when revising a spec. Also added a Continue button which may be able to continue the code when it gets cut off.

#

Also I improved the session handling to use redis

tender mason
#

Just tried to create an app xD

#

Oh its working no

#

w

remote edge
# tender mason Ehh

Great just curious what is it? Yeah a lot of times it gets cut off or for one reason or another the code doesn't quite work, and I often have to look in the developer console to see what the bug is. Usually I can fix it by A) making it continue where it left off or B) changing the order of operations or waiting for a window load event. I am going to add a way to output to different files like an index.html which may be less susceptible to needing to wait for window load

#

Also if you see in my Disc. ord server I will have another tip

tender mason
#

Alright, but it's no worries anymore, it works perfectly

ivory birch
tender mason
#

Hahahahaaa

#

Ffs koty

#

xD

ivory birch
#

anyways, is this safe to use?

tender mason
#

Mhm

ivory birch
#

you sure?

tender mason
#

Mhmm

#

Else it would be taken down 😛

ivory birch
#

@remote edge which model does this site use?

remote edge
#

text-davinci-003 or code-davinci-002 if you use !!cd2 (see the READ THIS in the edit page)

ivory birch
#

hmm, it keeps repeating itself, or it just puts everything on 1 line

remote edge
#

Which user/app is it?

ivory birch
#

kotyKD, test

#

i will try again, so that you can see a bit better

#

ok, this time i got a weirder result

remote edge
#

Ok I'm at my brothers visiting, when I have a chance will see if I can help get something working

ivory birch
#

i kinda wish it had an undo button

remote edge
#

You can basically undo by hitting clear & edit and erasing the last section of the spec

#

But it would be good to make that automatic

remote edge
remote edge
#

FYI I am working on a way to edit arbitrary files instead of just script.js

remote edge
#

I have added some commands: !!create and !!edit which allow you to specify arbitrary files. (See the Help page and the wins example). There is also a new help page, and a section at the bottom of the screen showing files (which you can open in a dialog by clicking). You will currently need to refresh to show files after creating them.

remote edge
remote edge
#

The files list at the bottom now refreshes if you use !!create or !!edit

remote edge
nocturne lodge
#

damn, this is amazing :O

remote edge
#

Hello.. so there are a lot of things about the concept that make it challenging to use especially if you're not a programmer.. many improvements planned, although I have a somewhat limited amount of time this week. One of the things people are not getting is that the !!create or other command is supposed to be on a line by itself.. it confusingly doesn't show that way in the spec on the right side. So I changed it so you can do it either way. So now you can now just say !!create index.html An HTML page about fruit salad. How to make it, why its great, what celebrities are eating it. Background blue, text should be green, red, other bad ideas for text colors.

remote edge
#

Added two new features: 1. Copy (to clipboard) at the top of the file source display dialog (when you click a filename at the bottom of the page). 2. Download file, icon next to filename (at bottom of page).

void gazelle
#

create a code to generate an app which can calculate our daily calories

quasi tusk
remote edge
#

calculate calories based on a list of foods?

remote edge
#

Hello, I added some preliminary knowledgebase support. The command is !!kbget [url] The knowledgebase data is referenced by the !!create command.

mental tundraBOT
#

@remote edge - High-risk word(s) detected

runvnc's message blocked by AutoMod

We strive to create a positive environment and have implemented additional filters to prevent the use of inappropriate or disruptive language and topics.

remote edge
#

New version deployed:

  • Fixed the bug with kb/create (now must manually specify kb, see new help page)
  • also added file uploads (bottom of page above files list) and
  • new !!template command (see Help page).
remote edge
#

Hello so I finally released the new version of aidev.codes. It is extremely alpha, has not been thoroughly tested at this point. Its quite different from the previous version.

You will get 50 credits for signing up (which is more than it sounds).

The new aidev.codes:

  • is buggy but actually works (compared to the old version)

  • has a ChatGPT-style interface (and uses the chatgpt-turbo model which is actually better than the other models for code)

  • integrates the stability.ai API to automatically generate images

  • can create a simple but fully customized and interactive web page and instantly host it for you

  • can optionally host your page on a custom subdomain

  • also can use Eleven Labs for text-to-speech although the latency can be problematic sometimes currently, and this will use up your credits much faster.

  • if you have Chrome there is also a speech-to-text option

  • has only been tested by myself and maybe 3 users so far

ivory birch
#

oh, it says -80 credits

#

i sent more details in the discord server

ivory birch
#

10/10 site

#

highly recommend

#

they already fixed the bug

#

(for me atleast)

#

idk if it happened to anyone else

remote edge
#

thanks

remote edge
remote edge
#

Just a reminder that although I don't have access to GPT4 and images, you can create a mockup in text on aidev.codes and it will immediately create the web page. Available right now.

ivory birch
#

I'm sending this so it doesn't get lost or something. This project is awesome