News for hackers. Stuff that matters.
Re:Faasd – Lightweight Serverless for Raspberry Pi by ForHackernews on Saturday October 24, 2020 @10:23AM (#24879366)
You don't have to keep it running in memory all the time.

If you have a small device with limited resources, maybe you'd rather have it be ready to potentially do many different things for you infrequently, as opposed to doing fewer things continuously all the time.

Re:Faasd – Lightweight Serverless for Raspberry Pi by BiteCode_dev on Saturday October 24, 2020 @11:07AM (#24879646)
Isn't that the OS job?

It was my understanding that the kernel would put idle process to sleep, and even put the memory it uses from ram to disk and wake it up if there is some input to it.

Re:Faasd – Lightweight Serverless for Raspberry Pi by ForHackernews on Sunday October 25, 2020 @05:53AM (#24885084)
How would the OS know that web server process is "idle" vs "ready to accept requests"?
Re:Faasd – Lightweight Serverless for Raspberry Pi by BiteCode_dev on Sunday October 25, 2020 @07:20AM (#24885440)
Not sure, socket binding ?
Re:Faasd – Lightweight Serverless for Raspberry Pi by m463 on Saturday October 24, 2020 @02:41PM (#24881083)
I was taught in school "The job of an operating system is to share resources" so yes.
Re:Faasd – Lightweight Serverless for Raspberry Pi by glutamate on Saturday October 24, 2020 @10:39AM (#24879457)
Ok, that's a fair point. So maybe some serverless tech can be more specialised and thus better than the Linux kernel at managing, effectively, virtual memory.

If everything is written in-house I still think any API would be simpler but I guess this way some functions can be supplied by vendors/open-source which currently cannot be composed into an e.g. flask API. So it would be nice to have a way of composing APIs from simple functions supplied in packages for this use. I guess that is what serverless is.