News for hackers. Stuff that matters.
Re:Atom now opens files larger than 2MB by manigandham on Wednesday June 10, 2015 @06:18AM (#9690995)
Atom is a desktop/native wrapper around browser-like internals. The stuff inside is all just HTML/javascript/css running on node. There are some neat advantages, as well as just seeing how far a web interface for a desktop app can go.

The limit came about because trying to open a 100MB file as an html page (even without all the extra styling and interactive options) will break any browser. It was just a hard problem to solve, having an HTML-based editor deal with so much text at once.

Re:Atom now opens files larger than 2MB by userbinator on Wednesday June 10, 2015 @06:34AM (#9691047)
The limit came about because trying to open a 100MB file as an html page (even without all the extra styling and interactive options) will break any browser.

I remember opening HTML files in that size range (they were logs) in IE6 around a decade or more ago, on a machine with <1GB of RAM, and it handled them just fine - there was a noticeable delay, but it wasn't unusable. Even searching for strings worked.

Re:Atom now opens files larger than 2MB by rplnt on Wednesday June 10, 2015 @06:28AM (#9691018)
> trying to open a 100MB file as an html page (even without all the extra styling and interactive options) will break any browser.

I'd love to test that. Anyone willing to privide an example file? HTML with css perhaps, no js. Should be pretty small when zipped.

Re:Atom now opens files larger than 2MB by icebraining on Wednesday June 10, 2015 @06:37AM (#9691060)
Assuming you don't need anything complex, it's pretty easy to generate it.

Here's a 100MB HTML file (compressed to 300KB): https://curl.io/get/yt7zbmfq/0eb1564f570236acf1d9f304855a7c7...

As a side note, VIM opens it in an instant /troll