News for hackers. Stuff that matters.
Re:Show HN: Visual Studio Code for ARM, submitted to core by Lerc on Tuesday April 18, 2017 @07:29AM (#14137930)
Great to see. I use VS-code on my Arm Chromebook and it makes for a nice on-the-go dev environment.

Also nice to see ARM getting some attention. Still too many places offer Linux builds in 32 and 64 bit where It's like the Blues brothers line "we have both kinds of music here, County _and_ Western"

Re:Show HN: Visual Studio Code for ARM, submitted to core by headmelted on Tuesday April 18, 2017 @07:42AM (#14138004)
Great to see another Chromebook Coder!

(There are some of us, we do exist, world) :-)

Re:Show HN: Visual Studio Code for ARM, submitted to core by brunoluiz on Tuesday April 18, 2017 @07:45AM (#14138025)
I don't have one, but I am bit curious how is a development workflow on a Chromebook. Do you know any article which shows it?
Re:Show HN: Visual Studio Code for ARM, submitted to core by david-given on Tuesday April 18, 2017 @08:05AM (#14138118)
I run Debian in a chroot on my Asus Flip via Crouton. It works brilliantly. Chrome manages the hardware, power management, networking, etc; and then I can pull up a terminal and it's a full Debian system. There is X integration, but I don't use it, so I can't comment there.

If you don't want to install Crouton, it's possible to do some moderately clunky development using Chrome Developer Tool's little-known IDE feature; you can point it at a local directory and edit files there. That allows HTML/JS development directly on an unmodified Chromebook, including the integrated debugger. It's not brilliant, though. If you want to go that route your best bet is a cloud development platform (which requires a network connection, of course).

I wonder if its possible to port vscode to run inside Chrome as a downloadable webapp?

Re:Show HN: Visual Studio Code for ARM, submitted to core by headmelted on Tuesday April 18, 2017 @08:07AM (#14138126)
I discussed this here this morning. There's a few roadblocks to this:

https://github.com/Microsoft/vscode/issues/1031

Re:Show HN: Visual Studio Code for ARM, submitted to core by wastedhours on Tuesday April 18, 2017 @12:11PM (#14140015)
I use Caret[0] where my project is saved in an SFTP folder on a server, so it's kept off the machine in any case (and guessing you can set up some kind of deployment hook from it?). If you've not tried Caret, do give it a go, really speedy and whilst not as good as VSCode, makes development on a Chromebook (and work laptops that don't let you install 3rd party programmes, but do allow Chrome extensions ;) )

[0] https://chrome.google.com/webstore/detail/caret/fljalecfjcio...

Re:Show HN: Visual Studio Code for ARM, submitted to core by godot on Tuesday April 18, 2017 @03:30PM (#14142094)
I do the exact same thing (Caret with SFTP folder) on my chromebook for lightweight dev (when I only have access to my chromebook at a coffee shop and only have to do some light work, not really deep stuff). Caret is passable but VSCode or even Sublime are better. My main issue though is flakey internet (which is often the case in coffee shops that are not starbucks) makes life really hard. Connections to the SFTP folder keeps dropping, etc.

I've been waiting forever for a good local Git client for chromebooks but it seems like there's just no one working on it. The few that are on the chrome app store haven't been updated since 2013-14 and are full of bugs and don't actually even work. If one existed, I would be able to clone a repo locally and at least edit code in a stable way even when internet is flakey.

Re:Show HN: Visual Studio Code for ARM, submitted to core by Touche on Tuesday April 18, 2017 @08:34AM (#14138292)
I don't understand why people run Linux on a Chromebook. The point of a Chromebook is ChromeOS. If you're running Linux it's just another Linux computer.

I develop on a Chromebook some times. I use a DigitalOcean VPS, using tmux + vim to code and ChromeOS to debug.

Re:Show HN: Visual Studio Code for ARM, submitted to core by daurnimator on Tuesday April 18, 2017 @08:47AM (#14138347)
Because i wanted a cheap ($250) semi-disposable laptop to use when travelling. Has 1080p screen; great battery life; HDMI output (to present at conferences). I use it mainly on long plane flights (3-23 hours), in hotel rooms and at conferences.

Why shouldn't I buy a chromebook and put linux on it?

Re:Show HN: Visual Studio Code for ARM, submitted to core by Touche on Tuesday April 18, 2017 @09:47AM (#14138739)
It's totally fine if you use Linux with whatever hardware you want. It's just a bit frustrating for a Chromebook user when discussion of Chromebooks is dominated by people who don't use ChromeOS. As though the hardware is the thing, but it's not the thing.
Re:Show HN: Visual Studio Code for ARM, submitted to core by surye on Tuesday April 18, 2017 @01:55PM (#14141149)
I guess it is the thing though if that's the dominating motivation?
Re:Show HN: Visual Studio Code for ARM, submitted to core by nilliams on Tuesday April 18, 2017 @08:54AM (#14138392)
Which Chromebook model are you using? That does sound good for $250
Re:Show HN: Visual Studio Code for ARM, submitted to core by daurnimator on Tuesday April 18, 2017 @09:05AM (#14138460)
Acer Chromebook 14 http://amzn.to/2oICxpa I bought it last year
Re:Show HN: Visual Studio Code for ARM, submitted to core by nilliams on Tuesday April 18, 2017 @11:37AM (#14139732)
Thanks!
Re:Show HN: Visual Studio Code for ARM, submitted to core by pjmlp on Tuesday April 18, 2017 @08:54AM (#14138389)
Because there are Linux sellers selling laptops on that price range.

I got an Asus delivered with Linux for 300 €.

Re:Show HN: Visual Studio Code for ARM, submitted to core by daurnimator on Tuesday April 18, 2017 @09:06AM (#14138467)
I couldn't find any at the time; especially ones with long battery life and a 1080p screen. Also 300 euro is more than $250.

Do you have links to models you'd recommend?

Re:Show HN: Visual Studio Code for ARM, submitted to core by pjmlp on Wednesday April 19, 2017 @01:16AM (#14145605)
I got the Eee 1512B with 8GB and is still able to hold about 6h working time, which is plenty of time for my plane travels.

Sure it doesn't have 1080p, but most apps aren't able to use it anyway.

Re:Show HN: Visual Studio Code for ARM, submitted to core by mikegerwitz on Tuesday April 18, 2017 @09:45AM (#14138725)
I use the C201 because it's a cheap computer that supports Libreboot and, using ARM, avoids issues with Intel ME:

https://libreboot.org/faq.html#intel

I replaced ChromeOS with a fully free Debian system.

Re:Show HN: Visual Studio Code for ARM, submitted to core by jrimbault on Tuesday April 18, 2017 @10:03AM (#14138872)
I'm still flabbergasted by how we (all) could let Intel ME happen. It's, imo, one of the real Damocles' swords above our heads.

This in itself proves one of my previous points, Intel has no serious competition, even the big industrial players can't bend Intel.

Re:Show HN: Visual Studio Code for ARM, submitted to core by AdmiralAsshat on Tuesday April 18, 2017 @10:38AM (#14139140)
When I did develop on a Chromebook (I switched to a Dell XPS 13), crouton was an attractive option since it let you stay in ChromeOS most of the time, while popping out a lightweight Linux environment when you needed it. It got even better when it supported xiwi running in a window, so that the chroot could look just like another Chrome tab. You could even run just one app out of the chroot in its own window, so it was not uncommon that I'd have all of my other stuff in Chrome windows, with SublimeText from the linux chroot running in its own window as my code editor.
Re:Show HN: Visual Studio Code for ARM, submitted to core by zamalek on Tuesday April 18, 2017 @08:39AM (#14138310)
Out of curiosity, what's the performance of VSCode on ARM compared to X86?
Re:Show HN: Visual Studio Code for ARM, submitted to core by hebrox on Tuesday April 18, 2017 @01:56PM (#14141167)
I've got a Asus C201 (4GB, only $185) and it runs quite smoothly. This is with Redis and Postgres running in the background.
Re:Show HN: Visual Studio Code for ARM, submitted to core by qeternity on Tuesday April 18, 2017 @09:13AM (#14138516)
Well, it's Electron...
Re:Show HN: Visual Studio Code for ARM, submitted to core by popey456963 on Tuesday April 18, 2017 @09:25AM (#14138592)
I swear Electron is incredibly fast in every instance I've used it. Unless you're doing heavy computation with complex algorithms, it's really nice. I don't believe VS Code has to do any computationally expensive computations, and it enables many more people to work on a project (JavaScript being a truly universal language).

I'm currently working on a Mail application and my benchmark test case is an email account with 20,000 emails to be displayed. Noting we currently have no lazy loading and all these are loaded from an on-disk database and put inside their own Shadow DOM it truly did surprise me when it took just over 400ms for an entire page load on my development laptop (~3 years old with an i5, nothing special).

Even if you need to do complex algorithms, just write that particular part in C and use it in the rest of your JS code like normal.

Re:Show HN: Visual Studio Code for ARM, submitted to core by lol768 on Tuesday April 18, 2017 @10:07AM (#14138901)
> I swear Electron is incredibly fast in every instance I've used it

That's really surprising to me, I've had completely the opposite experience. Just resizing a window shows how slow it is to repaint and scrolling is often pretty poor too, and this is on a moderately powerful desktop machine. I really hate to think how it'd cope on an embedded device with an ARM processor. There's a marked difference to me between Atom and e.g. Sublime Text.

> I'm currently working on a Mail application and my benchmark test case is an email account with 20,000 emails to be displayed.

Is this benchmark open source? I'd be really interested to try it compared to something similar build in Qt or Gtk+.

> Even if you need to do complex algorithms, just write that particular part in C and use it in the rest of your JS code like normal.

This might speed up complex background processing, but the fact remains that the UI is built on the DOM with interactions handled by JS. It's just not ideal for a desktop application.

With all that said, I totally understand why a lot of applications are built with these sort of technologies. It's much easier to build a cross-platform application than anything else. The price you pay is that the UX is poor.

Re:Show HN: Visual Studio Code for ARM, submitted to core by softawre on Tuesday April 18, 2017 @10:43AM (#14139195)
Don't let Atom be your electron example, it is actually slow. Try VS Code instead.

- signed, former Atom user.

Re:Show HN: Visual Studio Code for ARM, submitted to core by AlexMax on Tuesday April 18, 2017 @12:50PM (#14140416)
Faster how?

In my experience, VSC's cold boot startup time is just as bad as Atom, and it's not immune to interface jank - for example, when unfolding the "tree view" on one of my projects, I can actually see the folders being painted top to bottom.

But I don't use VSC day-in-day-out (since it's missing multiple project root folder support), so perhaps I'm missing something.

Re:Show HN: Visual Studio Code for ARM, submitted to core by popey456963 on Tuesday April 18, 2017 @12:03PM (#14139948)
> Is this benchmark open source? I'd be really interested to try it compared to something similar build in Qt or Gtk+.

Afraid it's not, currently the only working copy is closed-source whilst I work on rewriting it all into an open source repository. Having said that, I'm in no doubt that Qt or Gtk+ would be significantly faster than rendering what is essentially a local website.

> I really hate to think how it'd cope on an embedded device with an ARM processor. There's a marked difference to me between Atom and e.g. Sublime Text.

Reminds me of a joke told by a friend of mine:

Friend: "The thing I like about Atom is that it encourages you to write small files."

Me: "How does it do that?"

Friend: "Well, it crashes if you write more than a couple hundred lines."

Personally, I too do use Sublime Text. Not entirely sure how Atom is so slow, but it takes ten times longer to startup and five times longer to search through my files. Definitely caused me to switch away from it.

> but the fact remains that the UI is built on the DOM with interactions handled by JS

Excellent point, but I think if you're doing complex interactions that require a large amount of computing time then you shouldn't be using a program like Electron. For something like a mail application, not much changes. We actually never remove mail items, simply hide them from view, so we have one large render time at start-up and then almost none after that (displaying and hiding an element from view is incredible efficient). For something like atom, you have a significant amount more happening and you want just about everything to be instantaneous. Plus the fact that it's expected to be able to deal with large files consistantly without any hiccups.

Re:Show HN: Visual Studio Code for ARM, submitted to core by gant on Tuesday April 18, 2017 @09:41AM (#14138697)
Of course electron is fast, it builds on years of work making v8 fast.

My main issue is battery life. I just need to open one electron app (Discord, Slack, Spotify even though that's CEF, but close enough) to have powertop drop from 10 hours expected battery life to 3-4.

Re:Show HN: Visual Studio Code for ARM, submitted to core by lawnchair_larry on Tuesday April 18, 2017 @04:45PM (#14142746)
That means it isn't fast. Your CPU is fast and electron is making it consume an insane amount of resources to do trivial things. If it were truly fast, it would not affect your battery life.
Re:Show HN: Visual Studio Code for ARM, submitted to core by hashhar on Tuesday April 18, 2017 @01:13PM (#14140677)
Hey, have you used Powertop's --auto-tune flag? Is there any way you know of to selectively enable flags. I don't like that my disks spin up and park too frequently because I have some spinning disks too.
Re:Show HN: Visual Studio Code for ARM, submitted to core by popey456963 on Tuesday April 18, 2017 @12:12PM (#14140019)
I'm sorry, what's CEF? I haven't come across that acronym before.
Re:Show HN: Visual Studio Code for ARM, submitted to core by my123 on Tuesday April 18, 2017 @12:26PM (#14140166)
Chromium Embedded Framework
Re:Show HN: Visual Studio Code for ARM, submitted to core by throwaway91111 on Tuesday April 18, 2017 @12:33PM (#14140236)
startup, memory use, and cpu use are typically the issues.

Of course, atom is a specific case that lagged behind vscode for a while. I have no idea whether that's still true.