Hacker News new | past | comments | ask | show | jobs | submit | alexanderblom's comments login

Do you have any resources for this? I was thinking of looking into that but don't know where to start.


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....


PyPy project maintains an example interpreter to learn from.

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




It is not actually Google Cast but hooks into the same UI for Youtube. Casting Youtube is pretty robust.


One way of doing it is having an out-of-bands way of refreshing tokens in responses. So if the token is about to expire you can return an updated one on the side-channel.


We've been doing this for a while in our angular apps using response interceptors: http://engineering.talis.com/articles/elegant-api-auth-angul...


This is a great write-up.


Wiki [1] and OSDev [2] both have pretty solid articles if you want to know how to load an ELF into memory.

I used both when implementing ELF for my hobby kernel [3]

[1] http://en.wikipedia.org/wiki/Executable_and_Linkable_Format

[2] http://wiki.osdev.org/ELF_Tutorial

[3] https://github.com/lexs/rust-os/blob/master/rost/exec/elf.rs


Go doesn't really work because it needs a runtime (as far as I know). Rust however is quite useable. There's a couple of kernels, including one by me: https://github.com/lexs/rust-os


And the app doesn't look native to Android either. Some things are inherently non-Android, such as bottom tab-bars. All images are also low-res on my Galaxy Nexus and scrolling is laggy.

There are some great bugs as well: * It loads the wrong images and the flickers in the correct image later * Everything says "0 listings" * Clicking the map button crashes the app * It's very hard to sidescroll their custom ViewPager


WHen the article complains all the time about how it's oh so hard to deal with all those screen sizes I was expecting a terrible app and I was not surprised!

* Has <b> tags instead of actually bolding text

* Shows the price in my locale's format, not what they're actually charging!

* Intro movie is very annoying, and after it's done it moves around a few pixels every 10 seconds or so

* Sign in screen has a massive logo but the email and password fields don't fit on my Galaxy Nexus

That's after about 10 minutes using the app!


Same here in Sweden. ; is mapped to ö here :(


and = is at + (swedish)


The timeline/feed is not a WebView from what I can see. The news part/tab is though (which is displayed in the screenshot).


Consider applying for YC's Summer 2025 batch! Applications are open till May 13

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: