News for hackers. Stuff that matters.
Re:PyPy 2.5.1 released by alexanderblom on Thursday March 26, 2015 @07:15AM (#9268801)
Do you have any resources for this? I was thinking of looking into that but don't know where to start.
Re:PyPy 2.5.1 released by orf on Thursday March 26, 2015 @07:20AM (#9268813)
BrainFuck is a great place to start because it's pretty simple. I started with this post on the PyPy blog: http://morepypy.blogspot.co.uk/2011/04/tutorial-writing-inte...

This repository helped as well: https://github.com/thoughtpolice/bf-pypy

Getting a basic interpreter working wasn't hard, but I attempted to add a few of the optimizations listed here[1], which meant adding some form of AST and stuff to manipulate it. This is where I got a bit stuck with regards to performance as some of my optimizations meant the program should have been faster, but instead it slowed down.

1. http://calmerthanyouare.org/2015/01/07/optimizing-brainfuck....

Re:PyPy 2.5.1 released by sanxiyn on Thursday March 26, 2015 @07:31AM (#9268841)
PyPy project maintains an example interpreter to learn from.

https://bitbucket.org/pypy/example-interpreter