Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Ask HN: shipping a runtime with the codebase?
1 point by gofreddygo on Nov 24, 2020 | hide | past | favorite | 7 comments
Our team has a mini side project (<1k lines of code). Generates 1 yaml file. Accepts no input. The code itself is edited and run when required. Has some very useful test cases that validate the yaml. Saved us countless hours validating for example incorrect nesting, missing whitespace characters, duplicate ids, etc. It is useful enough to be valuable to distribute it on various containers.

Code is expected to run on different architectures (x86, ARM). We cannot expect the language runtime to be installed. We need to ship the runtime with the codebase in as small a footprint as possible.

We have considered making it into a Go executable but then we compromise on flexibility that allowing us to modify the source code itself provides.

What are our options ?




from their website

    Prerequisites
    Go 1.12 or higher
We cant assume Go to be already installed


you only need the Cue binary, Go binary is not required. You need Go to compile the Cue binary.


My bad. thanks for pointing it out. We're also evaluating typed lua. Will take a closer look at cue.


Stop by the slack channel if you have any questions. I think we could put together a solution for what you'd like to do and then some!


Thanks for being kind. I plan to take a closer look at cue in the coming time off.

Also, folks on the team decided to go ahead with lua for this. Ship codebase + lua binary. Compile on target machine.





Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: