<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Ajit Dhiwal on Medium]]></title>
        <description><![CDATA[Stories by Ajit Dhiwal on Medium]]></description>
        <link>https://medium.com/@ajit.dhiwal?source=rss-e373f1b0c808------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*yyHOrYTqbfLy4CXR.</url>
            <title>Stories by Ajit Dhiwal on Medium</title>
            <link>https://medium.com/@ajit.dhiwal?source=rss-e373f1b0c808------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 23:46:27 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ajit.dhiwal/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Bitcoin’s Dark Side: Uncovering the Hidden Challenges of the Cryptocurrency Revolution]]></title>
            <link>https://medium.com/@ajit.dhiwal/bitcoin-is-the-snake-oil-of-our-generation-2544a1984ce9?source=rss-e373f1b0c808------2</link>
            <guid isPermaLink="false">https://medium.com/p/2544a1984ce9</guid>
            <category><![CDATA[bitcoin]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <dc:creator><![CDATA[Ajit Dhiwal]]></dc:creator>
            <pubDate>Tue, 11 Apr 2023 05:37:33 GMT</pubDate>
            <atom:updated>2024-01-16T15:41:08.341Z</atom:updated>
            <content:encoded><![CDATA[<h3>Bitcoin is mostly worthless</h3><p>In recent years, a digital currency called Bitcoin has made headlines and sparked debate due to its dramatic price fluctuations and growing popularity. With millions of people worldwide investing in this decentralized cryptocurrency, Bitcoin has become a topic of interest for financial experts, regulators, and skeptics alike. Its rapid rise in value has generated considerable wealth for some, while others have experienced significant losses due to its volatile nature.</p><p>In this article, we will examine various aspects of Bitcoin, delving into its history, the underlying technology, and its impact on the global financial landscape. We will present a balanced analysis of this controversial digital currency, discussing its potential risks and drawbacks alongside its benefits and opportunities.</p><h3>Blockchain tech and energy consumption</h3><p>Blockchain is a distributed ledger technology that forms the backbone of Bitcoin. It is essentially a public, digital record of all transactions made using the cryptocurrency. Each “block” in the chain contains a set of transactions, and once a block is completed, it is linked to the previous block using a unique code called a “hash.” This creates a continuous, tamper-proof chain of transaction records that is stored across multiple computers, or “nodes,” which work together to maintain and validate the ledger.</p><p>Bitcoin miners play a crucial role in maintaining the security and integrity of the blockchain by validating new transactions and adding them to the chain. They do this by solving complex mathematical problems using powerful computers. The first miner to find the correct solution, or “winning hash,” is rewarded with newly minted Bitcoins and transaction fees. This process, called “proof of work,” incentivizes miners to dedicate computational resources to maintain the network.</p><p>However, the proof-of-work system has faced criticism for being inherently wasteful, as it requires miners to perform trillions of calculations, most of which are ultimately rejected. This intense competition for the winning hash forces miners to employ more powerful, energy-hungry hardware, leading to escalating energy consumption.</p><p>The energy used in Bitcoin mining has raised concerns about its environmental impact. According to the Cambridge Centre for Alternative Finance, the Bitcoin network’s estimated annualized electricity consumption hovers around 115 terawatt-hours (TWh), which is comparable to the energy consumption of entire countries like the Netherlands or Argentina. This massive energy use contributes to greenhouse gas emissions and exacerbates climate change, prompting calls for more sustainable alternatives to the current proof-of-work system.</p><h3>How governments are reacting to Bitcoin</h3><p>Countries have taken different approaches to regulate cryptocurrencies due to concerns about energy consumption, environmental impact, financial risks, and potential threats to their financial systems. For example, the state of New York in the United States imposed a moratorium on new cryptocurrency mining operations in 2018, citing environmental concerns. Similarly, China, which was once the global hub for cryptocurrency mining, decided to crack down on Bitcoin mining and trading in 2021 due to concerns over financial risks and energy consumption.</p><p>Other countries have implemented restrictions on cryptocurrency trading and usage due to concerns about money laundering, tax evasion, and financial instability. India has had a tumultuous relationship with cryptocurrencies, with the Reserve Bank of India (RBI) imposing a ban on banks and other regulated entities from dealing with cryptocurrencies in 2018, which was later overturned by the Supreme Court in 2020. Despite the overturning of the ban, Indian authorities continue to express concerns about the potential risks associated with cryptocurrencies, and new regulatory measures are under consideration.</p><p>Governments worldwide are grappling with the challenges presented by the rise of Bitcoin and other cryptocurrencies, and many have implemented limitations or restrictions to address these issues. As the cryptocurrency landscape continues to evolve, it is likely that regulatory approaches will adapt to mitigate the perceived risks and negative impacts associated with this controversial financial innovation.</p><h3>Lack of uniqueness</h3><p>While Bitcoin was the first cryptocurrency to gain widespread recognition and adoption, it is by no means the only digital currency available today. Since its inception, thousands of alternative cryptocurrencies, known as “altcoins,” have been created, many of which offer unique features and improvements on Bitcoin’s original design. Examples of such alternative cryptocurrencies include Ethereum, Litecoin, and Ripple, each of which has its own distinctive characteristics and use cases.</p><p>Proponents of Bitcoin often argue that it serves as “digital gold,” citing its scarcity and decentralized nature as key factors that contribute to its value. However, unlike gold, which is a physical commodity with unique properties that cannot be replicated easily, Bitcoin’s digital nature means that it can be emulated or even surpassed by other cryptocurrencies. While Bitcoin’s first-mover advantage and network effects have contributed to its dominance in the market, there is no inherent feature that guarantees its continued preeminence in the digital currency space.</p><p>Dogecoin, a cryptocurrency initially created as a parody of Bitcoin, highlights the fact that digital currencies can be easily replicated and that there is no inherent uniqueness to Bitcoin’s design. Despite its humorous origins, Dogecoin has gained a significant following and market capitalization, demonstrating that alternative cryptocurrencies can indeed challenge Bitcoin’s position.</p><p>In conclusion, while Bitcoin has undoubtedly played a pioneering role in the world of digital currencies, it is not the only option available to investors and users. The emergence of alternative cryptocurrencies, each with their own features and capabilities, challenges the notion that Bitcoin is a uniquely valuable digital asset. As the cryptocurrency landscape continues to evolve, it remains to be seen whether Bitcoin can maintain its dominant position or if it will be surpassed by newer, more innovative digital currencies.</p><h3>Snake oil of our generation</h3><p>Many enthusiasts and proponents of Bitcoin argue that it has the potential to revolutionize the financial world, offering a decentralized, secure, and borderless means of exchanging value. However, detractors point out that cryptocurrency has significant drawbacks that undermine its utility as a means of payment or store of value.</p><p>One such limitation is the high transaction fees associated with Bitcoin. As the network has grown in popularity, fees have increased significantly, making it impractical for small or everyday transactions. In some cases, transaction fees can be higher than those associated with traditional payment methods like credit cards, undermining one of the key selling points of cryptocurrencies: low-cost transactions.</p><p>Additionally, transaction times for Bitcoin can be slower than those of traditional payment methods. While credit card and online transactions are often processed instantly, Bitcoin transactions can take several minutes or even hours to be confirmed, depending on network congestion and transaction fees. This issue is further exacerbated during periods of high demand, making it less suitable for time-sensitive transactions.</p><p>In light of these limitations, critics argue that the excitement surrounding Bitcoin may be a reflection of mass hysteria rather than a rational assessment of its utility and value. It remains to be seen whether Bitcoin can overcome these challenges and live up to the lofty expectations set by its proponents or if it will ultimately be remembered as yet another example of unfounded enthusiasm for a flawed innovation.</p><h3>Security</h3><p>Bitcoin’s public ledger, the blockchain, allows anyone to view and track transactions. While this transparency offers some benefits, the anonymity of users behind the transactions presents a significant challenge. Although each transaction is linked to a unique address, tying that address to a real person can be extremely difficult. This anonymity has attracted criminals, as it allows them to conduct illicit activities and launder money with relative ease.</p><p>For individuals who have experienced thefts of significant amounts of Bitcoin, tracking the stolen funds as they move through the blockchain is possible, but identifying the actual thief and recovering the assets is often impossible. The decentralized nature of Bitcoin and the lack of a central authority to provide support further complicate matters. I faced this personally when 20 bitcoins were stolen from my Mt.Gox account in 2012, but there was nothing that I could do but watch the thief spend my hard-earned bitcoin on the blockchain.</p><figure><img alt="Trying to stop the bitcoin thief" src="https://cdn-images-1.medium.com/max/1024/1*wLYz-RFiW041mZ9J74ZuUg.jpeg" /></figure><p>In addition to individual thefts, several high-profile cases of cryptocurrency theft from corporations and exchanges have made headlines in recent years. These incidents have resulted in the loss of millions of dollars’ worth of cryptocurrencies, eroding trust in the security of the ecosystem. Some notable examples include:</p><ul><li>Mt. Gox (2014): 850,000 Bitcoins stolen (worth approximately $450 million at the time).</li><li>Bitfinex (2016): 120,000 Bitcoins stolen (worth roughly $72 million at the time).</li><li>Coincheck (2018): 523 million NEM tokens stolen (valued at approximately $534 million at the time).</li><li>Binance (2019): 7,000 Bitcoins stolen (worth around $40 million at the time).</li><li>KuCoin (2020): Over $280 million in various cryptocurrencies stolen, including Bitcoin, Ethereum, and Litecoin.</li></ul><p>In contrast, traditional banking systems, with their traceability and human support, provide a higher degree of security and recourse in the event of theft or fraud. In the traditional banking sector, transactions can be more easily traced back to individuals, and financial institutions can offer support and assistance in investigating and resolving cases of theft or fraud.</p><p>In conclusion, the anonymity and lack of centralized oversight in the Bitcoin ecosystem present significant security challenges. While some argue that these features are part of what makes cryptocurrencies revolutionary, they also expose users to risks that are less prevalent in traditional financial systems. The ongoing struggle to balance security, privacy, and usability will be a crucial factor in determining the long-term success and adoption of Bitcoin and other cryptocurrencies.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2544a1984ce9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[We need a better alternative to Web(& Electron) apps]]></title>
            <link>https://medium.com/@ajit.dhiwal/we-need-a-better-alternative-to-web-electron-apps-1853ea32e8db?source=rss-e373f1b0c808------2</link>
            <guid isPermaLink="false">https://medium.com/p/1853ea32e8db</guid>
            <dc:creator><![CDATA[Ajit Dhiwal]]></dc:creator>
            <pubDate>Wed, 26 Feb 2020 01:51:07 GMT</pubDate>
            <atom:updated>2020-02-26T01:51:07.289Z</atom:updated>
            <content:encoded><![CDATA[<p>I’ve been using computers for over 2 decades now. My first PC was a 66 Mhz 486 machine with a 2.4 kbps modem and the web did not even have Google ( We had Altavista ). Since the internet was slow, I spent most of my time with Applications that could be installed on my local machine. Now I spend most of my time on web applications and somehow it feels like we have moved backward rather than moving forward.</p><h3>Memory Usage</h3><p>A few years ago while trying to figure out why I was running out of RAM, I stumbled upon chrome’s task manager. Gmail was using up 700MB of RAM and all I had open was the Inbox. No fancy search box or Compose, the Inbox was taking up 700MB of RAM to display lines of text in a Tabular format. I’ve been a heavy user of Email clients and if you pick any of the native clients (Thunderbird, Outlook, Apple Mail) and open a bunch of searches and compose windows the memory usage will still stay below 100MB.</p><p>I used mIRC a few decades ago to connect to multiple chat servers, run my own bots, serve files over DCC and run scripts all while staying under 20MB of Ram. These days to send a text message over Slack I need over 1GB of RAM. Even basic apps with all of their trackers, external javascript scripts and doms take up 100s of MBs in memory. And the most common solution to running out of memory is to close chrome windows.</p><h3>Battery/CPU Usage</h3><p>DOM is slow. Updating layout and repainting is even slow. Javascript being a dynamic language is slow. Web apps are anything but simple these days and since they have to work under the limitations of all the slow components, the CPU ends up making up for it. Chrome is almost always present in my Macbook’s ‘Using significant energy’ tab. On the other hand, I rarely if ever see native apps in the battery bar unless I’m doing something which should actually consume a lot of CPU cycles like running multiple synths in Ableton or Compiling.<br>When apps are built for mobile, battery usage is a major area to optimize on. But nobody even gives it a thought for web apps</p><h3>60 FPS</h3><p>Mobile apps run on 60fps, Native desktop apps run at 60fps, Games run ( or at least are designed to) run at 60fps. Instagram on chrome starts at 2–3 fps and usually hovers around 30fps. My laptop which is supposed to be more powerful than my mobile phone is only able to churn out half the frame rate even though they are both running at the same resolution! Web apps are not buttery smooth and can be jerky at times. Sure somebody can work really hard and optimize a website to run at 60fps at all times, but it needs a lot of effort. Mobile apps run at 60fps out of the box without much effort.</p><p>Mobile and native apps use the GPU a lot more efficiently. Since they have a lot more information about which controls are being used, they can recycle items a lot better and do a much better job at hardware acceleration via the GPU. Not to mention that you have access to raw graphics APIs in case you want to push UI performance even further.</p><h3>Development Environment</h3><p>You can build desktop apps in a plethora of languages and even for mobile apps you have many cross-platform frameworks. But building for the web(and electron) forces you to HTML/Javascript(and derivates). Javascript is a dynamic prototypical language that was not designed for the scale of apps that are being built in it today. It has no type safety, memory leaks are common and it’s slow due to its dynamic nature. While there have been many efforts to improve performance like V8s JIT, it still lags behind a lot of major languages. WASM seems promising, but it’s still has a long way to go.</p><p>And it’s laughable how weak the browser platform itself is. SQLite is available on raspberry pi, embeddable systems, mobile platforms and just about every other platform on the planet. You can store data, run complex relational queries and do more with so less. But it is not available on the most widely used platform on the planet, the browser.</p><p>With the rise of electron apps, big and bulky web apps have started making their way onto the Desktop. There are some who are even trying to get the same apps on mobile via PWAs. While the web has the advantage of easy accessibility, IMO we have sacrificed too much in terms of user experience for that one convenience. If you built an app with the same UI and functionality in a native language and as a web app, the native app will run circles around it.</p><p>Flutter ,Xamarin and React Native seem to be promising alternatives. A lot of developers are already using them for cross platform mobile applications and these frameworks already have support for basic desktop rendering. If they could make their desktop ports as good as their mobile ports, we might finally have one framework to rule them all.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1853ea32e8db" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Google Stadia should’ve used Windows instead of Linux]]></title>
            <link>https://medium.com/hackernoon/google-stadia-was-launched-a-few-months-ago-to-much-fanfare-8b9466ced176?source=rss-e373f1b0c808------2</link>
            <guid isPermaLink="false">https://medium.com/p/8b9466ced176</guid>
            <category><![CDATA[gaming]]></category>
            <category><![CDATA[stadia]]></category>
            <dc:creator><![CDATA[Ajit Dhiwal]]></dc:creator>
            <pubDate>Sun, 12 Jan 2020 03:05:59 GMT</pubDate>
            <atom:updated>2020-01-15T17:48:12.837Z</atom:updated>
            <content:encoded><![CDATA[<p>Google stadia was launched a few months ago to much fanfare. But the launch hasn’t exactly been smooth and customer interest is lacklustre at best. The service would have been far better had it used Windows instead of Linux.</p><h3>How cloud gaming works</h3><p>Player Input → Network → Input Service -&gt; Game -&gt; GPU Driver -&gt; Operating System -&gt; Video Encoder -&gt; Network -&gt; User</p><p>Google optimized many parts of the above stack. To get the latency from the input to network down, they created their own controller which connects to Wifi. It runs games at 120Hz or 60Hz to ensure that the time taken to render a frame is less than 16ms. Other competing cloud gaming solutions like Parsec, Vortex etc use Nvidia GPUs for video encoding which take 15+ms to encode h264 video and this figure is higher if you do H265 (which is required for 4k video streaming), while Google built their <a href="https://spectrum.ieee.org/tech-talk/telecom/internet/how-the-youtube-era-made-cloud-gaming-possible">special hardware encoder</a> which is able to encode streams much faster. And it is using Google’s Edge servers to make sure that latency is as less as possible for the end-user. Now all of these aspects are custom built and don’t have anything to do with the operating system and hence would have been applicable even if google launched on Windows. The only aspect which would differ is the GPU driver and the Operating System. But software like <a href="https://looking-glass.hostfission.com/">Looking glass</a> can capture frames in Windows in &lt; 10ms and there are many other cloud gaming providers like Geforce Now, Parsec etc which use Windows without any issues. DXGI on Windows is used to capture frames and it is an excellent and versatile framework. And since the role of the operating system is so minimal in the whole flow, that I wonder why Google even chose Linux. While some may point out that Google uses Vulkan instead of DirectX, Vulkan is available on Windows too. So any tooling that Google custom-built for Vulkan should be usable on Windows too.</p><h3>Netflix of Gaming</h3><p>When Stadia first came out people were comparing it to Netflix and it was called the Netflix of gaming. While it is far from an all-you-can-eat service which people thought it was, it is wrong to compare it to Netflix for another reason.<br>When Netflix first started its online streaming service they had one big advantage. They could add any existing movie or tv show to their online library on securing a license. DVD ripping is a straightforward process and only takes a few minutes and all Netflix required to add a DVD was a licensing deal with the content owner. Stadia doesn&#39;t have this luxury since it runs Linux and Game studios barely develop for Linux. So not only does google require a license from the game studio, but it also need the game developer to port it to Linux and to Stadia&#39;s platform. For getting Destiny ready google had to deploy 2 of their <a href="https://www.gamesradar.com/destiny-2s-google-stadia-developers-worked-at-bungie-for-six-months/">engineers in Bungie&#39;s offices for 6 months</a> to make sure that the game could release on time. And even after doing that, the game still runs at 1080p and is upscaled to 4k. Recently there have been reports of Game developers <a href="https://www.phoronix.com/scan.php?page=news_item&amp;px=Linux-2020-Scheduler-Bugs-Stadia">running into problems with the Linux scheduler</a> and with <a href="https://www.realworldtech.com/forum/?threadid=189711&amp;curpostid=189723">Linux Torvalds proclaiming</a> that the scheduler isn&#39;t the issue, these issues won&#39;t be going away soon.</p><p>Had Stadia used Windows, it would have actually been the Netflix of Gaming. Every single game released on Windows would have been playable after securing a licensing deal. Game developers wouldn&#39;t have to make any efforts to port a game to a completely new platform. Rather than waiting months for game developers to figure out issues with Linux and port it to Stadia, it would have been able to add games to its service quickly.</p><h3>Multiplayer</h3><p>Multiplayer is a huge aspect of gaming these days. I have been a gamer for over 20 years now and 99% of the time I play multiplayer games. For me to play a multiplayer game on Stadia, my friends also need to play that game on Stadia. If your friends have gaming PCs then you are purely out of luck since you cannot play with them. Destiny 2 is a social game with many areas full of people, which are notably empty on Stadia. Multiplayer modes like Crucible sometimes end up having match times of <a href="https://www.reddit.com/r/Stadia/comments/e8b4l3/crucible_is_impossible/">more than 15 minutes</a>.</p><p>Had stadia used Windows, they would have been able to tap into the already existing player base. Not only would people be able to play with their friends who already have gaming PCs, but multiplayer modes would have been much easier to join. Lobbies would have a lot easier to fill up and MMORPGs like Elder Scrolls Online would actually make sense.</p><h3>Game ownership</h3><p>Since Stadia purchased on Stadia remain in the cloud, you won&#39;t be able to play the game in case Stadia shuts down. And given the huge number of products which have been <a href="https://killedbygoogle.com/">killed by Google</a> in the past, this is also not very unlikely. And games need to be purchased on Stadia just like any other platform. So if you own a game on PC or other consoles, you still need to purchase it again. A lot of other cloud gaming services like Parsec, Vortex allow you to bring your own PC license. So even if those services shut down, you would still own the game and be able to play it on your own gaming PC. As someone who owns over 120+ games on Xbox , it gives me anxiety to think about what would happen if suddenly one day my whole game collection was unplayable.</p><p>Had stadia used windows, people would have been able to easily download their purchased games in the event of Stadia shutting down.</p><p>To summarize, Google Stadia would have been a much better service had they used Windows. It would have had more games, full lobbies, ability to play with friends who are on PC and be devoid of problems with game ownership. Game Studios would have been able to launch their game on Stadia with zero or negligible effort. For a company like Google, the cost of Windows licenses would be minuscule compared to the cost of sending over its engineers to debug issues faced by game developers. And while they have done an impressive job at solving the other tech problems like no other cloud gaming provider, they erred by choosing the wrong platform where it matters most. The problem that Google is trying to solve today is to make Linux a gaming platform. A problem that very few people care about.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8b9466ced176" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hackernoon/google-stadia-was-launched-a-few-months-ago-to-much-fanfare-8b9466ced176">Google Stadia should’ve used Windows instead of Linux</a> was originally published in <a href="https://medium.com/hackernoon">HackerNoon.com</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why I’d never subscribe to Google Stadia]]></title>
            <link>https://medium.com/hackernoon/why-id-never-subscribe-to-google-stadia-4e0e4fa55c46?source=rss-e373f1b0c808------2</link>
            <guid isPermaLink="false">https://medium.com/p/4e0e4fa55c46</guid>
            <category><![CDATA[cloud-gaming]]></category>
            <category><![CDATA[gaming]]></category>
            <category><![CDATA[google-stadia]]></category>
            <dc:creator><![CDATA[Ajit Dhiwal]]></dc:creator>
            <pubDate>Thu, 14 Nov 2019 10:37:31 GMT</pubDate>
            <atom:updated>2025-04-25T19:44:22.902Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="http://hackernoon.com/why-id-never-subscribe-to-google-stadia-4e0e4fa55c46">Why I’d never subscribe to Google Stadia</a></p><p>Google stadia is due for release soon and having been a gamer for 20 years I was really interested in it. But the more I read about Stadia, the less interested I become. My primary machine to play games is an Xbox One which I purchased 4 years ago. It has started showing its age and I’m anxiously waiting for the next-gen consoles which are due to arrive next year. I was primarily exploring stadia as a temporary gaming device which I could use before getting a next-gen console, but gave up on the thought after reading more.</p><ol><li>Lack of popular multiplayer games</li></ol><p>I mostly play multiplayer games and so do most of my friends who are gamers. Apex Legends, Fortnite, PUBG, Call of Duty, League of Legends, Halo etc. These games also happen to be the most streamed games on Twitch. While there are certain single-player titles that make it to the top 10 streamed games on twitch, it’s usually short-lived. Stadia supports none of them. Would you really buy a console today, or purchase one on EMI if it did not have the multiplayer games that your friends play?</p><p>2. Can’t play with PC players</p><p>While the Stadia launch list of games isn’t very appealing, I was excited about Destiny 2. I play it on my Xbox and figured that maybe I could repurchase the game on Stadia so that I can play with my friends who are on PC. But that isn’t supported either. You can only play with other stadia players and game developers will have to implement cross-play to allow stadia players to play with other platformers. This is a bummer and I wonder how games like Elder Scrolls online will work. Game lobbies are going to be hard to fill up.</p><p>3. Crazy data usage</p><p>Streaming at 4k is going to take up about 16 GB of data per hour, which is 1TB in 65 hours. 1 TB also happens to be the data cap limit of many popular internet service providers. So you would essentially be using up all of your monthly data cap by just playing stadia for 2 hours every day. Binging on games is going to cost you a lot. A single-player game that you could play on a PC/console with your internet off, now requires a high bandwidth always-on broadband connection.</p><p>4. Lag</p><p>Ask any gamer what they hate most about gaming and the answer is going to be a unanimous ‘LAG’. Nothing is more frustrating than shooting a shot first but being killed because of latency.</p><p>Here’s how the pipeline works for a game that you play on console or PC</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/671/1*FKgjNdszYzr-i6G_48-72g.png" /></figure><p>Anything more than 100ms is perceived by the human brain as not instantaneous. And even with the best of setups, it’s hard to counter latency and lag on a PC/Console. The above image is going to look very different for Stadia.</p><p>After mouse/controller input, you have network latency which would send your input commands over to Google’s server. After GPU time, you have HEVC encode time ( I’m assuming Stadia is using HEVC since 4k on h264 would consume mammoth amounts of data and won’t look good either). That would be followed by another step of network latency to transfer this data to your computer/tv . And since the video data would be HEVC, your local machine will also have to do HEVC decoding ( which isn’t cheap). So in addition to all the latency that you get on a PC, you have 4 new steps that have been added to an already slow process. While Google has made a few optimizations like forcing games to run at 120fps to bring the frame latency down, but that’s still small compared to the other sources of latency which get added due to it being a cloud service.</p><p>5. Lackluster exclusives</p><p>Exclusives play a big role for consumers to decide what console/service to play. I got the Xbox because I am a huge fan of Forza and Halo. Xbox One had Gears, Forza Motorsport and Horizon, Halo , Titanfall as exlusives. PS4 also had a stellar lineup with God of War, Last of Us, GT, Yakuza and so on. Stadia has one exclusive game and it is Gylt by an Indie publisher. While the game might be good, but does Google really think that an Indie game exclusive is going to draw people to their gaming service? Halo was an exclusive which is widely credited with original Xbox’s success, I doubt if Gylt would do the same for google.</p><p>6. Power</p><p>Google has the upper hand here with 10.7 Teraflops compared to 6.0 on the Xbox one X and 4.2 on the PS4 Pro. But those consoles have to only run at 60fps, unlike stadia which needs to run at 120fps for decreased frame latency. So it’s unlikely that Stadia is going to provide an experience that is better fidelity than the current-gen consoles.</p><p>And let&#39;s not forget that the current-gen consoles are almost EOL and new consoles are due to be launched next year. They are obviously going to be vastly more powerful than current-gen consoles, and would easily surpass Stadia’s computing power. And all of them have promised ray tracing support, which stadia lacks.</p><p>So I’m going to give Stadia a pass. Maybe there is a certain type of casual gamer who would prefer to use stadia, but even for them, a console is going to provide a much richer experience.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4e0e4fa55c46" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hackernoon/why-id-never-subscribe-to-google-stadia-4e0e4fa55c46">Why I’d never subscribe to Google Stadia</a> was originally published in <a href="https://medium.com/hackernoon">HackerNoon.com</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to solve missing push notifications in Android]]></title>
            <link>https://medium.com/hackernoon/notifications-in-android-are-horribly-broken-b8dbec63f48a?source=rss-e373f1b0c808------2</link>
            <guid isPermaLink="false">https://medium.com/p/b8dbec63f48a</guid>
            <category><![CDATA[notifications]]></category>
            <category><![CDATA[android-notification]]></category>
            <category><![CDATA[push-notification]]></category>
            <category><![CDATA[broken-notifications]]></category>
            <category><![CDATA[android]]></category>
            <dc:creator><![CDATA[Ajit Dhiwal]]></dc:creator>
            <pubDate>Tue, 18 Sep 2018 13:19:43 GMT</pubDate>
            <atom:updated>2019-05-22T05:30:16.634Z</atom:updated>
            <content:encoded><![CDATA[<p>Android is the most popular mobile operating system now with more than 76% market share. This has, in part, been possible due to its open nature and the multiple vendors which ship Android on their devices. But it also has huge problems in terms of fragmentation. For e.g Android Oreo was released in August 2017 and iOS 11 was released in September 2017, Oreo has 14.2% market adoption and iOS 11 has 85% even though Oreo had a headstart. To get to 85% adoption, you need to target <a href="https://hackernoon.com/tagged/android">Android</a> Kitkat which was released in Oct 2013. Though this is only the tip of the iceberg.</p><p><strong>Missing Notifications</strong></p><p>I was the lead for Flock Android, a team messaging app which competes with the likes of Slack. We started receiving some weird complaints from users about missing notifications. Now since it was a business messaging app, notifications were critical. We tried out everything to reproduce this issue, including bombarding devices with notifications using test scripts, trying out different networks but we just could not reproduce the issue reliablity. Worse we had a couple of incidents with devices in our team but logs showed absolutely nothing. Google GCM said that the notification was sent but there was no trace of the notification in the app’s logs, it was as if the OS was swallowing notifications. And somehow popular apps like whatsapp, facebook were immune to these issues. The final nail in the coffin was the CEO himself missing notifications on some occassions. Google was unhelpful as usual with their non existent dev customer support. We were able to find a bunch of support articles on the internet where other apps had essentially listed down steps to turn off battery optimizations and that seemed to work ( Interestly whatsapp, facebook are usually added by default in these lists). But there was no way to do it automatically and while we could also do it in response to a support ticket, it can be painful for users.</p><p>After a couple of days we were able to encounter a few missed notifications on a oneplus device which we had connected to a machine taking system logs. And voila we got a few lines of what was happening.</p><p>01–12 09:05:23.649 2719 2839 I ActivityManager: [BgDetect]chkExcessCpu level: 0 doKills: true auto_mode: false uptime: 183054<br>01–12 09:05:23.661 2719 2839 I ActivityManager: [BgDetect]detect excessive cpu on process to.talk(pid : 13406) level 0 usage 29<br>01–12 09:05:23.892 2719 2839 I ActivityManager: [BgDetect]force stop to.talk (uid 10151) level 0<br>01–12 09:05:23.893 2719 2839 I ActivityManager: Force stopping to.talk appid=10151 user=0: from pid 2719<br>01–12 09:05:23.893 2719 2839 I ActivityManager: Killing 13406:to.talk/u0a151 (adj 200): stop to.talk</p><p>Apparently some process called BgDetect figured out that our app was taking too much CPU and decided to kill it. Android being open source, we figured that we should be able to get sources for bgdetect. But not only could we not find BgDetect in Android sources, it was non existent on oneplus sources too. We then got in touch with our marketing team and reached out to some contacts at oneplus, who directed us to their dev team. They asked for our apk and voila , in a week we were whitelisted along with the likes of Whatsapp and Facebook.</p><p>But the issue persisted on Xiaomi, Oppo and a bunch of chinese manufacturers and for those we still had to dish out steps to whitelist Flock in battery optimizations. Apparently these devices have the concept of autostart build in on top of standard android.</p><p><strong>Autostart</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/180/1*vG0sWmEHwOVB6_ilQ_RFBw.jpeg" /></figure><p>In Android, a push notification wakes up an application/service which in turn displays the push notification. In case an application is force killed, then the system will not wake up the application. We discovered that on some devices like Xiaomi , our app would not wake up at all and by default started as force-killed. The only way to avoid this was to be a part of an ‘autostart’ list, which denoted apps which could wake up ( ‘auto start’ ) after being closed.</p><p>Though for convenience, manufacturers choose to auto add popular applications like Facebook , Whatsapp etc by default. And since we were an upcoming startup there was no way we could make it in there by default. Since a significant chunk of our users were from India, the complaints kept getting more frequent as we got more users and people started posting negative reviews. We had to find a solution. We also realized that this was pretty common, there are multiple websites which have FAQ pages dedicated to making notifications work on Android. For e.g. <a href="https://support.hike.in/hc/en-us/articles/230604667-Optimizing-message-receive-experience">Hike </a>, <a href="https://www.forbes.com/sites/bensin/2017/07/28/how-to-fix-push-notifications-on-oppo-phones/#547d9b231735">Forbes</a> , <a href="https://www.androidcentral.com/how-fix-push-notifications-miui-8">AndroidCentral </a>etc .</p><p><strong>Using double-acks to detect missed pushes</strong></p><p>To solve the problem, we first had to figure out which users are missing notifications. While the standard HTTP GCM Push API doesn’t give you delivery receipts, the XMPP API does. GCM delivery receipts essentially tell you whether the device received the push notification or not. We coupled this with duplicate notification delivery receipts from inside of the app. So any device where we got ack’s from GCM but not from the device, was potentially missing pushes. Once the devices were identified, we started sending them bot messages on how to add flock in their device’s auto-start list.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bUj_k9YTPfX39c4OYwkgbA.png" /><figcaption>Architecture to determine missed pushes</figcaption></figure><p><strong>Conclusion</strong></p><p>Android is an incredibly fragmented ecosystem, which only seems to be getting more fragmented. While <a href="https://hackernoon.com/tagged/google">Google</a> is making some determined efforts to solve this via Project Treble and other initiatives, it cannot stop manufactures from adding additional features like autostart. Autostart helps slower devices feel faster by keeping fewer apps in memory and manufactures of low-end devices will continue to use it. Android seems to be following the footsteps of Desktop Linux , with every manufacturer essentially creating their own custom distribution. The future for Android only seems to be only more fragmented.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2Fdde502%3Fas_embed%3Dtrue&amp;dntp=1&amp;url=https%3A%2F%2Fupscri.be%2Fhackernoon%2F&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/3c851dac986ab6dbb2d1aaa91205a8eb/href">https://medium.com/media/3c851dac986ab6dbb2d1aaa91205a8eb/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b8dbec63f48a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hackernoon/notifications-in-android-are-horribly-broken-b8dbec63f48a">How to solve missing push notifications in Android</a> was originally published in <a href="https://medium.com/hackernoon">HackerNoon.com</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[`FlockOS : World’s first chat operating system]]></title>
            <link>https://medium.com/hackernoon/flockos-worlds-first-chat-operating-system-bdf367b4b34c?source=rss-e373f1b0c808------2</link>
            <guid isPermaLink="false">https://medium.com/p/bdf367b4b34c</guid>
            <category><![CDATA[slack]]></category>
            <category><![CDATA[flock]]></category>
            <dc:creator><![CDATA[Ajit Dhiwal]]></dc:creator>
            <pubDate>Thu, 06 Jul 2017 15:07:58 GMT</pubDate>
            <atom:updated>2019-05-22T05:30:17.318Z</atom:updated>
            <content:encoded><![CDATA[<p>Team messengers have taken the world by storm. I still remember using Lync in my first company 8 years ago and it was pretty basic. While the kind of integration that it provided with outlook and other <a href="https://hackernoon.com/tagged/microsoft">microsoft</a> software was exceptional, it was still limited to just chat. <a href="http://www.slack.com/%E2%80%8E">Slack</a>, <a href="http://www.hipchat.com/">Hipchat</a>, <a href="https://products.office.com/en-us/microsoft-teams/group-chat-software">Microsoft Teams</a>, <a href="http://flock.com/">Flock</a>, <a href="http://twistapp.com/">Twist</a> etc are the new breed of team chat software and they aim to improve productivity and offer much more than just ‘<a href="https://hackernoon.com/tagged/chat">chat</a>’.</p><p>With <a href="http://flock.com/">Flock</a> one of the things that we have tried to accomplish is to create a platform which is more easy to use and extensible than anything else out there. We believe that it is so powerful that it can be considered amongst the like of other <a href="https://en.wikipedia.org/wiki/WebOS">webOS’s</a> like zeroPC and eyeOS.</p><p>With <a href="https://docs.flock.com/">FlockOS</a> , we set out with the following goals in mind:</p><ul><li>Apps should feel like they are a part of the native interface</li><li>App discovery should be easy so that it benefits users and app developers</li></ul><p>Here’s what we have accomplished so far</p><p><strong>Apps should feel like they are a part of the native interface</strong></p><p>Some platforms rely on ‘slash commands’ for apps to be triggered. So to create a poll you have to type a syntax in this format</p><blockquote><em>/poll “Pool question in double quotes” “first option in double quotes” “second option in double quotes”</em></blockquote><p>To create a note</p><blockquote>/notes my private note</blockquote><p>To list notes</p><blockquote>/notes list all</blockquote><p>And so on. Every single app you install adds a bunch of commands which you now have to remember. Slash commands are only useful for a certains section of tech-savvy users. They are incredibly hard to remember and cumbersome to use since they involve multiple parameters all of which can take different values. I have been using linux for more than 10 years now and still don’t remember the order of parameters for find.</p><p>So while flock provides slash commands, we also provide various hooks inside of the UI from where a user can launch apps.</p><p>There are 3 major areas where developers can choose to show their app icons.</p><ul><li>App Launcher</li><li>Chat tab buttons</li><li>Attachment picker</li></ul><p><strong><em>Apps launcher bar</em></strong></p><p>This bar lists down all the apps that you have currently installed which can be launched standalone. So you can use this to directly launch an app. For e.g. over here I have launched the github app in a sidebar from the app launcher bar(far right) to checkout the recent commits in a repo.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D8Gk7im89d4mTpKuDqOQAw.png" /><figcaption>App launcher on the far right</figcaption></figure><p><strong><em>Chat tab buttons</em></strong></p><p>Every single messaging app out there has some actions that you can perform on the current chat which are contextual in nature. Flock allows you to create apps which can take this context from the current chat tab.</p><p>For e.g if you wanted to view to-dos shared between you and another person, you just open his chat tab, tap on the to-do’s chat tab button and get a list of all to-dos between you and that person.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u5VZelPpOBAvNywx2wYvww.png" /><figcaption>Chat tab buttons on the top right</figcaption></figure><p><strong><em>Attachment picker</em></strong></p><p>Most communication softwares allow you to add an attachment. Email allows you to attach files, pictures etc. IM goes a step ahead and apps like whatsapp allow you to attach your location, audio clip, camera clip etc. With flock we have exposed this area to developers too.</p><p>This allows you to create apps which can add absolutely any kind of content to the chat window.</p><p>For e.g. ‘a poll’ . If you have to poll app installed, then you can just click on the ‘poll’ attachment button which will popup a html modal window where you can add the options. Similar for notes, just click on the notes attachment button and it will popup a modal window in which you can type out your note with a full rich text editor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UtSltXqeHB4njRdKPv7XyA.png" /><figcaption>Attachment picker buttons on the bottom left</figcaption></figure><p><strong>App discovery should be easy</strong></p><p>Instant messaging is slowly moving to a paradigm where apps are just as important, if not more, than the instant messaging platform itself. We believe that slash commands are bad for app developers and users both. Not only are they hard to discover and learn for new users ( which parameter goes first, order of command like parameters etc) ,they are bad for the app developers too since they barely get any exposure. A slash command is just a text and the opportunity for a developer to do branding is quite less. We believe that branding in apps is important, since this ensures that user’s can recommend high quality apps to other people and it also provides much needed exposure to app developers.</p><p>In flock we tried to solve this by making sure all apps have app icons. This way apps are always visible in the main interface and people can start using them right from day 1 of their job which having to learn what apps in flock are. Some non tech savvy people don’t even realize that they are using an external app ! This allows you to customize flock completely for your team, it you are a marketing team all the buttons on your flock interface can be marketing apps, same goes for tech, design and even colleges ! Since apps are in html/js you can even create apps which only run inside of your team and can access internal APIs ! Best part is that these apps will run across mobile, web and desktop.</p><p>FlockOS has always focussed on developers. As developers we understand that you also deserve visibility for an app. In case of slash commands, all the user sees is a name of your app. Which is why we have provided multiple hooks for app developers to showcase their icons. This greatly helps brand recall. So if your to-do app is the best, users can easily recall it while installing it in a new team or while suggesting it to a friend because they would be familiar with your app icon. Since all apps are html/css based you can provide your own UI/UX to change the look and feel of the app. We believe that UX is also an integral part of an app experience and this is something that developers can use to improve how user’s interact with their app.</p><p>We are just getting started, while the first version of <a href="https://docs.flock.com/">FlockOS</a> is stable and you can start building apps for it right now, there is still a long way to go. We would love to hear feedback and suggestions from the developer community on how we can make this platform better.</p><p>Disclaimer: I work for flock and can be reached directly at ajit.dh AT flock dot com</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2Fdde502%3Fas_embed%3Dtrue&amp;dntp=1&amp;url=https%3A%2F%2Fupscri.be%2Fhackernoon%2F&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/3c851dac986ab6dbb2d1aaa91205a8eb/href">https://medium.com/media/3c851dac986ab6dbb2d1aaa91205a8eb/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bdf367b4b34c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hackernoon/flockos-worlds-first-chat-operating-system-bdf367b4b34c">`FlockOS : World’s first chat operating system</a> was originally published in <a href="https://medium.com/hackernoon">HackerNoon.com</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>