Hacker News new | ask | show | jobs
by nighmi 1083 days ago
I've been working on porting golang's net/http and gorilla/websocket libs to Racket for the past few months (I don't like the servelet model.) Does anyone have insight into how that model might not be optimal in a Scheme enviroment or how to better optimize it?
2 comments

Huh, I've actually been doing the same. Is your project public yet?

Are you stating with RFC 6455's implementation and just changing the API or trying to approximate the implementations?

I'm using the Racket webserver, but each page is it own rkt file. I'm using no continuations, just storing and reading everything in the hard disk. (I'm not sure it's optimal, but I prefer that approach.)
Interesting. Do you have a viewable page example?
Sorry, but it's a internal website for the T.A. in the university where they can choose the building and hour to teach next semester (~500 persons).

I have a shared module for the common parts of the webpage (like footer or header), parameters for the info of the user (like name or email), some macros like for/user to iterate through the whole list of users updating the parameters, and a macro to hide all the boilerplate at the top (it probably should be a #lang, but a macro is easier to write).