logoalt Hacker News

titzeryesterday at 12:40 PM2 repliesview on HN

Seeing a JSON configuration file that stores environment variables makes me want to cry. Just to think that somewhere, somehow, it's going to launch an entire JavaScript VM (tens of megabytes) just to parse a file with 12 lines in it, then extract from a JavaScript the fields, munge it, eventually turn into more or less an array of VAR=val C strings which get passed to a forked shell....


Replies

spankaleeyesterday at 12:56 PM

Why do you presume it needs a JavaScript VM to parse JSON?

sgarlandyesterday at 12:44 PM

Granted, I have no idea how Claude Code operates internally, but if it’s already running in a JS VM, can’t it read the file itself?