Better HN
topnewbestaskshowjobs
Log inSign up

mattiemass

2,069 karma · joined May 24, 2014 (12y ago) · 318 submissions

Submissions

comment 3y ago · link · parent

I have found myself, many times, in exactly the same situation. I think a concurrency-compatible queue is basically essential for many kinds of pretty boring situations. I made one here, and it look a lot like an OperationQueue. But it also points to another implementation I found recently that is certainly different, but also might be interesting.

https://github.com/mattmassicotte/Queue

2.

How to read bug reports (2016)(massicotte.org ↗)

33 points · by mattiemass · 3y ago · 2 comments

comment 3y ago · link · parent

These tests are being extracted from an editor project I work on. The tests themselves use the OSSignpost API for high-precision measurements combined with the XCText infrastructure for driving the UI and capturing the measurements. I've been using this combination for performance testing for a while now. It can be flakey a bit, but that's kind of the nature of UI testing sometimes. Still really great when it works.

The only truly interesting test is one that creates a 1 million line document, measures the loading time (extremely fast) and then measures the time it takes to navigate to the final line in the document. This exercises the layout system. It's really fast. On my machine TextKit 1 can do it in about 70 ms, and TextKit 2 in around 10. This isn't quite good enough for 120 fps UI on macOS machines that support it, but it's really close.

Live scrolling and window resize are both things I'm really interested in testing. But, the UI automation framework doesn't, as far as I know, have good ways of driving those interactions. But I may be able to cook something up. Ideas welcome!

comment 3y ago · link · parent

Author here. I'm not entirely sure why this project would be of interest, but I noticed it here so figured I'd provide a little more context.

The test suite is small, and there are no concrete results. This is because the very first truly stressful test I got to produced terrible results. Instead of continuing, I began investigating that more closely. I also opened up a developer support ticket (distinct from a Feedback) with Apple. Apple got back to me about 3 day later, pointing out a bug in my use of TextKit 2. I'm a long-time TextKit 1 user, and this stuff is new to me. I also write a lot of bugs.

TextKit 1 is a very fast system. But with this problem addressed, TextKit 2 now outperforms it by quite a bit. From a performance perspective, it seems really good so far.

If you have any other questions, let me know!

5.

Frosted Glass: depth-based blur in CSS(frosted-glass.shud.in ↗)

2 points · by mattiemass · 3y ago · discuss

6.

Twitter Has Cancelled Chirp(twitter.com ↗)

24 points · by mattiemass · 4y ago · 1 comment

comment 4y ago · link · parent

I'm truly sorry to hear that you are disappointed. And I really do get it! The full story is long, but I can sum it up with: our number one request, by far, is support for more languages. Even since this release, we've still gotten requests for yet more not yet available.

The hope is that an open source extension system will make it much easier to add new languages and improve support for existing ones.

But, I also want to be really clear: if you aren't happy, contact us and we'll try to make it right. If you are willing, I'd also love to hear from you about problems and/or missing features. We prioritize requests from license holders over all others.

comment 4y ago · link · parent

Same thing on macOS. The containing app does not need to be running for the extensions to be active. You are right that the extension bundle can only be used by this mechanism, but interestingly the containing app can use its own extensions (though this may not make sense in many cases).

comment 4y ago · link · parent

The only reason I was able to figure out how to use ExtensionKit at all was because of a chance encounter with an Apple engineer during WWDC that provided some needed information.

I'm sorry to disappoint, but ExtensionKit/Foundation do not make use of any Swift features in the way you describe. It's all just IPC (via XPC), so much of it is useable from ObjC, or even C!

Also, this does not provide a direct app-to-app communication channel. The extensions themselves must be separate executables and run within their own sandbox. I think the extension could communication with its containing app, but the system is not set up to do that. All your scheduling questions are really around how XPC works. The view itself is basically an image within your hosting app, so communication is entirely async to the other process.

comment 4y ago · link · parent

Practically speaking, that's still basically an SDK. It's all over XPC, but the interface still needs to be defined.

comment 4y ago · link · parent

(author of that quoted blog post here). You are correct, there's nothing new about apps offering plugins/extension systems. What's new here is: this works across sandboxed apps, support for remote (out-of-process) views, and the extension permission and discovery system is entirely managed by Apple.

comment 4y ago · link · parent

I'm sorry it's working so poorly for you. 2.0 has some performance issues that do make it seem more like slow-open in a number of situations. We're working on it.

comment 4y ago · link · parent

Honestly, dropping v11 for 2.0 was a really tough call. Adopting ExtensionKit, and getting that out the door right when v13 shipped was difficult, but that was the goal we set out for. Supporting v11 made a number of things more difficult, and SwiftUI was some of it. It was not strictly technically necessary, but it made it easier.

comment 4y ago · link · parent

That's more or less exactly what we've done. Our SDK does have support for LSP. But, unfortunately those extensions still need to be made. Or are you talking about a generic LSP extension that is server-agnostic? That is definitely buildable, but my experience has been that the experience tends to be a lot better when customized for a particular server.

comment 4y ago · link · parent

We did start off with just Go. After doing a bunch of infrastructural work, we added another, Ruby. We've just finished generalizing this, in a way that both more 1st- and 3rd-party extensions can be created. To date though, we've only gotten to Rust and Swift.

comment 4y ago · link · parent

You did not. Aside from Rust and Swift, all the added languages are preliminary. A minimal extension is required to, for example, connect Chime up to an LSP server to get semantic features going like completions and diagnostics. We do not have a 1st-party extension built for C# yet.

comment 4y ago · link · parent

Thank you so much! The limited language selection was definitely a problem. Go, Ruby, Swift, and Rust extensions are all available today. Go and Ruby aren't open-sourced yet, but will be soon.

comment 4y ago · link · parent

thank you so much!

19.

Chime 2.0 supports native extensions and more languages(chimehq.com ↗)

12 points · by mattiemass · 4y ago · 5 comments

20.

How to Read Bug Reports (2016)(massicotte.org ↗)

1 points · by mattiemass · 4y ago · discuss

comment 4y ago · link · parent

I sincerely appreciate you saying this!

The open source work we've done is something I particularly enjoy. Our work with LSP has been a blast, and I know that there are actually other projects that use it! Really looking forward to doing more here.

22.

The macOS editor Chime now supports Ruby(chimehq.com ↗)

40 points · by mattiemass · 4y ago · 8 comments

23.

Amazon Is Booting Parler Off of Its Web Hosting Service(buzzfeednews.com ↗)

217 points · by mattiemass · 5y ago · 3 comments

24.

Circuit IR Compilers and Tools(github.com ↗)

2 points · by mattiemass · 6y ago · discuss

comment 6y ago · link · parent

Thanks so much! Very appreciated.

Navigation by typing was planned, but ultimately pulled from our 1.0. It's in the works. As is errors and warnings.

Debugging is a very common request, but its a large feature. We'd like to do it well, and there are other things we have to get to first.

comment 6y ago · link · parent

Good feedback, and I agree. We just have the one, but it's not enough.

comment 6y ago · link · parent

Thanks so much for trying. These two issues are both fairly related, and an area of active work.

That string termination thing in particular is killing me as well. Going to be addressed in the next release or so, but thank you for reporting.

The experiences around autocomplete interactions are noted and, with the exception of the very last bit, understood. Very much appreciate you reporting what happened.

comment 6y ago · link · parent

Wow that does look very cool! Development on the iPad is going to be something that seems to be in very high demand.
12345
11