Urgent.News

What's breaking now, across thousands of outlets.

Tech

A walkable ASCII cyberpunk city in one HTML file [video]

ASCII City: Traffic and Detail Update - https://www.youtube.com/watch?v=DSRooHo_HSI ASCII City Update: Interiors, Elevation and Skyscrapers - https://www.youtube.com/watch?v=UCKEDWowc0o Comments URL: https://news.ycombinator.com/item?id=49512975 Points: 186 # Comments: 28

Dataloupe now includes a full SQL console that runs entirely within a single HTML file, without requiring any server, WASM download, or network requests. This is achieved by leveraging an existing, lightweight read-only query engine that already exists within the tool. The SQL feature is essentially a compiler that takes a string of SQL text and converts it into a query specification object that the engine can execute.

This compiler is a hand-written tokenizer and recursive-descent parser with no dependencies, keeping the overall code size tiny. The generated file size remains around 35KB even for small datasets. The SQL text is treated as data (a plan object), never as executable code, which allows it to run safely under the same content security policy (CSP) restrictions as the rest of the file.

Users can simply open the file, click on the SQL panel, and execute queries like "SELECT dept, COUNT(*), AVG(salary) FROM people WHERE salary > 100000 AND city IN (NYC, SF) GROUP BY dept ORDER BY AVG(salary) DESC LIMIT 10". All queries are executed client-side, with results displayed in a table below the editor. No network activity is visible in the browser's network tab, ensuring the tool remains entirely offline.

This approach of reusing an existing execution path for SQL queries, rather than adopting a full database engine or a WASM blob, is a cost-effective way to add SQL capabilities to an application, provided a structured query layer already exists.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

This story

This is one outlet's version. Read the fullest account.

Read the original at youtube.com →

More in Tech

Is Someone Hacking DoD Refrigerators?

It sure seems like it. The stores confirmed to be affected include Fort Irwin , Calif.; F.E. Warren Air Force Base , Wyo.; Fort Huachuca , Ariz.; Naval Station Newport , R.I.; Columbus Air Force Base…

How to Connect Codex to a Custom Responses API Provider and Verify the Route

Changing an API base URL is not enough to prove that Codex is using the provider you intended. Codex is an agentic client. It needs more than a model that can return text.

  • Codex requires compatibility with Responses API behavior
  • Four key decisions: model, provider, base URL, API key
  • wireapi = responses indicates use of Responses API

More from Monday 31 August →