Hi there HN.<p>I've hacked a prototype together that enables GPT to break down user tasks into manageable sub-tasks, and then schedule and oversee their execution on a Python VM while collaboratively addressing syntax and semantic errors through a back-and-forth message dialogue.<p>Example:<p>"Go to the <a href="https://ten13.vc/team" rel="nofollow noreferrer">https://ten13.vc/team</a> website, extract the list of names, and then get me a summary of their LinkedIn profiles."<p>Will turn into GPT generated a-normal form Starlark code:<p>var1 = download("<a href="https://ten13.vc/team" rel="nofollow noreferrer">https://ten13.vc/team</a>") # Step 1: Download the webpage
var2 = llm_call([var1], "extract list of names") # Step 2: Extract the list of names from the webpage
answers = [] # Initialize an empty list to store the summaries
for list_item in llm_loop_bind(var2, "list of names"): # Step 3: Loop over the list of names
var3 = llm_bind(list_item, "WebHelpers.search_linkedin_profile(first_name, last_name company_name)") # Step 4: Search and get the LinkedIn profile of each person
var4 = llm_call([var3], "summarize career profile") # Step 5: Summarize the career profile of each person
answers.append(var4) # Step 6: Add the summary to the list of answers
answer(answers) # Step 7: Show the summaries of the LinkedIn profiles to the user<p>Which will then be executed statement-by-statement by the Python runtime. When syntax errors, exceptions or semantic issues occur, there's a error correction loop where GPT will get involved to identify the issue, regenerate code, and try again.<p>Lots of fun little programming language/compiler challenges in here. Happy to answer questions if you have them.