SShortSingh.
Back to feed

langPeanut Uses AST Parsing and Gemini AI to Automate App Localization at Low Cost

0
·1 views

A developer built langPeanut, a multi-agent localization and SEO platform written in Go, as a submission for the Google Cloud Agentic Hackathon. Unlike traditional LLM-based approaches that rewrite entire source files and introduce syntax errors, langPeanut restricts AI involvement to linguistic judgment only, using Tree-Sitter AST parsing to identify exact byte-level string positions at zero token cost. Google's Gemini 3.7 Flash model is then called solely to handle context disambiguation and ICU-safe translation, while a deterministic patch engine handles all code modifications. The architecture is split across three coordinated systems covering localization, an AI chat copilot with 19 tools, and an SEO optimization pipeline targeting translated locale files. On an adversarial 10-case benchmark spanning React, Dart, and SwiftUI codebases, the platform achieved a 100% AST compilation pass rate with no formatting drift.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Engineer builds deterministic 4-node AI pipeline to eliminate false positives in security testing

A application security engineer developed an autonomous penetration testing system called Okwute after standard LLM-based tools proved unreliable in production environments. The core problem with conversational AI tools was threefold: context loss between sessions, hallucinated vulnerabilities, and constant need for manual prompting between steps. To solve this, the engineer designed a four-node directed graph pipeline — Mapper, Generator, Executor, and Validator — running on a self-hosted, headless harness that stores all state and findings in structured filesystem artifacts rather than in-memory context. The system uses a three-tier memory architecture separating organisation-wide security baselines, product-family patterns, and per-session scratchpads, allowing knowledge to persist and scale across multiple targets. The goal is to reduce repetitive manual testing work for security engineers who are often responsible for dozens of microservices and APIs simultaneously.

0
ProgrammingDEV Community ·

DEV.to Fixes Long-Standing CSS Cache Mismatch Bug in Its Hybrid SPA Architecture

DEV.to, powered by the open-source Forem codebase, has shipped a fix (PR #23789) addressing a persistent CSS caching mismatch that has plagued the platform since its early days. The issue arose from its hybrid setup combining Rails server rendering, Fastly edge caching, and InstantClick-based partial page swaps, where cached article pages could reference outdated stylesheet versions after a new deployment. Previous client-side workarounds were brittle and caused broken layouts, 404 errors on pruned assets, and flashes of unstyled content. The new solution reframes the problem as cache partitioning rather than DOM manipulation, using a 10-character fingerprint derived from combined stylesheet digests and appending it as a query parameter to internal navigation requests. This allows Fastly to naturally serve cache-partitioned responses that match the active stylesheet version, reducing — though not entirely eliminating — the mismatch problem.

0
ProgrammingDEV Community ·

How RAG Helps AI Models Answer Questions Beyond Their Training Data

Large language models have broad but frozen knowledge, making them unable to address company-specific or post-training information without extra help. Retrieval-Augmented Generation (RAG) solves this by giving the model a search tool that fetches relevant documents and feeds the results back into its context window. Rather than relying on basic full-text search, RAG converts documents into mathematical vectors called embeddings, which capture meaning so that semantically similar text can be matched even when exact words differ. Because a single document may cover multiple topics, it is split into smaller chunks before embedding, improving search precision and reducing unnecessary context bloat. This article, part of a series on transitioning from software to AI engineering, focuses on the agentic RAG variant where the model itself decides what to search for.

0
ProgrammingDEV Community ·

Engineering a Browser-Based Step Sequencer: State, Timing, and Edge Cases

A technical deep-dive examines the engineering challenges behind building browser-based step sequencer interfaces, focusing on the data structures and logic rather than the musician's experience. At its core, every step sequencer relies on a two-dimensional boolean array tracking which sounds fire at which steps, alongside tempo, swing, and accent values. A common pitfall is using setInterval for playback timing, which breaks due to browser timer throttling, mid-bar tempo changes, and sample underruns — each requiring specific workarounds like lookahead scheduling. The article also highlights that limiting a sequencer to six to twelve tracks keeps the grid usable on touch devices and prevents interface clutter. These design patterns — fixed-size state arrays, a single source of truth for transport, and accessible grid layouts — apply broadly to any UI built around a discrete timeline.

langPeanut Uses AST Parsing and Gemini AI to Automate App Localization at Low Cost · ShortSingh