2 ms·
The amounts are actually not that bad for someone who is working on something in POC stage. The last few days I'm trying to integrate a JavaScript engine with
by mrtksn 4y ago
The amounts are actually not that bad for someone who is working on something in POC stage.
The last few days I'm trying to integrate a JavaScript engine with Vapor(an OS backend framework written in Swift) to create a standalone, dead easy to run(no Docker, package managers or anything like that, easy to install and run as installing Firefox) multiplatform low code backend tool which roughy falls in the "Building a self-hosted compiler or interpreter." category. The idea is that it will allow developers focus on the product instead of dealing with server and data management at reasonable cost, control and performance. My app will take care of authentication, data storage and allow custom logic to be written using JS. Firebase kind of does it but it cannot be self hosted and there are horror stories of mistakes that can cost tens of thousands of dollars in a blink of an eye. The custom logic with functions is also too slow, it takes forever to wake up and run a function(though they introduced some solutions for the issue).
As it turns out the JavaScript engine integration part is not as easy if you are not well versed with C/C++ and its tooling because builds will fail, platform ports are missing etc. JavaScriptCore is very nice on macOS but it appears that compiling it on Linux is not just running the two lines of code as described in the documentation.
Maybe I should apply for this and use the money to pay someone proficient in the topic to compile JavaScriptCore and help me make it talk with my Swift codebase on Linux.