Priyan R (@priyanr) profile picture

.NET Developer | .NET | C# | JS | HTML | React | Cloud | Kubernetes | Electronics & embedded systems Hobbyist

Joined November 2008
Photo by Priyan R (@priyanr)Photo by Priyan R (@priyanr)Photo by Priyan R (@priyanr)Photo by Priyan R (@priyanr)Photo by Priyan R (@priyanr)Photo by Priyan R (@priyanr)Photo by Priyan R (@priyanr)Photo by Priyan R (@priyanr)Photo by Priyan R (@priyanr)Photo by Priyan R (@priyanr)
Let all coding agents & humans wait
16
DiffViewer: a git diff viewer for Windows that uses ~1.4 MB of RAM and opens in ~50 ms. * One 100 KB exe in plain C + Win32. Side-by-side diffs, changed-word highlights, 18 languages, live refresh while your AI agent edits. github.com/priyanr/DiffViewe…
27
Continuing my experiments with LLMs: my 64-bit Toy OS now runs on ARM, on a Raspberry Pi 3! • Same shared kernel and shell for x86_64 and AArch64 • Pi drivers: HDMI framebuffer, SD card (FAT32), USB keyboard, HDMI audio • Own Bluetooth LE stack, so an Xbox Wireless Controller pairs with no OS support • Playing Paratrooper (1982) on bare metal with the Xbox controller 🎮 github.com/priyanr/AGOS #osdev #LLM #AI #c11 #x86_64 #gemini #opus
78
Continuing my experiments with LLMs, here is a 64-bit Toy OS! • 64-bit SMP , Paging , HAL (currrently Intel only) • Native ext4 • Built-in hard disk installer & FS utilities (fdisk, mkfs, cd, cp) • Runs on VMware default SATA disk with 0 tweaks • First programming language and game i used, gwbasic and paratrooper ( CGA & PC speaker) Code github.com/priyanr/AGOS #osdev #LLM #AI #c11 #x86_64 #gemini
4
4
220
My dear friends, something important. I am deeply honored to share that I am one of the eight finalists globally shortlisted for the 2026 John Maddox Prize. Established in 2012 in memory of Sir John Maddox (the legendary former editor of Nature and Fellow of the Royal Society), this global prize, spearheaded by Sense about Science and supported by the Royal Society. It was previously co-awarded by Nature. And honors individuals who stand up for sound science and evidence in the public interest, advancing critical discussions despite facing hostility, powerful vested interests, and severe obstacles. For me, an India-based science communicator and clinician, this recognition carries immense weight. This is the very first time a resident from the Indian Subcontinent has been shortlisted for the Maddox Prize. Speaking truth to power against pseudoscience, predatory health misinformation, and unscientific traditional remedies in a cultural and political ecosystem that heavily endorse them, comes at a steep personal, legal, and professional cost. To stand alongside seven extraordinary global finalists—from public health researchers working under fire in Gaza, to scientists defending rigorous evidence in the UK, France, Bolivia, Mexico, New Zealand, and the US—is deeply humbling for me. I may or may not win. But with this shortlist, India’s advocacy for evidence-based medicine has a place on this global stage. Our patients, our public conversations and our struggles to defend scientific integrity matter beyond our borders. I hope this encourages more doctors and researchers across India, the wider subcontinent and West Asia to speak openly, engage the public and stand by sound evidence. Whatever the result, the work continues. Jai Hind. Please read the official announcement and details of other candidates here: senseaboutscience.org/activi…
640
763
79
6,584
164,980
Introducing PersonalAI, a self-hosted personal agent platform that runs on your own hardware with a local LLM or a cloud AI provider. What it does: 🔌 Pluggable AI providers: Ollama (local), OpenAI, Azure OpenAI and DeepSeek, behind one interface 🛠️ 11 built-in tools: web search, files, HTTP, Gmail, network scan, desktop control and more 📦 Docker sandboxes: one isolated container per chat or agent run, for running real code 🧩 Skills: reusable prompts with an explicit allowlist of tools and secrets ⏰ Agents: run your Skills on a schedule (once, interval or cron), with a full transcript of every run 🔐 Secrets vault: the model only ever sees {{secret.KEY}} placeholders, never the real values ✅ Human approval for risky actions, and turns that keep running even after you close the tab Built with .NET 10, ASP.NET Core, EF Core + SQLite, Next.js /React 19 ⭐ Code: github.com/priyanr/PersonalA… 📝 Full write-up: blog.priyan.in/2026/10/intro… #AI #LLM #AIAgents #Ollama #dotnet #sandbox #aisandbox #aiharness
2
1
4
288
I fed the same 16 KB 1982 DOS game, Paratrooper, to several LLMs and told each to port it to C#. - GPT 5.6 Sol (two tries) rebuilt it from a disassembly, but game logic was missing both times. - Astra 6 emulated the CPU running the original assembly. It looked right but played wrong. - Claude Opus 5.5 wrote a real source port that matches the original, sound included. Code and the full history: github.com/priyanr/Paratroop… #OPUS #PARATROPPER
71
34KB executable, 1.2 MB memory usage, native executable built fully on the web. VB6 Studio Web — a browser-native classic Visual Basic IDE. Build on the web, download single executable. wieslawsoltes.github.io/VB6/
27
50
9
387
18,622
Its year 2026, its weekend and this is just crazy wieslawsoltes.github.io/VB6/
21
36
9
307
28,686
An AI experiment: porting my favourite game, Prince of Persia (released for the Apple II in 1989), from its original 6502 assembly source to C#, done entirely by AI, without me touching the code. Read the full story: blog.priyan.in/2026/09/analy… @jmechner #princeofpersia
1
1
37
26,228
Something important. Dear friends, my recently concluded talk is now available to watch on YouTube. Before I started my session, I put out a disclaimer that alternative medicine practitioners seated in the audience might find my talk extremely triggering. This is one session I thought would be taken down by alternative medicine (Ayush) regulators in India... ...because I do not mince my words at all, about the massive public-fund wastage called Ayush. For students who are planning to join Ayurveda or Homeopathy or such Ayush-related colleges for professional training... or those parents who are planning to send their children to Ayush - especially Ayurveda-related professional colleges to make a career out of it, this video will mess up your mind - and rightly so. This is one video, which I would like everyone to watch, share and promote.... especially among those trying to get into alternative medicine colleges in India as a career option because they will be given the title of 'Dr". Let us stop wasting our childrens future in India by sending them to a career of deceit and fraud - in alternative medicine - just for the legal (but never practical or logical) 'Dr' title. Sacred Poisons | The Liver Doc | RenaiESSENSE'26 youtu.be/jQDmse4Jod0 via @esSENSEGlobal
13
191
12
856
82,313
Dear friends, good morning! For the BBC, Vikas Pandey, India Editor came all the way down to Kochi to spend time with me. bbc.com/news/articles/c39y7w… He visited my home, spoke to my family and friends, and then spent two whole days with me in my outpatient department at Rajagiri Hospital, watching me diagnose and treat patients and interact with their family. This report is the culmination of that visit and I am very glad for this opportunity. I hope you will like this read. Loved and loathed: The making of India's viral liver doctor bbc.com/news/articles/c39y7w…
161
596
32
3,975
292,494
Dear friends, I have something important to tell you. In December 2024, 'researchers' from multiple Indian Government Homeopathy institutions along with 'researchers' from Israeli Homeopathy institutes, published a randomized controlled trial that concluded that use of Homeopathic formulations in children during first 24 months of life reduced infections and antibiotics use compared to 'standard of care.' This was published in the prestigious European Journal of Pediatrics. The study was viral. It was all over the media and news here in South India and also in some National media and was Whatsapp 'proof' of Homeopathy being better than modern medicine in infants. The study was used to promote anti-vaccine sentiments and Homeopathy products in South India. Homeopaths hailed the study as 'path breaking' - also because the Ayush Ministry and Government Homeopathy practitioners were study authors involved in it. I read the study. I am trained in advanced statistics and research writing. The study was utter nonsense. And fraud. It looked like the authors did not even actually perform the study. I really doubted whether any patients were involved at all. I wrote a letter to the editor of the journal, asking him to kindly review the paper and investigate 'scientific integrity' and ethics. And after nearly 10 months of investigations by the Journal, Publisher and Research Integrity Team, we were proven correct. The paper was fraud and now it has been RETRACTED. @RetractionWatch The lesson here is that, if people really did understand what Homeopathy is and what its practitioners are, it is easy to find that it is clearly fraud. There is nothing in Homeopathy that works. It is unscientific utter nonsense. Every positive study on Homeopathy is mostly published in 'Homeopathy' journals. Sometimes, it infiltrates a real, valid journal (like in this case) and then it gets retracted because the scientific community is always alert. There are many such instances: See - pmc.ncbi.nlm.nih.gov/article… and nature.com/articles/s41598-0… and nature.com/articles/s41598-0… The worst part here is that all these Homeopathy practitioners who are authors of the study are working in Indian Govt. public health sector - meaning, their salary is paid from public funds and citizens taxes. These wastrels are eating away our hard earned money and using it to fund fraud. Who will stop these criminals? Even worse, the fraud, now retracted study was published as 'open access' in the European Journal of Pediatrics - which means, the authors paid £3090.00 GBP or $4990 USD, or €3990 EUR equivalent in INR to publish fraud. Where did they get this money from? Yes. Indian public tax money. Homeopathy needs to be booted out of this country. Parents, do not send your children to study Homeopathy even though India offers a 5 year course and gives them a "Dr." title at the end of it. They are not doctors. They are legitimized frauds and legalized quacks, as you can see from this retraction. "Homeopathy is a lively relic of the prescientific era. Not healthcare." @arifhussaintm Link: link.springer.com/article/10…
138
1,057
56
3,772
187,203
STAY WITH ME. A few years ago, a patient was referred to me because he was diagnosed with complicated cirrhosis. He had an infection which led to a condition called hepatic encephalopathy (brain failure due to high ammonia levels). The treatment largely involved ammonia reducing therapies. One drug was central to this - Rifaximin - a non-absorbable antibiotic that reduced ammonia in the body. I prescribed him Rifaximin for 6 weeks and advised him follow-up. He came back to me, not after six weeks, but in 4 weeks, this time, in liver coma (worst stage of brain failure - due to very high ammonia). He spent two days in the ICU and six days in total in the hospital. His hospital bill was close to INR 80,000. He had no insurance and his wife borrowed the money from neighbors and friends to clear hospital dues. Upon questioning, I found that he was not taking the Rifaximin drug I had prescribed. He was only on the other two drugs (one, a syrup called lactulose for improving ammonia clearance in gut). I was furious, because the patient spent a whole week unecessarily in the ICU and wasted so much money that he never had - just because he was "not compliant" to my orders. I decided it was time for me to school him a bit. But I was wrong. He was compliant. He had purchased Rifaximin and was on it. For 15 days. Thereafter, he could not afford it. He was an autorickshaw driver who shuttled school children every morning and evening. He could hardly make ends meet. He had two children of his own. The Rifaximin brand I prescribed him was 42 rupees per tablet. He had to consume two a day - which would mean 2520 rupees a month. He just did not have that money - so he skipped it - to not compromise on other important matters - childrens education and food. He was confused and scared about opting for a cheaper version of Rifaximin because one, he was unsure about the quality of Rifaximin that was not prescribed by me and two, he was "scared" that I would scold him for buying a cheaper Rifaximin and if that got him into trouble. I was confused and scared about prescribing a cheaper version of Rifaximin because one, I was unsure about the quality of Rifaximin that was not "a good promoted brand" and two, I was "scared" that his family would scold me for prescribing a cheaper Rifaximin and if that got him into trouble. It is heartbreaking that many doctors still simply don’t trust generic medicines. Too often, they worry that these cheaper options are lower quality or might cause more problems than the big, famous brands. This fear leads them to prescribe expensive drugs instead, and the real tragedy is that it pushes vital healthcare out of reach for the ordinary people who need it most - like my patient. This narrative, that generic drugs 'are never good' and that only big pharmaceutical marketed drugs are what works has been deeply ingrained into doctors and patients alike - I do not know by whom and since when. Looking back, these strong emotions were based on either opinions, testimonials or second- and third-hand information. Not evidence. Like I said. Stay with me. This is life changing and will disrupt the drug market in India. Here are the results of The Citizens Generic vs. Brand Drugs Quality Project. 1/11
284
1,350
231
3,649
545,891
Yesterday, we recorded one of our first in-person interviews with Garry @Kasparov63! Check out his tremendous calculation skills and assessment of the Chess960 positions in this video.
1
12
1
157
27,548
Gentle reminder that the term “superfood” is not a scientific or medical classification. Its origins are not in a laboratory but in a boardroom. The United Fruit Company, first popularized the term "superfood" in the early 20th century to market bananas as a cheap, nutritious, and easily digestible food source, leading to their inclusion in daily diets and endorsements from physicians. Today, this marketing tactic has evolved into a billion-dollar industry that defrauds hundreds of thousands of consumers worldwide.
20
74
5
581
45,380
I tracked my stolen phone across Vienna for 24 hours, skipped my flight to New York, and hired a Serbian bodyguard named Milovan to help me confront the thief. Here's how it went down: I went with friends to a public swimming pool in the mountains of one of Vienna's nicest districts, and after a fun day of swimming I went to the changing room to put clothes on. While doing so I left my phone outside on a table for barely a minute, but when I returned, someone had taken my phone and disappeared. No one saw anything. Not knowing what else to do, we rushed home with a taxi to get to my computer. And there we saw the thief moving my device through the city to EVERY part of town for many hours. There was no way I could chase this car down. I had a hard deadline: A flight the next morning. Around 1am the phone finally came to rest at a residential address, but what was I going to do: Storm an apartment in the middle of the night? At 7am I took my flight to New York via Berlin, but when I landed in Berlin at 8am I almost got a heart attack: My stolen phone had returned to the scene of the crime: Back at the public outdoor pool in Döbling in the idyllic mountains of Vienna. That's when it hit me—my phone had been taken by an employee. There was no way I was letting this go: I skipped my flight to New York and instead took the first flight back to Vienna. At the Airport I booked a taxi driver from Serbia named Milovan on an hourly rate to be my bodyguard, and called a friend who had been at the pool with me the day before to come as well. When I got to the pool, my phone tracker showed me where my phone was: Big fat letters spelling "NOW" right next to a group of employees. We called the police! One of the employees wanted to kick me out and ban me from this public pool ran by the city of Vienna for life for making accusations. It later turned out that employee was the thief. But I persisted until the police showed up. Apple's Find My network detects other devices by exchanging signals between all surrounding devices. The more devices there are nearby, the more accurate the location. The pool was an outdoor open air area, but all I knew was that the phone was there NOW, but not exactly where. Extremely frustrating. But I had one more ace up my sleeve: I told the police the address where the phone had gone to rest the night before. It turned out one of the employees lived exactly where I knew my phone had stayed over night, and so now they had a suspect after interviewing the staff. The police followed him without tipping him off, and noticed he had behaved suspiciously. After the suspicious employee went to the bathroom, they searched it and THEY FOUND MY PHONE. This was an intense 24 hours, and I've had no sleep yet, but I'm incredibly thankful to the extremely professional Viennese police who helped me get my phone back, and to the employees who were patient and helped even though I accused one of their colleagues. Sometimes maintaining a high-trust society means actually chasing down the thieves who abuse it. 24 hours. No sleep. One recovered phone. Worth it.
902
1,596
235
27,558
1,487,964