<?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 Maksim Lin on Medium]]></title>
        <description><![CDATA[Stories by Maksim Lin on Medium]]></description>
        <link>https://medium.com/@mksl?source=rss-e1997f66d88e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*M73WermpB1kEV5OzlNZQEQ.png</url>
            <title>Stories by Maksim Lin on Medium</title>
            <link>https://medium.com/@mksl?source=rss-e1997f66d88e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 00:02:09 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mksl/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[Mobile apps are the problem, the solution is…]]></title>
            <link>https://medium.com/@mksl/mobile-apps-are-the-problem-the-solution-is-0674ed102338?source=rss-e1997f66d88e------2</link>
            <guid isPermaLink="false">https://medium.com/p/0674ed102338</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <dc:creator><![CDATA[Maksim Lin]]></dc:creator>
            <pubDate>Mon, 14 Sep 2026 01:12:14 GMT</pubDate>
            <atom:updated>2026-09-14T01:12:14.816Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*GmA7W5NQIARUhZUr.jpeg" /></figure><h3>Introduction</h3><p>I’m not here to waste your time, so here’s the answer up front to the clickbaity title: the web. Yes that’s right, the web is the answer to the problem of mobile apps. But of course the story as to why mobile apps are a problem and how the web solves this is a longer and more nuanced story than fits in a single sentence, so if you have a few minutes to learn more, then please read on.</p><h3>The big mistake</h3><p>Steve Jobs had it right when he said (to paraphase) that <a href="https://9to5mac.com/2011-10-21/jobs-original-vision-for-the-iphone-no-third-party-native-apps/">web apps are all you need</a> when the iPhone first came out ( <a href="https://www.youtube.com/watch?v=8Vq993Td6ys">video of the WWDC 2007 clip</a>, <a href="https://www.engadget.com/2007-06-11-apple-announces-3rd-parties-can-write-web-2-0-apps-for-iphone.html">Apple’s announcement at the time</a>). Sadly he didn’t have the technical nouse to actually make that happen and so at the first opportunity <a href="https://web.archive.org/web/20071019000000/http://www.apple.com/hotnews/">ditched the idea</a> for the easier and more lucrative option of running an app store. Of course that was to be expected, Apple doesn’t innovate, that’s not their strong suit: they are good at polish and marketing.</p><p>So while there were no real existing examples of web apps for mobile, there definitely were for locked-down, proprietary app stores for mobile phones, so Apple could just polish that concept up and spin it out for their customers. Sadly that set the trend so that with Android, Google went down the same path, and then the likes of Zuckerberg, who was equally lacking in technical and engineering ability, failed to oversee the making of a good web app for Facebook, so instead of taking responsibility <a href="https://www.theverge.com/2012/9/11/3317230/mark-zuckerberg-betting-on-html5-for-mobile-was-a-mistake-hints-at">blamed HTML5</a> and web apps instead and likewise moved on to milking his customers and shipping mobile apps.</p><p>Of course, having been first an Android and then a Flutter mobile app developer for over 15 years, I have to shoulder my share of the blame for perpetuating this state of affairs. While the whole time I have loudly advocated for web apps and against the myopic purism in the mobile app dev community of “not using web views” (especially bad I found on iOS), I have to admit that by working in the industry this whole time I was part of the problem of perpetuating and increasing the use of mobile apps.</p><h3>Solving other people’s problems</h3><p>So why are mobile apps even an issue? Well, to start with, they don’t solve a problem users have. No, instead mobile apps are a solution to problems app developers and platform vendors had. For developers, who are by human nature lazy, the problem was that in the early days, the web platform and browser APIs were very limited and fragmented and it required a lot of engineering effort to get nice, usable and performant UIs on mobile web browsers, so using native OS UI toolkits was a useful shortcut to shipping more usable apps quickly, so of course app developers leapt at the option.</p><p>For platform vendors Apple and Google, the problem that needed solving was platform lock-in. At the time they were the newcomers up against the dominant industry giants and their device offerings were inferior technically to the incumbents as well, so what to do? Well, lock-in your users of course! They knew perfectly well that locking in users to their platforms with applications that were only available on their platform was by far the best marketing strategy and especially for Apple this was again the preferred tactic and they certainly ran with it. Jobs may have despised Microsoft, but Ballmer’s monkey-dance of <a href="https://www.youtube.com/watch?v=XxbJw8PrIkc">“developers! developers! developers!”</a> was undoubtedly his strategy to build iOS into market dominance.</p><p>Once locked into their respective app platforms, Apple could use its monopoly power and hegemony over developers to inflict whatever arbitrary or capricious edicts it wanted and, sadly, when it comes to the users, Google, as expected from an ever more powerful multinational corporation, has followed suit, adopting many of Apple’s worst tactics and policies when it comes to the Play Store.</p><p>Meanwhile for actual users, the web was and is the best solution. It provides both security and identity verification (in the form of SSL and HTTPS), interoperability and discoverability via URLs, with the absolute minimum of external control and governance via DNS.</p><h3>Web browser re-invented badly</h3><p>So why am I so confident that mobile apps are a bad idea and that the web can be used instead? Well, it’s because the evidence is already right in front of us! From messaging apps like Slack and Discord, to shopping sites like Amazon, social media sites like Facebook, Instagram and Reddit, online video like YouTube or iView through to Google Maps and even banking apps: ALL OF THEM HAVE A WEBSITE that you can use on a “desktop” OS web browser to do the same thing you do on the mobile app on your phone!</p><p>While some are more usable on the smaller touchscreens than others, they all exist! Some like Reddit are particularly obnoxious in their constant nagging for users to install a mobile app instead of actually using the website the user actually navigated to! They do actually all work.</p><p>In fact for the most part, mobile apps simply are little specialised web browsers, but re-implemented in an ad hoc and usually inferior way to actual web browsers. Just think about the apps, especially social media or shopping apps you use on a regular basis, and how much of their functionality is simple web browsing, all just wastefully re-implemented using the platform OS’s UI toolkit or the vendor’s add-on toolkit such as <a href="https://developer.apple.com/documentation/swiftui">SwiftUI</a> and <a href="https://developer.android.com/compose">Compose</a> or a third party UI toolkit such as <a href="https://flutter.dev/">Flutter</a>.</p><h3>Why now?</h3><p>As I mentioned above, in the early days of mobile touchscreen phones, the web platform was limited and difficult to work with on mobile browsers and web views, but this is no longer the case and has not been for a number of years. The web platform on mobile has progressed and matured. We now have <a href="https://developer.mozilla.org/en-US/docs/Web/Progressive_web_apps">installable web apps</a>, <a href="https://developer.mozilla.org/en-US/docs/Web/API/Notifications_API">notifications</a>, <a href="https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API">web workers</a> for offline use, state-of-the-art toolkits like <a href="https://react.dev/">React</a> and APIs for even things like <a href="https://caniuse.com/?search=contacts-api">contacts</a> and low latency audio via the <a href="https://developer.mozilla.org/en-US/docs/Web/API/Web_Audio_API">Web Audio API</a>, <a href="https://developer.mozilla.org/en-US/docs/Web/API/WebGPU_API">WebGPU</a> and <a href="https://developer.mozilla.org/en-US/docs/Web/API/Web_MIDI_API">Web MIDI</a> and so much more.</p><p>Also why now is because: despite the good work being done by the EU (see its <a href="https://digital-markets-act.ec.europa.eu/developer-portal/app-distribution_en">DMA rules on app distribution</a>) to drag Apple, kicking and screaming like a petulant toddler, to allow <a href="https://www.apple.com/newsroom/2024/01/apple-announces-changes-to-ios-safari-and-the-app-store-in-the-european-union/">alternate app stores on iOS devices</a>, it seems that Apple are <a href="https://digital-markets-act.ec.europa.eu/commission-closes-investigation-apples-user-choice-obligations-and-issues-preliminary-findings-rules-2025-04-23_en">intent on complying as little as possible with this</a> and are restricting <a href="https://developer.apple.com/support/dma-and-apps-in-the-eu">any changes they are forced to make to customers in the EU only</a>. Even more sadly, it seems that Google’s corporate approach to Play is to become more and more like Apple, continuing to enforce ever harsher requirements on the developers and users of its Play Store and even increasingly limiting the ability of users to install apps directly on their own devices (the insidiously labelled <a href="https://arstechnica.com/gadgets/2025/08/google-will-block-sideloading-of-unverified-android-apps-starting-next-year/">“sideloading”</a> when its proper term is “normal installation”).</p><h3>What about Agentic LLMs?</h3><p>Of course the question also needs to be put: what is the huge disruption being caused by agentic LLMs going to do in this space? I can’t see the future any more than anyone else can, but I <em>suspect</em> that the web again will prove to be key in allowing agents to be useful rather than the little walled gardens that mobile apps provide, even on platforms like Android, which provide a rich modular API for <a href="https://developer.android.com/guide/components/intents-filters">inter-app interoperability</a>.</p><h3>Let’s do this!</h3><p>Having been part of the problem, I’ve decided that I should now try to be part of the solution. For me this will take not only the form of advocacy like this article, but also an experiment in ridding myself of as many mobile apps as possible from my daily-use phone.</p><p>For those who want to try this for themselves, I would advocate that you, gradually and as far as you are comfortable, also remove the apps on your phone one by one and replace using them with the equivalent websites and web apps.</p><p>Finally I also have some ideas on how to make it even easier and more pleasant for end users to make use of web apps on their phones, which I hope to write more about soon.</p><p>Until then, I wish you all a happy and safe today and tomorrow in these very uncertain times.</p><p><em>Originally published at </em><a href="https://manichord.com/blog/posts/mobile-apps-are-the-problem"><em>https://manichord.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0674ed102338" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SafePi]]></title>
            <link>https://medium.com/@mksl/safepi-23bdb58d4704?source=rss-e1997f66d88e------2</link>
            <guid isPermaLink="false">https://medium.com/p/23bdb58d4704</guid>
            <category><![CDATA[llm-agent]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[llm]]></category>
            <dc:creator><![CDATA[Maksim Lin]]></dc:creator>
            <pubDate>Thu, 10 Sep 2026 02:51:01 GMT</pubDate>
            <atom:updated>2026-09-10T02:51:01.169Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*QvkTF-6ut0Q1dTLe.jpeg" /></figure><h3>Introduction</h3><p>The three ingredients to my setup for agentic coding with local models for Flutter development are unsurprisingly:</p><h3>Why local ?</h3><p>With the availability of very powerful cloud models, the question I naturally get is why use local models? Well to start with I would like to point out that right now its not a either/or decision and I continue to use cloud models like GPT and Gemini on a daily basis. For me the choice to use local models comes down to <strong>control</strong>.</p><p>And control has many aspects:</p><p>Firstly its control of which models, rather than having them changed, replaced or modified at the whim of some VP of some lab somewhere in the valley.</p><p>Secondly its control of costs. While its very true that having a capable enough computer to run local models is not cheap (though if done carefully its not horrendously expensive either) running local models means I am completely in control of the cost rather than again being at the mercy of some VC funded company that has suddenly realised their investors want to see some sort of actual revenue and its time to start squeezing their customers for more money in the form of higher prices, lower quotas or both.</p><p>Thirdly its control over my tools of production, that I don’t need to live in constant fear that again at a whim a company can decide to cancel my account at the drop of a hat</p><h3>So many llama’s</h3><p>So how to actually run local models and which models do I use? Well to start with I went the “for dummies” route of using ollama to download and run models and honestly I still recommend it for <em>beginners</em> just starting out as being the easiest way to get local LLMs running on your own machine.</p><p>Having said that, I have since switched to using llama.cpp which while it required a (very little) more effort to download and build it myself has opened up far more options in terms of running not to mention better performance straight off the bat and then even better performance still just days ago when llama.cpp merged MTP support (more on that in a sec).</p><p>On the model front, I have been trying different models pretty much on a weekly basis as over the last few months thats how quickly new open weights models have been released! Currently the model I use daily is Qwen 3.6, both the MOE 35B version which runs at a very usable ~50 t/s on my strix halo desktop and in the last few days the 27B dense model which has gone from a unusable ~7 t/s to a just usable ~12 t/s</p><h3>Why yes to Pi ?</h3><h3>Say no and then no again</h3><p>Since pi-agent is always running in “YOLO” mode and by default has access to all the same shell tools that you do and importantly with all the same filesystem permissions, it is probably a good idea to put some guard rails around this. I will however first admit that I spent the first couple of weeks using pi-agent with no such guard rails in place, but hey just because I threw the dice and the never came up 6–6 doesn’t mean that its a good idea!</p><p>So how do you put these guard rails in place? Well I’ve seen a number of applications pop up over the last few months using Linux cgroups, full docker containers and even complete VMs but I’ll be honest that all seemed to much to work to setup for me on the spot so I put them on my to-read list and kept putting it off. That is until I spotted in [an article about running local LLMs] (https://willemvandenende.com/blog/engineering/my-local-agentic-dev-setup-today) reference to a sandbox tool called <a href="https://github.com/nolabs-ai/nono">nono</a>.</p><h3>So how well does it really work?</h3><p>If this was an LLM generated article, this would be the point where you would see the inevitable “…the concerns are real”, “… the limitations are real” or “… has real trade-off”. Since this article was actually written by <em>me</em> you won’t get those stupid phrase here and I will simply point out what I’ve so far been able to achieve using the combination of pi &amp; local models and how well it works.</p><p>To the point of how well it works: its definitely good enough to get serious work done! I have already previously published an article outlining how well this very setup did in migrating my website from its old Dart based SSG to a new Dart SSG, adding required new functionality to the new Dart code and updating the websites visual design and structure. I have since then started using this setup to add features to an existing, fairly complex FFI-based Dart package and while its had a harder time there in places this setup has also been able to produce good results there too.</p><p>Of course using local LLMs in the size range of tens of billion of parameters is not going to match the performance of cloud ones that are in the hundreds to thousands of billion parameters and they still have a place in being used for the very hardest technical coding and debugging I’m doing, but local LLMs with a good agentic harness are certainly capable of getting useful work done today. With MOE local LLMs it also makes a very important difference <strong>how</strong> you make use of them as this <a href="https://www.youtube.com/watch?v=0enQ2yRY18g">very good video illustrates</a> and that I highly recommend watching if you are using local MOE models for coding tasks.</p><p>Finally the area of speed is another place where you will be compromising on in choosing to use local vs cloud models as unless you have very expensive dedicated high VRAM and <em>very</em> high ram bandwidth GPUs like NVidia 5090 or the like the input prompt parsing and token generation speeds of local models, especially as the context grows is going to be signficantly slower than of cloud based LLMs.</p><p>Despite that, the speeds I get of 40–60 t/s using MOE models like Qwen 3.6 35B on my strix halo Framework desktop are more than fast enough for me when working interactively and when leaving the agent to do long running tasks, having it to need to work longer while I am doing other tasks is not a show stopper for me especially given all the benefits I outlined above. My workflow requirements however are not <em>your</em> requirements, so this is an issue that is worth closely considering when deciding on if and how you will use local LLMs.</p><h3>Bonus Points: On the go</h3><p>One optional thing in the setup that I have found increasingly useful is being able to access local LLMs when I am out and about and this has proved to be very easy to setup in a secure way because I was already using Tailscale to have secure connectivity back into my local host network without having to expose any device ports on my home networks public IP address. One thing I have yet to find is a good Android app agent to use with my local models so if you have any recommendations please reach out to me via the usual ways or leave a comment below if you are reading this via Medium.</p><h3>Concluding Thoughts</h3><p>Hopefully the above run through of my current setup is helpful to someone wanting to try using local LLMs with agentic harnesses in their work on Flutter apps or even any other type of software development work.</p><p>I’ll have more articles coming up in the near future documenting my further use and exploration of using local LLMs with agentic harnesses so do subscribe if you want to be notified.</p><p>Until then, I wish you all a happy and safe today and tomorrow in these very uncertain times.</p><p><em>Originally published at </em><a href="https://manichord.com/blog/posts/safepi-flutter"><em>https://manichord.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=23bdb58d4704" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What can a local model do for you: early Sept 2026 Edition]]></title>
            <link>https://medium.com/@mksl/what-can-a-local-model-do-for-you-early-sept-2026-edition-ba9dadf05d74?source=rss-e1997f66d88e------2</link>
            <guid isPermaLink="false">https://medium.com/p/ba9dadf05d74</guid>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[local-llm]]></category>
            <category><![CDATA[llama-cpp]]></category>
            <dc:creator><![CDATA[Maksim Lin]]></dc:creator>
            <pubDate>Tue, 08 Sep 2026 02:56:00 GMT</pubDate>
            <atom:updated>2026-09-08T02:56:00.870Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*9x0FrMX8cS5Fe8Lb.png" /></figure><h3>Introduction</h3><p>I included the current month in the title of this article because we truely live in interesting times and the rate of progress in the LLM space including the open weights models that you can run locally on “consumer” hardware is truely phenomenal!</p><p>This is infact the same words that I opened with in my prior article back in May and is no less true today as the rate of improvement in the last 5 months has continued to be break neck and with the release of the latest Qwen LLMs that can run locally is again a bit of a watershed moment worth documenting.</p><p>In this article, somewhat like a field report, I will update with an example, a single but I feel useful data point to show currently what is possible in the area of agentic software development.</p><h3>The latest Qwens</h3><p>So lets get down to specifics: what exactly have I been using? On the software side I have used:</p><p>Additionally a small guest appearance by the latest impressive model from Qwen: Qwen 3.8-Flash-Next.</p><p>On the hardware side I recently put together a very low-budget machine (more details on that coming in soon!) while for running Qwen Flash-Next I am fortunate to have a Framework AMD strix halo 128GB.</p><h3>The show</h3><p>The task I decided to give my agent+model combo was something to both “smoke test” the new machine I had just setup and to solve a practical task: writing a Bash shell script to automate a tedious part of the software product release workflow that I had til now being doing by hand.</p><p>Here’s the prompt:</p><pre>From a given branch name (thats also passed as argument to the script) <br>and then will get a list of all PRs that were tagged with &quot;cherrypick&quot; <br>label and the given milestone, find the matching commits for each PR <br>in master branch, apply each of those commits in order as a cherrypick <br>to the current new branch and then print summary of all the cherrypicks<br>done, call the script: make-hotfix-branch.sh</pre><p>The reason I chose this particular task is that while it may seem simple, its both small and self contained enough that I could accept the local model to achieve in a reasonable amount of time yet complex enough with edge cases and error handling required that meant it was not trivial. It also turned out that it was generic enough that it could be done in a webchat window as well as by CLI agents tools, which turned out to be quite handy as you will see below.</p><p>Once I had started on this I then got the idea to treat this as a bit of comparison (my methodology was no where good enough to call it an “eval”) of the local model vs cloud hosted models. Qwen 3.8 27B now benchmarks at near Opus 4.6 levels but I don’t have access to it or its predacessors so I instead chose to give the same prompt to both Qwen and Gemini 3.7 Flash (High) which is currently the latest model available from Google in Antigravity. As an addition, really as an afterthought, I also decided to use Qwen 3.8 via both the llama.cpp web chat UI as well as via the pi agent running in the projects local source code directory, just as I did with using Gemini with Antigravity. This proved to be a very useful lucky accident as you will see in the results below. Because I was testing Qwen on the new “budget” machine I had just built the quant used was unsloth/Qwen3.8-27B-GGUF:Q4_K_M.</p><h3>The results</h3><p>Once each agent+model had completed the script I had codex using GPT 5.6 (High) rank the versions of the script, guess which is which…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*z-imlr-_JKnii1e5.png" /></figure><p>The result was very interesting indeed! In third place was Qwen 3.8 running via the webchat UI, but it was Gemini 3.7 in second place with Qwen 3.8 via pi agent in first place! Whats just as interesting as the ranking order was just how huge a difference there was in the result between with Qwen result via pi vs in a chat window! Or at least it was surprising until I compared the enormous amount of work and tokens that Qwen model expended via pi vs the much quicker but far less token/work intensive result in the webchat. In pi, Qwen really went to work, not just generatign far more thinking tokens, but also the work done: because it had tools available and was running in the directory of the source code of the project in question, it ran multiple unit tests and integration/smoke tests of the script, doggedly hunting down and fixing mistakes and issues it discovered by doing so. It even went so far as to create test stubs for GH API responses!</p><p>Then to add a bit more flavour to this data point, since I had just finished downloading Qwen 3.8 Flash Next ( unsloth/Qwen3.8-Flash-Next-GGUF:Q3_K_XL)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Akc5ARA3eqK6kEEh.png" /></figure><p>Qwen 3.8 Flash Next came out on top, which is not surprising nor the fact that it only caem out a little ahead of Qwen 3.8 27B as I was using it in <strong>very</strong> heavily quantised “3bit” form and that even though its a 125 billion param model, its a MOE (mixture of experts) with only 6 billion activated.</p><h3>But why not Model X/Y/Z ?</h3><p>Of course there are other contenders for the crown of best local open weights LLM though of course that title varies for everyone based as much on their use cases and the hardware they have to run the models locally as much as the “raw” performance results of the models themeselves and of course as you can see from the results above, the agent or at least the ability for the model to do tool calling via an agent makes a huge difference in the performance of the current generation of local models.</p><h3>But wait, there’s more!</h3><p>Things are changing fast, so its quite likely there will be new, more capable open weights models released by the time you read this, even if you are reading this only days after I publish it! For example the Flash Next “dense” version of Qwen 3.8 was released recently as I said above but I not yet had the time to put it to daily use to judge it properly but this and other initial tests do look very promising!</p><h3>Concluding Thoughts</h3><p>This experiment of course is no news to people using the latest local models like Qwen, DeepSeek Flash V4 0307 etc. But what is signficant to me is that the rate of improvement in these models has now progressed so far that while they still are slower and use way more tokens than the GIANT frontier cloud models, for the first time these local models are now able to get done a whole range of agentic coding work that was previously the exclusing domain of the giant cloud models. The fact that they run on my own hardware and not a service that can have unpredicatable degraded performance, can be price gouged by any amount or even can be <strong>cancelled</strong> on me at any time makes my local LLMs as the ads say “priceless”!</p><p>I’ll have more articles coming up in the near future documenting my further use and exploration of using local LLMs with agentic harnesses so do subscribe if you want to be notified.</p><p>Until then, I wish you all a happy and safe today and tomorrow in these very uncertain times.</p><p><em>Originally published at </em><a href="https://manichord.com/blog/posts/what-can-local-model-do-in-sept-2026"><em>https://manichord.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ba9dadf05d74" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Subscribe now to get notified!]]></title>
            <link>https://medium.com/codetodeploy/subscribe-now-to-get-notified-1309da15f316?source=rss-e1997f66d88e------2</link>
            <guid isPermaLink="false">https://medium.com/p/1309da15f316</guid>
            <category><![CDATA[dart]]></category>
            <category><![CDATA[email-marketing]]></category>
            <category><![CDATA[dartlang]]></category>
            <dc:creator><![CDATA[Maksim Lin]]></dc:creator>
            <pubDate>Mon, 07 Sep 2026 01:32:26 GMT</pubDate>
            <atom:updated>2026-09-10T11:12:28.322Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5zj-gxkjGGJGOpY1LuctuA.png" /></figure><h3>Host your own email newsletter subs for less than a fiver a month!</h3><p>In an era of expensive “all-in-one” marketing platforms that charge you by the subscriber count, I decided to go back to basics. I needed a simple, robust, and cheap as possible way to collect email subscriptions for my upcoming newsletter, well actually just a newsletter version of this blog, but hey newsletters are in vogue and I want to be able to notify people of new blog posts, so why not.</p><blockquote><em>💥 </em><strong><em>Master AI &amp; Tech Skills</em></strong><br> 🎓 Get Up to 50% OFF Premium Courses<br> ⏰ Limited-Time Offer<br><a href="https://trk.udemy.com/zz4NBO"><em>👉 </em><strong><em>Enroll Now &amp; Start Learning</em></strong></a></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ITogvtC6mF2BUF35Qsd9pg.png" /></figure><p>The result? A high-performance, server-side Dart application that costs less than a fancy coffee per month to host, and it was built from scratch in <strong>under 2 hours</strong> using an agentic LLM.</p><h3>The Stack: Performance First</h3><p>I chose <strong>Dart</strong> for the backend. While often associated with Flutter, Dart is also fantastic for server-side dev. No where near as popular as Go, it has many of the same features for backend dev. such as compiling to a native standalone executable, actor model for memory safe concurrency and much more. More about the efficiency that compiling down to a standalone native executable below.</p><p>So what went into building my MVP? The key bits are:</p><ul><li><strong>Framework:</strong> shelf (Dart&#39;s minimalist web server library).</li><li><strong>Database:</strong> sqlite3 (Zero-config, high-performance file-based storage).</li><li><strong>Container:</strong> The <strong>Distroless</strong> image (a great “no-bloat” base).</li><li><strong>Hosting:</strong> <strong>Fly.io</strong> (Using their cheapest 256MB RAM plan).</li></ul><h3>The Stats: Small is Beautiful</h3><p>By compiling the Dart to a native AOT (Ahead-of-Time) binary, we get some really good results:</p><p>On the cheapest <strong>Fly.io</strong> plan its less than $5 per month all up:</p><p>Of course you’ll need to BYO your own SMTP email server, I personally use, love and recommend Fastmail, but if you’re short of a $, you can just use a free gmail account.</p><h3>Built-in Features (The “No-Nonsense” List)</h3><p>Despite it being an MVP, essential features are already there:</p><ol><li><strong>Double Opt-In:</strong> Automatically sends confirmation emails via SMTP (Fastmail) with unique tokens.</li><li><strong>Security-Minded:</strong> Prevents “email enumeration” by returning generic success messages, so bad actors can’t guess who is on your list.</li><li><strong>Token Expiration:</strong> Confirmation links automatically expire after 24 hours (configurable).</li><li><strong>Easy Export:</strong> A simple SSH-triggered command exports your confirmed subscribers to a clean newline-separated .txt file, ready to be imported into any newsletter sending tool including even just copying into a BCC for small lists!</li></ol><h3>Built by an Agentic LLM</h3><p>And because it’s 2026, all built using <strong>Gemini CLI</strong>, which did the coding as well as handling the SQLite schema, debugging Podman networking issues and optimized the Dockerfile with some prompting from me.</p><p>I went from initial plan prompt to dart create to a fully deployed, high-performance production API on Fly.io in less than 120 minutes.</p><h3>Want to try it?</h3><p>If you’re tired of paying “subscriber taxes” to big platforms, maybe it’s time to host your own. With a tiny Dart binary and a $3/month budget, you can own your data and your infrastructure without breaking the bank. So if you’re interested in hosting your own newsletter whose costs won’t sky rocket when you’re subscriber count does, <a href="https://manichord.com/blog/posts/emailz-announcement">sign up here</a>. If I get enough interest I’ll open source the app and let you know when I do.</p><p><em>Originally published at </em><a href="https://manichord.com/blog/posts/emailz-announcement"><em>https://manichord.com</em></a><em>.</em></p><h3>Thank you for being a part of the community</h3><p><em>Before you go:</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d9QTaaaxboQP_gKSLedW_w.png" /></figure><p>👉 Be sure to <strong>clap</strong> and <strong>follow</strong> the writer ️👏<strong>️️</strong></p><p>👉 Follow us: <a href="https://medium.com/codetodeploy"><strong>Medium</strong></a></p><p>👉 CodeToDeploy Tech Community is live on Discord — <a href="https://discord.gg/ZpwhHq6D"><strong>Join now!</strong></a></p><p><strong>Disclosure:</strong> This post includes affiliate and partnership links.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1309da15f316" width="1" height="1" alt=""><hr><p><a href="https://medium.com/codetodeploy/subscribe-now-to-get-notified-1309da15f316">Subscribe now to get notified!</a> was originally published in <a href="https://medium.com/codetodeploy">CodeToDeploy</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What can a local model do for you in early May 2026?]]></title>
            <link>https://medium.com/codex/what-can-a-local-model-do-for-you-in-early-may-2026-74d843eb4910?source=rss-e1997f66d88e------2</link>
            <guid isPermaLink="false">https://medium.com/p/74d843eb4910</guid>
            <category><![CDATA[dart]]></category>
            <category><![CDATA[llm]]></category>
            <dc:creator><![CDATA[Maksim Lin]]></dc:creator>
            <pubDate>Mon, 18 May 2026 20:21:00 GMT</pubDate>
            <atom:updated>2026-05-18T20:21:00.514Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*bqDa2vOK26lo8fhS.png" /></figure><h3>Introduction</h3><p>I included the current month in the title of this article because we truely live in interesting times and the rate of progress in the LLM space including the open weights models that you can run locally on “consumer” hardware is truely phenomenal! The fact that I write this when <a href="https://en.wikipedia.org/wiki/International_Workers%27_Day">May 1</a> aka International Workers’ Day was only a few days is also not lost on me.</p><p>In this article, somewhat like a field report, I would like to show currently what is possible in the area of agentic software development with Dart using reasonable sized local models paired with a good agent harness (which can be just as important as the model).</p><h3>The cast</h3><p>So lets get down to specifics: what exactly have I been using? On the software side I have used:</p><p><strong>Model:</strong> Qwen 3.6 35B 4bit quant <br><strong>Context size:</strong> 132k <br><strong>Inference engine:</strong> Ollama <br><strong>Agent:</strong> pi-agent <br><strong>OS:</strong> Fedora 43</p><p>On the hardware side I am fortunate to have a Framework AMD strix halo 128GB so I could easily run both the model and agent all on the same machine.</p><h3>The show</h3><p>The task I decided to give my agent+model combo was to migrate my website from the long in the tooth DSG to picosite. While both are Dart based static site generators, <a href="https://github.com/maks/dsg">DSG</a> is a project I had taken on the maintaining after its original author stopped and did so for some years but had decided to stop maintaining about 3 years ago (though I did do a little update to it late last year). Meanwhile <a href="https://github.com/maks/picosite">picosite</a> is a new SSG I have written from scratch starting in mid 2024, with the initial purpose of writing the <a href="https://manual.xiphonics.com/">user manual for the picoTracker project</a>.</p><p>Now the reason I chose this particular task is that it should be one that LLMs excel at, coverting from an existing form to a new one <em>and</em> it was also one that I knew would involve hours if not days of drudge work as while both SSGs are Dart based, I built picosite without any intention of keeping backwards compatibility so while they shared some similarities there was enough difference between them to require alot of work to migrate and I also knew that picosite didn’t yet have some of the more advanced features of DSG that my website content made use of.</p><p>But not content (sic) with just a straight migration, I decided that once that was done I also wanted a new design for the website, so added that to the work the <strong><em>minion</em></strong> (my current preferred term for agentic LLMs) would need to do.</p><p>Finally while I have been very happy with my existing publishing setup of keeping the content in a Github repo and having the SSG run on Netlify to generate and then host the website, I wanted to improve my workflow slightly by being able to preview the site so I added yet one more task of creating a GH Action workflow to publish the content via GH Pages as well.</p><h3>The process</h3><p>To carry out the work I used my now preferred workflow on requesting that the agent first create a markdown document with a detailed implementation plan. This plan covered all the pages, templates, and configuration files that needed to be migrated, along with the new design requirements but not the github actions workflow for publishing via GH Pages, I added that later as an adhoc task.</p><p>The agent got to work and the plan itself was surprisingly solid, covering most of the cases I has in mind. There were a few minor refinements along the way where I had to point out something that the agent had missed — mostly around some of the more unusual features of my existing site that didn’t have obvious equivalents in picosite yet, but nothing major. The agent was able to incorporate these refinements into the plan and the overall process felt very much like giving guidance while working with a knowledgeable colleague, just one who in this case just happens to be powered by a local LLM and so sometimes takes a while before they start to reply.</p><h3>The result</h3><p>The result was excellent — the migration was a complete success. All of my blog posts, the new design, and the new GH Actions workflow all came out workign nicely. The only minor hiccup was the poor choice by the LLM of initially using a third party GH action but that was fixed easily. The agent handled the tweaks required to go from DSG’s templates to picosite’s templating system, migrated all the markdown content along with fixing up missing or incorrect frontmatter that I had not even noticed previously and even managed to get the new design looking good after a few attempts which was more about my lack of clarity on what I wanted for the design rather than anything else.</p><p>I was particularly impressed by how well the agent handled the less obvious parts of the migration — things like the custom data sources and the way DSG handled folder listings. While picosite didn’t have direct equivalents for all of these at the time, the agent was able to work around the differences, add the missing functionality to picosite and produce a site that was not only functionally equivalent but better structured than the old one.</p><p>All told, what would have taken me days of tedious drudge work was completed in a fraction of the time, and the quality of the output was genuinely impressive. The agent didn’t just copy-paste — it understood the structure of both systems and made sensible decisions about how to bridge the gap between them. Importantly I essentially wrote zero lines of code. Of course that doesn’t mean this was a completely hands off process from my side as I reviewed the work through out and looked as small specific pieces of code but as I mentioned above, the process was very much like assigning work to a collegue and then providing guidance and feedback on the work in progress.</p><h3>But why not Model X ?</h3><p>Of course there are other contenders for the crown of best local open weights LLM with Google’s Gemma4 dense and MOE models having just recently been released, but while I havent had a chance to evaluate them thoroughly, my initial tests compared to Qwen 3.6 were disappointing enough that I chose to use Qwen3.6 over Gemma4 for this experiment. I do however plan to do more tests comparing the 2 very similar (on paper) models.</p><h3>But wait, there’s more!</h3><p>Things are changing fast, so its quite likely there will be new, more capable open weights models released by the time you read this, even if you are reading this only days after I publish it! For example the “dense” 27B version of Qwen 3.6 was released recently but I had not noticed when I did experiment documented here so I plan to try it out over soon. Likewise having got llama.cpp compiled and working well on my Framework strix halo machine, I have started using it with the 8bit quantisation of the Qwen 3.6 35B as Ollama while being super easy to use only makes available the 4bit quantisation which should on paper be only marginally worse than the 8bit quant, but given I have more than enough ram to run the 8bit and the speed seems to be perfectly acceptable I want to get the best performance possible out of the model for the complex, long running agent tasks I’m currently using it for.</p><h3>Concluding Thoughts</h3><p>This experiment of course is no news to people using the latest frontier cloud models like Gemini, Claude and GPT via agents their respective agent harnesses including myself! But what is signficant to me is that for the first time since I began using agentic harnesses in early 2025 (yes just 12 months ago!) I am able to run a local model on my fairly modest mini-itx desktop that is able to drive an agent harness to carry out fairly complex and long running tasks! All while sipping at <strong>most</strong> ~140W of power. It certainly doesnt run at the speed or quality of the cloud models, but the fact that its mine and not a service that can have unpredicatable degraded performance, can be price increased by any amount or even can be <strong>cancelled</strong> on me at any time makes my local LLMs as the ads say “priceless”!</p><p>I’ll have more articles coming up in the near future documenting my further use and exploration of using local LLMs with agentic harnesses so do subscribe if you want to be notified.</p><p>Until then, I wish you all a happy and safe today and tomorrow in these very uncertain times.</p><p><em>Originally published at </em><a href="https://manichord.com/blog/posts/what-can-local-model-do-in-may-2026"><em>https://manichord.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=74d843eb4910" width="1" height="1" alt=""><hr><p><a href="https://medium.com/codex/what-can-a-local-model-do-for-you-in-early-may-2026-74d843eb4910">What can a local model do for you in early May 2026?</a> was originally published in <a href="https://medium.com/codex">CodeX</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Diving Deep: From Zero to a MCP *Client* in Flutter]]></title>
            <link>https://medium.com/flutter-community/diving-deep-from-zero-to-a-mcp-client-in-flutter-ce183c568287?source=rss-e1997f66d88e------2</link>
            <guid isPermaLink="false">https://medium.com/p/ce183c568287</guid>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[dart]]></category>
            <category><![CDATA[ollama]]></category>
            <dc:creator><![CDATA[Maksim Lin]]></dc:creator>
            <pubDate>Fri, 25 Jul 2025 11:45:27 GMT</pubDate>
            <atom:updated>2025-09-08T19:55:53.126Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*e54S6TgClGT0fiwP" /></figure><h3>Introduction</h3><p>As usual I’m late to the party. Just as I only got to Android at 2.1 or Flutter just before 1.0, I have only over the last couple of months gone from being a LLM doubter to, if not a fervent believer, then at the very least a user of LLMs as a key part of my daily software development toolset.</p><p>But for me, its not just about using a tool, to really understand it I need to havea reason to work with it for first principles and get “under the hood”. Previously that meant working on a git client to really get tot grips with the true beauty of how the core principles of how git works.</p><p>Yet over the last couple of months, while I have found using LLMs not only productive but in some cases indespensible in working on a very old, embedded C++ code base, I have not have a project, a <em>need</em>, to dig and learn about LLMs.</p><p>Luckily this has changed with my very recent interest in trying to run LLMs locally for to see if its possible to use local LLMs for serious, professional software development needs and discovering the while the VSCode forks like Windsurf that talk to cloud based LLMs were not great, the alternatives for using local LLMs either in VSCode or in separate cli tools was down right dreadful!</p><p>So it was the <a href="https://forum.itsallwidgets.com/t/dart-mcp-server/3765">recent post by Filip in the Flutter forum</a> on the availability of “official” MCP server support in Dart (albeit in master channel only) that tipped the scales and had me finally rolling up my sleeves and diving in to learn the details of running local LLMs, MCP and what it takes to do agentic work with local LLMs with Dart.</p><p>But as the saying goes, we need to learn to walk before we can run. Since I had decided to learn how it all worked vs just following <a href="https://dart.dev/tools/mcp-server">the great, as usual, docs</a> on how to setup an <em>existing</em> MCP client with the Dart MCP server, I needed to <strong>build my own MCP client</strong> <em>before</em> I could get around to actually trying out the Dart MCP server.</p><p>So buckle up and follow along on my TIL deep dive into using MCP with Dart!</p><h3>So what is MCP and Why Does it Matter?</h3><p>Before we get to the details of MCP in Dart, lets first cover over of MCP, just in case you are not yet yourself immersed in the world of LLMs as of mid-2025.</p><p>For those unfamiliar, MCP is a standardized protocol for communication between LLM <em>clients</em> and <em>servers</em>. It provides a structured way to exchange messages, including prompts, completions, and metadata, offering consistency and interoperability across different LLM implementations. The <em>really</em> important bit, at least as I see it for MCP vs say just APIs is that its self documenting and in this case its important for the machines and not us humans! Thats because the core value prop from MCP is that models can make use of MCP servers and the services they provide “on the fly” discovering for <em>themselves</em> what tools or services are available and how to use them, neat!</p><p>Well, thats a sufficient of an intro to MCP for now and I’ll dive into the technical details of using MCP soon enough.</p><h3>So now Dart!</h3><p>With the intro to MCP out of the way, lets get on to how Dart fits in. As I mentioned at the start of this article, my goal as to make use of the brand new Dart MCP <em>server</em> but do so as a learning experience of what makes MCP tick. Though as also mentioned I have been rather underwhelmed by the available tools I found for using local LLMs so part of the reasoning here was to potentially make some bespoke tools for myself as well. Its not that the existing tools are completely unusable or bad, but the communities fixation with building most of them with Python is really offputting for someone used to the creature comforts of Dart ecosystem (or even Java/Kotlin) and the whole disaster that is different python versions, multiple inconsistent package management tools, managing “virtual environments” and Linux distros then trying to do it all themselves with their own package management leaves a truely bad taste in my mouth, somewhat reminesent of the excesses of “modern” JS &amp; TS development and its horrors of incompatible package management and competing tooling ecosystems. But I digress! Suffice to say being able to build standalone, cross platform, <strong>AOT compiled</strong> tools (hello also Go and Rust!) was a temptation to hard to resist along with the aforementioned educational incentives of this adventure.</p><p>So now that you know my goal was to build a MCP client in Dart (eventually Flutter), where to start? Well luckily not from scatch! as the kind Dart team had already released the <a href="https://pub.dev/packages/dart_mcp">dart_mcp package</a> that looked like it had all the bits and pieces I would need. But instead of diving into the deep end of trying to use the Dart SDKs MCP server, I decided a better place to start would be a super simple MCP server of my own, yes abit more reinventing the wheel in the service of education! Again here the Dart teams excellent work shines through and could just make use of the<a href="https://github.com/dart-lang/ai/tree/main/pkgs/dart_mcp/example"> extensive examples</a>, in my case tools_server.dart gave me a great starting point to use and then easily add to the concat tool a slightly more realistic and useful listfilestool.</p><h3>Finally a Dart MCP Client</h3><p>With that out the way, I could finally get to the star of todays, show: what may well be the worlds first Dart MCP <em>client</em>. Well of course that’s not quite true as I began again by using the example tools_client.dart as my starting point, but to my mind, even the quick hack I have ended up with is if not the first Dart MCP client, then certainly I think the first that has support for both local LLMs <strong>and</strong> tools!</p><h3>Did someone say local LLMs?</h3><p>While I’ve mentioned it already a few times, using <em>local</em> LLMs was not only a driver behind this work but also something specific to a particular open source tool that in contrast to other, I have been <strong>very</strong> happy with: ollama!</p><p>I don’t want to digress again and go into the details of ollama, suffice it to say its a fantastic client/server architecture tool over the top of llama.cpp (I hope I got that right!) that not only gives a super easy way for people to run all sorts of open LLMs locally, but does so via a very nice REST API.</p><p>Coming back to Dart, I again here was very fortunate not to have to start from scratch because even while implementing using a REST API in Dart is not exactly rocket science, it was very nice to find not only an existing (or 3!) <a href="https://pub.dev/packages/ollama_dart">Dart package for the API</a> but also a decent if basic <a href="https://github.com/rxlabz/dauillama">Flutter app built on top of that API</a> to serve as an example of how to use the package 🎉 .</p><p>With those foundations, I was well on my way to building my proof of concept MVP app.</p><h3>What about the tools?</h3><p>The last missing piece to the puzzle now was wiring up the code to talk to our local models via ollamas API to my little test MCP server. This bit is at the heart of what it means for an application to be an MCP client really, giving the user access to the LLM and giving the LLM access to the suite of MCP servers and the tools that they make available for the models to “use”.</p><p>Having limited time, here I did what is at the heart of all this, I called on a LLM (or 2) to write some glue code Dart and a bit more Dart for some Flutter widgets for a minimal UI to test it all out.</p><p>And so I give you “Blue Djinn”! my brand new local LLM focused MCP client:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/570/0*kh-vuovS38CW0pC6.png" /></figure><p>And yes, not exactly the height of either UI design or usability, but it is a (very hacky) working demonstration of exposing a local tool via a MCP server to a locally running model via ollama.</p><p>As always you can find the <a href="https://github.com/maks/blue_djinn">Blue Djinn source code repo on Github</a>.</p><h3>But wait, there’s more!</h3><p>Yes this is only the beginning, while just like Dr Frankenstein, I’m very impressed with the new monster I have created and brought to life, much still remains to be done!</p><p>For one, the project is missing the eponymous logo of the Blue Djinn project. But for this I won’t leave you in suspense and am happy to unveil the mascot that came about from surpisingly few prompts back and forths with Gemini 2.5 and that is featured at the start of this article.</p><p>So please join me in the next exciting installment, where I’ll cover adding a crucial feature that I have grown used to in the “agentic” software development tools I have been using: <strong>indexing</strong> and <strong>embeddings</strong>.</p><p>Until then, I wish you all a happy and safe today and tomorrow in these very uncertain times.</p><p><em>Originally published on:</em> <a href="https://manichord.com/blog/posts/diving-deep-drom-zero-to-a-mcp-client-in-flutter">https://manichord.com/blog/posts/diving-deep-drom-zero-to-a-mcp-client-in-flutter</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ce183c568287" width="1" height="1" alt=""><hr><p><a href="https://medium.com/flutter-community/diving-deep-from-zero-to-a-mcp-client-in-flutter-ce183c568287">Diving Deep: From Zero to a MCP *Client* in Flutter</a> was originally published in <a href="https://medium.com/flutter-community">Flutter Community</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Should you build desktop apps with Flutter?]]></title>
            <link>https://medium.com/@mksl/should-you-build-desktop-apps-with-flutter-fde62c90dbb1?source=rss-e1997f66d88e------2</link>
            <guid isPermaLink="false">https://medium.com/p/fde62c90dbb1</guid>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[flutter]]></category>
            <category><![CDATA[flutter-app-development]]></category>
            <dc:creator><![CDATA[Maksim Lin]]></dc:creator>
            <pubDate>Sun, 02 Mar 2025 23:50:52 GMT</pubDate>
            <atom:updated>2025-03-02T23:50:52.122Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/960/1*6LaFlIXUa_Amq9SPCA0hVA.png" /></figure><h3>A Counter point</h3><p>This is written as a response to an <a href="https://medium.com/@lewwybogus/flutter-is-at-a-critical-inflection-point-aa5fbb251ed1">recent interesting article</a> that argued that two main points, one of them is that Flutter “desktop” support is problematic due to its choice of using C++ instead of .NET as the language for writing the native portion of Flutter plugins. While I don’t feel I’m qualified to address the specific issue of the Windows platform here as I’ve chosed to actively avoid using or developing for Windows for the last 25 years, I do want to cover a related question, should you even use Flutter to build “desktop” applications? Well my answer is no and if you want to know why I say that, read on…</p><h3>Web apps FTW</h3><p>In fact the above is actually an <em>incomplete</em> version of my answer, because I don’t mean that you shouldn’t specifically use Flutter to build desktop applications, but that you shouldn’t build <em>native</em> desktop applications at all! Instead I think in 2025, the answer I think for all but the most niche use cases is to build “desktop” applications as web applications, using the web browser and not native SDKs as your host runtime.</p><p>But, I hear you say, I’m not just building a standard desktop application, I need to use Bluetooth or USB to connect to a device my application will support. Well good news! In 2025 you can make use of WebBLE, WebSerial, WebUSB and WebMIDI to connect your web application to a plethora of external devices. Admittedly most of these APIs will require you to use a Chromium based web browser (Chrome, Edge, Opera, Brave, etc) but as you can see <a href="https://medium.com/@mihirgrand/browser-comparison-finale-chromium-based-browsers-2b6063e74165">there are plenty to choose from</a> and there is hope that other browsers will implement more of these APIs as even after a decade of recalcitrance Firefox finally implemented WebMIDI support in version 108 leaving Safari as once again the outlier as the only major desktop browser not to support it. But even there, there may be hope for the future based on the EU’s success in forcing Apple kicking and screaming from its nasty monopolistic practises to implement the USB-C standard in the last few years.</p><p>Despite my above recommendation, I still remain very happy that Flutter does provide me with the means to write Linux desktop applications and there remain as I said niche use cases for it, such as the Ubuntu OS installer that was recently rewritten in Flutter which definitely makes more sense to write as a native binary executable GUI application vs a web app.</p><p>My recommendation comes not just from some philosophical or theoretical position, as I recently shipped a small <a href="https://ui.xiphonics.com/">Flutter companion app</a> for the <a href="https://xiphonics.com/">picoTracker device</a> as a Flutter web app. I actually first developed the remote UI app as a native Linux application, but I found that not only did most users prefer to have a web app over needing to install a native application (on whatever their choice of desktop OS was) but also the serial communication implementation in Chrome on Linux was actually more mature and stable then the Flutter plugin for the direct Linux serial APIs.</p><p><a href="https://docs.flutter.dev/deployment/web">Shipping a web app</a> also meant I avoided all the awful headaches associated with code signing and nightmarish dealing with app stores required to <a href="https://docs.flutter.dev/deployment/macos">ship an application on MacOS</a> and <a href="https://docs.flutter.dev/deployment/windows">Windows</a> and even the much smaller hassles for <a href="https://docs.flutter.dev/deployment/linux">shipping for Ubuntu</a>.</p><h3>The end</h3><p>What this is all boils down to is that todays “desktop OSs” really should be considered as legacy for the vast majority of non technical users. For most people, mobile devices and thier respective OS’s are the platform of choice for the computing needs and for the rest, the web platform of today is more than good enough to handle the vast majority of use cases. For the tiny niche that is left over, Flutter desktop is there if you really do need it.</p><p><em>Originally published at </em><a href="https://manichord.com/blog/posts/should-you-build-desktop-apps-with-flutter"><em>https://manichord.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fde62c90dbb1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introducing Picosite]]></title>
            <link>https://medium.com/@mksl/introducing-picosite-97b2125c4e71?source=rss-e1997f66d88e------2</link>
            <guid isPermaLink="false">https://medium.com/p/97b2125c4e71</guid>
            <category><![CDATA[dart]]></category>
            <category><![CDATA[static-site-generator]]></category>
            <dc:creator><![CDATA[Maksim Lin]]></dc:creator>
            <pubDate>Fri, 20 Sep 2024 00:57:28 GMT</pubDate>
            <atom:updated>2024-09-20T00:57:28.201Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*YyouSHp7syH3oCtm" /></figure><p>I’m excited to announce <a href="https://github.com/maks/picosite">Picosite</a>, the latest addition to the range of static site generators built with Dart! But why another one? after all there are already several static site generators built with Dart, I should know as I’ve been maintaining one of them: DSG, for several years. Well the answer to that is actually that I wanted a replacement for DSG which is quite an old and crusty codebase which I didn’t want to go to all the effort of trying to modernise, while when I looked around at the other existing Dart static site generators, none of them meet all my requirements of:</p><ul><li>using <a href="https://handlebarsjs.com/">Handlebars</a> logic-less templating</li><li>simple, minimal configuration</li><li>Markdown with extensions such as tables &amp; section IDs</li><li>compiled to single standalone binary for easy distribution</li></ul><p>That last one is especially important to me and was what ruled out even trying to modify for my needs something like <a href="https://pub.dev/packages/static_shock">static shock</a>, the other new entrant in this category, which sadly due to the design choices made for it for extensibility I believe will never be able to be distributed as a single standalone executable.</p><h3>Features</h3><p>So now I’ve run through the reasons for Picosite’s existence, what features does it have? Here is a quick run down:</p><ul><li>Content pages in Markdown format (with extensions such as tables)</li><li>Markdown pages specify variables in YAML FrontMatter</li><li>Markdown content files are processed through Handlebars templates</li><li>Automatic recursive copying of static assets files to final output directory</li><li>Preview webserver with watching for content &amp; template file modifications for automatic rebuilds</li></ul><p>And the surprising this is that all the above functionality, including “overheads” such as command line parameter parsing, took only a mere <strong>367</strong> lines of Dart code to implement!</p><h3>The Future</h3><p>While the current feature set of Picosite is already enough for me to use it to publish the upcoming new user manual for the <a href="https://xiphonics.com/">picoTracker</a>, I do have plans to add a few more small pieces of functionality such as <a href="https://github.com/maks/picosite/issues/4">builtin and user provided data</a> for template variables.</p><p>In the meantime, I hope you might find Picosite useful for you static site publishing needs, perhaps to quickly create some documentation for your favourite project or Dart package. And if you find any bugs or have features suggestions, <a href="https://github.com/maks/picosite/issues/new">please do file an issue</a>! :-)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/32/0*AXZnV6-GxdtnJXfS.png" /></figure><p><em>Originally published at </em><a href="https://manichord.com/blog/posts/introducing-picosite"><em>https://manichord.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=97b2125c4e71" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dart: A Review]]></title>
            <link>https://medium.com/@mksl/dart-a-review-74ae5c3261a1?source=rss-e1997f66d88e------2</link>
            <guid isPermaLink="false">https://medium.com/p/74ae5c3261a1</guid>
            <category><![CDATA[dart]]></category>
            <category><![CDATA[dartlang]]></category>
            <dc:creator><![CDATA[Maksim Lin]]></dc:creator>
            <pubDate>Thu, 04 Jul 2024 22:41:21 GMT</pubDate>
            <atom:updated>2024-07-04T22:41:21.952Z</atom:updated>
            <content:encoded><![CDATA[<p><strong><em>Authors Note:</em></strong><em> I originally wrote this article </em><strong><em>back in 2019</em></strong><em> (5 years ago now!) and it sat unfinished in my Drafts here on Medium ever since. So coming back to it in mid-2024, I thought it would be interesting to publish this unfinished and unaltered as snapshot of how I viewed Dart with “fresh eyes” as a new comer to it and Flutter back then.</em></p><p><a href="https://crockford.com/javascript/javascript.html">Douglas Crockford famously called Javascript</a>:</p><blockquote>The World’s Most Misunderstood Programming Language</blockquote><p>Given some recent exchanges on Twitter and to be honest my own initial (uninformed) opinion of it, Dart is well in the running to take over that mantle.</p><p>Given how there are reviews done of pretty much any sort of consumer product you can imagine and even occasionally developer oriented software such as IDE’s, I thought it may be useful if I took that approach to Dart the language. Of course in the normal course, revies are done in the first days or weeks of the reviewer getting hold of the review subject, but unfortunately in this case, the idea has only come to me around 10 months into starting to learn and use Dart, so it will more in the style of the “X months in…” reviews.</p><h3>Background</h3><p>Like all good reviews, I will start with some background around the product and why I come to be reviewing it. Having done Android development for over 8 years now, I had heard of Dart many years ago, when Google had initially pitched it as an alternative to Javascript for use in web browsers. Back then I had little use for a</p><p>Dart 2.0 was a big and to my knowledge almost unprecedented change to the language, evolving it from being a weakly typed and having a unsound type system to having <a href="https://dart.dev/guides/language/sound-dart">strong typing with a sound type system</a>. I recommend a <a href="https://www.youtube.com/watch?v=9FA3brRCz2Q">great presentation from Dartconf 2018</a> that describes that evolution in more detail.</p><h3>Context</h3><p>Just like the background, the context for the review is also very important. In this case it is as the language used for the Flutter SDK. Just as the vast majority of developers who have learnt Kotlin in the last 3 years have done so within the context of doing Android app development, I have used Dart solely in the context of Flutter app development.</p><h3>Syntax</h3><p><a href="https://publicobject.com/2019/03/03/syntactic-sugar/">As Jesse Wilson quite rightly points out in his short article on the virtues of Kotlins syntax</a>, the “syntactic sugar” of a programming language makes a big difference to a programmers use of the language and what can be reasonably achieved with it. In this respect, I think Dart</p><p>Annoyances: While a matter of great debate in many languages, the semi-colon is required in Dart and likely to be for the <a href="https://github.com/dart-lang/language/issues/72">foreseeable future</a>.</p><h3>Errors and Debugging</h3><h3>Pedagogy</h3><p>While a lot of my technical learning and reading is done online these days via StackOverflow, blog posts, Medium articles, Github issues, etc, I still find myself preferring a book format for learning in depth a large new subject like a new framework or programming language. So while the online documentation for Dart is excellent, there is a distinct lack of any books covering the 2.0 version of the language. However there is an excellent book covering the 1.0 version of the language,<a href="https://www.goodreads.com/en/book/show/18349910-the-dart-programming-language"> The Dart Programming Language</a>, authored by one of the creators of the Dart, Gilad Bracha.</p><h3>The Future</h3><p>Like most modern mainstream languages, Dart is both <a href="https://github.com/dart-lang/language">developed in the open</a> and makes public its <a href="https://github.com/dart-lang/language/projects/1">road-map for future features</a>. For those that do not have or want to take the time to immerse themselves in the details of that process, a great talk was given at t<a href="https://youtu.be/J5DQRPRBiFI?t=1972">his years IO which included a summary on new upcoming features</a>. The 2 big new features due to arrive next (literally being built right now) for anyone coming from a Kotlin or Swift background are <a href="https://github.com/dart-lang/language/issues/110">sound nullable types</a> and <a href="https://github.com/dart-lang/language/issues/41">static extension methods</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SzuK3KY0YTk5u4GvEzhp-A.png" /></figure><h3>Conclusion</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=74ae5c3261a1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Open Sesame]]></title>
            <link>https://medium.com/mobile-app-development-publication/open-sesame-f44ab8920962?source=rss-e1997f66d88e------2</link>
            <guid isPermaLink="false">https://medium.com/p/f44ab8920962</guid>
            <category><![CDATA[flutter]]></category>
            <dc:creator><![CDATA[Maksim Lin]]></dc:creator>
            <pubDate>Tue, 05 Sep 2023 02:44:52 GMT</pubDate>
            <atom:updated>2023-09-06T03:22:31.022Z</atom:updated>
            <content:encoded><![CDATA[<h4>Learning Mobile Development</h4><h4>Set up gating to “tester” UI in your Flutter App</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/350/0*iAciuaY4mabhC5RC" /><figcaption><em>Image: Illustration from “Ali Baba, or the Forty Thieves, by Unknown” </em><a href="https://www.gutenberg.org/files/37679/37679-h/37679-h.htm"><em>https://www.gutenberg.org/files/37679/37679-h/37679-h.htm</em></a></figcaption></figure><h3>HIDDEN UI</h3><p>While it&#39;s easy enough to change settings used in the app or inspect configuration values while running debug builds of your app, it can often be useful to do so for release builds also (for QA team members for example). But this then raises the question of how to gate access to such a “debug” or “test” screen, menu, or dialog, as we don’t really want to confuse our end users with such UI.</p><p>For this case, there are a number of solutions, some of which are very well known, widely used, and which I’ll cover here first, before moving on to a possibly less well-known or used method that I came across recently.</p><h3>I dub thee… Tester!</h3><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*b31hiO4ynbDLRrXWEFF4aQ.png" /></figure><p>If your app has the requirement for users to be signed in, an easy way to gate access is to have a property on user data or a user type that grants access to the hidden UI, so something as simple as:</p><pre>@override Widget build(BuildContext context) { <br>  return if (user.isTester) { <br>      HiddenTesterWidget();<br>  }<br>  else { ... }</pre><h3>The magic touch</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/435/0*rA-ijDmFxXuZT0AZ.jpg" /></figure><p>Another technique for gating access to a hidden UI is requiring some sort of not easily accidentally entered user gesture. The most famous of these is likely Android’s way of enabling “developer mode” by requiring the <a href="https://developer.android.com/studio/debug/dev-options#enable">user to tap 7 times on the </a><a href="https://developer.android.com/studio/debug/dev-options#enable">build number UI in quick succession</a>.</p><p>Luckily for us, unlike other mobile OS, Android is open source and we can have a look at the famous Android example:</p><pre>public class BuildNumberPreferenceController extends BasePreferenceController implements<br>        LifecycleObserver, OnStart {<br><br>    static final int TAPS_TO_BE_A_DEVELOPER = 7;<br>    ...<br>    @Override<br>    public void onStart() {<br>        mDebuggingFeaturesDisallowedAdmin = RestrictedLockUtilsInternal.checkIfRestrictionEnforced(<br>                mContext, UserManager.DISALLOW_DEBUGGING_FEATURES, UserHandle.myUserId());<br>        mDebuggingFeaturesDisallowedBySystem = RestrictedLockUtilsInternal.hasBaseUserRestriction(<br>                mContext, UserManager.DISALLOW_DEBUGGING_FEATURES, UserHandle.myUserId());<br>        mDevHitCountdown = DevelopmentSettingsEnabler.isDevelopmentSettingsEnabled(mContext)<br>                ? -1 : TAPS_TO_BE_A_DEVELOPER;<br>        mDevHitToast = null;<br>    }<br><br>    ...<br>    @Override<br>    public boolean handlePreferenceTreeClick(Preference preference) {<br>        if (!TextUtils.equals(preference.getKey(), getPreferenceKey())) {<br>            return false;<br>        }<br>        if (isUserAMonkey()) {<br>            return false;<br>        }<br>        ...<br><br>        if (mDevHitCountdown &gt; 0) {<br>            mDevHitCountdown--;<br>            if (mDevHitCountdown == 0 &amp;&amp; !mProcessingLastDevHit) {<br>                // Add 1 count back, then start password confirmation flow.<br>                mDevHitCountdown++;<br><br>                final String title = mContext<br>                        .getString(R.string.unlock_set_unlock_launch_picker_title);<br>                final ChooseLockSettingsHelper.Builder builder =<br>                        new ChooseLockSettingsHelper.Builder(mActivity, mFragment);<br>                mProcessingLastDevHit = builder<br>                        .setRequestCode(REQUEST_CONFIRM_PASSWORD_FOR_DEV_PREF)<br>                        .setTitle(title)<br>                        .show();<br><br>                if (!mProcessingLastDevHit) {<br>                    enableDevelopmentSettings();<br>                }<br>                mMetricsFeatureProvider.action(<br>                        mMetricsFeatureProvider.getAttribution(mActivity),<br>                        MetricsEvent.FIELD_SETTINGS_BUILD_NUMBER_DEVELOPER_MODE_ENABLED,<br>                        mFragment.getMetricsCategory(),<br>                        null,<br>                        mProcessingLastDevHit ? 0 : 1);<br>            } else if (mDevHitCountdown &gt; 0<br>                    &amp;&amp; mDevHitCountdown &lt; (TAPS_TO_BE_A_DEVELOPER - 2)) {<br>                if (mDevHitToast != null) {<br>                    mDevHitToast.cancel();<br>                }<br>                mDevHitToast = Toast.makeText(mContext,<br>                        mContext.getResources().getQuantityString(<br>                                R.plurals.show_dev_countdown, mDevHitCountdown,<br>                                mDevHitCountdown),<br>                        Toast.LENGTH_SHORT);<br>                mDevHitToast.show();<br>            }<br><br>            mMetricsFeatureProvider.action(<br>                    mMetricsFeatureProvider.getAttribution(mActivity),<br>                    MetricsEvent.FIELD_SETTINGS_BUILD_NUMBER_DEVELOPER_MODE_ENABLED,<br>                    mFragment.getMetricsCategory(),<br>                    null,<br>                    0);<br>        } else if (mDevHitCountdown &lt; 0) {<br>            if (mDevHitToast != null) {<br>                mDevHitToast.cancel();<br>            }<br>            mDevHitToast = Toast.makeText(mContext, R.string.show_dev_already,<br>                    Toast.LENGTH_LONG);<br>            mDevHitToast.show();<br>            mMetricsFeatureProvider.action(<br>                    mMetricsFeatureProvider.getAttribution(mActivity),<br>                    MetricsEvent.FIELD_SETTINGS_BUILD_NUMBER_DEVELOPER_MODE_ENABLED,<br>                    mFragment.getMetricsCategory(),<br>                    null,<br>                    1);<br>        }<br>        return true;<br>    }</pre><p><a href="https://github.com/aosp-mirror/platform_packages_apps_settings/blob/3bf19b75fb0b32d9de9039acfd42afea3a433d72/src/com/android/settings/deviceinfo/BuildNumberPreferenceController.java#L55">source code reference</a></p><p>While the code is quite elaborate, it’s not too hard to get the gist of how it works based on the number of clicks (aka taps) on the relevant bit of UI by the user and how you could easily implement this in your Flutter app.</p><h3>DEEPLINKS: A NEW IDEA</h3><p>This is the method that I thought of recently when implementing deep linking in a Flutter app. If you are already using or are going to add deep linking support for your app, then gating access to the hidden UI via a deep link becomes a good alternative as once you have deep linking support setup in your app, it is relatively easy to add support to get a hidden UI via a deep link.</p><p>If you haven’t already enabled deep linking handling that is now built into current stable versions of Flutter, the Flutter documentation covers it well and with a package like this, you will essentially get deep link handling for free once you set up your routing with paths.</p><p>With that, we have covered 3 different ways that you can set up gating to “tester” UI in your Flutter app, including one that I think brings a novel approach to doing so.</p><p>I hope this has been of help to you and if it has or you have any other handy tips to share, please let me know where you can find me on the <a href="https://fluttercommunity.social/@maks">Flutter community Mastodon</a>.</p><p><em>Originally published at </em><a href="https://manichord.com/blog/posts/open-sesame"><em>https://manichord.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f44ab8920962" width="1" height="1" alt=""><hr><p><a href="https://medium.com/mobile-app-development-publication/open-sesame-f44ab8920962">Open Sesame</a> was originally published in <a href="https://medium.com/mobile-app-development-publication">Mobile App Development Publication</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>