How this was built: Real-time systems
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.
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.
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.