Live data from Hacker News

Atom 1.1 is out

blog.atom.io

21–30 of 70 posts

Re: Atom 1.1 is out

#21
> Atom needs to measure runs of text on screen to absolutely position the cursor, selections, highlights, and overlay decorations such as the autocomplete suggestion box. Chrome does not have a text measurement API at this time, so we need to measure text from the DOM. The problem with measuring from the DOM is that it forces a reflow, and these measurement-triggered reflows were a major source of slowness in early versions of Atom.

It's incredible that the web works at all, considering the heroic feats necessary to accomplish simple things native toolkits got right back in the 1980's.

Re: Atom 1.1 is out

#22

I have Atom and Brackets installed but see no reason to use them over Sublime Text.. My preferred text editor would be vim simply because I can code while ssh'd.

I love Brackets since they have added instant search. That is the killer feature for me.

Being able to search 10k+ files instantly as you type is really awesome.

Re: Atom 1.1 is out

#23
post #13

Glad to hear they seem to have fixed the fuzzy finder. It was really terrible, and I actually switched back to Sublime because its fuzzy finder is fantastic. The relief in switching back to Sublime's finder was palpable, but I'll give Atom 1.1 another shot. It's interesting reading about the character measurement problem. That makes me wonder if it's even worth building a text editor based on web technologies. Sublim…

> Atom is built on experimental DOM-based tech, and a team funded by a massive company is still jumping through hoops to do things like measure the length of a line. Is whatever DOM brings to the table worth it? I genuinely don't know. I'm guessing the big win is Atom gets to take advantage of all the advances being made in the active JavaScript, Node and WebKit communities. At the rate things are going (e.g. JavaScr…

I'm not sure how much JS is actually faster in the past few years... I mean there's been progress, but a lot of the progress in the earlier days of V8 aren'twhat we've seen lately. Probably 5+ years since huge leaps in JS performance have happened... it's just modern computers are pretty damned fast and have been for a while (on the desktop). Even CPU development has been more about reducing power use, than increasing raw performance for a while.

Most of the advancements/bottlenecks lately in browser tech are in how the DOM and reflows work in the browser in practice. JS has been pretty damned fast, and probably one of the fastest scripted environments all around for some time.

Re: Atom 1.1 is out

#24
post #21

> Atom needs to measure runs of text on screen to absolutely position the cursor, selections, highlights, and overlay decorations such as the autocomplete suggestion box. Chrome does not have a text measurement API at this time, so we need to measure text from the DOM. The problem with measuring from the DOM is that it forces a reflow, and these measurement-triggered reflows were a major source of slowness in early v…

Measuring for the width of a text string isn't exactly a typical action in browser based applications/pages. That said, I'm half surprised they didn't resort to canvas controlled rendering to work around the issue, making the editor itself a controlled canvas field.

Re: Atom 1.1 is out

#25

Man, I will have to give atom a try again... been using VS Code for a few months now because when I last tried atom it was painfully slow... I really like the inline markdown preview. Between Atom, VS Code and others, it's really interesting to see all of these tools built around the browser. It's funny because this is heavier than what Mozilla envisioned with XUL apps sharing a runtime. That said, at least writing a…

VS Code is amazing speed-wise, I couldn't believe its web-based at all.

Re: Atom 1.1 is out

#26
post #22

I have Atom and Brackets installed but see no reason to use them over Sublime Text.. My preferred text editor would be vim simply because I can code while ssh'd.

I love Brackets since they have added instant search. That is the killer feature for me. Being able to search 10k+ files instantly as you type is really awesome.

Similarly, I've really enjoyed VS Code's Git and Search features... Though thinking of trying Atom again after this release noting performance gains.

Re: Atom 1.1 is out

#27
I was reading that page until I hit their preview of 1.2 work, and clicking through to the PR for CJK soft-wrap sort of confirmed all my fears about what a bad idea it is to try and write a text editor against a browser engine.

Just from skimming it a bit, to handle Korean, their developer decided that Korean characters have a special unique width from other writing systems and gets that width from the cached bounding rect of a particular char as run through the engine, and then that factors into their wrapping calculations. So now they have a function called getKoreanCharWidth and are basically implementing alphabet-specific text layout in a bad way on their side of the fence. It doesn't even work particularly well, but most importantly it's obviously not a generic solution, and duplicates what the browser engine already does much better by using proper shaping and layout engines.

On the flip side, it sounds like Atom is a really cool project if you don't really know what you're doing yet and want to learn from your mistakes. Reinventing the wheel and noting it hobbles is a good way to acquire experience, and it's not like the world relies on Atom. Perhaps it also creates positive pressure to improve the APIs they're writing against, even though it's sad that happens so indirectly then.

Re: Atom 1.1 is out

#28

Earlier quoted context omitted.

> Atom is built on experimental DOM-based tech, and a team funded by a massive company is still jumping through hoops to do things like measure the length of a line. Is whatever DOM brings to the table worth it? I genuinely don't know. I'm guessing the big win is Atom gets to take advantage of all the advances being made in the active JavaScript, Node and WebKit communities. At the rate things are going (e.g. JavaScr…

I'm not sure how much JS is actually faster in the past few years... I mean there's been progress, but a lot of the progress in the earlier days of V8 aren'twhat we've seen lately. Probably 5+ years since huge leaps in JS performance have happened... it's just modern computers are pretty damned fast and have been for a while (on the desktop). Even CPU development has been more about reducing power use, than increasin…

> Most of the advancements/bottlenecks lately in browser tech are in how the DOM and reflows work in the browser in practice. JS has been pretty damned fast, and probably one of the fastest scripted environments all around for some time.

That's what I mean though. As Atom, web frameworks, Chrome OS etc. put pressure on the DOM to be fast, it will get fixed by some layer in the stack eventually in the same way V8 vastly improved the speed of JavaScript as there was pressure to make JavaScript faster.

Re: Atom 1.1 is out

#29
post #3

I second the question: Is it any good?

It's good if you have a powerful machine with a lot of RAM and a fast hard drive for IO. But hey, it's free. The alternatives are Visual Studio Code and Brackets.

Brackets is more useful for Web designers and Integrators (support for photoshop projects...)

VS Code has nice Typescript and git integration (makes committing code very easy)

Post reply on HN