top | item 47150758

(no title)

titzer | 4 days ago

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....

discuss

order

spankalee|4 days ago

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

sgarland|4 days ago

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?