PseudoCompiler: Online AQA Pseudocode to Python Converter

Code Translation
Real-time Execution
AI Chat

How this was built: Real-time systems

What is PseudoCompiler?

PseudoCompiler (pseudocompiler.org) is an online tool that turns AQA pseudocode into Python 3 as you type. AQA pseudocode is the style used in AQA Computer Science exams in the UK. Students can run the code straight away, see the output, and ask a built-in AI chat for help with errors.

Translating one language into another is harder than it looks. Every line has to be broken into tokens and rebuilt as valid Python. That lexical translation work was the most interesting part of the project for me.

Speed and scale

The translator responds in under 50ms and is more than 98% accurate. It runs on FastAPI and WebSockets on AWS, and it scaled to more than 50,000 concurrent users. I also cut infrastructure costs by 35%, so the company could serve more students with a smaller AWS bill.

How the translator and AI chat work

Code runs over WebSocket connections, so the output streams back live. Each run happens in its own Docker container, which keeps every user's code isolated. The AI chat uses OpenAI GPT-4 to catch syntax errors before the code runs and to suggest improvements. LangChain manages the multi-step translation flow, and MongoDB stores user sessions and translation history.


Tech Stack

Python logo
Node.js logo
Docker logo
FastAPI logo
OpenAI logo
LangChain logo
MongoDB logo

Available at