astoilkov

Joined 11 years ago

Karma
382
Submissions
80
Member since
Feb 20
Maker of IntelliBar — https://intellibar.app

Maker of Nota — https://nota.md

GitHub — https://github.com/astoilkov

Website — https://astoilkov.com

Email – [email protected]

View on Hacker News

Recent submissions

Comment · 2 months ago
What happens when these Ohio IPs get their Chrome upgraded and you no longer can detect them?
Comment · 1 year ago
For the past 4 years, I've been working on a library that does exactly this — https://github.com/astoilkov/main-thread-scheduling.

It works in all browsers and it breaks long tasks. Sometimes it's even more powerful than scheduler.yield().

HN post: https://news.ycombinator.com/item?id=38864791.

Comment · 1 year ago
Any ideas on how to use the new models through JavaScript in the browser or Node.js?
Comment · 2 years ago
Thanks!
Comment · 2 years ago
Yeah, I will ask them. I haven't seen those. Thanks!
Comment · 2 years ago
Yes. I want to publish a single page. I know you can use Obsidian to publish a folder. Can I upload a single file and not see the sidebar?
Comment · 2 years ago
Yeah, you are right. I reverted the commit.

About the generations, do you imagine a function that accepts a generator function and the user uses yield? Something like:

``` mainThreadScheduling(function *(yieldOrContinue) { yield yieldOrContinue; }) ```

Comment · 2 years ago
Thanks!
Comment · 2 years ago
This is on my list. I want to provide a `signal` property to enable easier and more efficient cancellation.
Comment · 2 years ago
I haven't. I should do that. Many people are talking about this and this makes me think I should measure and talk about it in the readme. Thanks!
Comment · 2 years ago
It's done — https://github.com/astoilkov/main-thread-scheduling/commit/0.... Thanks.

A little thing but a great improvement. I'm now wondering why I did that.

Comment · 2 years ago
Yes, that's it. You choose where to pause/resume work and place the calls to `yieldOrContinue` there.
Comment · 2 years ago
Yeah, that sums it up. The library tries to use the single thread the browser UI is running on and just not freeze it.
Comment · 2 years ago
The author here. Just opened HN and saw that my library is on the front page . If you have any questions, I can answer them.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton