uehaj / IntRange

The library make fold or map to the range of numbers without consuming memory.
BSD 3-Clause "New" or "Revised" License
2 stars 2 forks source link

Reimplement in Javascript #1

Open imeckler opened 9 years ago

imeckler commented 9 years ago

Is there any possibility of reimplementing this package in Javascript with loops rather than using trampolines? The trampoline introduces quite a bit of overhead.

uehaj commented 9 years ago

thanks for suggestion. I'll consider reimplement using native (or port) for performance.

uehaj commented 9 years ago

I rewrote this library to remove Trampoline and re implement it by simple JS for-loop through Native. (and also add downTo function for decreasing int range)

But pakcage.elm-lang.org's Native review process is currently stacking. See: https://github.com/elm-lang/package.elm-lang.org/issues/24

So for the present, you can't use new version of IntRange through elm-package.json dependency. Sorry for the inconvenience.