Painel de Notícias

Tecnologia

1093 posts · 26 feeds · tópicos e interesse por Jev

Filtros1
dev.to

Advanced Privacy: A Practical Defense-in-Depth Guide

Privacy is not a product you install. It is a system of boundaries that prevents one disclosure from becoming a complete map of your life. No setup makes you invisible. A realistic privacy program does four things: reduces unnecessary collection; makes separate activities harder to correlate; limits the damage when a service or device is compromised; and gives you a tested path to recover. This guide is designed for ordinary people who want materially stronger privacy without turning daily life into a full-time security project. It also explains where common advice fails, especially around VPNs, SMS verification, virtual numbers, cloud backups, and identity compartmentalization. Scope: This is educational guidance, not legal advice. Border searches, telecommunications rules, identity requirements, and data-retention laws vary by jurisdiction. If your safety, liberty, immigration status, employment, or source protection is at stake, consult qualified local counsel or a digital-security specialist. Start with a threat model The 60-minute privacy sprint Build identity compartments Use an email architecture Separate payments and addresses Stop using your personal number everywhere Secure accounts and recovery Reduce device attack surface Protect communications Understand browsers, VPNs, and Tor Control the home network Minimize files, cloud copies, and backups Reduce public exposure Plan for home, travel, and checkpoints Prepare an incident-response sequence Implement the system in phases Buying privacy tools before defining the problem usually creates cost and complexity without meaningful protection. Start with one page and answer five questions. List the assets that must remain confidential, available, or authentic: conversations, location history, contacts, identity documents, funds, unpublished work, health records, account access, or a protected source. Separate data brokers, scammers, abusive acquaintances, employers, platform operators, thieves, litigants, and s

SegurançaMobile
Interesse
dev.to

Why Hermes bytecode defeats binary diffing — and how we got a one-line OTA hotfix down to 3.4 KB

Disclosure: I maintain react-native-update, the open-source SDK behind Cresc, an OTA update service for React Native. The benchmark code and data are public, and the technique applies to anyone shipping Hermes bundles. If you ship React Native over-the-air updates, you've probably assumed binary diffing solves the bandwidth problem: compute a bsdiff between the old and new bundle, send the patch, done. With plain JS bundles that's mostly true. With Hermes bytecode it isn't, and the reason is interesting. We measured on real release bundles of a React Native 0.86 app (Hermes HBC v98, with common dependencies like Paper, SVG, Sentry and CameraKit; ~1.5 MB gzipped): Release scenario Full bundle (gzip) Classic bsdiff Hermes-aware diff One-line text change 1,544.6 KB 93.7 KB 3.4 KB (28× smaller) Small feature (+1 component, ~60 LOC) 1,555.8 KB 411.6 KB 50.2 KB (8.2× smaller) Medium feature (+2 screens, ~300 LOC) 1,604.7 KB 551.6 KB 97.8 KB (5.6× smaller) A one-line change producing a 94 KB bsdiff patch is the giveaway: something is amplifying tiny source edits into large binary changes. Hermes stores strings in a table and refers to them by ID throughout the bytecode. On every compile it sorts that table by identifier frequency, so a one-line change perturbs the frequencies and renumbers dozens or hundreds of string IDs. Every instruction that references a shifted ID changes too. Result: two builds that differ by one line of JS end up differing in bytes all over the file. A generic diff algorithm sees thousands of scattered edits. Fix: Hermes has a delta mode (hermesc -base-bytecode= ). Compiling every release against the root bytecode of its version chain pins existing string IDs in place, so only code that actually changed shows up in the diff. Hermes embeds debug info in the bytecode by default. Compiling with -output-source-map moves it into an external .map, which shrinks the bytecode by about 21% before any diffing happens. You keep the map for symbolicating crashe

DevMobile
Interesse
dev.to

Building UPI Payments Into Your App in 2026: What Razorpay, Cashfree, PayU and Autopay Actually Cost You

If you're wiring UPI into an Indian app right now, the engineering decisions you make this month will hit your margins differently after October 15, 2026, when NPCI's new 0.4% MDR on UPI P2M transactions above ₹2,000 kicks in. Here's the developer-level version of what changed and what it means for how you build. The gateway layer itself hasn't changed much — Razorpay, Cashfree and PayU all still sit at roughly 2% + GST for cards, zero setup fee, and (until now) zero MDR on UPI. What's new is that your backend now needs to know, per transaction, which MDR bucket it falls into: standard P2M (0.4% above ₹2,000, capped at ₹300 on tickets ≥ ₹75,000), sector flat-fee (₹5 flat for insurance/fuel/utilities/education), capital markets (0.02%), or small-merchant-exempt (static QR, under ₹1 lakh/month). That's a data-modeling problem before it's a UI problem — your transaction schema needs a category field that didn't need to exist a year ago. If you're building recurring billing, the bigger engineering lift isn't the MDR change at all — it's UPI Autopay (still colloquially "UPI 2.0"), NPCI's e-mandate framework. You need mandate-creation flows, pre-debit notification handling, execution retry logic on insufficient balance, and mandate revoke/pause states, all of which are priced separately from one-time Collect/Intent transactions (Cashfree, for example, publishes roughly ₹7.50 per mandate creation and ₹5–15 per execution depending on ticket size). Practically, this breaks into three build tiers: a basic single-gateway UPI Collect/Intent checkout is a 1–2 week job; add a second PSP for failover plus Autopay mandates and you're at 3–5 weeks; go full Payment Aggregator with direct bank certification and multi-bank switch failover and you're looking at 2–4 months. Treat those timelines as a starting point, not a promise: your existing backend, team size and how much reconciliation you automate will move them in either direction. We wrote up the full cost breakdown with INR figu

DevMobile
Interesse
dev.to

Ordering, Receipts and Reconnects: The Chat Client Problems That Only Appear on a Bad Network

Ordering, Receipts and Reconnects: The Chat Client Problems That Only Appear on a Bad Network A chat feature demoed on office wifi is a solved problem. The same feature on a train is a different piece of software. Messages arrive out of order, the same message arrives twice, a send appears to fail and then succeeds, and the unread count disagrees with the thread. Working on real-time messaging at CometChat, the failures I see reported are rarely ""the socket did not connect"". They are subtler: a message that sits in a sending state forever, an ordering that differs between two devices, a duplicate after a tunnel. All four have the same root cause - the client trusted something it should not have. Here are the four assumptions worth removing from your chat client. The obvious sort key is the sender's clock, and it is wrong. Device clocks drift, users travel across time zones, and a phone that has been asleep can be several seconds off. Sorting by Date.now() at the sender produces a thread that reads differently on different devices. Order by a value the server assigns. A monotonically increasing per-conversation sequence number is the most useful shape, because it gives you three things at once: a total order that every client agrees on gap detection - if you hold 41 and 43, you know 42 exists and you are missing it a cursor for pagination that does not break when two messages share a millisecond Keep the sender's timestamp, and display it. Just do not sort by it. And when you render an optimistic message that has no sequence number yet, pin it to the end of the list rather than trying to guess its position. An optimistic UI shows the message immediately. Then the network does something ambiguous: the request times out, or the socket closes before the acknowledgement arrives. The client does not know whether the server accepted it. If the client retries and the server has no way to recognise the retry, the user has posted twice. This is the single most common duplic

DevMobile
Interesse
dev.to

Midnight Mimosa: Malware Preinstalled in Android Firmware for Ad Fraud and Residential Proxying

1. Basic Information Article Title: The phone was compromised before the user turned it on: the rise of Midnight Mimosa Publisher: Bitdefender Labs Publication Date: 2026-10-08 Original: Bitdefender Labs Related Source: BleepingComputer Related Malware and Threat Groups: Midnight Mimosa Related CVE: None specified Related Products: MediaTek Android devices, Google Play Severity: Critical Midnight Mimosa is embedded in the firmware of low-cost MediaTek Android devices as a platform-signed system app, enabling unauthorized payload installation, privilege grants, ad fraud, and residential proxying. A malicious enabler is integrated into the device firmware as a platform-signed system app. After the initial boot, a native library decrypts and loads an embedded framework, which retrieves remote configuration from a C2 server disguised as a weather API and downloads additional modules. The Google Play Store is temporarily disabled to silently install a disguised payload app and grant dangerous permissions. A cover app performs ad fraud, or a no-icon app registers the device for a residential proxy service. Payloads are rotated frequently, updating hashes and visual artifacts. The threat actors utilize a system app embedded in the factory firmware alongside a remote C2 server. The specific injection phase and involved entities remain unconfirmed. Users: The firmware-resident enabler masquerades as a system component, has no launcher icon, and cannot be uninstalled through standard methods. Payload apps may resemble weather or AppLock apps; some also hide their launcher icons. Administrators: Indicators include unauthorized permission modifications by system apps, disabled Google Play Stores, silent package installations, and anomalous ad or proxy traffic. Devices preloaded with the malicious firmware are distributed and powered on. The system app successfully communicates with the C2 server and module CDN. Apply firmware updates if the vendor provides a clean version confi

SegurançaMobile
Interesse
dev.to

QR-code login can be phished. Here is how we closed the hole

QR-code login looks safe. You scan a code, approve on your phone, and the computer is signed in. No password typed, nothing to phish. We run ClientN, an anonymous sign-in service, and our own QR flow had the same hole most QR logins have. This post is about what that hole was and the four changes we shipped to close it. The attacker opens a real website that uses ClientN and starts a sign-in. The site shows a QR code and a short match code. The attacker copies that QR code onto a page they control: a fake "scan to claim your reward" page, a fake support chat, anything. The victim scans it. Their phone opens the real ClientN page, on the real domain, with a valid TLS certificate. They see a match code, and the fake page shows the same one, because the attacker copied it. The victim approves. The website signs in the attacker's browser, because that is the browser that started the request. Nothing was faked on our side. The victim approved a real request, just not one they started. Match codes don't help when the attacker can show the same code. Passkeys don't help either: the passkey proves the victim is the victim, not that the victim is sitting at the computer that asked. There was a second, smaller problem. If you were already signed in to ClientN, approving a website was one tap on "Confirm". No fingerprint. Anyone holding your unlocked phone could approve sign-ins. Approving a website sign-in now always asks for the passkey again, and the WebAuthn challenge is tied to that one sign-in request. Having a ClientN session cookie is no longer enough to approve anything. When the person signs in on the same device, the site redirects to ClientN and ClientN redirects back. This works much like OAuth's PKCE: When the site creates the request, it sends a code_challenge (a SHA-256 hash of a random secret it keeps). After approval, ClientN redirects back to the site's registered return address with a one-time code. The site swaps the code at POST /api/v1/sessions/{id}/exch

SegurançaMobile
Interesse
dev.to

The Hidden Performance Ceiling of React Native Skia in Production

I was three weeks out from a major release for a clinical HealthTech platform when we hit a wall that didn't exist in our staging environment. We were using react-native-skia to render real-time physiological waveforms—ECG and SpO2 data—streaming from wearable devices. On an iPhone 15 Pro, the 60 FPS animations were fluid. On the mid-range Android tablets used in the clinics, the UI thread stayed responsive, but the Skia drawing layer began to lag three seconds behind the actual data stream. The symptom wasn't a crash or a Redbox error. It was "frame accumulation." Because Skia runs on the JavaScript thread by default (or the UI thread depending on your configuration), high-frequency updates to a SkiaView can saturate the bridge or the JSI, leading to a mounting execution queue. We lost three days of development trying to reconcile why the same code that passed automated performance tests failed when subjected to the sustained, 24-hour data streams required for clinical monitoring. In my experience shipping 18 production applications, Skia is often touted as the "Flutter-like" saviour for React Native performance. The reality is that it introduces a new category of failure modes—specifically memory leaks in the C++ layer and drawing cache invalidation storms—that you won't see in a "Hello World" or a basic chart demo. Most developers treat Canvas like a standard React component. If the props change, the component re-renders. However, react-native-skia uses the JSI (JavaScript Interface) to host C++ objects. When you pass a large array of points to a Path object 60 times a second, you aren't just changing a pointer; you are asking the Skia engine to re-tessellate geometry. The failure happens because of the Asynchronous Mismatch. Even with the New Architecture (TurboModules and Fabric) in React Native 0.76, the bridge between the JS logic calculating the path and the GPU executing the draw call has a finite throughput. If your calculation takes 12ms and your draw tak

DevMobile
Interesse
dev.to

React Native OTA Is a Release Pipeline, Not a Download Feature

“Download a new JavaScript bundle and run it” describes transport. It does not describe a production release system. A real React Native OTA implementation has to preserve compatibility with installed binaries, identify immutable artifacts, decide which release each device should receive, verify downloads, control activation, observe adoption, and recover when an update fails. Those are separate boundaries. Treating them as one download call is how a convenient feature becomes an operational risk. A React Native application always contains a native binary. That binary defines the native modules, platform configuration, permissions, build-time environment, and embedded JavaScript that shipped through the store. An OTA update can replace compatible JavaScript and related assets. It cannot safely add a native capability that the installed binary does not contain. That gives us the first rule: An OTA artifact is valid only for a runtime that already provides everything the artifact expects. Whether the change was written in JavaScript is not enough. What matters is whether the installed binary can execute it safely. A production pipeline is easier to reason about when each stage has one job: Stage Responsibility Build Produce the JavaScript bundle, assets, and source map Identify Assign an immutable artifact and runtime identity Publish Make an artifact intentionally eligible for release Resolve Select the right release for this device Transfer Deliver a full bundle or compatible patch Verify Check identity, integrity, and authenticity Stage Store the candidate without replacing the active bundle Activate Apply the candidate at a controlled lifecycle point Observe Record checks, downloads, activations, health, and failures Recover Return to a previous good or embedded bundle when necessary The important part is not the labels. It is refusing to let one stage silently take responsibility for all the others. A useful release artifact is more than a bundle file. It normall

DevMobile
Interesse
dev.to

Why Cloud-First Event Check-ins Fail at 10k Scale And How We Built an Edge-First Alternative

If you have ever built an event registration or ticketing app, the default architecture usually looks clean on paper: Attendee shows a QR code on their phone. A scanner app hits a cloud REST API (POST /api/v1/checkin). An auth token is verified, PostgreSQL flips checked_in = true, and a 200 OK returns. Total round-trip time: ~180ms. In staging, this works flawlessly. Even with synthetic loads of 500 req/sec across a few load balancers, everything stays green. Then production happens at an enterprise expo center in Riyadh. Within 40 minutes, 8,000 attendees arrive at once. Local cellular towers saturate instantly. The venue’s commercial fiber drops from 300 Mbps down to intermittent 2 Mbps bursts. Latency shoots from 180ms to 9 seconds, gateways start returning 504 Gateway Timeout, turnstiles stop opening, and the physical line stretches out the entrance. Here is an architectural post-mortem on why cloud-first check-in fails under burst concurrency, and how we redesigned the physical gate stack around local edge nodes, SQLite WAL journaling, and passive UHF radio telemetry. When physical gate hardware waits on a network handshake before actuating a barrier or firing a thermal print head, network latency dictates your physical throughput. Consider the math: At 200ms per scan, a single lane processes ~5 delegates per minute (ignoring human movement). At 3,000ms latency (common when 4G/5G degrades under crowd density), that lane drops to fewer than 1.5 delegates per minute. With 20 lanes and 6,000 delegates arriving between 8:15 AM and 8:45 AM, a queue of 2,000+ people forms within 12 minutes. To guarantee zero wait time, the gate controller must never make a blocking remote network call during the transaction. The admission decision must happen strictly on local hardware in under 10 milliseconds. Instead of thin clients polling a central DB, each gate lane runs a hardened Linux edge controller (e.g., an industrial SBC or embedded mini-PC) connected directly via RS-232/

InfraDevMobile
Interesse
dev.to

Defending the 16ms Frame: A Performance Budget for React Native TurboModules

I was the first engineering hire at Synapsis Medical Technologies, where I owned the architecture for a HealthTech AI platform from day zero. We were integrating real-time health data from wearables and running HIPAA-aligned RAG pipelines. During a critical phase of our scaling—where I grew the team from zero to 21 engineers in 13 months—we hit a wall. We were building a clinical dashboard that needed to stream high-frequency biometric data. On the old Bridge architecture, the serialisation overhead was killing us. Frames were dropping, the UI felt "heavy," and our clinical users—doctors who don't have patience for laggy interfaces—started complaining. We had moved to React Native 0.76 to leverage the New Architecture, but simply "using TurboModules" didn't fix the jank. The problem wasn't the technology; it was the lack of a ceiling. We were treating native calls as "free" when they were actually the most expensive part of our render loop. I had to implement a strict performance budget to stop the team from inadvertently shipping 100ms blocks to the main thread. This moved us from a vague "make it faster" mandate to a measurable 16.6ms frame budget that we defended in every PR. In the legacy architecture, the Bridge was a bottleneck because of asynchronous JSON serialisation. TurboModules solve this by using JSI (JavaScript Interface), allowing direct C++ communication. However, I’ve found that developers often treat JSI as a license to move massive amounts of data frequently. If you pass a 5MB clinical dataset over JSI every 100ms, you won't see a "Bridge Busy" warning, but you will see the JavaScript thread stall while the C++ layer handles the memory allocation. In our case, the cost was a two-day release cycle that I eventually cut to four hours by automating the validation of these boundaries. If the codegen didn't match the performance spec, the build failed. The documentation tells you how to write a Spec file and run node-modules/.bin/react-native codegen.

DevMobile
Interesse
dev.to

The iOS Screen Time API in 2026: What Apple's Docs Don't Tell You

FamilyControls, DeviceActivity and shield extensions, from shipping an app blocker. I spent August and September 2026 shipping an app blocker on iOS. It uses the Screen Time frameworks (FamilyControls, DeviceActivity, ManagedSettings and ManagedSettingsUI) from React Native, through Expo SDK 57 and the react-native-device-activity library (0.6.1). Apple's documentation tells you what each type is. It says very little about how they behave on a real phone, overnight, on iOS 26. This is the list I wish I'd had. Behavior I saw on a device but can't find documented is labeled [observed]; it may not hold on every iOS version. Items specific to the React Native library are labeled [library]; skip those if you write Swift directly. Contents The moving parts Entitlements: one per bundle ID The App Group is the only channel Tokens are opaque, and the picker Metering usage with threshold events Schedules don't start when you think stopMonitoring fires intervalDidEnd iOS 26 phantom thresholds A shield can't open your app Keeping custom extensions through prebuild Xcode 26, the Simulator, and testing And on Android Checklist Quick answers Why I needed all this "The Screen Time API" is four frameworks and, in practice, three app extensions: FamilyControls: authorization (AuthorizationCenter, with .individual for a self-control app) and the FamilyActivityPicker, which returns a FamilyActivitySelection of app, category and web-domain tokens. ManagedSettings: a ManagedSettingsStore you put those tokens into to shield them. DeviceActivity: schedules and usage-threshold events. The callbacks (intervalDidStart, intervalDidEnd, eventDidReachThreshold, and the warning variants) are delivered to a DeviceActivityMonitor extension, not to your app. ManagedSettingsUI: a ShieldConfigurationDataSource extension that styles the shield, and a ShieldActionDelegate extension that handles its buttons. The extensions are the point. My app is usually suspended or killed when a user runs out of time,

MobileDev
Interesse
dev.to

SMS OTP Delivery in Go: How Carrier Filtering and Sender Registration Fail

Short answer: treat a gaming account's short-expiry password-reset SMS as an asynchronous, evidence-producing workflow, not as a successful POST. Register the sender before launch, bind each attempt to the account being recovered, poll delivery state, rate-limit resends, and keep a fallback that does not depend on the same carrier path. This matters even more when the reset is part of legal-intake verification: an accepted API request proves neither handset delivery nor that the correct person controlled the phone. Normal delivery can fail because a sender is unregistered, a US or EU carrier filters the traffic, the handset is unavailable, or a route is temporarily delayed. None of those conditions becomes less real because the code expires quickly. The operational target should therefore separate API acceptance, delivery evidence, and successful verification, with an SLO for each state transition and an alert on attempts stuck before expiry. An SMS provider can accept work before a carrier makes its own decision. Sender registration and campaign rules affect that downstream decision, while handset conditions and temporary routing delays sit beyond the application's immediate control. Shared routes deserve particular scrutiny because the reputation and registration context may not map neatly to one game's traffic. The dangerous implementation has one Boolean named sent. A more defensible ledger records an internal attempt ID, user ID, destination country, provider message ID, requested time, expiry time, last observed delivery state, resend lineage, and the final verification result. Do not log the OTP itself. Retain the minimum evidence your legal and security teams approve, and make the retention period an explicit policy rather than an accidental property of application logs. Acceptance is not delivery. There is no webhook event push in Infrai's SMS or email namespaces, so delivery evidence must be pulled from its status or event resources. That limits orchestrat

DevSegurançaMobile
Interesse
dev.to

Architecture of Modern Web Game Engines: Canvas Rendering, CSPRNG Fairness, and WebRTC Voice in Production

Architecture of Modern Web Game Engines: Canvas Rendering, CSPRNG Fairness, and WebRTC Voice in Production For decades, digital implementations of classical tabletop games—from chess and draughts to backgammon—suffered from clunky, lag-ridden interfaces. Early web iterations relied on heavy Flash plugins, clumsy Java applets, or fragile DOM manipulation where every checker drag triggered expensive browser reflows and repaints. In this comprehensive technical review and architectural breakdown, we examine what it takes to engineer a modern, low-latency, cross-platform tabletop engine capable of delivering 60/120 fps tactile responsiveness, mathematically verifiable randomness, and instant peer-to-peer voice streaming directly inside the browser. A classic 24-point backgammon board or an 8x8 checkerboard involves dozens of interactive assets: checkers, pips, dice animations, doubling cubes, and tactical highlights. When developers represent each checker piece as an independent HTML or SVG element: Every touch or mouse drag fires continuous pointermove events that mutate style transforms (transform: translate3d(...)). In complex DOM trees, mutating multiple nodes can trigger recalculation of styles and composite layer thrashing, resulting in dropped frames (jank) on mobile browsers and lower-tier Android devices. Z-index stacking contexts often become chaotic when multiple pieces are borne off, hit to the bar, or re-entered into home boards. Modern high-performance engines bypass the DOM entirely by mounting a single hardware-accelerated element. Using custom 2D drawing routines (or WebGL/WebGPU shaders for dynamic lighting and physical shadows): // High-performance requestAnimationFrame tick with frame-rate independence function renderTick(timestamp) { const deltaTime = timestamp - lastFrameTime; lastFrameTime = timestamp; // 1. Process interpolated animations (dice rolls, checker slides) updateAnimations(deltaTime); // 2. Clear canvas with dirty rect or full clear ct

GamesDevMobile
Interesse
dev.to

Measuring the ROI of TurboModules before you commit to the rewrite

I was leading the architecture for a clinical AI platform at Synapsis Medical Technologies, where we were integrating real-time health data from wearables into a React Native environment. We were hitting a wall with the Bridge. As we scaled to handle high-frequency biometric streams, our UI thread started dropping frames during heavy data ingest. The immediate internal pressure was to migrate everything to TurboModules and the New Architecture (React Native 0.76+). The promise of synchronous execution and type-safe Codegen is seductive. However, I had a team of 21 engineers and a product roadmap that didn't include a month of "architectural refactoring" with no visible feature output. If you blindly migrate a stable Native Module to a TurboModule, you might spend 40 hours of engineering time to save 2ms of overhead that wasn't your bottleneck. I’ve shipped 18 production apps, and the most expensive mistake I see is optimising for architectural purity rather than measured latency. Before you touch codegen, you need to know if the Bridge is actually your problem. In the legacy architecture, every call between JavaScript and Native is asynchronous, serialised as JSON, and passed over a single queue. When we were streaming data from a wearable heart-rate monitor, each data point was a Bridge message. If the user was also interacting with a complex UI—say, a real-time graph—the Bridge became a bottleneck. The symptom wasn't just "slowness"; it was non-deterministic lag. The JSON serialisation overhead for a large array of health metrics can take 5–10ms. When you do that 60 times a second, your message queue backs up, and your onPress events stay stuck behind data packets. TurboModules solve this by using JSI (JavaScript Interface), allowing JS to hold a reference to C++ host objects. You move from "sending a letter" (Bridge) to "calling a function" (JSI). But if your module only fires once every 10 seconds—like a battery level check—the Bridge overhead is irrelevant. Do

DevMobile
Interesse
dev.to

Android System Design: A Practical Guide for Senior Android Engineers

Learn how to design production-ready Android systems with scalable architecture, offline-first data, networking, synchronization, security, performance, and real-world examples. Modern Android development is no longer only about building screens and connecting APIs. As an Android application grows, engineers need to think about: Scalability Reliability Offline support Data synchronization Networking Caching Security Performance Background processing Real-time communication Modularization Maintainability A production Android system is a combination of the mobile client, backend services, data stores, networking layer, and operational infrastructure. This article explains how to approach Android system design from a senior mobile engineer's perspective. Mobile system design is the process of designing the complete architecture of a mobile system and understanding how its components communicate. A simplified production architecture looks like this: Android Application | ------------------------------------------------- | | | Compose UI Local Storage Network | | | ViewModel Room Retrofit | | | UseCase | API Gateway | | | Repository ------------- | ------------------------- | | | ------------------------- | | | | | Auth Chat Media | Service Service Service | | | | | | Redis CDN | | | | | Database | | ---------------------- Backend ----------------------------- The important idea is that Android is one part of the overall system. System design generally involves two important levels. SYSTEM DESIGN | -------------------------- | | HLD LLD | | High-Level Design Low-Level Design | | Components Classes Services Interfaces APIs Methods Databases Models Cache Patterns Communication Concurrency Scalability Error handling HLD answers: What are the major components and how do they communicate? Example: Android App | +---- REST API ------> API Gateway | +---- WebSocket -----> Chat Service | -------------------- | | | Redis Database Queue At HLD level, focus on: System components Da

MobileDev
Interesse
dev.to

React Native Mobile App SMS OTP: Evidence-Governed Backend Access for Logistics Operators

TL;DR: Restore access reliably by making invalid-recipient suppression a reversible, server-owned evidence decision, while treating React Native autofill and resend timers as interface conveniences. Page when eligible administrators stop completing recovery, then use an attempt trace to distinguish bad destination evidence, delayed delivery, throttling, and incorrect codes. The least complex design is one backend policy layer, one normalized delivery adapter, and one auditable suppression ledger. The page says logistics administrators cannot regain access before a dispatch shift. The on-call sees recovery completions falling, but send requests still being accepted. That mismatch matters: transport acceptance is not receipt, and receipt is not successful account recovery. An alert on API errors alone would stay quiet at exactly the wrong moment. Work backward from the failed outcome. The trace needs an opaque attempt ID, policy version, send decision, normalized delivery outcome, verification result, and suppression evidence; it must never contain the OTP or a raw phone number. The earlier signal should have been a burn against the recovery SLO, segmented by coarse region and outcome class, rather than a page for every rejected message. Start with the denominator. Define the recovery SLI as eligible attempts that reach verified status within the server-controlled lifetime divided by eligible attempts started. Keep suppressed, expired, rate-limited, provider-unavailable, and incorrect-code outcomes separate. Combining them produces a tidy graph and a useless incident response: each class has a different owner and remedy. A depot's shift change can create a legitimate burst. An abusive client can create a similar send rate with almost no successful verifications. Send volume cannot tell those conditions apart, so it is a capacity signal, not a recovery-success signal. Watch sends per completed recovery beside completion rate, and retain the state transitions needed to

InfraDevMobile
Interesse
dev.to

Live data in React Native without polling: SSE, background handling and an honest status bar

A wind turbine dashboard showed a value that looked perfectly fresh. It wasn't. The connection had dropped, the display had frozen, and nobody could tell. In monitoring, that's the worst kind of bug. It doesn't crash. It just quietly lies. This post shows how we built the live layer of the Windhunde app so that can't happen again: no polling, Server-Sent Events (SSE) end to end, and a status bar that always tells the truth. TL;DR Send a full snapshot first, then only deltas. Reconnecting becomes trivial. In a native app, SSE is nicer than in the browser: you can send auth headers. Keep the live logic in a platform-free TypeScript package and inject the transport. When the app goes to the background, close the stream yourself. On return, show loading, never the last value. Make freshness visible. A green dot says nothing about how old a value is. The snippets are simplified to show the patterns. They are not copied from the production code. The setup The pipeline: from turbine to phone Why SSE fits a native app better than the browser Share the hard part between web and app The OS kills your connection and won't tell you An honest status bar Charts that don't lie What we left off the stream Windhunde operates and services wind turbines. The platform has a web dashboard and a React Native app (Expo, Expo Router, Hermes, New Architecture) for iPhone, iPad and Android. The brief was "1:1 with the web". Wrapping the dashboard in a WebView was ruled out. So was rewriting every formula for mobile, because that produces two versions of the truth within months. The turbine controllers are old. They don't have a modern API. Each one exposes a ~600-byte XML file that mirrors its four-line text display. Here's the flow: A poller asks each controller for its state every two seconds. It sends a conditional GET with the last ETag. If nothing changed, the controller answers 304 with no body, and nothing is written. On a real change, the importer writes a row to PostgreSQL (with Tim

DevMobile
Interesse
dev.to

I Benchmarked My AI Carb Counter on 400 Meal Photos: 8 Models, 1 Holdout Set

I build Soba, an iPhone app that looks at a photo of a meal and estimates the carbs in it. People with type 1 diabetes use numbers like that to dose insulin, so "it seems to work" wasn't a good enough answer. I ran it on 400 meal photos from two public research datasets where the carbs were weighed or recorded, and published the method, the misses and the per-meal data on the Soba accuracy page. This post is the engineering side of that test: how the benchmark was set up, which of eight models won, and the bugs a production-path test turns up that a separate eval harness can miss. The full write-up on my blog has the per-meal-size breakdown and the comparison with published ChatGPT studies. The photos come from Nutrition5k (Google cafeteria plates, every ingredient weighed, fixed overhead camera) and SNAPMe (95 people in the US photographing their own meals and logging them in a food record). The first is clean, controlled data. The second looks like what users actually shoot. A few choices did most of the work: A script with a fixed seed drew 25 meals from each quarter of the carb range, per dataset, so no part of the range ended up under-sampled by chance. Cafeteria plates photographed within the same ten minutes often look nearly identical, so the script capped how many it took from one ten-minute window. The confidence intervals come from a bootstrap that resamples whole clusters (all photos from one SNAPMe participant, or from one ten-minute cafeteria window), because near-duplicate photos aren't independent samples. There are two disjoint sets of 200. All error analysis and prompt work happened on the first set; the second stayed untouched until a result needed confirming. Every photo was downscaled to 1,024 px on the long side like the app does and sent through the same server code, with the same instructions and model settings. There's no eval-only prompt. The main metric is the share of meals within 10 g of the reference carbs, roughly one bread unit. Faile

IADevMobile
Interesse
dev.to

Your @Stable Data Class Isn't the Recomposition Leak — the Lambda Next to It Is

The setup You've got a @Stable data class, you're passing it into a composable, and Layout Inspector's recomposition counter is still climbing every time the parent redraws. The usual advice — "mark your classes @Stable or @Immutable" — doesn't fix it, because the leak isn't in the data class. It's in the lambda next to it. @Stable data class CartSummary(val itemCount: Int, val totalCents: Long) @Composable fun CartHeader(summary: CartSummary, onCheckout: () -> Unit) { Row { Text("${summary.itemCount} items — ${summary.totalCents.toFormattedPrice()}") Button(onClick = onCheckout) { Text("Checkout") } } } CartHeader looks stable on paper: a @Stable data class and a function-typed parameter, which Compose treats as stable if the lambda itself is stable across recompositions. The bug lives in how the caller constructs that lambda. @Composable fun CartScreen(viewModel: CartViewModel) { val summary by viewModel.summary.collectAsStateWithLifecycle() var promoCode by remember { mutableStateOf("") } CartHeader( summary = summary, onCheckout = { viewModel.checkout(promoCode) } // new instance every recomposition ) } Every time CartScreen recomposes — and promoCode changing on every keystroke guarantees that — the trailing lambda passed to onCheckout is a new object. Compose's stability check for CartHeader compares the lambda instance, not its captured values' equality, so a structurally identical-looking lambda still reads as "changed," and CartHeader recomposes along with it, even though summary itself didn't change and the composable only cares about onCheckout being callable, not which promoCode snapshot it happens to close over. This is the part Layout Inspector won't tell you directly: it'll show CartHeader recomposing on every keystroke in an unrelated text field, and the instinct is to go check CartSummary's stability, which is a dead end — it was never the problem. The lambda doesn't need to capture promoCode by value at the point it's created — it needs to read pro

DevMobile
Interesse
dev.to

Native incoming calls in React Native: CallKit on iOS, full-screen calls on Android

From the Streaming CDN team. The original, kept up to date, is at streaming-cdn.ewin888.com/guides/react-native-incoming-call-screen. A calling app has to ring when it is not running: on a locked iPhone, on an Android phone in a pocket, after the system has reclaimed the process. That takes a push that wakes the app and a system incoming-call screen, on each platform in its own way. This guide shows how the Streaming CDN calling SDK does it for React Native and Expo. The caller starts a call; the call service sends a push with the call id, caller and mode (audio or video). iOS: a VoIP push (PushKit) wakes the app, which reports the call to CallKit. Android: an FCM message wakes the app, which shows a full-screen incoming-call notification. The person answers from the lock screen. The app accepts the call with its client token. The service makes the accept atomic — the first device to answer wins — and returns the media credential to that device only. Every other device signed in as the same person stops ringing. The push itself carries no media token and no server key; the media credential is returned only after the accept succeeds. { "callId": "rtc_call_...", "callerId": "user-17", "callerName": "Alex", "mode": "video", "expiresAt": "2026-07-26T04:00:00Z" } npm install @streaming-cdn/rtc-react-native react-native-webrtc Bare React Native apps rebuild the native project as usual. Expo apps need expo prebuild and a development build or EAS Build — Expo Go cannot load a native WebRTC runtime. Add @streaming-cdn/rtc-react-native to the Expo plugins list so the camera and microphone usage descriptions are generated. Upgrading from a version without the native call layer means rebuilding the native project; until then native calls report that the module is unavailable. Your backend keeps the server API key and hands the app a short-lived credential: import { ReactNativeRtcClient } from "@streaming-cdn/rtc-react-native"; const identity = await fetch("https://your-backend.

MobileDev
Interesse
dev.to

How I moved my Pokémon card scanner from a server onto the phone

I build Pooka, a Pokémon card collection app for iOS, Android and web. Until version 2.0, scanning a card meant uploading a photo: the server turned it into a CLIP embedding and ran a vector search over every card image. It worked, but every scan waited on the network and cost server time. For 2.0 the whole pipeline runs on the phone, in Flutter. This is what that took, including the parts that went wrong. A corner detector finds every card in the camera frame and its four corners, so a binder page with nine cards becomes nine upright crops. An embedding model turns each crop into a 256-dimensional vector. That vector is matched against an index of about 47,000 English and Japanese cards that ships inside the app. An accept rule decides whether to add the card straight away or show a short list to pick from. No OCR anywhere. Card text is small, often Japanese, and frequently behind a glossy sleeve; the artwork carries far more signal. The hardest part wasn't the model, it was data. There is no labelled set of real phone photos covering 47,000 cards, and there never will be. So I wrote a simulator that turns clean catalog scans into fake phone photos: perspective, tables and playmats as backgrounds, lighting changes, shadows, glare and blur, single cards, overlapping piles and binder pages. Every training image comes out of it, with the exact card and its corners as free labels. To check the model against something closer to reality, I rendered cards in Blender: in sleeves, in toploaders, in binder pockets, under different lights. That gave 605 evaluation images with 992 cards whose exact identity is known. A small set of hand-labelled real photos sits on top of that. Honest caveat: the evaluation is mostly synthetic. Only 39 of the test cards are real photos, so one real photo moves that sub-score by 2.6 points. I trained three candidates under the same 60-minute budget: DINOv2-small, a Perception Encoder model and MobileNetV4. DINOv2-small and the PE model tied on

IADevMobile
Interesse
dev.to

OpenTelemetry-Native Android: Wiring OTel SDK to Compose Navigation for Distributed Trace Propagation Without the APM Tax

--- title: "OTel Android: Distributed Tracing in Compose Navigation Without the APM Tax" published: true description: "Wire OpenTelemetry's Android SDK to Jetpack Compose Navigation for distributed trace propagation, W3C trace-context in Ktor headers, and a sampling strategy under $50/month at 10M events." tags: android, kotlin, mobile, architecture canonical_url: https://mvpfactory.co/blog/otel-android-compose-navigation --- Today you will wire OpenTelemetry's Android SDK to Jetpack Compose Navigation. By the end, you will have end-to-end distributed trace propagation — from screen transition to backend span — for roughly $20–$50/month on self-hosted Grafana Tempo at 10M events. No Datadog. No New Relic. No vendor lock-in. Here is why that matters: Approach Monthly @ 10M events SDK size Vendor lock-in Datadog Mobile RUM ~$180–$400 6.2 MB High Firebase Performance Free (sampled) 1.1 MB High New Relic Mobile ~$200–$350 5.8 MB High OTel SDK + Grafana Tempo ~$20–$50 0.8 MB None Jetpack Compose project with Navigation component Ktor HTTP client OpenTelemetry Android SDK on your dependencies A Grafana Tempo instance (self-hosted or Grafana Cloud) Let me show you a pattern I use in every project. NavController.addOnDestinationChangedListener fires on every screen transition — it is your single integration point for the entire nav graph. @Composable fun ObserveNavTracing(navController: NavController, tracer: Tracer) { DisposableEffect(navController) { val listener = NavController.OnDestinationChangedListener { _, destination, _ -> val span = tracer.spanBuilder("nav.transition") .setAttribute("screen.route", destination.route ?: "unknown") .setAttribute("screen.id", destination.id.toString()) .startSpan() NavTraceRegistry.set(destination.id, span) } navController.addOnDestinationChangedListener(listener) onDispose { navController.removeOnDestinationChangedListener(listener) } } } Call ObserveNavTracing once at your navigation root. That is it — one span per screen, zero per

MobileInfraDev
Interesse
dev.to

Anime-style action FX in Compose Multiplatform, no shaders, one codebase

You know the look. A sword swing trails a glowing ribbon of water. A bolt of lightning forks across the frame. Speed lines snap inward on the impact beat, and a shower of embers drifts up behind it. That is anime action, and it usually implies a game engine, platform shaders, or a pile of dependencies. This post builds that look in plain Compose Multiplatform. The exact same Kotlin runs on Android and iOS, there are no shaders, and nothing extra is pulled into your app. Every snippet is from KMPMedia, an open-source library on Maven Central: implementation("se.solidkey:kmpmedia-lib:1.32.0") The usual way to get rich motion FX is a fragment or pixel shader (RuntimeShader on Android 33+, SkSL on iOS). Shaders are powerful, but they cost you two things that matter for a multiplatform app. They split the codebase, because now you maintain shader code with its own language and its own capability floor per platform. And they are not deterministic across GPUs, so the "same" effect can look subtly different from device to device. There is another path. Keep the math on the CPU, in shared commonMain, and let Compose's Canvas and graphicsLayer do the GPU compositing. Two rules make that fast enough: Parse once, interpolate per frame. Build the heavy geometry a single time, then only lerp points each frame. Glow by addition, not blur. A soft halo is a few additive passes of the same shape, which the GPU composites for free. Follow those two rules and you get 60fps, byte-for-byte determinism, and one codebase. Everything below does exactly that. The hero effect is a tapered ribbon drawn along a spline, with a draw-on reveal and a flowing gradient. The centreline is a centripetal Catmull-Rom spline (so it never loops or cusps on sharp input), sampled once; each frame only rebuilds the outline and advances the reveal. The gradient is interpolated in OKLab rather than sRGB, so the middle of a blue-to-navy ramp stays saturated instead of going grey. The edge wobble comes from simpl

DevMobile
Interesse
dev.to

I gave Claude Code hands: it drives my real Mac and Android phone

Most "AI agents" stop at text. They plan, they explain, they hand you a snippet to run yourself. I wired it into Claude Code. Here is what that actually looks like. Auten ships as an MCP server on npm, so any MCP client can use it: claude mcp add auten -- npx -y @autenai/mcp That is it for Claude Code. Cursor, Codex, and other MCP clients use the same package with their The thing that surprised me: you do not script coordinates or write selectors. You give the agent a A real task I ran: "open System Settings and turn on Night Shift from sunset to sunrise." The agent "turn on battery saver" — it drove the Android Settings app the same way. No API exists for either of those. It worked because Auten operates the real UI, not an integration. A computer-use agent is only useful if it is repeatable, cheap, and safe. Three things do that: Learns a task once, replays with no AI call. Record a task once and Auten saves it as a skill with parameters. Next time Auten replays it deterministically — seconds, no model tokens. Self-heals when the UI shifts. When a button moves or a layout changes and a saved skill breaks, it repairs the step from where it failed instead of dying. Secrets stay local. Passwords and keys are typed on your machine through a local login path; the agent never sees the value. This is early. It is genuinely good at UI navigation, form filling, and multi-step tasks across apps, If you are building agents that should do real work instead of just chatting, this is the missing auten.ai/mcp

IADevMobile
Interesse
dev.to

LLM Food Recognition in Production: What Shipping soba Taught Me

TL;DR I spent the last few months building soba, an iOS app that photographs a meal and returns carbs, glycemic index, and portion weights for people who count carbohydrates. The recognition backend went through one model migration, one full prompt rewrite, and a stack of validation code. Three things carried almost all of the improvement: picking the model with a benchmark instead of vibes, forcing strict JSON Schema through OpenRouter, and rewriting the prompt around scene scale rather than food identity. Model choice turned out to be the smallest lever of the three. Every model I tested misjudges portion weight by 25–35%, so the UX for correcting weight beats another round of model shopping. Fact Value Source Verified Best nutrition MAPE on DiningBench 24.45% — Gemini-3-Pro (reported) arXiv:2604.10425 Aug 29, 2026 GPT-5 nutrition MAPE on same bench 32.17% (reported) arXiv:2604.10425 Aug 29, 2026 gemini-3.1-pro-preview price $2 / $12 per 1M tokens OpenRouter Aug 29, 2026 gemini-3.6-flash price $1.50 / $7.50 per 1M tokens OpenRouter Aug 29, 2026 Cost per scan (my prod) $0.005–0.01 soba server billing Aug 29, 2026 Scan latency (my prod) 2.6–6 s soba server logs Aug 29, 2026 The app is aimed at people with type 1 diabetes: carb counting several times a day, every day. You point the camera at a plate, and a few seconds later you get a list of items with weights, net carbs per 100 g, and a glycemic index estimate. There's a barcode path for packaged food too. Under the hood it's a Go server (internal/recognize/) that sends the photo to a multimodal LLM and turns the answer into something a diabetic can act on. That framing shaped every technical decision. A person dosing insulin needs grams of digestible carbohydrate, an honest error bar, and no surprises when the model has a bad day. I picked the starting model off a benchmark instead of marketing pages. DiningBench evaluates 29 models on 3,021 dishes for exactly this task. Gemini-3-Pro led both fine-grained dish clas

IADevMobile
Interesse
dev.to

Your AI Agent Has More Authority Than Your Intern. Here Is How To Design The Limits

Out of 272,000 injection attempts against 13 frontier AI agents, 8,648 succeeded. The rate ranged from 0.5% to 8.5% depending on the model, and every model in the test proved vulnerable (Source: Large-Scale Public Red-Teaming Competition, 2026). That number stopped mattering the moment a phone vendor started rewriting its permission system because of what agents were doing with it. On October 2, 2026, Apple published a developer notice titled "Updates to Full Disk Access in macOS." The post announced no new feature. It announced a repair. Apple wrote that some developers use Full Disk Access "in ways that could put users at risk, exposing everything on their systems - including files, mail, messages, and even browsing history - without users' full knowledge and understanding" (Source: Apple Developer News, 2026). The timing was not coincidental. Days earlier, an Inc. columnist reported that Meta's Muse agent on his Mac knew the content of his private messages. Meta disputed the account. Whether or not the claim holds, the reaction tells you how much authority users now assume these tools carry (Source: TechCrunch, 2026). Apple framed the fix as consent, not restriction. Users who genuinely want extraordinary access will now need very explicit action to grant it, and no ship date was announced (Source: MacRumors, 2026). Here is the architectural fact that makes this harder than a UI tweak. On iOS and iPadOS, no permission level lets a third-party app read your email or your end-to-end encrypted iMessage and WhatsApp conversations. On macOS, approving every prompt an agent shows you hands over effectively the whole startup drive (Source: Daring Fireball, 2026). So a user who has spent years clicking OK on an iPhone - where saying yes is genuinely bounded - arrives at a Mac with a different mental model. That gap is the vulnerability, and it is a design failure rather than a user failure. The uncomfortable part is that this bites hardest at the top of the permission st

IASegurançaMobile
Interesse
dev.to

Shorebird in production: Flutter OTA updates without store review

Shorebird lets a Flutter app download a patch to its Dart code and apply it on the next launch, so a bug fix reaches users in minutes instead of waiting on store review. I added it to Qirat, my gold price tracker on iOS and Android, in April 2026. This is how it works, how I use it, and where it bites. To stop waiting on review for changes that do not need one. In Qirat that means three things: a UI change, a new section that needs no new packages, and the kind of bug a numbers app gets, where a calculation comes out wrong. Qirat shows gold prices and what your holdings are worth. When a number on that screen is wrong, the fix is usually one line of Dart, and store review is the slowest part of shipping it. There are two commands that matter, and the difference between them is the whole mental model. A release is a full build that goes through the store as usual. shorebird release is a drop-in replacement for flutter build: it produces the .aab or .ipa, and it uploads the compiled Dart code to Shorebird as the baseline for future patches. shorebird init shorebird release android shorebird release ios You still upload the artifact to Google Play and App Store Connect yourself. Shorebird does not touch store submission. A patch is a diff against one specific release. It never goes through the store. shorebird patch --platforms=android,ios --release-version=latest On the device, the app checks for a patch on startup, downloads it on a background thread, and applies it the next time the process restarts. If the request fails, it tries again on the next launch. A patch changes Dart code. That covers most real bugs: a null check, a wrong calculation, a broken layout, a bad API mapping. A patch cannot change: Native code: Kotlin, Swift, or build configuration. Assets added or removed in pubspec.yaml. The Flutter version. The patch must be built with the same one as the release. A plugin with native code that was not already in the release binary. The CLI warns you when it

MobileDev
Interesse
dev.to

Offline-First Mobil Mimari: Isar, SQLite ve REST API ile Kusursuz Senkronizasyon

Offline-First Mobil Mimari: Isar, SQLite ve REST API ile Kusursuz Senkronizasyon Günümüz mobil uygulama ekosisteminde kullanıcı deneyimini (UX) belirleyen en kritik unsurlardan biri, uygulamanın ağ bağlantısından bağımsız olarak ne kadar kararlı çalıştığıdır. Tünelde giden bir metroda, sinyalin zayıf olduğu kırsal bir bölgede ya da uçak modunda bile uygulamanızın çökmeden, takılmadan ve veri kaybetmeden çalışması gerekir. Bu makalede, modern mobil uygulamalarda Offline-First (Önce Çevrimdışı) mimariyi kurmanın teorik temellerini, yerel veri tabanı (Local DB) seçim kriterlerini ve yerel verileri bir REST API ile kusursuz bir şekilde senkronize etmenin mühendislik pratiklerini ele alacağız. Offline-First, uygulamanın birincil veri kaynağı (Single Source of Truth) olarak yerel veri tabanını (Local Database) kabul ettiği bir tasarım örüntüsüdür. Uygulama ağ isteklerinin sonucunu beklemek yerine, doğrudan cihaz üzerindeki yerel veriyi okur ve yazar. Arka planda çalışan bir Senkronizasyon Motoru (Sync Engine), bu yerel verileri uzak sunucuyla (Cloud/REST API) asenkron olarak eşitler. Ultra Düşük Gecikme (Low Latency): UI, ağ gecikmesine (network latency) takılmadan yerel veri tabanından anında beslenir. Kesintisiz Çalışabilirlik: İnternet bağlantısı koptuğunda dahi tam fonksiyonellik sunulur. Daha Az Pil ve Veri Tüketimi: Ağ istekleri optimize edilerek paketler halinde (batching) gönderilir. Kusursuz bir Offline-First mimari, katmanlı bir yapıda tasarlanmalıdır. İş mantığı (Business Logic), veri tabanı motorundan ve ağ katmanından tamamen izole edilmelidir. +-------------------------------------------------------------+ Özellik SQLite (Drift / Moor) Isar (NoSQL) Tür İlişkisel (SQL) Doküman / Nesne Tabanlı (NoSQL) Hız Orta / İyi Çok Hızlı (Asenkron & Çoklu İzlek) Reaktivite Stream desteği var (Üçüncü parti kütüphanelerle) Doğal reaktif (Query Watchers) Şema Göçü (Migration) Manuel SQL sorguları ile zorlayıcı Otomatik şema yönetimi ile kolay Öneri: Eğer uygulamanız karmaşık

MobileDev
Interesse
dev.to

Whistle: el modelo de voz de Cactus pesa 16,9 MB en CPU

Cactus comprimió un reconocedor de voz completo en 16,9 MB y lo hizo arrancar en 11 milisegundos sobre una CPU común, sin GPU y sin tocar servidores externos. La empresa publicó el 2 de octubre de 2026 el modelo Whistle de Cactus, que transcribe siete idiomas y corre en el mismo motor en C++ que ya mueve a Needle, su modelo de texto para dispositivos con poca memoria. Cactus lanzó el 2 de octubre de 2026 un modelo de voz de 16,9 MB que corre en CPU sin dependencias.- Transcribe siete idiomas (inglés, alemán, francés, español, italiano, neerlandés y polaco) en clips de hasta 30 segundos.- En un Apple M4 Pro llega al primer token en 11,1 ms, frente a 73,2 ms de Whisper base.- Decodifica a 1.319 tokens por segundo, unas cinco veces más rápido que Whisper base y Moonshine tiny v2.- Comparte el motor en C++ y los bloques Simple Attention del modelo de texto Needle, también de Cactus. Whistle es el modelo de reconocimiento de voz de código abierto que Cactus lanzó el 2 de octubre de 2026 para dispositivos con memoria limitada: móviles, wearables, robots, autos y microcontroladores. Pesa 16,9 MB, corre solo en CPU sin dependencias externas y transcribe audio de 16 kHz en siete idiomas en un solo paso. El modelo lo desarrolló Cactus, una startup que construye motores de inferencia para hardware con memoria y batería limitadas. Whistle no es un proyecto aislado: usa la misma cuantización, el mismo contenedor binario y los mismos bloques de atención que Needle, el modelo de texto que la compañía lanzó antes. Un solo binario puede cargar los dos modelos y pasar de un clip de audio a una llamada de herramienta sin pasar por un servidor. El lanzamiento llegó el 2 de octubre de 2026, firmado por Jakub Mroz y Henry Ndubuaku, cofundadores de Cactus. El anuncio describe tres funciones que corren enteramente en el dispositivo: transcripción de audio de 16 kHz en un solo pase de hasta 30 segundos, marcas de tiempo por palabra (inicio, fin y probabilidad, calculadas desde la atención d

IADevMobile
Interesse
dev.to

HealthKit to JSONL vs JSON: one snapshot survives a cut sync, the other gives you nothing

Two apps can write the exact same Apple Health records to disk and behave nothing alike the moment a sync gets interrupted. I benchmarked it on 2026-10-08: 3,200 daily records, 400 days across 8 metrics, written once as a JSON array and once as JSONL, then both truncated at 100,000 bytes to simulate a cut-off iCloud sync. The JSON array returned a parse error and 0 recoverable records. The JSONL file gave back 1,355. The two files differed by 1 byte. The reason is structural. A JSON array is one document, valid only once the closing bracket lands, so a half-written snapshot is not JSON at all. JSONL is one object per line, valid incrementally, so a reader keeps every complete record it already has. Check any snapshot yourself: jq -c . yourfile.jsonl jq -c 'select(.metric=="hrv_sdnn")' health.jsonl grep 2026-10-07 health.jsonl For the other side of the trade, HealthMirror writes plain-text JSONL into its own iCloud container and its local server reads per-metric subfolders. MetricBridge takes the whole-file route: a compact .health-cache.json snapshot a zero-dependency MCP server reads, with get_freshness reporting the age. Different read patterns, different formats. Full write-up with the benchmark table and the failure modes: https://www.healthexport.dev/blog/healthkit-to-jsonl-vs-json?utm_source=devto&utm_medium=social&utm_campaign=exp-20261008-hea195-jsonl

DevMobile
Interesse