logoalt Hacker News

captn3m0yesterday at 11:10 PM2 repliesview on HN

For context, JSONata's reference implementation is 5.5k lines of javascript.


Replies

chrismorgantoday at 9:33 AM

And no, there are no dependencies in package.json either (other than devDependencies for tests).

Which cumulatively means a competent developer could probably port it in less than one day.

They almost certainly spent longer working out how to deploy and integrate the original JS and ironing out the problems, than it would have taken to port it in the first place.

That’s sad.

And then they definitely spent much longer making their optimised fast path for simple expressions. Which they probably wouldn’t have bothered with if they had just ported the whole thing.

As for trying things like embedding V8… this is getting ridiculous.

I strongly suspect no one had actually looked at the code, but had just assumed all along that it was much more complex than it actually was.

The entire thing is a tragedy.

show 1 reply
therealdrag0today at 3:44 AM

So it doubled LOC

show 2 replies