exercism / emacs-lisp

Exercism exercises in Emacs Lisp.
https://exercism.org/tracks/emacs-lisp
MIT License
47 stars 43 forks source link

Could ELPA packages be enabled maybe? #201

Open jave opened 2 years ago

jave commented 2 years ago

I wanted to solve "run-length-encoding" using the PEG parser in peg.el, which in ELPA.

So I wanted this to work: (package-initialize) (package-install 'peg) (require 'peg)

but the code errors out, perhaps on some network security condition, but it wasn't immediately apparent why.

I understand that it would be quite easy to do RLE without PEG, but it would be fun to enable some package exploration in the exercises.

SleeplessByte commented 2 years ago

Hi there @jave ,

Indeed, the test-runner doesn't have network, meaning that all the packages we allow must be preloaded (and cannot be installed before a test run). For this reason, unless absolutely necessary, we generally don't include packages.

However, we could add a note to the exercise that it's interesting to try to solve this outside of exercise using that package. What do you think?

jave commented 2 years ago

Some thoughts: