SShortSingh.

Programming

0
ProgrammingHacker News ·

AI Coding Startup Lovable Raises $400M, Valuation Doubles to $13.3B

Lovable, an AI-powered coding startup, has raised $400 million in a new funding round. The raise values the company at $13.3 billion, doubling its previous valuation of $6.6 billion earlier in 2025. The funding round, announced via the company's blog, marks a Series C for the startup. The rapid valuation growth reflects continued investor appetite for AI development tools and platforms.

0
ProgrammingDEV Community ·

How Developers Can Fit AI Vision Tasks Into a Real-Time Frame Budget

A technical guide published on DEV Community breaks down how on-device computer vision pipelines must be engineered around a strict millisecond-per-frame budget determined by the target frame rate. At 30 fps, only roughly 15–25 ms remain for model inference after accounting for camera callbacks, format conversion, resizing, and overlay rendering. Input resolution is identified as the single most expensive variable, with costs scaling quadratically, making it critical to run models at the lowest resolution that still detects the smallest required object. Tasks such as classification, object detection, landmark tracking, segmentation, and OCR each carry distinct cost structures that developers must weigh when designing pipelines. The guide recommends decoupling detection from display and using cropped regions of interest rather than upscaling full frames to stay within budget.

0
ProgrammingHacker News ·

New Tool Lets Cyclists Report Bike Lane Obstructions Online

A web-based tool called Bike Bureau has been launched to help cyclists report obstructions in bike lanes. The platform, accessible via loudbicycle.com, aims to make it easier for riders to flag blocked or unsafe cycling infrastructure. The tool appears designed to crowdsource reports of bike lane violations, potentially helping cities and advocates identify problem areas. The project was shared on Hacker News, where it attracted early community attention.

0
ProgrammingDEV Community ·

Why Moving Model Weights, Not Math, Drives AI Token Energy Cost on Devices

On-device AI inference consumes most of its energy moving model weights through memory, not performing arithmetic, making energy cost roughly proportional to bytes read per token. Research grounded in Mark Horowitz's 2014 ISSCC findings shows that a DRAM memory access costs thousands of times more energy than a basic arithmetic operation, a gap that remains relevant today. For a 3-billion-parameter model quantized to 4-bit precision, generating a single token is estimated to consume between 0.028 and 0.278 joules in memory-system energy alone, meaning a 300-token response could draw 8 to 83 joules. This structure reveals why quantization is so effective on battery-powered devices: halving the bytes per weight approximately halves energy per token, far outweighing any arithmetic savings. Factors such as on-chip caches, KV cache growth at long contexts, and display or radio power draw add nuance but do not change the core linear relationship between model size, token count, and energy use.

0
ProgrammingDEV Community ·

How to Calculate If an AI Model Will Actually Run on Your Phone

A technical analysis explains that running AI language models on smartphones depends not on total device RAM but on the per-process memory ceiling enforced by the operating system. The true memory footprint of a model is the sum of weight bytes, key-value cache, activation memory, and runtime overhead, all of which must stay below that process limit. Weight size depends on quantisation format, and commonly cited figures like '4-bit' underestimate real cost — the actual storage is closer to 4.6 bits per weight once group metadata is included. The key-value cache grows linearly with context length and can add nearly 1 GB for an 8,192-token context on a small 3B-parameter model. Developers are advised to calculate these figures before downloading any model, using device API calls to determine the actual per-process memory ceiling.

0
ProgrammingDEV Community ·

How Ollama Fits Into a Local AI Development Workflow

Ollama is an open-source tool that functions as both a model manager and a local HTTP server, allowing developers to pull, version, and run AI models as named dependencies without manual file handling. It uses llama.cpp as its inference engine and exposes an OpenAI-compatible endpoint, making it a drop-in replacement for hosted AI APIs during development. A single background process serves all projects on a machine, loading and unloading models on demand to avoid repeated startup costs. Developers can define a Modelfile — a Docker-style configuration file — to standardize system prompts and parameters across a team, though the file must be committed to the repository to be shared. Key caveats include the invisibility of baked-in system prompts to application code and the risk of memory pressure from multiple large models remaining loaded after use.

0
ProgrammingDEV Community ·

How to Self-Host Activepieces Automation Platform Using Docker Compose

Activepieces is an open-source, no-code business automation platform that lets users build visual workflows to connect apps and automate repetitive tasks. A technical guide outlines how to deploy it on a Linux server using Docker Compose, with PostgreSQL handling data storage, Redis managing job queues, and Traefik providing automatic TLS certificates. The setup requires a minimum of 2 vCPUs and 4GB RAM, along with a domain name pointed to the server via an A record. Configuration is managed through an environment file containing encryption keys, database credentials, and domain settings. Once deployed, users can access the web interface to build and test automation flows, including webhook-triggered pipelines.

0
ProgrammingHacker News ·

Google Announces Pixel Watch 5

Google has officially announced the Pixel Watch 5, its latest smartwatch offering. The announcement was made through Google's official blog under its devices and platforms division. The news gained traction on Hacker News, drawing community attention shortly after publication. Details about full specifications and pricing were not disclosed in the available article text.

0
ProgrammingHacker News ·

DeepSeek Releases V4 Pro 0813 Model on OpenRouter

DeepSeek has launched a new AI model called V4 Pro 0813, now available through the OpenRouter platform. The release was noted on Hacker News, where it gathered 84 upvotes and 13 comments. OpenRouter serves as an aggregator that provides access to various large language models via a unified API. The model listing suggests DeepSeek continues to iterate rapidly on its AI offerings. Further technical details about the model's capabilities or improvements over previous versions were not provided in the announcement.

0
ProgrammingHacker News ·

xAI Releases Grok 4.6 Model on OpenRouter Platform

xAI has released a new version of its Grok language model, labeled Grok 4.6, now available via the OpenRouter AI platform. The release was noted on Hacker News, where it garnered modest early attention with 19 points and minimal discussion. OpenRouter serves as an aggregator allowing developers to access multiple AI models through a unified API. The listing suggests xAI continues to iterate on its Grok model series, expanding availability through third-party platforms.

0
ProgrammingDEV Community ·

AI Coding Agents Are Widening the Gap Between Strong and Weak Engineers

AI coding agents now allow developers to generate tens of thousands of lines of code in hours, but the requirement to review and understand that code has not changed. Senior engineers who deeply understand system architecture have become more valuable than ever, while developers who rely solely on AI prompts without grasping the underlying logic pose growing risks to production systems. The speed of code generation has far outpaced teams' capacity to meaningfully review what is being merged. This mismatch is creating a structural problem for software teams that adopted AI tools without updating their engineering standards and review processes. The result is a widening divide between engineers who can reason about systems independently and those who cannot explain why their AI-generated code works.

0
ProgrammingDEV Community ·

Google Cloud Guide Pairs Gemini Agent Platform with Cloud Run for Managed AI Inference

Google Cloud offers a managed inference architecture that lets developers deploy AI-powered applications without handling GPUs, model servers, or scaling infrastructure. The approach pairs the Gemini Enterprise Agent Platform, formerly known as Vertex AI, with Cloud Run, splitting responsibilities between orchestration and application logic. Cloud Run hosts custom business logic and client-facing endpoints, while the Agent Platform manages agent state, memory, and model reasoning in a fully managed runtime. Developers use the open-source Agent Development Kit (ADK) to define agent behavior in Python and bind it to Gemini models from the Model Garden. The tiered design allows each layer to scale and fail independently, and ensures clients interact only with Cloud Run rather than directly with the underlying model.

0
ProgrammingDEV Community ·

gomarc brings MARC21 library data processing to Go, outpacing Python's pymarc by up to 11x

A developer has released gomarc v0.1.0, a Go port of the popular Python library pymarc, designed to parse and process MARC21 bibliographic data used in library systems. Benchmarks run on two real catalogue exports totalling over 226,000 records show gomarc completing MARC-8 Unicode parsing up to 11 times faster than its Python counterpart. The library supports reading and writing binary MARC21, MARCXML, and MARC-in-JSON formats, and offers an API familiar to existing pymarc users. Benchmark results were validated for correctness by confirming byte-identical output between both libraries before any performance figures were recorded. The project is at an early v0.1.0 stage, with raw byte decoding and MARC-in-JSON write performance noted as areas still to be optimised.

0
ProgrammingDEV Community ·

How to Build Reliable LLM-Based Content Moderation Using Embeddings and Reranking

A technical architecture for automated content moderation combines semantic search, reranking, and LLM classification to accurately label moderation reports against a defined topic taxonomy. The system retrieves relevant policy passages using embeddings, reranks them to surface the most pertinent evidence, and asks the LLM to classify only against those top passages rather than an entire policy handbook. Every output must conform to a strict JSON schema containing a known topic ID, a confidence score within an allowed range, and cited passage IDs, with invalid or ambiguous responses routed to an explicit unclassified state instead of a silent default. API errors such as HTTP 429 are treated as backpressure with bounded retries, while structurally invalid model responses get one repair attempt before being escalated for human review. The approach prioritizes structured output correctness and audit traceability over model novelty, ensuring reviewers can distinguish retrieval failures from classification failures.

0
ProgrammingDEV Community ·

Engineering Team Slashes AI Inference Cold Starts from 14 Minutes to Seconds

A software engineering team discovered that cold starts in their AI inference service were taking up to 14 minutes during traffic spikes, despite the service responding in under 200 milliseconds once warm. Profiling revealed that 70% of startup time was consumed by pulling and unpacking a bloated 25 GB container image, with another 20% spent loading model weights onto the GPU. The team addressed the problem through three key engineering changes: slimming the container image by removing redundant CUDA toolkits, duplicate TensorRT packages, and unused PyTorch training libraries. They also reconsidered how Python dependencies and model weights were packaged and streamed into memory, avoiding approaches like S3-mounted site-packages that introduced new bottlenecks. Crucially, the improvements required no changes to application code and did not involve switching to a smaller model or provisioning more powerful hardware.

0
ProgrammingDEV Community ·

How Three Code Patterns Scaled a Node.js Express API from 50 to 500 RPS

A developer building a Node.js API for a startup dashboard found that a minimal Express setup performed well locally but degraded rapidly under modest concurrent load. The root causes were synchronous database calls blocking the event loop, absent centralized error handling, and a single-process setup that left multi-core CPU capacity unused. Addressing these issues involved switching to async-first route handlers, adding a global error middleware, and using Node's cluster module alongside tools like PM2 to spawn worker processes across all available cores. Defensive middleware — including Helmet for security headers and express-rate-limit to prevent abuse — was also layered in to protect the API under real-world traffic. Applying all three changes pushed throughput from roughly 50 requests per second to over 500 while maintaining stable response latency.

0
ProgrammingDEV Community ·

How to Build a Text Prompt Moderation Gate for AI Image Generation in Node.js

Developers building AI image generation platforms must moderate all user-controlled text fields — including prompt, style, and negativePrompt — before triggering image creation. A chat completion classifier returns a strict JSON object with one of three decisions: allow, review, or block, which then determines the application's next step. Using a schema-enforced response prevents ambiguous output and converts probabilistic model judgments into deterministic code branches. The review state is intentionally preserved to handle borderline cases without forcing uncertain prompts into outright approval or rejection. The implementation uses Node.js with native fetch and environment-configured model IDs, keeping the solution free of client library dependencies and tightly coupled provider logic.

0
ProgrammingDEV Community ·

Developer shares personal HTML meta tag reference guide for new projects

A software developer named Sanudin published a personal reference guide covering essential HTML meta tags used at the start of every new web project. The guide covers foundational settings such as charset, viewport, description, robots, and canonical tags, explaining the practical purpose of each. It also addresses Open Graph and Twitter card tags for social media previews, recommending a 1200×630px image and correct og:type values. The article discusses blocking AI crawlers like GPTBot and ClaudeBot via robots.txt, noting that unofficial tags like noai have inconsistent adoption. Additionally, it explains the use of JSON-LD structured data for entity identity, emphasizing that consistent job titles and sameAs links across profiles help search engines and AI systems recognize a person as a single entity.

0
ProgrammingDEV Community ·

Fine-tuned AI model for Barbados outperforms base on some benchmarks, fails on others

Researchers fine-tuned a 30-billion-parameter Qwen3 model on Barbados newspaper archives as part of a Caribbean AI buildathon project called Pulse, which aims to build a public-signal intelligence system for the island. Two versions of the model were evaluated against the unmodified base using three distinct benchmarks covering factual recall, radio transcript quality, and TikTok content extraction. The fully trained Version 4 outperformed the base model by 13.3 percentage points on factual recall and nearly doubled quality scores on radio transcription, correctly identifying local proper nouns like Crop Over event names. However, on the TikTok extraction benchmark, V4 performed worse than V3 by generating far more false positives — 23 versus 8 — due to over-emission of observations and misclassification of entity types. The findings highlight how a single benchmark can be misleading, and that a fine-tuned model may genuinely improve in some domains while regressing in others depending on how outputs are structured and scored.

0
ProgrammingDEV Community ·

GDG Basilicata Builds Live Smart Greenhouse at Forest Tech Conference

GDG Basilicata held the third edition of DevFest, rebranded as DevForest, bringing 66 developers to La Majonica forest in Tito, Italy. Rather than following a standard conference format, the event centered on a single shared goal: building a fully functional smart greenhouse over the course of one day. Five teams worked across disciplines including IoT, 3D printing, cloud computing, botany, and generative AI, with morning talks serving as technical contracts that defined the specifications each team had to meet. The final system connected an ESP32 microcontroller to a Spring Boot API gateway on Cloud Run, a Firestore database, and an Angular dashboard powered by Google Gemini. Limited forest connectivity ruled out a cloud-push model, so the team adapted to a polling architecture and successfully delivered a working, interdependent pipeline by day's end.

← NewerPage 63 of 1215Older →