204 karma · joined October 30, 2020
You could avoid loadables.
Finfo <- load file inside a variable and get the size Mktemp <- like you said with timestamp Rm <- with a fifo or variable
I'm really happy to see somebody shared it on hackernews :D If you have some questions, feel free to ask me
The patch is now included in bash 5.2
The platform is free for the developper to host the applications, the only one who is paying is the person which use your application.
The applications are all docker instances, this allows us to provide an environment cheapest then hosting a virtual machine or a dedicated instance.
But what's exactly Saashup ?
Saashup is a simple solution for saasifying your application. We assist you in promoting your application and simplifying its management. Build and develop your software, and let us deploy it to your customers through your own customized SaaS. Our services remain flexible and scalable, adapting to your business needs.
: = does nothing but the := in the variable declariation will assign set the value of BASH_LOADABLE_PATH to /usr/lib/bash if the variable is empty.
So instead of writing: BASH_LOADABLE_PATH=${BASH_LOADABLE_PATH:-/usr/lib/bash}
you can just do : : "${BASH_LOADABLE_PATH:=/usr/lib/bash}"
The fd will only be used to stor it temporary since, we first need to sent headers, and the headers need to be sent before the bofy. The server base os working fine now with accept and a patch request os already sent to bash. So probaböy on the next release accept will be full usable.
Falling back to something like socat, would destroy the whole idea behind it. I think the best way is patching accept and shipping it with the project. Like this no need to fallback.
And considering using something like socat, will force you to fork each request into a new process, which will be slow as hell. I worked before on a web framework, which was used behind httpd or nginx as cgi, it was fast. But the moment where you get more connections it was slow as hell.
The idea of this project is writing some kind of fastCGI (like php-fpm), but for this i would need, to allow multithreading etc..
Example : help read
But in this script i would like to avoid external commands. I will even remove the use of tmp files kn thw future.
Examples: https://github.com/dzove855/yoctapi
The api will even audit every request and it's to implement other methods.
Database plugin: https://github.com/dzove855/libyosh-gateway
Probably it will be rewritten in bash5 and use loadable builtins for mkdir and rm, so mv can be removed also.