SShortSingh.

Programming

0
ProgrammingDEV Community ·

Docker Model Runner Enables Contract Testing Across Three AI API Formats Locally

Docker Model Runner exposes OpenAI-, Anthropic-, and Ollama-compatible API formats through a single local model environment, making it a practical target for testing protocol adapters without relying on remote providers. Developers can define a shared adapter interface that normalizes responses across all three formats, isolating domain code from provider-specific wire details. Contract tests can then verify properties the application actually depends on, such as non-empty responses, finish reasons, error shapes, and streaming behavior, rather than assuming API compatibility from a shared base URL alone. The approach also recommends explicitly declaring adapter capabilities, such as tool support or token usage availability, so applications can fail fast when a feature is unsupported rather than encountering silent failures mid-execution. Differences in request translation and sampling mean generated text may still vary across adapters even when all three target the same underlying model.

0
ProgrammingHacker News ·

Scientists explore whether aging is a programmed biological process

A new perspective in aging research suggests that aging may be an actively programmed biological process rather than a passive accumulation of cellular damage. This theory challenges the long-held view that aging results from the body gradually breaking down over time. Researchers are investigating whether genetic or molecular programs deliberately drive the aging process, similar to how development is regulated in early life. If confirmed, this shift in understanding could have significant implications for how scientists approach treatments to slow or reverse aging.

0
ProgrammingDEV Community ·

SMTP 250 OK Is Not Enough: 24% of Pre-Validated Emails Still Bounced

A developer tested 50 email addresses on August 26 that had already passed both syntax checks and live SMTP handshakes returning 250 OK responses, yet 12 of them resulted in hard bounces within 38 minutes. The 24% failure rate highlights a critical gap in common email validation pipelines that treat a 250 OK response as a deliverability guarantee. To investigate further, the developer ran the same addresses through a third-party validation API that checks for breach status, role addresses, catch-all configurations, and greylisting. The API returned an smtp_verified value of null rather than true for a Gmail address, honestly reflecting that domain-level acceptance does not confirm individual inbox reachability. The findings suggest that multi-layered email validation — beyond SMTP handshakes alone — is necessary to reduce bounce rates in production sending pipelines.

0
ProgrammingDEV Community ·

Why Real-Time Face Swap Is a Harder Engineering Problem Than Offline Video

Real-time and offline face swap may use similar AI techniques, but their engineering challenges differ fundamentally due to strict per-frame deadlines in live processing. Offline pipelines can afford to retry difficult frames, use future frames for context, and take as long as needed, while real-time systems must deliver output continuously or risk latency, dropped frames, or reduced quality. Temporal consistency is a key challenge in real-time face swap, as small frame-to-frame variations in skin tone, geometry, or mask edges can produce visible flicker or identity drift when played back at video speed. Balancing responsiveness and smoothing adds another layer of complexity, since reacting too quickly causes instability while over-smoothing causes the output to lag behind the subject's movements. Cloud-based inference introduces additional variables such as network jitter and scheduling delays, meaning real-time face swap quality must account for visual fidelity, throughput, latency, and stability all at once rather than optimizing for a single metric.

0
ProgrammingDEV Community ·

AI Agents Need Independent Reviewers, Not Self-Checks, Developer Finds

A developer migrating an enterprise healthcare platform across four major Angular versions (11 to 15) used a structured multi-agent system to manage AI-assisted code changes safely. The system separated roles into an executor agent, a reviewer agent working in a separate context, a test agent, and a visual regression agent — with no agent permitted to validate its own output. This design was inspired by accounting and audit controls, such as the principle that the person who writes a check should not also sign it. The developer observed that a reviewer agent evaluating code it did not produce behaved differently and flagged substantive issues that led to real changes. The key takeaway is that independent review — whether human or AI — reduces the risk of an agent hiding errors rather than genuinely fixing them.

0
ProgrammingDEV Community ·

Frontend Architecture Debate Resolved by Three Core Responsibilities

A software developer argues that over 30 years of frontend development disputes about state ownership can be resolved by recognizing three layered responsibilities: the browser owns URL orchestration, the server owns content, and the browser again handles local UI affordances. This client-server-client pattern, the author contends, underpins every major frontend architecture from SPAs to HTMX to LiveView. Misalignment between these responsibilities is identified as the root cause of rising complexity in web application development. The author maps popular frameworks onto this model, noting that tools like HTMX lean heavily on server-side content while minimizing client-side affordances, whereas SPAs shift more weight to the client. The piece concludes that no single framework covers the full solution space, but all follow the same fundamental layering pattern.

0
ProgrammingDEV Community ·

SQL Aggregate vs Window Functions: Key Differences Explained

SQL aggregate functions and window functions are both used to perform calculations on sets of data, but they differ significantly in how they return results. Aggregate functions such as SUM(), AVG(), COUNT(), MAX(), and MIN() collapse multiple rows into a single scalar value. Window functions, by contrast, perform calculations across a related set of rows while preserving each individual row in the output. For example, the RANK() window function can rank employees by salary without reducing the result set to a single row. Understanding this distinction helps developers choose the right function type depending on whether row-level detail needs to be retained.

0
ProgrammingDEV Community ·

Enhanciar builds three-layer system to catch AI citations that mislead engineers

A tool called Enhanciar has been developed to address a common failure in AI coding assistants, where models cite real source files but paraphrase content those files do not actually contain. The system works in three layers: building a structured wiki from repo files at ingest, forcing the AI to cite specific wiki handles in every answer, and then running a deterministic verifier that checks each claim against the source before the response is delivered. A key design choice is that structural claims — such as whether a function exists or a route is exposed — are verified using AST lookups via tree-sitter, requiring no model calls or API tokens. Only prose claims that cannot be resolved structurally are escalated to a language model for re-reading and grading as supported, partial, unsupported, or unverifiable. The verifier is explicitly barred from marking a claim as supported simply because it could not complete a check, ensuring engineers can trust or openly question every cited line.

0
ProgrammingDEV Community ·

Key Takeaways From an Internet of Things Beginner Course

The Internet of Things (IoT) refers to physical devices that collect, exchange, and process data over connected networks. A learner completing an IoT course gained foundational knowledge of how sensors, hardware, software, and networking interact within these systems. The course covered how data travels from the physical world through sensors and connectivity layers before triggering real-world actions. A key insight was that IoT is not simply about connecting devices to the internet, but about managing the full pipeline from data collection to actionable outcomes. The learner highlighted the potential of IoT to bridge software and physical devices in solving practical problems.

0
ProgrammingDEV Community ·

TypeSafe's Jev Model Offers Bounded Decisions Over Open-Ended LLM Generation

Most AI-powered software today routes nearly every task through large language models designed for open-ended text generation, even when the actual need is a simple, structured decision. TypeSafe has introduced Jev, which it calls a System One Model, built specifically to make fast, bounded decisions—such as choosing from a fixed set of options or scoring a condition—rather than generating free-form text. Unlike standard LLMs that must be constrained through careful prompting, Jev treats the decision domain itself as part of the model's contract, returning probabilistic outputs directly consumable by software. Developers at Mokapot Labs integrated Jev into The Pipeline Framework and tested it within a real invoice-processing application, finding that several tasks previously handed to generative models were never suited to that approach. The experiment highlighted a broader architectural insight: not all AI tasks are generation problems, and purpose-built decision models can offer stronger guarantees for software that needs structured, reliable outputs.

0
ProgrammingDEV Community ·

How to Run Hermes AI Agent Inside Docker for a Safer, Contained Setup

Running an autonomous AI agent like Hermes directly on a host machine poses risks, since it can execute terminal commands, install packages, modify files, and access external services. To limit exposure, a developer set up Hermes Agent inside a Docker container, restricting its filesystem access to a single dedicated directory called ~/.hermes-docker. This approach ensures the agent retains only what it needs — including persistent memory, sessions, and configuration — without touching the rest of the host system. The setup also includes Hermes Gateway, Dashboard with authentication, and Hermes Desktop connected to the container. The tutorial emphasizes that Docker does not make the agent inherently secure, but rather provides a practical boundary to control what the agent can reach.

0
ProgrammingHacker News ·

WordPress Patches Unauthenticated Path Traversal Vulnerability in Template Resolution

WordPress has disclosed a security vulnerability involving unauthenticated path traversal in its page-template resolution mechanism. The flaw, tracked under a GitHub Security Advisory, could potentially allow attackers to access files outside intended directories without requiring login credentials. The issue was identified in the wordpress-develop codebase and reported through WordPress's official security advisory process. Users and administrators are advised to review the advisory and apply any available patches or updates to protect their installations.

0
ProgrammingDEV Community ·

Developer fixes function naming bug in TinyFS-UNO open-source Arduino filesystem

A developer contributing to TinyFS-UNO, an open-source log-structured filesystem for the Arduino Uno's 1 KB EEPROM, discovered a build failure while compiling the project locally. The error occurred during the linking stage because the tfs_rename() function in tinyfs.c called tfs_read_file(), tfs_write_file(), and tfs_delete_file(), which do not exist in the codebase. The actual functions defined in the header and source files are tfs_read(), tfs_write(), and tfs_delete(), making the calls mismatched due to an extra '_file' suffix. The contributor identified the discrepancy with help from compiler warnings that suggested the correct function names. The fix involved replacing the three incorrect function calls with their properly named counterparts, resolving the build error.

0
ProgrammingDEV Community ·

AI Agent Builds Doom-Playing Network Modeled on Fruit Fly Brain Connectome

A developer used AWS's open-source Strands coding agent to build a neural network constrained to the structural wiring of a real fruit fly brain, comprising 49,393 neurons and 9 million synapses, and trained it to play the video game Doom. The network is not a biological fly but mirrors its connectome, with standard convolutional and MLP layers handling more than half the parameters. The entire project — roughly 3,300 lines of Python and shell code, 28 commits, and multiple training runs — was generated by the Strands agent over five days with minimal human input. The developer's prompts across seven sessions were largely limited to brief check-ins and approvals, while the agent independently managed training pipelines, cloud GPU deployments across three AWS regions, and version control. The project highlights how AI coding agents can drive complex machine-learning infrastructure end-to-end from a single initial prompt.

0
ProgrammingHacker News ·

AI·rete·RAG separates rule-based decisions from LLM explanations for auditable AI

A developer has released AI·rete·RAG, a hybrid system designed to make automated decisions in regulated domains — such as lending, fraud detection, and clinical triage — fully auditable. The tool runs a pure-Python Rete rule engine to produce deterministic verdicts based on YAML-defined rules, ensuring the same inputs always yield the same outcome. A separate RAG layer then uses an LLM to generate plain-English explanations of the decision by retrieving relevant passages from policy documents, without being able to alter the verdict. An audit mode logs every rule evaluated, including those that did not fire, and captures a snapshot of the rule set for replay during regulatory review. The platform is hosted with a free tier, includes a no-signup live demo across eight domains, and offers an open-source MCP client that allows AI agents like Claude to call the decision engine as a tool.

0
ProgrammingDEV Community ·

Developer Builds KiwiEngine as a Reusable Foundation for Music, Hardware, and Beyond

A developer has built KiwiEngine not as an end product, but as a reusable digital infrastructure designed to support a wide range of future projects. The goal is to eliminate repetitive groundwork — such as login systems, routing, and configuration — so that each new build can focus on its unique, interesting problems. The creator plans to apply this foundation across diverse ventures including print-on-demand stores, artist platforms, and electronics like guitar pedals and amplifiers. A project called Blackwater Sound is being used as a testing ground, potentially serving musicians, studios, and producers with tailored tools. The broader philosophy shifts the developer's starting point from 'what software can I build' to 'what am I trying to accomplish,' treating code as one tool among many.

0
ProgrammingHacker News ·

Poem Tribute to the Intel 8088 Chip Surfaces on Hacker News

A creative piece titled '16-bit Intel 8088 chip' was shared on Hacker News, linking to a poem published on AllPoetry.com. The submission paid homage to the iconic Intel 8088 processor, a landmark chip in computing history. The post garnered 19 points and sparked a small discussion with 2 comments on the platform. The Intel 8088, originally released in 1979, powered early IBM personal computers and helped shape the modern PC era.

0
ProgrammingDEV Community ·

Google Open-Sources AX Agent Orchestrator, but Hacker News Questions Its Complexity

Google released AX (Agent Executor), an open-source orchestrator designed to run billions of autonomous AI agent workloads in distributed clusters, under the Apache 2.0 license on its official GitHub. The project quickly became the most-discussed AI submission on Hacker News, accumulating 649 points and 296 comments within roughly 48 hours of launch. While few questioned the underlying engineering, critics highlighted a sharp disconnect between AX's simple pitch — declare a task, run it at scale — and its demanding setup requirements, which include a Kubernetes cluster, the ko image builder, a container registry, and a reachable Substrate control API. AX depends on a companion project called Agent Substrate, which is explicitly not an officially supported Google product and handles the heavier infrastructure layers including sandboxing and networking. The project's own README acknowledges that core concepts are still evolving and that major breaking changes are expected before a stable release, making it unsuitable for production use at this stage.

← NewerPage 1014 of 3192Older →