SShortSingh.

Programming

0
ProgrammingDEV Community ·

Java Library Fletch Promises Faster XML Extraction Without Full Document Parsing

A Java developer has released Fletch, an open-source library designed to extract values from XML documents without materializing the entire document tree in memory. Traditional Java XML approaches such as DOM and JAXB decode and allocate every element and tag name regardless of whether the data is needed, creating significant garbage-collection overhead at scale. StAX offers streaming as an alternative but produces verbose, difficult-to-maintain code. Fletch addresses this by letting developers declare only the fields they need, after which the engine makes a single pass over the raw bytes to extract just those values. The library targets high-volume XML workloads common in e-invoicing, financial messaging, and legacy SOAP services, and is available via Maven and Gradle.

0
ProgrammingDEV Community ·

A $1,200 AI Training Run Outperformed Postgres Query Planning by 81 Percent

A researcher trained a 4-billion-parameter model on two second-hand RTX 3090s for just $1,200, producing database query plans 81 percent faster than PostgreSQL on the Join Order Benchmark. The model, a LoRA adapter weighing only 42.5 megabytes, was fine-tuned using supervised learning and reinforcement learning on the open-weights Qwen 3.8 4B architecture. Starting from near-useless baseline performance, reinforcement learning with measured execution times as a reward signal pushed the model to a 1.81x geometric mean speedup and a 44.7 percent reduction in total workload latency. The experiment highlights that domain-specific AI breakthroughs may hinge more on training methodology than on large-scale infrastructure, even as the Philippines pursues a $34.4 billion AI infrastructure roadmap targeting a 30-fold expansion in data center capacity by 2033. The contrast between the modest $1,200 experiment and billion-dollar national AI investments raises questions about where the true bottlenecks in AI development actually lie.

0
ProgrammingDEV Community ·

AI Ops Lead at Knowverse Outlines Real-World Challenges of Scaling AI in Production

An AI Operations Lead at Knowverse, a company specializing in AI adoption and scaling, has shared a detailed account of recurring operational pain points encountered while deploying AI tools in production. The team runs a multi-provider LLM fallback chain spanning Groq, Cerebras, OpenRouter, and Cloudflare AI, but faces issues with latency spikes, inconsistent token limits, and fragmented monitoring across providers. Human-in-the-loop review workflows are backlogging as usage grows, with no reliable prioritization system and editor corrections not feeding back into model fine-tuning pipelines. Serving clients in regulated industries adds further complexity, as data privacy requirements conflict with the need for detailed debug logs when using public cloud inference endpoints. The post also highlights difficulties in quantifying AI-driven productivity gains and ensuring AI-generated code meets the same quality standards as human-written code.

0
ProgrammingDEV Community ·

Beyond console.log: Advanced Node.js Debugging Tools and Techniques

Node.js developers often rely on console.log for debugging, but this approach falls short with async errors, intermittent bugs, or deeply nested objects. The built-in V8 inspector, activated via the --inspect flag, enables breakpoints, step-through execution, and accurate call stacks viewable directly in Chrome DevTools. Conditional breakpoints help isolate bugs in high-frequency loops, while debugger statements act as toggleable breakpoints that are safe to commit temporarily during a session. For performance issues, Node's --cpu-prof and --heap-prof flags generate profiles loadable in Chrome DevTools, helping identify slow functions and memory leaks. Structured error properties like err.code and utilities such as console.dir with depth: null provide clearer, more actionable diagnostic information than simple message strings.

0
ProgrammingDEV Community ·

Linux Landlock LSM lets users sandbox apps without root privileges

Landlock is a Mandatory Access Control technology built into the Linux kernel as a Loadable Security Module, designed to let any user create sandbox policies without requiring administrator rights. It allows users to specify exactly which files and network resources an application can access, reducing the attack surface of potentially untrusted software. Unlike existing tools such as AppArmor, SELinux, or Firejail, Landlock requires no complex configuration or elevated privileges to deploy. The feature works by defining access rulesets that the kernel enforces at the syscall level, returning a simple 'Permission denied' if an app attempts unauthorized access. Practical tools like landconfine and the C library liblandlock make it straightforward to apply these restrictions to everyday applications such as web browsers or document viewers.

0
ProgrammingDEV Community ·

Developer fixes TypeScript hook slowdown with 200KB cache threshold switch

A solo developer building an autonomous Claude Code setup discovered that adding the --incremental flag to a TypeScript post-edit hook made cold compilation runs 3.6 times slower, not faster. The slowdown was caused by the .tsbuildinfo cache file growing large enough that reading it on every hook execution outweighed the incremental diff savings. After measuring the project where the issue appeared, the developer identified roughly 200KB as the point where incremental mode stops being beneficial. A one-line script was added to automatically fall back to plain --noEmit when the cache file exceeds that threshold. The fix restored fast feedback loops in large projects while preserving incremental speed gains in smaller ones.

0
ProgrammingDEV Community ·

Developer Builds Tool to Vet Python Packages Before Installation

A security-focused developer has released an open-source tool called Baro, designed to inspect and triage Python package metadata and provenance before downloading from PyPI. The tool addresses supply chain risks such as typosquatting, account takeovers, and poor publishing practices that can affect even widely used packages. Baro surfaces key package details including author information, license type, SHA hashes, and attestation evidence to support safer dependency management. SHA pinning — the practice of locking a dependency to a verified hash — is among the security habits the tool is built to reinforce. The developer views registry-level inspection as a critical early step in open-source security and plans to continue improving the tool.

0
ProgrammingDEV Community ·

Structured Files, Not Prompts, Are the Real Way to Govern AI Systems

Software engineer Derek Wang argues that relying on chat prompts to control AI model behavior is fundamentally flawed, since prompts exist only in a context window and can be ignored or forgotten across sessions. He proposes a 'constraint pyramid' — a five-layer file-based architecture where rules are written into project files the model must read before generating any output. The pyramid spans from a high-level README or constitution at the top down to constrained generated code at the bottom, with each layer narrowing the space the next can operate in. Constraints are further divided into three tiers: hard coded gates enforced by automated scripts, architecture decisions requiring formal revision, and loose execution suggestions the model may adapt but must document. Wang's central premise is that shifting governance from words in chat to rules in files transforms AI behavior from a hope into a verifiable, auditable system.

0
ProgrammingDEV Community ·

Power BI Basics: How Data Ingestion, Modelling and Visualization Work Together

Power BI is Microsoft's business analytics platform that allows users to connect to multiple data sources, clean raw data, build relational models, and create interactive dashboards. The platform's workflow is built around four core functions: connecting to data, transforming it, modelling relationships, and visualizing insights. A key component is Power Query, which handles the ETL (Extract, Transform, Load) process, enabling users to fix errors, remove unnecessary columns, and standardize data formats without writing code. Properly prepared data is then organized into Fact and Dimension tables to support efficient analysis. Understanding these foundational concepts is essential for building accurate, high-performance reports in Power BI.

0
ProgrammingDEV Community ·

Developer builds AST-based CLI tool to catch outdated code examples in README files

A developer has released doc-drift, an open-source command-line tool designed to detect discrepancies between code examples in Markdown documentation and the actual codebase. The tool scans fenced code blocks in Markdown files, parses them using Python's built-in Abstract Syntax Tree module, and checks whether documented function signatures still match the real code. Unlike AI-based alternatives, doc-drift is fully deterministic, read-only, and requires no external dependencies beyond Python 3.11 or later. It flags three types of issues: signature drift, missing functions or classes, and unparseable blocks, while deliberately allowing argument omissions to minimize false positives. In a test against a large open-source repository with over 1,600 Markdown files, the tool identified one genuine drift case without generating excessive noise.

0
ProgrammingDEV Community ·

Why Software Architecture Matters More Than Ever in the Age of AI Coding

A widely shared analogy comparing 'vibe coding' to 'AI-assisted development' has sparked renewed debate about engineering discipline in the AI era. Vibe coding — generating software rapidly through AI prompts without upfront design — often produces demos that fail under real-world conditions due to missing decisions around data models, security, and scalability. The author argues that AI acts as a force multiplier, meaning it accelerates good architecture but equally accelerates poor structure, making foundational engineering judgment more critical, not less. As generating code becomes trivially fast, the scarce skill shifts from writing code to knowing what code should exist — encompassing requirements gathering, system design, and testing discipline. The piece concludes that while AI lowers the barrier to shipping something that looks finished, the bar for building something durable remains as high as ever.

0
ProgrammingDEV Community ·

How One Team Scaled an Outbox Pattern to 3 Million Events Daily on Azure SQL

Engineers running a transactional outbox on Azure SQL Database Business Critical optimized a system processing roughly 3 million events per day and maintaining around 45 million rows in steady state. The core challenge was that the outbox table becomes a high-contention hotspot, absorbing continuous inserts, updates, and deletes while being polled by a never-idle scheduler. To enable horizontal scaling without table locks, the team used SQL Server's UPDLOCK, ROWLOCK, and READPAST hints, allowing concurrent worker instances to claim disjoint batches of up to 100 events safely. Keyset pagination replaced offset-based queries to keep read costs constant regardless of backlog depth, avoiding a performance collapse as queue depth grew. Publishing to Service Bus was deliberately kept outside the database transaction to prevent long-held connections and reduce overall resource consumption on a platform where compute directly drives cost.

0
ProgrammingDEV Community ·

Admin Menu Editor Pro Supply Chain Attack Backdoors 1,500 WordPress Sites

The official distribution infrastructure of the WordPress plugin Admin Menu Editor Pro was compromised, allowing attackers to embed malicious code into versions 2.35 and parts of 2.36 of the plugin. The tampered updates deployed a web shell via a rogue PHP file and created hidden administrator accounts on affected sites, impacting an estimated 1,500 WordPress installations across roughly 230 customers. The breach persisted even after the developer pulled version 2.35 and issued version 2.36, as the distribution server itself remained compromised at the time. Affected sites show signs of ongoing persistence including hidden users, rogue MU plugins, database modifications, and PHP files that may survive plugin deletion. The developer has advised removing both affected versions, auditing the wp_users table directly, and restoring from backups predating September 14, 2026.

0
ProgrammingDEV Community ·

Orange Pi's $75 AI Board Hits Shelves as NVIDIA's Rival Sits Unannounced Until 2027

In late August 2026, NVIDIA unveiled the Jetson Orin Nano 2 with 78 TOPS of AI compute, but the product has no listed price and will not ship until the first half of 2027. Just days later, Orange Pi began taking orders for the Orange Pi 5 Max, a Rockchip RK3588-based single-board computer starting at $75 on AliExpress and available immediately. The Orin Nano 2's predecessor, the Orin Nano 8GB, carries a 2022 MSRP of $299 but trades on the street for $369 to over $800 in 2026. The wide price gap is largely attributed to Rockchip's decades-long strategy of amortising chip R&D costs across massive consumer-electronics volumes, allowing the same silicon to be sold cheaply into new markets. Analysts note that direct TOPS comparisons across the two platforms are misleading, as each vendor measures AI performance using different methodologies and architectures.

0
ProgrammingDEV Community ·

Developer Builds Persistent Memory for AI Agents, Finds It Helps Him Too

A software developer created Mycelium, a persistent associative memory system originally designed to help AI agents retain context across sessions, model changes, and project restarts. The tool stores not just transcripts but decisions, dead ends, and the reasoning behind architectural choices, allowing agents to re-orient themselves without starting from scratch. Over time, the developer noticed the system was equally useful for himself, helping him resume complex personal projects after real-life interruptions without losing the mental state required to continue. He argues that many ambitious side projects fail not from lack of interest but because the cognitive cost of reconstruction becomes too high to overcome. The same insight is now informing a separate research experiment exploring whether learned states can exist and be transferred outside their original neural substrate, using fruit-fly neural circuitry as a model.

0
ProgrammingHacker News ·

US Federal Reserve raises interest rates for first time since 2018

The US Federal Reserve raised interest rates for the first time in three years, marking a significant shift in monetary policy. The move comes as the United States grapples with rising inflation, which has reached levels not seen in decades. The rate hike signals the Fed's intention to tighten monetary conditions after an extended period of near-zero rates maintained during the COVID-19 pandemic. The decision was widely anticipated by markets and represents the beginning of what analysts expect to be a series of gradual increases. The hike is intended to cool demand and bring inflation back toward the Fed's 2% target.

0
ProgrammingDEV Community ·

Tutorial: Building a Full MCP Client-Server Loop in Python With LLM Tool Choice

A DEV Community post, compiled and translated from a Chinese Cnblogs tutorial by 花酒锄作田, walks engineers through building a complete Model Context Protocol (MCP) loop in Python 3.11+. Unlike most MCP guides that only cover server registration in tools like Cursor, this tutorial also constructs the client and host side, covering prompt listing, resource reading, and tool invocation. The workflow progresses from a stdio-based transport to streamable HTTP, and finally integrates an LLM to autonomously select which tool to call. The author emphasizes writing precise type hints and docstrings, as these directly become the tool descriptions exposed to the model. The guide targets backend engineers shipping agents who need a reliable discover-bind-call-feedback loop before choosing a model.

0
ProgrammingHacker News ·

OpenSpec Launches Lightweight AI Specification Framework for Developers

OpenSpec is a newly introduced open-source framework designed to help developers define and manage AI specifications in a lightweight and configurable manner. The project was shared on Hacker News, where it gathered modest early attention with 15 points and one comment. The framework is accessible via its official website at openspec.dev. It aims to provide a structured approach to AI spec management without heavy overhead. The release appears to be in its early stages, targeting developers looking for flexible tooling in the AI development workflow.

0
ProgrammingDEV Community ·

Why classical game-tree search beats LLMs as a browser game opponent

A developer at lkforge.com has built three browser-based game AI engines using classical algorithms — minimax with alpha-beta pruning for tic-tac-toe, expectimax for 2048, and breadth-first search for Color Lines — deliberately avoiding large language models. The tic-tac-toe engine delivers a provably optimal move in roughly 0.3 milliseconds, runs entirely on-device with no server calls, and has not lost a single game across 1,200 self-play tests. The developer argues that LLMs, trained to predict text tokens rather than search game trees, can explain strategy fluently but still make losing moves, making them unsuitable for solved games with finite rule sets. By contrast, the deterministic nature of classical search allows precise performance benchmarking, such as the 2048 solver reaching the 2048 tile in 69.6% of 250 self-play games. The project frames the choice not as anti-LLM but as matching the right tool to the problem — classical search for fixed-rule board games, language models for language tasks.

0
ProgrammingDEV Community ·

Dev team builds minimalist Discord bot using Components V2, ditching classic embeds

A development team building 'ego', a social utility Discord bot, chose to abandon traditional embed-based UI in favour of Discord's newer Components V2 system, citing visual clutter and poor mobile experience as key drawbacks of the older approach. The bot was built using Node.js 22, TypeScript, discord.js v14, and SQLite with WAL mode, which the team says delivers sub-millisecond query times without the overhead of larger databases. A standout feature automatically resolves broken video previews from platforms like Instagram, TikTok, and X by fetching media directly and suppressing the original broken embed. The team found that Components V2 elements such as separators, sections, and button rows offer cleaner visual hierarchy that feels more native to Discord's interface. The project is publicly accessible at ego.skin, and the developers are encouraging other bot builders to consider moving away from legacy embeds in 2026.

← NewerPage 1190 of 3224Older →