Hacker News new | ask | show | jobs
by kristianp 586 days ago
I appreciate the amount of work that might have gone into this, but a small annoyance:

> Antlr4BuildTasks library couldn't automatically download Java.

It would be nice if more effort was put into avoiding large dependencies, like a java runtime for a .net product. Edit: It's not just the size of the dependency, it's the complexity this adds to the deployment and development.

2 comments

I don't know any better alternative than ANTLR for grammar generation, this is unfortunately written in Java, so there is not a good way to avoid it. I mean, I could manually generate .cs files and commit them to the repo.

Antlr4BuildTasks at least automates this step (both downloading java and building antlr4).

Long story short, I don't see a better alternative for grammar generation now.

Ok, I thought I'd raise the subjective "issue". There is a port of Antlr to .net, but I don't know whether it is well maintained or how compatible it is.
It would be nice if more effort was put into avoiding large dependencies for slow languages, like Python. Edit: It's not just the size of the dependency, it's the complexity this adds to the deployment and development.

(these dependencies are for building the project, not for deploying it)