News for hackers. Stuff that matters.
Re:Atom now using Io.js by frewsxcv on Tuesday February 03, 2015 @02:34PM (#8992716)
Why do all threads about Atom seem to be full of people opening huge files with text editors? I've never had performance issues with Atom with a 2013 MBA.
Re:Atom now using Io.js by jeremiep on Tuesday February 03, 2015 @03:07PM (#8992943)
The C++ project I'm working on at the moment has many dozens of 1Mb header files. Its very frequent for source files to go past the two megabytes mark. Splitting these files is no option either; there are over three thousands of them and compilation times are slow enough already (many hours without distributed build systems).

As for data files, we have XMLs (yeah, I know..) over 50Mb in size.

Atom is a long way from supporting such projects. This probably doesn't apply to most web projects, but 2Mb is far from a huge file :)

Re:Atom now using Io.js by bduerst on Tuesday February 03, 2015 @04:00PM (#8993326)
>As for data files, we have XMLs (yeah, I know..) over 50Mb in size.

SOAP dependency?

Re:Atom now using Io.js by jeremiep on Tuesday February 03, 2015 @06:47PM (#8994382)
No, just data definitions used by the application. Most of it uses generated parsers and serializers but we still need to manually edit the files now and then.
Re:Atom now using Io.js by CSDude on Tuesday February 03, 2015 @03:08PM (#8992950)
Even my ~10 kb files syntax highlighting & scrolling lags on a computer where I play Battlefield 4 at almost highest settings.
Re:Atom now using Io.js by mcmillion on Tuesday February 03, 2015 @05:06PM (#8993771)
Right. I think this is the point that people are really making.

Right now, Atom is just too slow when compared with other editors such as Sublime. Given enough time it shouldn't be an issue (maybe), but right now I think it's a huge pain point for a lot of devs.

Re:Atom now using Io.js by emn13 on Tuesday February 03, 2015 @05:44PM (#8994031)
I'm not sure I can think of any editor that's as laggy as atom.

In all fairness though: I wouldn't notice 99% of the time, and I can well imagine that this problem will disappear with time.

Re:Atom now using Io.js by benaiah on Tuesday February 03, 2015 @08:27PM (#8994783)
Emacs' performance can be pretty damn bad sometimes, but I don't use Atom enough to know their relative positions.
Re:Atom now using Io.js by serf on Tuesday February 03, 2015 @10:00PM (#8995090)
I just switched back to emacs from testing atom for a few weeks, and my biggest issue with it was the speed in opening files from a closed client. emacs deals with it by daemonizing emacs-server, atom deals with it by trying to be performant, but failing. In this day and age, i'd rather sink some cheap memory and keep the daemon running.

If atom has a daemon feature that I never found, or one upcoming, I'd consider it again. Until then my workflow involves too many client closes for me to not notice the significant delay that atom has when opening a new file.

Re:Atom now using Io.js by ibrahima on Wednesday February 04, 2015 @12:02AM (#8995386)
I feel like daemonizing Emacs should be the default. I can happily add random stuff to my init.el which causes it to take a little while to cold start, but I never see a cold start so from my perspective Emacs is instantaneous for editing a random file. I keep hundreds of files open at all times and never have an issue with performance. I just go through and prune my open buffers once a month or so, for organizational reasons more than resource usage.
Re:Atom now using Io.js by delluminatus on Tuesday February 03, 2015 @02:41PM (#8992762)
It depends on your usage. Sure, source files are (hopefully) not going near that size, but many people regularly open multiple-MB log files or data files.

Also, for me at least, it's the principle of the thing -- we are talking about a measly few MB of text; if you can't even open that, IMO something has gone horribly wrong.

Re:Atom now using Io.js by frewsxcv on Tuesday February 03, 2015 @03:23PM (#8993083)
Why are you opening log files with a text editor?
Re:Atom now using Io.js by sea6ear on Tuesday February 03, 2015 @03:46PM (#8993232)
If you are looking for unusual conditions, scanning through visually is sometimes easier than it would be to try to grep for the particulars of an entry, especially if you don't know the particulars of the unusual condition yet.

Some editors with "minimap" functionality (Sublime Text and Emacs that I'm aware of, maybe others) can give you a fairly good visual overview of large swaths of a file at once. Sometimes strange entries are obvious just because of the shape of the line and in those cases the minimap makes it easy to see when something unusual is happening.

Re:Atom now using Io.js by cdelsolar on Tuesday February 03, 2015 @03:32PM (#8993137)
Please enlighten us.
Re:Atom now using Io.js by smacktoward on Tuesday February 03, 2015 @02:57PM (#8992874)
Today I learned that in 2015 a 2MB text file is "huge."
Re:Atom now using Io.js by untog on Tuesday February 03, 2015 @03:28PM (#8993114)
How often do you find yourself editing a 2MB file of code? If the answer is "often", I'd strongly suggest refactoring.
Re:Atom now using Io.js by ultramancool on Tuesday February 03, 2015 @03:38PM (#8993186)
Never code, but data, all the time. I write scrapers and such that produce MBs worth of output text. For quick hacks, large text files are great. I even drop large binaries into my text editor just to search for a string sometimes (easier than opening up a cli to strings | grep). At my job I frequently work with XML files measuring 100+MB, I didn't make that design choice, but I gotta work on it now.
Re:Atom now using Io.js by JohnBooty on Tuesday February 03, 2015 @03:33PM (#8993151)
OK! Let's refactor this 2MB file!

Wait... we kind of need a text editor that can open the file, don't we?

Re:Atom now using Io.js by cheald on Tuesday February 03, 2015 @03:30PM (#8993131)
I frequently find myself sifting through dozens or hundreds of megabytes worth of data. Sublime handles it just fine, FWIW.
Re:Atom now using Io.js by toong on Tuesday February 03, 2015 @03:38PM (#8993182)
I often use ST to analyse some log files. Do you have any other tooling suggestions besides the command line with grep/awk/... ?
Re:Atom now using Io.js by untog on Tuesday February 03, 2015 @03:59PM (#8993319)
Not really, no. I can't say I've ever used a text editor to search a huge log file in that way.
Re:Atom now using Io.js by kansface on Tuesday February 03, 2015 @03:16PM (#8993015)
It is rather large to be editing by hand.
Re:Atom now using Io.js by bhouston on Tuesday February 03, 2015 @02:59PM (#8992892)
99% of the files I open are less than 2MB, but every once in a while I have a large file to open. I think this is typical.

VisualStudio handles them instantly, but even Sublime Text seems to take a bit of time "processing" it.

Re:Atom now using Io.js by hurin on Tuesday February 03, 2015 @02:36PM (#8992725)
Because no one wants to use a laggy text-editor, it doesn't matter how sleek and hip it is if they can't fix that.
Re:Atom now using Io.js by peferron on Tuesday February 03, 2015 @04:48PM (#8993640)
Why do all threads about Go seem to be full of people who cannot live without generics?

Snark aside, feature X is rarely absolutely needed (you can replace your generics by some boilerplate; you can use grep instead of your text editor to process huge files), but in some cases it can make your work significantly easier and that's why people want it.

In my own case, opening video files in Sublime and having the hex and ASCII side-by-side made my job significantly easier when I was writing a parser. I could easily select portions of the data (e.g. an embedded metadata), annotate it with comments from the spec, then paste it in a unit test.

I have Atom installed, but see no reason to migrating since Sublime works well enough. My only concern is that the Sublime package ecosystem will likely start rotting now that Sublime itself is essentially abandonware, so at some point I might need e.g. autocompletion for Typescript and the best package will be on Atom, not Sublime.

Re:Atom now using Io.js by mcmillion on Tuesday February 03, 2015 @05:05PM (#8993759)
Atom chugs even with small files, at least when compared to Sublime.