I enjoyed the simplicity of this recent Computerphile video on web servers: https://www.youtube.com/watch?v=7GBlCinu9yg
I attempted to recreate it in #haskell, but we don't really have a library on the same level of abstraction. wai is too abstract and network is not abstract enough.
2 Comments
jaror@kbin.social · 1 pts · 2y
Actually, if you combine
networkwithnetwork-runthen it is the right level of abstraction:jaror@kbin.social · 1 pts · 2y
We can make it a lot more performant, shorter, and also safer by using lazy byte strings: