AccelerateHS/accelerate

Support GHCJS compilation

Open

#507 aperta il 8 set 2021

Vedi su GitHub
 (7 commenti) (0 reazioni) (0 assegnatari)Haskell (112 fork)batch import
help wanted

Metriche repository

Star
 (830 star)
Metriche merge PR
 (Merge medio 40g) (1 PR mergiata in 30 g)

Descrizione

Is your feature request related to a problem? Please describe. GHCJS cannot compile accelerate.

Describe the solution you'd like GHCJS to successfully compile accelerate.

Describe alternatives you've considered Don't use accelerate.

Additional context accelerate currently uses foreign C calls that fail under GHCJS. Additionally, the terminal-size dependency does not compile with GHCJS.

I'm not sure how practical it would be to support compilation under GHCJS, but it would make accelerate an even more backend agnostic framework for computation. With GHCJS, accelerate could run on the web, in addition to CPUs and GPUs.

Guida contributor