warothia
warothia on Hacker News
Posted by
warothia on Saturday April 05, 2025 @07:17AM
from the show-hn dept.
https://thread4.eu/
I've been working on a small-scale, functions-as-a-service platform where you can create Python functions, map them to routes, and run them through a custom FastAPI engine. It’s all managed via a Rails interface and hosted entirely in the EU.The goal is to make it easy to define functions and connect them to APIs or webhooks. It’s still in alpha, so things are rough around the edges, but the...
For my master’s thesis, I looked at how to get better throughput over 5G mmWave, which has really unpredictable bandwidth. Just using a big BFIFO buffer (sized to the BDP) gave us twice the throughput of FQ-CoDel, but at the cost of high jitter and bad latency for interactive traffic. To fix that, I wrote a non-transparent Performance Enhancing Proxy (PEP) as a Linux kernel module in C. It mixes big buffers with FQ-CoDel and manages to get both high, stable throughput and low latency impact.
Posted by
warothia on Tuesday March 25, 2025 @03:21AM
from the github.com dept.
Posted by
warothia on Wednesday March 12, 2025 @10:05AM
from the show-hn dept.
https://github.com/joexbayer/LambdaLabs
LambdaLabs is a small-scale, hobby and proof-of-concept project that enables dynamic creation of routes, serverless lambdas, and databases. It runs over FastAPI with almost no performance overhead. Currently this project is just a toy / hobby project for getting more into python.
It would be really interesting if it was possible to use other languages which can be compiled to .so files. Will look into it!
Initially I did use fork a lot to allow each handler in its own “process” mainly because I wanted to isolate it as well in a container fashion. However the overhead became to much at the start when I just wanted it to work. Will be looking into it again!
You’re absolutely right, I have not tried very hard to optimize for speed either yet. To comment was more directed at the fact most just say that “speed” is the main reason to use C, but for me it’s almost exclusively for the fun and “cool” factor.
Oh! Did not know that, interesting. I guess they are more alike then.
Few others have brought up Apache Modules, and they are incredibly similar to my idea. :D Did not know about them while I was developing it. The main difference as far as I could see was the fact that you had to recompile / restart the server. Which I try to avoid, so little changes require almost no recompiling.
If you would want to link with external libraries, you would need to modify to server and make sure it has access to them when compiling the modules.
Oh really interesting, will look into it! Was afraid it would leak memory.
I could say speed, but the main reason for me is because it is fun. And I like to see what I can make C do. :D
This hobby project is inspired by kernel modules and AWS Lambda. It lets you write raw C modules, upload them, and have the server compile and run only the module itself at runtime—no need to recompile the entire application or restart the server.
You can update routes and modules dynamically. Even WebSocket handlers can be updated without dropping existing connections.
Posted by
warothia on Sunday November 17, 2024 @01:12PM
from the github.com dept.