News for hackers. Stuff that matters.
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