David Vo
David Vo
Looks like the VS Code plugin supports newer versions of ptvsd nowadays, so we should be ok to package up the latest stable release.
I've started to pick up the VS Code extension again. Would be nice to have a deploy option that calls `ptvsd.enable_attach()` before the robot code starts.
Is it possible that cffi would be be faster than ctypes for hal?
I'd be interested to see exactly how much of the HAL is actually just ctypes overhead and how much is initialising the HAL. I might try my hand on lazy-loading...
Update: I gave up on lazy-loading wpilib in #468. If anyone else has good ideas for that… I've had some luck using cffi for HAL bindings after running HAL.h through...
Faster this year still: ```console lvuser@roboRIO-4774-FRC:~$ time python3 -c 'import hal' real 0m0.953s user 0m0.800s sys 0m0.140s lvuser@roboRIO-4774-FRC:~$ time python3 -c 'import wpilib' real 0m3.016s user 0m2.760s sys 0m0.230s lvuser@roboRIO-4774-FRC:~$...
It has occurred to me that a large chunk of the import time is probably pybind11 creating docstrings. Would probably be good if that could get deferred until they're actually...
It does. Last I tried it (last season), it was noticeably slow, but that probably had something to do with the robotpy-ctre simulation.
PyPy have an alpha implementing 3.6 now, it seems.
I dunno about this. A lot of the methods in things like SensorBase aren't really relevant to actually using things like AnalogAccelerometer, for example.