You are reading a single comment by @Gordon and its replies. Click here to read the full conversation.
  • edit: function replacements are now supported!

    I'm afraid you can't use functions for replacement at the moment - and also there aren't backreferences so your encoder wouldn't work. The code would work but would insert the stringified function - hence lack of memory :)

    I'll see about adding the functions - that shouldn't be too hard.

    Backreferences are possible, but a reasonable amount of work - I wonder how often they're used. While your RLE code is neat, it's pretty easy and possibly faster to implement in normal JS :)


Avatar for Gordon @Gordon started