|
|
|
|
|
by rad_gruchalski
1470 days ago
|
|
Yes. And? It’s not like you’d embed that in a C program. Yaegi was built with a very narrow use case: golang plugins for Traefik proxy. It’s a golang library for evaluating golang code. That’s it. You can go through the hoops of calling from C into a golang program that then evals some other golang code via Yaegi but that’s probably not going to be the most efficient way of doing it and it’s far from embedded. So yeah, if you have an existing golang program and needs scripts with everything what golang offers, go for Yaegi. Umka solves a different problem. |
|
And my point is that I don't get what problem a golang-like language that can be called from c solves exactly. Why not just write the code in c?
If you aren't going to write in c, then you might as well write in golang or rust or some other higher level language that has a whole suite of tooling, supporting libraries, documentation, community and ide support. If the end benefit is just some scripting language... heck... what's wrong with a system() call to bash?
Like I said, neat research project, but if I came into a company to work on a project and this was tossed in my lap, I'd probably walk away.