Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTP Server #17

Open
ghost opened this issue Sep 30, 2021 · 7 comments
Open

HTTP Server #17

ghost opened this issue Sep 30, 2021 · 7 comments

Comments

@ghost
Copy link

ghost commented Sep 30, 2021

Hey, did you know that you can intercept requests using service workers (in the web). And in this way make a virtual tcp server which can later be used for http servers

@JohnStarich
Copy link
Collaborator

That's a great idea. This is something I'd love for hackpad to have. If you're interested, we could discuss it a bit here.

The first question I have is, what do the Go syscalls look like for opening and running a network connection?

@ghost
Copy link
Author

ghost commented Oct 11, 2021

Hey, I am new to the go environment. I don't know how the syscalls look either. I guess you have to research a little bit.

@JohnStarich
Copy link
Collaborator

All good. I don't have the time to do the research right now, but I think it's worth doing 👍

If anyone wants to chime in with implementation ideas, feel free!

@ghost
Copy link
Author

ghost commented Oct 1, 2022

Hey, I actually started working on this.... do you think its better to use go or wasm or rust?

@JohnStarich
Copy link
Collaborator

@aether5896 Are you thinking of contributing it to Hackpad or is it for another project?

If for Hackpad, this project is in Go so that'd be my preference. For another project, I'm not certain – both Go and Rust seem capable. Rust's language support seems stronger right now, but I'm not sure if that's a significant difference for you.

@ghost
Copy link
Author

ghost commented Oct 3, 2022

@JohnStarich I am starting a new project because I was originally planning on a nodejs browser runtime... but thanks! I'll check out both... Rust is a bit hard to learn when you are getting into it but it has a better experience for wasm... I personally found go easier

@ghost
Copy link
Author

ghost commented Oct 3, 2022

And also if anyone else wants to help.. you can send dm me on discord @ aether.#6971

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant