惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
爱范儿
爱范儿
H
Help Net Security
Last Week in AI
Last Week in AI
The Cloudflare Blog
博客园 - 三生石上(FineUI控件)
小众软件
小众软件
IT之家
IT之家
aimingoo的专栏
aimingoo的专栏
大猫的无限游戏
大猫的无限游戏
Jina AI
Jina AI
Google DeepMind News
Google DeepMind News
B
Blog
C
Check Point Blog
T
Tailwind CSS Blog
云风的 BLOG
云风的 BLOG
D
Docker
Recent Announcements
Recent Announcements
Vercel News
Vercel News
博客园 - 聂微东
阮一峰的网络日志
阮一峰的网络日志
MyScale Blog
MyScale Blog
The GitHub Blog
The GitHub Blog
Stack Overflow Blog
Stack Overflow Blog
雷峰网
雷峰网
人人都是产品经理
人人都是产品经理
月光博客
月光博客
F
Fortinet All Blogs
Blog — PlanetScale
Blog — PlanetScale
B
Blog RSS Feed
The Register - Security
The Register - Security
V
Visual Studio Blog
F
Full Disclosure
Hugging Face - Blog
Hugging Face - Blog
T
Threat Research - Cisco Blogs
Latest news
Latest news
PCI Perspectives
PCI Perspectives
Cisco Talos Blog
Cisco Talos Blog
博客园 - Franky
D
DataBreaches.Net
A
Arctic Wolf
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
G
Google Developers Blog
P
Palo Alto Networks Blog
Engineering at Meta
Engineering at Meta
Microsoft Azure Blog
Microsoft Azure Blog
T
Tenable Blog
L
LINUX DO - 热门话题
Spread Privacy
Spread Privacy

Hacker News: Front Page

SPICE simulation → oscilloscope → verification with Claude Code — Lucas Gerads GitHub - GainSec/AutoProber: Hardware hacker’s flying probe automation stack for agent-driven target discovery, microscope mapping, safety-monitored CNC motion, probe review, and controlled pin probing. Introducing Claude Opus 4.7 Qwen Studio The Future of Everything is Lies, I Guess: Where Do We Go From Here? GitHub - SeanFDZ/macmind: Single-layer transformer in HyperTalk for the classic Macintosh Virginia Bans Sale of Geolocation Data Show HN: Agent-cache – Multi-tier LLM/tool/session caching for Valkey and Redis Ancient DNA reveals pervasive directional selection across West Eurasia [pdf] AI cybersecurity is not proof of work Moving a large-scale metrics pipeline from StatsD to OpenTelemetry / Prometheus GitHub - Nightmare-Eclipse/RedSun: The Red Sun vulnerability repository GitHub - SethPyle376/hiraeth: Local AWS emulator focused on fast integration testing, with SQS support, SQLite-backed state, and a debug-friendly web UI. A Better Ludum Dare; Or, How to Ruin a Legacy GitHub - macOS26/Agent: Any AI, replaces Claude Code, Cursor, OpenClaw. Over 18 LLM providers (Claude, OpenAI, Gemini, Ollama, Zai, HF, Qwen) wired into a native Mac app that writes code, builds Xcode projects, bumps versions, manages git, automates Safari, use AppleScript, JS or Accessibility, extend Agent! w/ MCP Servers, run tasks from your iPhone via Messages. YouTube now lets you turn off Shorts I Made a Terminal Pager Burgers | マクドナルド公式 Commands — HackerNews CLI documentation ChatGPT for Excel PiCore - Raspberry Pi Port of Tiny Core Linux Live Nation illegally monopolized ticketing market, jury finds Google Broke Its Promise to Me. Now ICE Has My Data. Founding Engineer at Adaptional | Y Combinator CRISPR takes important step toward silencing Down syndrome’s extra chromosome GitHub - saffron-health/libretto: The AI toolkit for building reliable browser automations US v. Heppner (S.D.N.Y. 2026) no attorney-client privilege for AI chats [pdf] Unexpected €54k billing spike in 13 hours: Firebase browser key without API restrictions used for Gemini requests Fragments: April 14 Cal.com Goes Closed Source: Why AI Security Is Forcing Our Decision | Cal.com - Scheduling Software for Online Bookings Laravel raised money and now injects ads directly into your agent Codex Hacked a Samsung TV Tech Valuations Back to Pre-AI Boom Levels A perfectable programming language — Soter GitHub - halfwhey/claudraband: Claude Code for the Power User Partnership through Play: Investigating How Long-Distance Couples Use Digital Games to Facilitate Intimacy Textbooks and Methods of Note-Taking in Early Modern Europe (2008) Eternity in six hours: Intergalactic spreading of intelligent life (2013) Seven countries now generate 100% of their electricity from renewable energy Tell HN: OpenAI silently removed Study Mode from ChatGPT Pro Max 5x Quota Exhausted in 1.5 Hours Despite Moderate Usage Show HN: Oberon System 3 runs natively on Raspberry Pi 3 (with ready SD card) Tell HN: docker pull fails in spain due to football cloudflare block Bring Back Idiomatic Design No one owes you supply-chain security GitHub - xsawyerx/curl-doom: DOOM, played over cURL Apple update turns Czech mate for locked-out iPhone user The Grand Line Cache TTL silently regressed from 1h to 5m around early March 2026, causing quota and cost inflation Building a Z-Machine in the worst possible language The peril of laziness lost Iran war: We spoke to the man making Lego-style AI videos that experts say are powerful propaganda AI Will Be Met With Violence, and Nothing Good Will Come of It GitHub - duguyue100/midnight-captain: Inspired by Midnight Commander, tailored to my taste. How to build a `git diff` driver · Jamie Tanna | Software Engineer Center for Responsible, Decentralized Intelligence at Berkeley The Local Universe’s Expansion Rate Is Clearer Than Ever, but Still Doesn’t Add Up - A new synthesis of astronomical measurements confirms a persistent mismatch that could point to physics beyond current models The disturbing white paper Red Hat is trying to erase from the internet – OSnews NetBlocks (@netblocks@mastodon.social) The Future of Everything is Lies, I Guess: Annoyances ‘Abhorrent’: the inside story of the Polymarket gamblers betting millions on war Productive procrastination — Max van IJsselmuiden maps, territory and LMs 447 Terabytes per Square Centimetre at Zero Retention Energy: Non-Volatile Memory at the Atomic Scale on Fluorographane Show HN: Pardonned.com – A searchable database of US Pardons 20 Years on AWS and Never Not My Job The Seasons are Wrong The FAA wants gamers to apply for air traffic control jobs Artemis II crew splashes down near San Diego after historic moon mission Why weekends are under threat We gave an AI a 3 year retail lease in SF and asked it to make a profit | Andon Labs How a dancer with ALS used brainwaves to perform live On filing the corners off my MacBooks Installing every* Firefox extension OpenClaw’s memory is unreliable, and you don’t know when it will break Steve Blank Nowhere Is Safe Chimpanzees in Uganda locked in vicious 'civil war', say researchers watgo - a WebAssembly Toolkit for Go linux/Documentation/process/coding-assistants.rst at master · torvalds/linux GitHub - callumlocke/json-formatter: Makes JSON easy to read. Founding Product Engineer at Bild AI | Y Combinator A compelling title that is cryptic enough to get you to take action on it GitHub - Keychron/Keychron-Keyboards-Hardware-Design: Industrial design files for Keychron keyboards and mice. 100+ models with CAD assets in STEP, DXF, DWG, and PDF. Source-available, with commercial use allowed for original compatible accessories within the license terms. [ANNOUNCE] WireGuardNT v0.11 and WireGuard for Windows v0.6 Released 1D-Chess Helium Is Hard to Replace Keeping a Postgres queue healthy — PlanetScale Serenity Forge (@serenityforge.com) Our response to the Axios developer tool compromise Do Americans read print books, e-books or audiobooks more? Uncharted island soon to appear on nautical charts The Problem That Built an Industry Fragments: April 2 Python Release Python install manager 26.1 Bitcoin miners are losing $19,000 on every BTC produced as difficulty drops 7.8% God sleeps in the minerals Harness engineering: leveraging Codex in an agent-first world Apple Silicon and Virtual Machines: Beating the 2 VM Limit What have been the greatest intellectual achievements? The APL Programming Language Source Code
GitHub - MarceloDelgadoDev/asp-classic-emulator: Run ASP Classic on macOS, Linux and BSD. Drop npx asp-emulator into any project folder and get a high-fidelity VBScript HTTP server — no Windows, no IIS, no VM. Full ASP object model, SQLite/MySQL/PostgreSQL support, and a hand-written Chevrotain parser.
866-RON-0-FE · 2026-05-17 · via Hacker News: Front Page

Run ASP Classic on macOS, Linux and BSD.

No Windows. No IIS. No VM.

npx asp-classic-emulator

Node.js License Status Platform


What is this?

ASP Classic never died — it just got stranded on Windows. Millions of lines of VBScript are still running in production, and maintaining them means either keeping a Windows Server around or setting up a VM every time someone needs to touch the code.

asp-classic-emulator fixes that. Drop it into any folder with .asp files, run one command, and get a fully working HTTP server that interprets VBScript with high fidelity to the original IIS behavior — on any POSIX system.

your-project/
├── index.asp
├── login.asp
├── includes/
│   └── conn.asp
└── global.asa
cd your-project
npx asp-classic-emulator
# → Serving on http://localhost:3000

Features

  • Zero config — works out of the box with a single command
  • High-fidelity VBScript — hand-written Chevrotain parser, proper Variant type system, implicit coercion with terminal warnings
  • Full ASP object modelResponse, Request, Session, Application, Server
  • Database support — SQLite (built-in, zero config), MySQL/MariaDB, PostgreSQL
  • ADO emulationADODB.Connection, ADODB.Recordset with classic connection strings
  • CreateObject supportADODB.*, Scripting.FileSystemObject, MSXML2.DOMDocument
  • #includefile and virtual, resolved at runtime with cache and circular reference detection
  • global.asaApplication_OnStart, Session_OnStart events
  • Two error modes — modern stack trace in dev, classic IIS-style error page in prod
  • Static file serving — CSS, JS, images served automatically alongside .asp files
  • Watch mode — auto-reloads on file changes in development
  • --strict mode — turns implicit type coercions into hard errors
  • Multiple distribution options — npx, global install, Node.js API, Docker

Quick start

Requirements

  • Node.js ≥ 18
  • macOS, Linux, or BSD

Run without installing

npx asp-classic-emulator

Install globally

npm install -g asp-classic-emulator
asp-classic-emulator

Use as a Node.js library

npm install asp-classic-emulator
import { createServer } from 'asp-classic-emulator'

const server = createServer({
  root: './www',
  port: 3000,
  mode: 'dev',
})

await server.start()

Docker

docker run -p 3000:3000 -v $(pwd)/www:/app/www ghcr.io/asp-classic-emulator/asp-classic-emulator

Usage

asp-classic-emulator [options]

Options:
  --port        Port to listen on                  [default: 3000]
  --root        Root folder with .asp files        [default: .]
  --mode        dev or prod                        [default: dev]
  --strict      Throw on implicit type coercions   [default: false]
  --watch       Reload on file changes             [default: true in dev]
  --timeout     Script execution timeout (seconds) [default: 90]
  --log-level   silent | error | warn | info | debug  [default: info]
  --config      Path to config file                [default: asp-classic-emulator.config.json]
  --help        Show help

Config file

Create asp-classic-emulator.config.json in your project root. CLI flags override config values.

{
  "port": 3000,
  "root": "./www",
  "mode": "dev",
  "strict": false,
  "watch": true,
  "timeout": 90,
  "session": {
    "timeout": 20
  },
  "databases": {
    "default": "Provider=SQLite;Data Source=./db.sqlite"
  },
  "virtualDirectories": {
    "/includes": "./shared/includes"
  }
}

VBScript support

Phase 1 (current)

Construct Status
Dim, ReDim, Set
Variable assignment
If / ElseIf / Else / End If
For / Next
For Each / Next
While / Wend
Do / Loop
Sub / End Sub
Function / End Function
Fixed and dynamic arrays
Expressions (arithmetic, logical, comparison, string)
Exit For, Exit Do, Exit Sub, Exit Function

Phase 2 (planned)

Construct Status
Select Case 🔜
On Error Resume Next / Err object 🔜
With / End With 🔜
Class / End Class 🔜
Execute / ExecuteGlobal 🔜
Full VBScript built-in functions 🔜

Type system

VBScript's Variant type is fully emulated. Every variable can hold any subtype and changes at runtime — just like the original.

Dim x
x = 42           ' Long
x = "hello"      ' String
x = True         ' Boolean
x = Null         ' Null (contagious in expressions)
x = Empty        ' Empty (zero in numeric context)

Implicit coercion

By default, implicit coercions work exactly as in IIS, and a warning is printed to the terminal:

[WARN] Implicit coercion in /dashboard.asp:12 — String "42" → Number
       Use CInt() or CDbl() for explicit conversion. Run with --strict to throw instead.

Use --strict to turn all implicit coercions into runtime errors:

asp-classic-emulator --strict

Database support

Connection strings use classic ADO syntax — no changes needed to existing code.

Dim conn
Set conn = Server.CreateObject("ADODB.Connection")

' SQLite
conn.Open "Provider=SQLite;Data Source=" & Server.MapPath("./db.sqlite")

' MySQL
conn.Open "Provider=MySQL;Data Source=localhost;Database=mydb;User Id=root;Password=secret"

' PostgreSQL
conn.Open "Provider=PostgreSQL;Data Source=localhost;Database=mydb;User Id=postgres;Password=secret"

Dim rs
Set rs = conn.Execute("SELECT * FROM users WHERE active = 1")

Do While Not rs.EOF
  Response.Write rs("name") & "<br>"
  rs.MoveNext
Loop

rs.Close
conn.Close

Error pages

Development mode

Clear, modern error page with file name, line number, column, source excerpt, and full interpreter stack trace.

Production mode (--mode=prod)

Classic IIS-style error page — exactly what end users would see on a real Windows server:

Microsoft VBScript runtime error '800a000d'
Type mismatch
/pagina.asp, line 42

Supported file types

Extension Behavior
.asp Interpreted — <% %> blocks executed
.asa global.asa events (Application_OnStart, etc.)
.inc Interpreted when included via #include
.html, .htm Interpreted (supports embedded ASP blocks)
.css, .js, .png, .jpg, .gif, .svg, .ico Served as static files
Other Served as application/octet-stream

Terminal output

┌─────────────────────────────────────────┐
│  ASP Emulator v0.1.0                    │
│  Serving: ./www                         │
│  http://localhost:3000                  │
│  Mode: development · Watch: on          │
└─────────────────────────────────────────┘

GET  /index.asp        200  11ms
GET  /css/style.css    200   2ms
POST /login.asp        302   6ms
GET  /dashboard.asp    200  28ms
[WARN] implicit coercion in /dashboard.asp:42 — String → Number
GET  /report.asp       500   4ms
[ERROR] /report.asp:17 — Object required: 'rs'

Architecture

HTTP Request
     │
     ▼
HTTP Server (node:http)
     │
     ▼
Request Parser  ──  QueryString, Form, Cookies, Headers
     │
     ▼
ASP Pre-processor  ──  resolve #include, split HTML / <% %>
     │
     ▼
Lexer (Chevrotain)  ──  text → typed token stream
     │
     ▼
Parser (Chevrotain)  ──  tokens → AST with line/column info
     │
     ▼
Interpreter  ──  walks AST, injects ASP objects, executes VBScript
     │
     ▼
HTTP Response  ──  flush HTML buffer to client

Why a hand-written parser?

No usable VBScript parser exists in the Node.js ecosystem. The few packages that exist are abandoned, incomplete, or cover less than 60% of the grammar.

Chevrotain was chosen because:

  • TypeScript native — no separate grammar file, no code generation step
  • Incrementally extensible — adding Select Case or With is a new method, nothing existing breaks
  • Built-in error recovery — precise line and column in every error message
  • Production-grade — used by SAP, MongoDB, and others

Contributing

Contributions are welcome, especially:

  • VBScript built-in functions (Split, Join, Replace, Mid, DateAdd, etc.)
  • Additional CreateObject implementations
  • Real-world ASP fixture files for the test suite (anonymized is fine)
  • Bug reports with .asp snippets that don't behave like IIS
git clone https://github.com/your-org/asp-classic-emulator
cd asp-classic-emulator
npm install
npm run dev   # starts the emulator pointing to ./examples/hello-world
npm test

License

MIT — see LICENSE for details.


Built for the developers keeping legacy systems alive.