Hacker News new | ask | show | jobs
by because_789 1461 days ago
It is really cool to be able to open a browser in your desktop and visit your website, recursively. How many levels deep have you tested this?
3 comments

I was only able to go 1 level deep. I could open the top level browser and load the site which allowed me to open another browser but that wouldn't load the site.
Properly coded, there is no reason to assume, that it would not work for an arbitrary depth. Considering, that this is on a website, and that it is running JS, which in most implementations does not implement tail call elimination, coding it properly probably involves externalizing the stack.
The browser is just an iframe, so tail call optimization isn’t relevant.

https://github.com/DustinBrett/daedalOS/blob/b1681546a2ce990...

I tried on my phone, and found that I ran out of screen space before it stopped working.

It was interesting, seeing all of the clocks tick, one above another, second after second.