News for hackers. Stuff that matters.
Re:Chime – A Go Editor for macOS by telegrammae on Sunday January 05, 2020 @04:26PM (#21964228)
This one seems to be a native app for macOS, not an Electron app. So, hopefully this allows to achieve higher performance with much lighter resource utilization.
Re:Chime – A Go Editor for macOS by vips7L on Sunday January 05, 2020 @04:53PM (#21964409)
So it's sublime with a smaller ecosystem?
Re:Chime – A Go Editor for macOS by blondin on Sunday January 05, 2020 @04:38PM (#21964302)
very interesting. i wonder about the tech behind it. always wanted to get into native mac app development but objective-c is a little daunting. i wonder if it's using swift ui?
Re:Chime – A Go Editor for macOS by dewey on Sunday January 05, 2020 @04:45PM (#21964358)
https://twitter.com/chimehq/status/1213931585336156165

> It's mostly custom drawing on top of a customized AppKit textview. The Cocoa text system is wildly powerful, quite hard to do pixel perfect drawing with. No OpenGL or any fancy graphics libraries.

Re:Chime – A Go Editor for macOS by mattiemass on Sunday January 05, 2020 @09:24PM (#21965905)
I'd be happy to discuss! My first all-swift project. Was pretty rough at first, but Apple's done a great job of iterating on it. 100% AppKit, though. SwiftUI looks super cool, but it's just too new for me to feel confident relying on it. Plus, we currently support 10.14 as well.
Re:Chime – A Go Editor for macOS by blondin on Sunday January 05, 2020 @09:46PM (#21966010)
thanks for replying! the app looks totally awesome. i was asking my question because i have been gathering resources for learning swift but from time to time i would read things like it's not mature enough with some macOS frameworks and you have to use objective-c. these comments and the fact that the language itself kept changing/evolving are often off-putting. but i think this just renewed my interest!
Re:Chime – A Go Editor for macOS by mattiemass on Sunday January 05, 2020 @09:55PM (#21966046)
Thank you so much!

I think Swift is there now. There were some very painful migrations, but for the past 2-3 years it has been different. It is true that it's a real pain to use some C-based APIs with it, but those are pretty rare. And, often you can find a Swift wrapper for them if you really need to. I've been using ObjC for 25 years, but I'm now pretty into Swift. I'd go for it.

Re:Chime – A Go Editor for macOS by jamil7 on Monday January 06, 2020 @04:15AM (#21967742)
You should be fine using all swift now. The only thing is there are FAR more resources for learning Swift in an iOS context out there then macOS and you may have to figure some things out on your own.
Re:Chime – A Go Editor for macOS by saagarjha on Monday January 06, 2020 @12:27AM (#21966714)
There are very few APIs that cannot be used from Swift. I can't even think of any off the top of my head.
Re:Chime – A Go Editor for macOS by Vesuvium on Sunday January 05, 2020 @04:54PM (#21964417)
Non-native apps can be as performant as native ones. I imagine they checked alternatives to Electron and figured a native app would allow them to have better OS integration.
Re:Chime – A Go Editor for macOS by buzzerbetrayed on Sunday January 05, 2020 @05:35PM (#21964658)
> Non-native apps can be as performant as native ones

This may be true. However, Electron apps cannot be as performant as native apps can be, which seems to be what they are getting at.

Re:Chime – A Go Editor for macOS by Vesuvium on Monday January 06, 2020 @03:25PM (#21972909)
I didn't say "may". I said they can because I took care to look at their benchmarks.

https://szibele.com/memory-footprint-of-gui-toolkits/chart.s...

Re:Chime – A Go Editor for macOS by monocasa on Sunday January 05, 2020 @05:59PM (#21964818)
Vscode does a pretty damn good job.
Re:Chime – A Go Editor for macOS by solarkraft on Sunday January 05, 2020 @06:10PM (#21964891)
VSCode really stands out to me among Electron apps, which is why I would be really interested in a write up about what they are doing to get it so performant (I think Rust is a part of the answer). Of course you can write terribly performing code on all platforms, but certainly some make it easier and/or have their own performance requirements.
Re:Chime – A Go Editor for macOS by monocasa on Sunday January 05, 2020 @08:11PM (#21965601)
Part of it I think is the super text heavy use case. Unlike slack for isntance that'll have N 30MB gifs (probably multiple copies of each too) in memory at any given point.
Re:Chime – A Go Editor for macOS by jamil7 on Monday January 06, 2020 @04:17AM (#21967754)
And with all the resources of Microsoft behind it still can't compete with something like sublime on performance. I know it makes up for it in other areas like extensibility but I wouldn't describe VSCode as particularly performant.
Re:Chime – A Go Editor for macOS by dewey on Monday January 06, 2020 @03:38AM (#21967596)
Have you tried pasting a very long line or huge file into VSCode? I always have Sublime open for these cases where I need to look at a huge JSON file as VSCode just crashes or becomes unusable.
Re:Chime – A Go Editor for macOS by monocasa on Monday January 06, 2020 @12:09PM (#21970821)
I use it with 1.5M line files pretty regularly.
Re:Chime – A Go Editor for macOS by filleduchaos on Sunday January 05, 2020 @06:25PM (#21964990)
And still doesn't come close.
Re:Chime – A Go Editor for macOS by monocasa on Sunday January 05, 2020 @08:08PM (#21965589)
It's pretty damn close if you compare it to native apps with the same feature set.
Re:Chime – A Go Editor for macOS by st3fan on Sunday January 05, 2020 @10:28PM (#21966183)
It has smoother scrolling than most native editors :-/
Re:Chime – A Go Editor for macOS by filleduchaos on Monday January 06, 2020 @02:56AM (#21967391)
Smoother scrolling than most native editors like?