Could we make the web more immersive using a simple optical illusion?
A bit depressing in some ways. This is a pattern I&#x27;ve seen repeatedly, especially in the last 10 years or so - people want to do something innovative but shoot themselves in the foot up front by insisting it has to be in the browser. Then they discover that browsers are incredibly hostile environments for doing innovation projects, and instead of concluding the obvious (we should do it with a desktop app) they either ship something far worse than their original vision, or decide it can&#x27;t be done at all.<p>This one gives off especially Stockholm Syndrome-y vibes:<p><i>&gt; You need the physical dimensions of your screen, which can’t be queried even in modern web browsers ... That’s precisely what we needed, but MediaPipe Iris isn’t exposed to JavaScript ... Despite our failure to ship this to a massive audience, we still think it’s important to take a step back and marvel at what’s currently possible in modern web browsers ... It’s hard not to be excited about the future of the web right now.</i><p>Seriously? Their project failed to replicate a demo from 2007 partly because browsers don&#x27;t expose the APIs they needed or even basic data you could get easily from Windows 95, yet modern web browsers are a &quot;marvel&quot; and &quot;it&#x27;s hard not to be excited about the future of the web right now&quot;? How is that exciting? How is any of this a marvel? It seems the opposite of exciting to me; it shows that browsers still, after 30 years of continuous development, cannot be used to push technical boundaries.<p>The sad thing is their project didn&#x27;t have to fail. They could easily have shipped Lee&#x27;s demo on Shopify sites by writing a small native app for Windows and Mac, then making it download if the user clicks &quot;View stereoscopically&quot;. The app would have access to the screen geometry and additionally detailed data from the camera driver, which could then be used to look up the necessary data from a Shopify API where they have pre-calculated the metrics for the most popular brands. On Windows the number of clicks required would be identical to in a web browser, because whilst the user would have to click the download in their tray to start the 3D view, as a web app they&#x27;d have to click a permission button to grant webcam access anyway so it amounts to a very similar UX. (On macOS Chrome it&#x27;d take one further click, on macOS Safari it will extract a .app inside a zip for you, so the number of clicks is equivalent to Windows).<p>It&#x27;s because of repeated frustrating experiences like this with teammates in my own prior research projects that I eventually took the time to write Hydraulic Conveyor, because part of the reason devs are so reluctant to go outside the browser is that the distribution DX is traditionally quite terrible. Conveyor makes massive improvements there. The goal is to have a DX similar to shipping a (static!) website and it gets very close to that indeed.<p>Still, even now that distribution is fixed there are other reasons why research teams dig themselves into web-shaped holes like this. Not all of them can be fixed with software:<p>1. Experience. According to the StackOverflow survey, half of all developers have been devs for less than 10 years. We can safely assume that only a tiny minority of them have ever written a native app for Windows or macOS. Also about 50% of devs &quot;dread&quot; working with C++, rising to 60% for C and a whopping 75% for Objective-C, so that&#x27;s not really conducive to working with the Windows or Mac APIs (Swift and C# do better).<p>2. Disinterest in learning. Probably due to &quot;resumé driven development&quot;; we devs always have one eye on the next job and what skills will be attractive to future employers. This can cause appropriate tech to get stuck in a catch-22&#x2F;local minima where people don&#x27;t want to learn it because other employers aren&#x27;t using it, so people don&#x27;t use it, so people don&#x27;t want to learn it, etc. The strongest engineers will figure out what tech is most appropriate for a project and learn it if necessary even if that skill may be a one-off for that employer, but especially for people earlier in their careers they may prefer to aggressively chase what&#x27;s popular to unlock job-hop pay rises.<p>3. The (inaccurate) perception that people don&#x27;t download desktop apps. The proliferation of popular Electron versions of websites and general apathy towards PWAs is perhaps starting to correct this but it&#x27;s still an issue I see sometimes.<p>4. Ideological loyalty. People like the idea of community&#x2F;collectively developed open source tech, for all sorts of valid reasons, but this can easily turn into blindness. A complete failure to implement a 15 year old tech demo despite using vastly more advanced technology is objectively not &quot;exciting&quot; or &quot;a marvel&quot;, it&#x27;s actually quite embarrassing for our whole industry. But if you&#x27;re emotionally committed to seeing technological progress through the lens of an ever larger HTML5 spec and nothing else, then it may seem somehow like this is still progress.