News for hackers. Stuff that matters.
Re:Specifying JSON by chriswarbo on Thursday May 19, 2016 @12:52PM (#11731570)
A word of caution: some editors will choke on large files or, in particular, long lines.

Opening a one-line JSON file of a few MB in Emacs can be painful. The editor struggles to handle the long line and the matching-parenthesis-highlighter runs its stack machine down the whole length looking for the closing delimiter.

There are ways to avoid this, like pretty-printing the JSON across multiple lines, or forcing fundamental-mode when large files are opened, but I still haven't set these up as default.

Re:Specifying JSON by TMSZ on Friday May 20, 2016 @12:36PM (#11739264)
(Emacs) That's weird. Smart editor should render only portion visible to user and number of lines should not make any difference for highlighter. I've checked Scintilla with 3MB single-line JSON and using C++ lexer (actually: "Lexer for C++, C, Java, and JavaScript") and it has no problems except for some lack of fluency when scrolling horizontally.