TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Llmvm. Using GPT3.5 to cooperatively execute user tasks on a Python VM

4 pointsby 9600modemover 1 year ago
Hi there HN.<p>I&#x27;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>&quot;Go to the <a href="https:&#x2F;&#x2F;ten13.vc&#x2F;team" rel="nofollow noreferrer">https:&#x2F;&#x2F;ten13.vc&#x2F;team</a> website, extract the list of names, and then get me a summary of their LinkedIn profiles.&quot;<p>Will turn into GPT generated a-normal form Starlark code:<p>var1 = download(&quot;<a href="https:&#x2F;&#x2F;ten13.vc&#x2F;team" rel="nofollow noreferrer">https:&#x2F;&#x2F;ten13.vc&#x2F;team</a>&quot;) # Step 1: Download the webpage var2 = llm_call([var1], &quot;extract list of names&quot;) # 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, &quot;list of names&quot;): # Step 3: Loop over the list of names var3 = llm_bind(list_item, &quot;WebHelpers.search_linkedin_profile(first_name, last_name company_name)&quot;) # Step 4: Search and get the LinkedIn profile of each person var4 = llm_call([var3], &quot;summarize career profile&quot;) # 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&#x27;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&#x2F;compiler challenges in here. Happy to answer questions if you have them.

no comments

no comments