News for hackers. Stuff that matters.
Re:Tokamak: A Rust IDE for Atom by beefsack on Monday April 04, 2016 @07:13PM (#11426527)
The plugin ecosystem seems to be really flourishing in Atom, the Go plugin was great and quite excited to see this.

I try Atom every couple of months but never last long before heading back to my terminal. I'm assuming it's only a matter of time though before it's polished and fast enough that we'll see a lot of converts.

Re:Tokamak: A Rust IDE for Atom by Slippery_John on Monday April 04, 2016 @10:39PM (#11427433)
I want so bad to love it, but when a 200 line markdown file causes significant delay, there's just no way I can commit to it.
Re:Tokamak: A Rust IDE for Atom by fit2rule on Tuesday April 05, 2016 @02:01AM (#11428179)
I'm the same .. I keep wanting to switch to Atom from ST3, because all the cool kids are doing it, but every time I make the attempt I'm thwarted by the feeling that its just not a very well-written application if it can't handle my 500-line files without hitting swap - on a system with 16gigs of RAM and plenty of cores free.

It may be that its worth the effort - I wouldn't know. But the feeling that I'm not actually improving things by moving to an editor that can't handle big files is just too prevalent.

So I inevitable switch back to ST3 and go back to work, every single time. Sorry Atom guys, its just not working for me.

Re:Tokamak: A Rust IDE for Atom by tomc1985 on Tuesday April 05, 2016 @02:32AM (#11428297)
My big peeve was started time... nothing quite beats gedit or gvim or notepad.exe, though so far it seems a tie between ST3 and VSCode
Re:Tokamak: A Rust IDE for Atom by indianhippie on Monday April 04, 2016 @08:33PM (#11426915)
Same here. I have tried it a few times. The sole reason I'm not moving from Sublime is the speed of the editor.
Re:Tokamak: A Rust IDE for Atom by albasha on Monday April 04, 2016 @08:59PM (#11427027)
It will never be as fast as Sublime. Not before a few years at least.
Re:Tokamak: A Rust IDE for Atom by paublyrne on Tuesday April 05, 2016 @02:06AM (#11428196)
Visual Studio Code seems much snappier than Atom, but is based on the same engine. So atom can be much faster.
Re:Tokamak: A Rust IDE for Atom by tomc1985 on Tuesday April 05, 2016 @02:33AM (#11428301)
Atom was much faster, back in the day!
Re:Tokamak: A Rust IDE for Atom by landr0id on Monday April 04, 2016 @10:12PM (#11427314)
As much as I hate the idea of basically bundling Chrome with the application to get it to run, since this is essentially Chrome then wouldn't it be able to utilize WebAssembly in the future instead of the JavaScript engine?
Re:Tokamak: A Rust IDE for Atom by Matthias247 on Tuesday April 05, 2016 @02:59AM (#11428401)
I don't think JS is the bottleneck. I think one of the bottlenecks is algorithms - because Visual Studio Code is much faster than Atom on the same node/electron platform. The other main bottleneck might be that the browser DOM is used for rendering, which is super flexible but probably not as fast as a more dedicated text editor GUI toolkit.
Re:Tokamak: A Rust IDE for Atom by oblio on Tuesday April 05, 2016 @03:50AM (#11428632)
It's probably the architecture difference between Atom and VS Code. VS Code plugins run out of process and have access only to a limited set of APIs (http://code.visualstudio.com/docs/extensions/our-approach).
Re:Tokamak: A Rust IDE for Atom by Klathmon on Tuesday April 05, 2016 @07:21AM (#11429503)
I'm also convinced it's the syntax highlighting in atom that contributed to a massive amount of its "sluggishness".

It uses regex with some off-the-wall engine that they chose because it supports just about every encoding under the sun. Many of the language syntax packages I looked at could easily improve their regex performance.

Plus when you open a file as "plain text" or disable the syntax highlighting package much of the sluggishness goes away.

I'd love to dive in and try and fix it myself but I won't have time to for a few months. The code itself isn't horrible just a little undocumented.

Re:Tokamak: A Rust IDE for Atom by Matthias247 on Tuesday April 05, 2016 @12:08PM (#11431560)
I think Sublime Text, Atom and now also VS Code use Oniguruma as their regex engine. Atom and code even use the same implementation (node-oniguruma) and the syntax highlighting definitions for the languages are often also the same - because they were ported from TextMate to Sublime and then to Atom and Code. So even if the engine is not perfect and the defined regexes might not be optimal for some languages - it still would not explain why Atom is slower than Code.

My personal guess is that is because Code might use a more stream-like processing of the source files and does not have the whole files in memory (it also works with really big files - which Atom does not support) and that this does work better

Re:Tokamak: A Rust IDE for Atom by Klathmon on Tuesday April 05, 2016 @12:12PM (#11431604)
Hmm I did not know that!

You are probably right about the streaming system. It's interesting that atom doesn't do it that way (seeing as how streams are such an useful part of "server-side" javascript)

Like I said at one point i'd really like to dive into this stuff and spend some time trying to figure out exactly what the problem is (and maybe help find a way to fix it).

Re:Tokamak: A Rust IDE for Atom by Touche on Monday April 04, 2016 @10:18PM (#11427340)
It's written in CoffeeScript, so unless they rewrite in C++ using WebAssembly would make it slower.
Re:Tokamak: A Rust IDE for Atom by cheez on Tuesday April 05, 2016 @12:13AM (#11427743)
That itself (rewriting in C++) to make it faster in the browser would be hilarious.
Re:Tokamak: A Rust IDE for Atom by simcop2387 on Monday April 04, 2016 @07:23PM (#11426584)
Main thing that's kept me from using it is lack of good support for remote editing. Once it's got something that it'll fit the way I want to use it much nicer.
Re:Tokamak: A Rust IDE for Atom by m_mueller on Monday April 04, 2016 @10:19PM (#11427344)
What I use on OSX is "ExpanDrive", it's a nicely polished paid app that lets you mount sshfs drives system wide (your server only needs to support ssh access). With that you can manipulate remote files with whatever local program you have, it's fully transparent.
Re:Tokamak: A Rust IDE for Atom by simcop2387 on Tuesday April 05, 2016 @05:28AM (#11429074)
I've tried a few of those on windows but they all seem to have terrible latency, I think they're constantly reconnecting to the server whenever an operation happens.
Re:Tokamak: A Rust IDE for Atom by m_mueller on Tuesday April 05, 2016 @07:00AM (#11429399)
On OSX it works well enough for me to work directly on the server if I have LAN connection or good internet with low latency. If the connection is shaky I'm working locally, sync with Rsync and use ExpanDrive to check on result files. But yes, it's a question of managing your expectations.
Re:Tokamak: A Rust IDE for Atom by Scarbutt on Tuesday April 05, 2016 @01:56AM (#11428158)
Switch to Vim or Emacs and you don't have to worry about remote editing plugins anymore!
Re:Tokamak: A Rust IDE for Atom by simcop2387 on Tuesday April 05, 2016 @05:26AM (#11429062)
That's largely the way I do it, but I have to use windows at my current job, so a good terminal isn't really present. putty does ok but it's cumbersome compared to openssh, and cygwin makes it better to use but terminals aren't very good. My current setup is ConEMU and cygwin.

Trying to get permission to setup some kind of VM on the machine, (likely VB) so I can use what I'm used to.

Re:Tokamak: A Rust IDE for Atom by NTripleOne on Tuesday April 05, 2016 @11:33AM (#11431165)
Alternatively people could continue using their editor of choice without having an evimgelist shouting at them every 30 seconds.
Re:Tokamak: A Rust IDE for Atom by superuser2 on Tuesday April 05, 2016 @12:39AM (#11427856)
Have you tried using rsync or a similar outside-the-editor utility to keep files in sync between your local workstation and the remote server?
Re:Tokamak: A Rust IDE for Atom by masterj on Monday April 04, 2016 @07:40PM (#11426671)
Have you tried Nuclide? It has good remote project support since FB web engineers have to develop on remote servers.
Re:Tokamak: A Rust IDE for Atom by therein on Monday April 04, 2016 @10:47PM (#11427457)
I tried Nuclide but unfortunately it doesn't play well with the custom build-time include paths that we have. They are available as environment variables on the coding environment but Nuclide can't make use of them.
Re:Tokamak: A Rust IDE for Atom by Klathmon on Tuesday April 05, 2016 @07:23AM (#11429522)
There's a remote-sftp package that allows a bit of this. But I've only used it for light fixes and config file changes on servers, never for real full remote development.
Re:Tokamak: A Rust IDE for Atom by ngrilly on Tuesday April 05, 2016 @02:30AM (#11428291)
What kind of remote editing: edit files stored in a virtual machine while you develop? or edit files stored in a remote server you administer?