question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Acceleration || branching from #68

See original GitHub issue

The issue of acceleration came up in #68 , either by numba or by cython. It seems like we should branch the discussion off into its own issue.

Cython

  • Pro: minimal dependencies, pip installable, wheels
  • Con: packaging can be tricky, significant developer time required

Numba

  • Pro: minimal developer time required
  • Con: not pip installable due to LLVM dependency

My two cents: despite the dependency chain problem, I’d prefer numba over cython because it would be easier to deploy across the entire module.

In librosa, we handled this by making the numba dependency optional, and providing a dummy decorator optional_jit that does a no-op if numba is not available, and jit-compilation if it is. That way, everything still works, but if you want to get the acceleration benefits, it’s on you to install numba.

Side note: if we also add conda(-forge) package distribution, we can easily add numba as a hard dependency there.

What do y’all think?

Issue Analytics

  • State:open
  • Created 7 years ago
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
bmcfeecommented, Jul 13, 2017

Btw, numba now has wheels on pypi, so we probably could make it a hard dependency.

1reaction
stefan-balkecommented, Feb 28, 2017

:complain:

😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

11. 2.5 Motion Equations for Constant Acceleration in One ...
Calculate displacement and final position of an accelerating object, given initial position, initial velocity, time, and acceleration.
Read more >
Force on a car passenger during acceleration. - Physics Forums
A Car accelerates from 0-100 km/h (27.77 m/s) in 4.8s. What F (in Newtons) does a passenger of mass 68 kg experience during...
Read more >
Comparison of acceleration subjects to other populations
Comparison of acceleration subjects to other populations: spinal anomaly distribution ... 1 Escape and Impact Protection Branch, Armstrong Laboratory, ...
Read more >
3D Fourier transform 20 3D image 68 A acceleration 245, 252 ...
3D image 68. A acceleration 245, 252, 352. Achilles 8 adhesion 284, 346 aerodynamical paradox ... branching 37, 320 bumblebee 287 butterfly 306....
Read more >
The dragster in problem 68 completed a 402.3−m (0.2500 ...
The dragster in problem 68 completed a 402.3−m (0.2500−mi) run in 4.936s. If the car had a constant acceleration, what was its acceleration ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found