News for hackers. Stuff that matters.
Re:Nova by Panic by threatofrain on Wednesday September 16, 2020 @03:26PM (#24496501)
It's strange that Nova would target web tech as their top priority, and not Swift. If you're Mac-exclusive, why not advertise top-class support for Apple ecosystem app development?

Since Nova is prioritizing web workflows, VSC is the elephant in the room and a very deadly competitor. It's free and open source, it's available on Windows, MacOS, Linux, and it can also be ported to the web. And it's Insanely popular and very high quality.

Meanwhile, all notable features Nova lists are default to VSC. One VSC feature that's been quite the remote lifesaver is shared sessions with voice chat.

Re:Nova by Panic by asadlionpk on Wednesday September 16, 2020 @03:28PM (#24496539)
Going for Swift means competing with XCode, which wouldn't make sense as Swift is generally used along with the entire iOS/macOS Dev tools (Simulators, UI Builders, Device Manager etc). Not a wise thing to do.
Re:Nova by Panic by qppo on Wednesday September 16, 2020 @03:51PM (#24496843)
XCode was a motivating factor in my purchase of JetBrains products, specifically CLion.
Re:Nova by Panic by xnz8 on Wednesday September 16, 2020 @04:15PM (#24497212)
New thing this year, but VSCode + with Apple's SourceKit LSP extension [1] has been working surprisingly well for me. Glad to have more alternatives to Xcode.

Have been using SPM's "swift build" + some copy commands to create a fully functional signable bundle, no need even for an .xcodeproj.

[1] https://nshipster.com/vscode/

Re:Nova by Panic by ziftface on Wednesday September 16, 2020 @04:54PM (#24497769)
I'm curious about this. Could you do iOS app development this way? Or at least native Mac development using cocoa like you could in xcode?
Re:Nova by Panic by xnz8 on Wednesday September 16, 2020 @05:19PM (#24498068)
Yes! The build just produces a single executable. For example, in a Mac app this would be the file inside Contents/MacOS.

You then need to create a folder with an .app extension, set up a simple folder structure, and add some necessities such as the Info.plist file and your resources like the app icon/images. And codesign or notarize depending on your deployment requirements.

Code completion works great for dev and I've found VSCode to be snappier than Xcode even if the underlying engine (SourceKit) is supposed to be the same. The only thing "missing" is not having Interface Builder, but probably most serious projects use code-generated UIs anyway. You could, of course, still make an .xib file in Xcode and use it in your VSCode project. (I don't have a MainMenu.xib myself.)

See: https://developer.apple.com/library/archive/documentation/Co...

Re:Nova by Panic by ziftface on Wednesday September 16, 2020 @05:25PM (#24498139)
Thank you for sharing!
Re:Nova by Panic by shepherdjerred on Wednesday September 16, 2020 @09:24PM (#24500170)
The best part about JetBrains products is you learn one IDE and can use it with just about any language -- Java, C, Swift, Kotlin, C#, etc.
Re:Nova by Panic by paxys on Wednesday September 16, 2020 @03:49PM (#24496831)
It's the same for VSCode and JS/TS support though. Fighting against a fully featured, free, open-source and well-established product just on the basis of speed is going to be an uphill battle.
Re:Nova by Panic by mkozlows on Wednesday September 16, 2020 @03:59PM (#24496947)
There is a big "ugh, Electron apps" contingent of Mac users.

Or at least, there's a loud one, and I guess they figured it's also a big-enough one...

Re:Nova by Panic by paxys on Wednesday September 16, 2020 @04:18PM (#24497257)
The vast majority of developers aren't hanging out on HN though. I'll wait till there are real benchmarks but I'd be very surprised if Nova is actually noticeably more performant than VS Code.
Re:Nova by Panic by Nextgrid on Wednesday September 16, 2020 @06:48PM (#24498905)
Just the fact that Nova is ~36MB and VSCode is ~3x that at ~95MB should at least point you in the right direction. Also note that Nova already includes features that are only available via separate plugins on VSCode.
Re:Nova by Panic by RussianCow on Wednesday September 16, 2020 @08:03PM (#24499577)
But 95MB is small enough that it doesn't matter—1/3 the size of basically nothing is still basically nothing. Even in terms of memory or CPU usage, VS Code is relatively efficient compared to some other products on the market such as the JetBrains IDEs.

Say what you will about Electron apps in general, but Microsoft has done a great job in making VS Code not feel like a typical Electron app.

Re:Nova by Panic by read_if_gay_ on Thursday September 17, 2020 @05:25AM (#24502642)
> VS Code is relatively efficient compared to some other products on the market such as the JetBrains IDEs.

That's not really a fair comparison I think. JetBrains IDEs do a lot more than VS Code. You'd have to load it up with plugins to make something resembling a fair comparison, and in that case I'd be very interested in how efficient VS Code still is.

Re:Nova by Panic by RussianCow on Thursday September 17, 2020 @02:18PM (#24508120)
I completely agree, but I would wager that VS Code would still be noticeably faster even if it had all of the functionality that IntelliJ does. As a daily user of the latter, it seems like they have a lot more room for optimization, whereas VS Code seems to have been built from day 1 with performance in mind. But this is pure anecdote so I could be wrong.
Re:Nova by Panic by jmnicolas on Thursday September 17, 2020 @02:52AM (#24501878)
If you have 4G of ram and 120G of disk and a slow internet connection all of this matter.

Fwiw before getting internet fiber, a 95MB file resulted in about 20 min download (my reference was 300MB an hour).

Re:Nova by Panic by yeahoo on Thursday September 17, 2020 @04:03AM (#24502212)
It's more about "enough proportion of ..", and my 5 cents are that using mac hardware _always_ with a very tiny internet connection is kind of rare. So not enough to base an argument on, in my opinion. Kinda having expensive mac hardware most probably implies access to some time of a good internet connection to download/update tools needed.
Re:Nova by Panic by OOPMan on Wednesday September 16, 2020 @06:52PM (#24498956)
We're not just Mac users.

Electron apps are bloated ick but I guess at least Electron is equally repulsive on all OSes.

Re:Nova by Panic by ulisesrmzroche on Thursday September 17, 2020 @11:23AM (#24505746)
Where? Here in HN, a little bit, but out IRL?

Out in real life no one knows or cares about this

Re:Nova by Panic by SirHound on Thursday September 17, 2020 @03:07AM (#24501949)
VSC is more of a memory hog but in use it isn’t noticeably slower than Nova.
Re:Nova by Panic by pjmlp on Thursday September 17, 2020 @05:48AM (#24502760)
React Native for Windows and macOS is developed by Microsoft, and they continuously show how Electron bloat means it uses 300x more resources than Win32, UWP, React Native applications.

My hope is that they create enough momentum to force the VSCode team to rewrite in React Native.

Re:Nova by Panic by threatofrain on Wednesday September 16, 2020 @05:50PM (#24498404)
Especially because TS and VSC already move at blazing speeds.
Re:Nova by Panic by sdflhasjd on Wednesday September 16, 2020 @06:48PM (#24498901)
I would definitely welcome some competition for XCode.
Re:Nova by Panic by shepherdjerred on Wednesday September 16, 2020 @09:24PM (#24500171)
Check out AppCode
Re:Nova by Panic by hrktb on Wednesday September 16, 2020 @04:02PM (#24497003)
I wonder if they have a plan to move to iPad their codebase after it’s battle tested. There’s a lack of a serious editor over there, and in particular VS Code can’t compete because of it’s business model.
Re:Nova by Panic by nultxt on Wednesday September 16, 2020 @05:46PM (#24498357)
A serious editor on iPad would be so blessed
Re:Nova by Panic by reaperducer on Wednesday September 16, 2020 @06:48PM (#24498910)
I wonder if they have a plan to move to iPad their codebase after it’s battle tested.

Seems reasonable, considering Panic’s last editor, Coda, has an iPad version.

Re:Nova by Panic by paxys on Wednesday September 16, 2020 @04:30PM (#24497421)
> and in particular VS Code can’t compete because of it’s business model.

What do you mean by that? If there was real demand for it, creating an iPad distribution for VS Code probably wouldn't be that difficult. It already runs great fully in a web browser.

Re:Nova by Panic by hrktb on Wednesday September 16, 2020 @07:01PM (#24499049)
I meant that it's open source with a mix of a number of OSS projects that would all need to arranged and accepted to be packaged in an app to be able to come to the App Store.

There has been interest in doing something to have VSCode in some way or shape on the iPad for a long time [0].

I see a lot of "you just need to" iPad on VSCode tricks that basically describe running a part of the UI locally and the rest hosted somewhere else (most fantastic setup I saw was to stick a RPi 0 on the side of the iPad connected through USB-C and VNC/SSH to it).

Codespacets is to me a variation of that, I'd want an actual node runtime powering a full native app with command line, native code execution etc. (a la Pythonista), and not just a reduced interface. I still prefer using Coda or Textastic for instance than coding in Safari.

I completely fault Apple for this, still doesn't change it looks like a dead end for now)

[0] https://github.com/microsoft/vscode/issues/70764

Re:Nova by Panic by paxys on Wednesday September 16, 2020 @08:21PM (#24499736)
Every single limitation you mentioned will apply to Nova and other editors as well. It would be great to write and run code on an iPad, but that's simply not happening. Cloud-backed is the best we can do, and VS Code already excels at that.
Re:Nova by Panic by gorbypark on Wednesday September 16, 2020 @06:19PM (#24498669)
VS Code is built with Electron, so making an iPad VSCode would require porting Electron to Safari (Apple doesn’t allow alternative browser engines on iOS) . That should be doable seeing as the VSCode ports to the web seem to work okayish on Safari, but it world be a pretty big undertaking.
Re:Nova by Panic by panopticon on Wednesday September 16, 2020 @06:53PM (#24498970)
I use code-server[0] to access VSCode on my iPad in Safari, and it works pretty well. There are some rough edges, but (aside from the better shortcut integration and UI polish) I don't think a native app is going to provide a lot benefit because I can't execute arbitrary code on the iPad anyway. You're going to end up with a mostly remote experience either way.

[0]: https://github.com/cdr/code-server

Re:Nova by Panic by emmanueloga_ on Thursday September 17, 2020 @04:51AM (#24502468)
Re:Nova by Panic by connor4312 on Wednesday September 16, 2020 @06:37PM (#24498820)
Codespaces works on iPad already https://github.com/features/codespaces

It was a big undertaking :)

Re:Nova by Panic by rhodysurf on Thursday September 17, 2020 @09:53AM (#24504602)
Do people have access to this yet? Been waiting forever
Re:Nova by Panic by hombre_fatal on Wednesday September 16, 2020 @06:12PM (#24498606)
Targeting web development first seems like the obvious business decision. If building an Xcode competitor is a good idea, then it's still a good idea after you have made an editor that's worth using for broader tasks and vetted by the market.

People who care already edit Swift in their favorite editor and use Xcode for the rest of the dev iOS process. You'd be better off trying to capture the hearts of people so that you're their favorite editor than specializing to implement the "rest of the iOS dev process" on day 0.

As an iOS developer, I think most people start off disliking Xcode but then settle into a reluctant but productive relationship with it. The only things I need to use it for (device simulation, interface builder) are hard to build and yet they're not the things that annoy me about Xcode. Or rather, I wouldn't rather be wrestling with them on someone else's ultimately buggy attempt at reimplementing them.

Re:Nova by Panic by hexis on Wednesday September 16, 2020 @03:28PM (#24496540)
Many Mac users value a native application.
Re:Nova by Panic by sneak on Thursday September 17, 2020 @01:16AM (#24501429)
> It's free and open source, it's available on Windows, MacOS, Linux, and it can also be ported to the web

Common misconception. VSC's most novel/valuable features are not open source. VSC is only "open core"; all of the real value-adds are proprietary and cannot legally be forked/reused.

> One VSC feature that's been quite the remote lifesaver is shared sessions with voice chat.

Like that one.

Re:Nova by Panic by thiht on Thursday September 17, 2020 @07:05AM (#24503182)
Like what? The remote editing extensions come to mind (although there are open source alternatives), but what else?
Re:Nova by Panic by karmelapple on Wednesday September 16, 2020 @10:25PM (#24500516)
Nova is the successor to Coda, which was always a web development tool. So seems totally logical to me.
Re:Nova by Panic by ksec on Thursday September 17, 2020 @10:01AM (#24504702)
Well first Nova is next generation of Coda, which focused on Web Development.

Second I bet there are more Web Developers out there than there are for Mac or iOS.

Re:Nova by Panic by monadic2 on Wednesday September 16, 2020 @09:09PM (#24500072)
If they were to target a native "full powered" editor it would make sense to first capitalize on core competency. This editor definitely isn't for me but it makes sense for Panic.