Better HN
topnewbestaskshowjobs
Log inSign up

warothia

84 karma · joined Nov 17, 2024 (2y ago) · 18 submissions

Submissions

1.

Show HN: Building a EU hosted FaaS alternative using Rails and Python (Alpha)(thread4.eu ↗)

4 points · by warothia · 1y ago · discuss

comment 1y ago · link · parent

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.

3.

Performance Enhancing Proxy for 5G mmWave Networks (C Linux kernel module)(github.com ↗)

5 points · by warothia · 1y ago · 2 comments

4.

Show HN: LambdaLabs – Create HTTP routes, lambdas and databases using Python(github.com ↗)

1 points · by warothia · 1y ago · discuss

comment 2y ago · link · parent

It would be really interesting if it was possible to use other languages which can be compiled to .so files. Will look into it!

comment 2y ago · link · parent

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!

comment 2y ago · link · parent

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.

comment 2y ago · link · parent

Thanks! Yes, an arena allocator for each request is on my todo list. Just didn’t get to implementing it yet. :D

comment 2y ago · link · parent

Oh! Did not know that, interesting. I guess they are more alike then.

comment 2y ago · link · parent

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.

comment 2y ago · link · parent

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.

comment 2y ago · link · parent

Oh really interesting, will look into it! Was afraid it would leak memory.

comment 2y ago · link · parent

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

comment 2y ago · link · parent

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.

15.

Show HN: A dynamic C (Hot reloading) module-based Web Framework(github.com ↗)

128 points · by warothia · 2y ago · 50 comments