4 ms·
Ask HN: shipping a runtime with the codebase?
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 ?
- verdverm 6y agohttps://cuelang.org https://cuelang.org
- gofreddygo 6y agofrom their website Prerequisites Go 1.12 or higher We cant assume Go to be already installed
- verdverm 6y agoyou only need the Cue binary, Go binary is not required. You need Go to compile the Cue binary.
- gofreddygo 6y agoMy bad. thanks for pointing it out. We're also evaluating typed lua. Will take a closer look at cue.
- verdverm 6y agoStop 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!
- verdverm 6y agohttps://cuelang.org/community https://cuelang.org/community
- gofreddygo 6y agoThanks 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.