John Belmonte

Results 252 comments of John Belmonte

This seems to work (from https://stackoverflow.com/questions/3755059/3d-accelerometer-calculate-the-orientation): ```python phi = math.atan2(ay, az) ``` However from https://www.nxp.com/files-static/sensors/doc/app_note/AN4248.pdf, there also seems to be a different way to compute theta: ```python phi = math.atan2(ay,...

I'm a fan of instrumenting portions of the user's actual code via means as lightweight as possible to get performance information. Mostly thinking about CPU performance here, which is quite...

Along the lines of `time()`, `process_time()`, `thread_time()`, it would be useful to have some time measurement primitives which are aware of Trio task scheduling: `trio.nursery_time()` - sum of user and...

I think using `Instrument` is fine. I do use a sampling profiler, but it's a blunt tool. It will point out gross inefficiencies, but it's not going to help you...

Here's a stab at a task timing function. It's based on perf_counter() rather than thread_time(), as the former is about 10x faster. ```python def task_perf_counter(): """ For the current Trio...

It would be useful to show median latency given that variance.

Citing an example multiplexer by @nonsleepr. From my limited understanding this falls in the `wait_task_rescheduled` camp. https://gist.github.com/nonsleepr/43420a0ce659f1b870544fffb9e5cda4

> This is kind of like an async dict, where you can wait for a key to be present. But I only want the producer to put values in if...

> If LTS is just a branch I suppose someone will pick up the flag and start building OSS LTS version. The LTS branch is not public. It would be...

> Right now I can access any v1.97.x tag and build my own OSS "LTS" image. At least I will get the same result as before this policy change. Look...