Back to front pageView on Hacker News (opens in a new tab)Show HN: I built a web framework in C (opens in a new tab)github.com420 pointsby ashtonjamesd (on Hacker News)last yeargithub.com (opens in a new tab)GitHub - ashtonjamesd/lavandula: a lightweight web framework in ca lightweight web framework in c. Contribute to ashtonjamesd/lavandula development by creating an account on GitHub.Comments (218) 56 threadsShow all commentsShowing thread 3 of 56[-]hgs3last year1 reply#The code is very readable and well organized. My only major critique is that there's very little error checking, e.g. there are many calls to snprintf and malloc without checking the result. There is also an unused loop here [1].As an aside, I don't see any support for parallelization. That's fine for an initial implementation, but web servers do benefit from threading off requests. If you go that route (pun intended) you might consider using something like libuv [2].[1] https://github.com/ashtonjamesd/lavandula/blob/51d86a284dc7d...[2] https://github.com/libuv/libuvashtonjamesdlast year#Thank you for the feedback, it is appreciated!I did intend to implement parallelization as a later feature so it's good to bring it up.
Show HN: I built a web framework in C (opens in a new tab)github.com420 pointsby ashtonjamesd (on Hacker News)last year
hgs3last year1 reply#The code is very readable and well organized. My only major critique is that there's very little error checking, e.g. there are many calls to snprintf and malloc without checking the result. There is also an unused loop here [1].As an aside, I don't see any support for parallelization. That's fine for an initial implementation, but web servers do benefit from threading off requests. If you go that route (pun intended) you might consider using something like libuv [2].[1] https://github.com/ashtonjamesd/lavandula/blob/51d86a284dc7d...[2] https://github.com/libuv/libuv
ashtonjamesdlast year#Thank you for the feedback, it is appreciated!I did intend to implement parallelization as a later feature so it's good to bring it up.
Comments (218) 56 threads
Show all comments
Showing thread 3 of 56
As an aside, I don't see any support for parallelization. That's fine for an initial implementation, but web servers do benefit from threading off requests. If you go that route (pun intended) you might consider using something like libuv [2].
[1] https://github.com/ashtonjamesd/lavandula/blob/51d86a284dc7d...
[2] https://github.com/libuv/libuv
I did intend to implement parallelization as a later feature so it's good to bring it up.