SShortSingh.

Programming

0
ProgrammingDEV Community ·

How Linux fork() Uses Copy-on-Write and Why It Can Exhaust Memory

When a Linux process calls fork(), the kernel does not immediately duplicate physical memory; instead, it copies the page table hierarchy and marks all entries as read-only. Any subsequent write by either the parent or child process triggers a hardware page fault, prompting the kernel to allocate a new physical page and copy the data. This Copy-on-Write mechanism keeps fork() fast under low-write conditions but becomes costly when workloads involve heavy, sustained writes to large memory regions. Systems running in-memory databases like Redis can experience write amplification, TLB thrashing, and uncontrolled memory growth during background snapshot operations. In extreme cases, the cascade of micro-allocations exhausts available RAM and activates the kernel's Out-of-Memory killer, terminating processes unexpectedly.

0
ProgrammingDEV Community ·

NPU, DPU, QPU Explained: Which Specialist Chips Are Production-Ready Now

Hardware vendors are aggressively promoting three chip types — NPUs, DPUs, and QPUs — but their real-world utility varies significantly. Neural Processing Units (NPUs) are already proving their worth in production for low-power, on-device AI inference tasks like keyword detection and camera segmentation on mobile and edge devices. Data Processing Units (DPUs), such as NVIDIA BlueField and AMD Pensando, are similarly mature, helping large-scale infrastructure operators offload high-throughput networking, storage, and security tasks from general-purpose CPUs. Quantum Processing Units (QPUs), by contrast, remain largely confined to research settings and are not yet viable for mainstream production workloads. Engineers are advised to evaluate each chip against specific workload requirements rather than adopting them based on vendor marketing.

0
ProgrammingDEV Community ·

EduVetta: New SaaS Tool Automates Repetitive Admin Tasks for Teachers

A developer has launched EduVetta, a SaaS platform designed to reduce the administrative workload teachers face outside of actual classroom instruction. The tool offers four core features: automatic lecture note summaries, AI-drafted question papers with answer keys, a simplified assignment submission system, and interactive quiz generation. Teachers can generate content from multiple input types including YouTube links, PDFs, or spoken requests, and students can access assignments without creating an account. Objective grading such as multiple-choice questions is automated, while subjective answers are intentionally left for human review to avoid errors that could harm students. The product is currently available with a free tier at eduvetta.com, though the developer notes that diagram- or equation-heavy subjects still require additional manual editing.

0
ProgrammingDEV Community ·

How Structured Data Contracts Can Make Backlink Audits Easier to Debug

A technical design note proposes a small, structured data contract to improve how backlink audit tools record and interpret results. Rather than returning a simple pass-or-fail flag, the proposed format captures fetch state, document scope, link presence, and index or referral status separately. The distinction matters because a page can be reachable while a specific link is missing, or a link can exist without any evidence of indexing. The article also outlines best practices such as using URL parsers instead of substring matching, resolving relative links before comparison, and preserving prior successful observations during outages. The author notes the piece was prepared with AI assistance and is a design proposal, not a production benchmark or description of Google's internal systems.

0
ProgrammingDEV Community ·

How to Fix Docker Exit Code 1 Errors on Raspberry Pi

Docker containers running on Raspberry Pi often fail with exit code 1 due to architecture mismatches, as most images are built for amd64 while Raspberry Pi uses arm32v7 or arm64v8. A common but overlooked cause is a syntax error in the command flag, where spaces around the equals sign in --net=host cause Docker to misinterpret the network name. Developers can diagnose the issue by running docker inspect to check the image architecture and replacing the detached flag with interactive mode to view real-time error output. If the image is custom-built, it should be rebuilt targeting the correct ARM platform using Docker Buildx with the appropriate --platform flag. For projects requiring multi-platform support, Docker Buildx can simultaneously build native images for both ARM and amd64, eliminating exec format errors entirely.

0
ProgrammingDEV Community ·

Externum compiler launches: one typed Python source targets CPython, Bash, and bytecode

Externum, a statically typed programming language, launched today on Show HN and DevHunt, allowing a single source file to compile into readable CPython, a standalone Bash script, or a bytecode artifact. The self-hosted compiler is bootstrapped from a 6.4 KB Python stub and is available via pip under an MIT license. Benchmarks show the transpiled Python path runs about 1.6 times slower than hand-written CPython, while the bytecode VM is roughly 30 times slower and is intended for source-less distribution rather than performance. The project includes around 380 tests with a differential CI harness that runs all backends against the same suite, which uncovered three VM bugs that unit tests had missed. A paid Pro Pack with exercises and a production guide is available at a launch-week discount, though the core compiler remains free.

0
ProgrammingDEV Community ·

React 19's useTransition Explained: Common Pitfalls and How It Really Works

A detailed developer guide examines how React 19's useTransition hook works as a standalone mechanism, unlike related hooks such as useActionState or useOptimistic that depend on it. The hook returns two values — an isPending boolean and a startTransition function — where state updates triggered inside startTransition are marked as low-priority and interruptible. A key misconception addressed is that startTransition does not defer JavaScript execution; it runs the callback immediately, only marking the resulting state update and re-render as non-urgent. The guide demonstrates a practical use case of filtering a large list on every keystroke without blocking the UI, a scenario useActionState is not designed to handle. All examples were verified against React 19.2.8 and re-tested on React 19.3.0, released on September 9.

0
ProgrammingDEV Community ·

Linear search beats hash maps for small datasets, study of real systems shows

A software engineering analysis challenges the common assumption that hash maps are always the fastest lookup structure due to their O(1) complexity. For small, realistic datasets — such as short config lists or in-memory caches with a few dozen entries — flat arrays with linear scans can outperform hash maps in actual wall-clock time. Hash maps incur hashing costs and scattered memory access that cause frequent CPU cache misses, while small flat arrays fit within one or two cache lines and benefit from CPU prefetching. Chandler Carruth demonstrated this empirically at CppCon 2014, showing linear search beating hash-map lookup for small but realistic input sizes. The key takeaway is that Big-O notation describes asymptotic behavior, not constant factors, and developers should profile their code before optimizing for data scales their applications may never reach.

0
ProgrammingDEV Community ·

Developer packages reusable Electron framework to eliminate repetitive app boilerplate

A developer has released electron-shell-framework, an open-source Electron app shell designed to eliminate the repetitive setup work common to desktop app projects. The framework provides a pre-built UI layout including a collapsible sidebar, tabbed navigation, right panel, and footer bar, all sharing a single 40px top bar. Developers can add new pages by defining a PageDefinition object and registering it in a central array, without modifying the shell itself. The framework also handles secure credential storage by routing values through platform-native APIs such as DPAPI on Windows and Keychain on macOS, replacing the common practice of storing sensitive data in plaintext JSON files. The goal is to let developers focus on building app-specific features from day one rather than spending weeks on infrastructure.

0
ProgrammingDEV Community ·

Nous Research's Hermes Model Makes a Case Against External AI Agent Frameworks

As AI agent development matures, a key architectural debate has emerged: whether to wrap general-purpose models in complex external scaffolding or use models natively fine-tuned for agentic tasks. Traditional agent harnesses rely on elaborate prompt templates and fragile parsers that can crash if model output deviates even slightly from an expected format. Hermes, developed by Nous Research, embeds tool-calling, structured output generation, and multi-turn reasoning directly into its model weights, reducing syntax errors and cutting down on token-heavy system prompts. This native approach enables leaner, faster agent loops with more consistent role and persona handling across long workflows. As an open-weights model compatible with frameworks like llama.cpp and vLLM, Hermes also avoids vendor lock-in and allows domain-specific fine-tuning without overhauling orchestration code.

0
ProgrammingDEV Community ·

How to Build Bounded DNS Verification for Multi-Tenant Marketplace Subdomains

A technical guide on DEV Community outlines a structured approach to domain verification for marketplace platforms that assign subdomains to tenants. The core recommendation is to model domain proof as a bounded state machine with four states — pending, verified, expired, and cancelled — each tied to an immutable verification attempt with a fixed expiry. The guide distinguishes between platform-owned zones, where the platform controls DNS and tenant binding is the main concern, and customer-owned zones, where tenants must complete a DNS challenge to prove ownership. A key design principle is showing customers only what the verifier actually observed, using a narrow reason code like record_not_observed_yet, rather than guessing at causes such as propagation delays or misconfigurations. The approach also guards against a known failure pattern where delayed queue deliveries can mistakenly trigger authorization for abandoned hostnames if checks are left open-ended.

0
ProgrammingDEV Community ·

Why n8n Remains a High-Value Skill for Engineers Even in an AI-Driven 2026

Despite the rise of powerful AI agents and large language models, workflow automation tool n8n continues to hold strong relevance for engineers and developers in 2026. Unlike probabilistic AI models, n8n offers deterministic execution paths, schema validation, and reliable state management essential for critical business processes such as financial transactions and CRM updates. The open-source, self-hostable nature of n8n makes it a preferred choice for enterprises navigating strict data privacy regulations like GDPR 2.0, the EU AI Act, and HIPAA, as sensitive data need never leave internal infrastructure. n8n has also evolved into an orchestration layer for AI agents themselves, allowing developers to visually connect LLMs, vector databases, and custom APIs without writing extensive boilerplate code. Additionally, its self-hosted model eliminates the per-task costs associated with proprietary platforms like Zapier or Make, making it significantly more cost-effective at scale.

0
ProgrammingDEV Community ·

Vendor's 200x Speed Claim Shrinks to 3–12x Under Real Workload Testing

A software team tested TypeSafe AI's model 'Jev' against their existing open model using a real production task: classifying email accounts on an admin dashboard. End-to-end, the new model proved 12x faster at the median, narrowing to roughly 3x once accounting for unnecessary output from the old model, and 7x cheaper — primarily because outbound tokens are free on the new platform. The team admits they produced two confident but incorrect benchmark figures before arriving at valid results, including repeating the very measurement error they had previously criticized the vendor for. The most meaningful finding was not speed but consistency: the new model showed just 38ms of latency variance compared to 2,353ms on the old one, eliminating parse failures that had been causing error pages. The team concludes that benchmarks are only useful when run on your own workload, close to production, with a reliable correctness check that does not rely on another model's judgment.

0
ProgrammingDEV Community ·

Why yfinance Fails at Scale and How to Build Reliable Options Data Pipelines

Fetching stock prices in Python is straightforward, but retrieving full options chain data — including strikes, implied volatility, open interest, and volume — reliably across hundreds of tickers is a significantly harder engineering challenge. Libraries like yfinance work well for small-scale exploration but are prone to rate-limit errors, empty responses, and silent failures when used in production environments. These tools act as convenience wrappers rather than true data pipelines, leaving developers to handle retries, schema normalization, and monitoring themselves. A structured approach involves defining a consistent per-contract data schema and building a dedicated data layer that handles throttling, scheduling, and error recovery. Separating the data infrastructure from the trading or analytics logic allows developers to focus on strategy rather than repeatedly fixing broken data feeds.

0
ProgrammingDEV Community ·

Read Replicas Boost Database Speed but Can Serve Stale Data to Users

Adding a read replica to a database offloads traffic from the primary server and improves read performance, but introduces replication lag that can range from milliseconds to minutes. During this lag window, users may see outdated information — such as a profile update not reflecting immediately or an order status showing as pending after payment. This occurs because replicas apply changes only after they have committed on the primary, a behavior known as a read-after-write violation. Replication lag is not a fixed, predictable value; it varies based on write load, long-running queries, large transactions, and maintenance activity. Engineers are advised to route consistency-sensitive reads — such as balance checks, order status, and post-write fetches — directly to the primary rather than treating all reads as safe to serve from a replica.

0
ProgrammingDEV Community ·

Joxo Syncs AI Coding Agents Across Laptops to Share Decisions in Real Time

Joxo is a tool designed to solve a common problem in multi-developer teams where different AI coding agents — such as Claude Code, Codex, and Cursor — repeatedly make the same architectural decisions because they lack shared context. The platform works by writing configuration files directly into each agent's own hook system, so decisions, handoffs, blockers, and task updates are delivered to an agent exactly when needed rather than requiring manual pulls. Each machine runs a local MCP server that connects to a shared relay storing only coordination data — not prompts, transcripts, or the repository itself. When a new teammate joins mid-session, their agent receives all prior decisions at the start of their first turn, and handoff packages include branch and commit references that the receiving agent verifies before proceeding. Joxo supports 28 agents, requires no API keys, runs on users' existing subscriptions, and is priced at $15 per person per month after a free trial.

0
ProgrammingDEV Community ·

Oracle Database 23ai Adds Native JSON Schema Validation for Enterprises

Oracle Database 23ai introduces native support for JSON Schema (draft 2020-12), enabling organizations to define, register, and enforce structural rules on JSON data directly at the database layer. The feature uses a new PL/SQL package, DBMS_JSON_SCHEMA, which allows developers to register schema definitions and link them to specific JSON columns or tables. Any JSON data that violates a registered schema is automatically rejected by the database, eliminating the need for custom validation logic in application code. This capability is available on Oracle Database 23ai running on AWS RDS, provided the appropriate role privileges and the JSON_SCHEMA package are configured. The addition is expected to benefit data-intensive industries such as financial services, where consistent data governance and regulatory compliance are critical requirements.

0
ProgrammingDEV Community ·

SpecSentinel CLI Tool Catches API Spec Drift by Testing Live Endpoints

A developer built SpecSentinel, a command-line tool that compares a live API's actual responses against its OpenAPI specification to detect discrepancies. The tool sends GET requests to a running API, validates responses against the spec, and returns exit codes indicating a match, drift, or failure, making it suitable for CI pipelines. When tested against the public Swagger Petstore, it found that the GET /user/login endpoint returns plain text despite being documented as JSON, and three endpoints returned 500 errors covered only by a default response. Version 0.2.0 adds checks for string formats, number ranges, required response headers, JSON output, and a GitHub Action integration. The tool is available via pip and has been validated against large public specs from Petstore, GitHub, and Stripe without generating false positives.

0
ProgrammingDEV Community ·

Polygon Bridge Rated 7.2/10 Risk as $2.96B TVL Faces Validator and Liquidity Threats

A DeFi security analysis dated September 2026 assessed the Polygon Bridge, which holds approximately $2.96 billion in locked assets across Ethereum and Polygon, and assigned it a risk score of 7.2 out of 10. The report flagged validator centralisation as a key concern, with just seven of ten active validators controlling around 68% of voting power, raising the risk of collusion or key compromise. Analysts also warned that the bridge's fast-exit liquidity pool, worth roughly $210 million or 7% of total TVL, could be exhausted during a coordinated mass-withdrawal event, potentially locking users out for up to seven days. Additional vulnerabilities identified include a fee asymmetry between deposits and withdrawals that could be exploited for repeated fee-drain attacks, and message-proof latency averaging 12 minutes against a 5-minute target. Despite multiple smart-contract audits showing no critical flaws in the past year, the report concluded that operational and economic risks dominate the bridge's overall risk profile.

← NewerPage 1045 of 3196Older →