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

WinterCG #5

Open
brillout opened this issue Jul 10, 2022 · 5 comments
Open

WinterCG #5

brillout opened this issue Jul 10, 2022 · 5 comments
Labels
enhancement New feature or request

Comments

@brillout
Copy link

Nice work 👌.

Is supporting https://wintercg.org/ something Bao.js is interested in?

(CC @cyco130 author of HatTip which is a cross-platform Express.js alternative with preliminary Bun support.)

@tomByrer
Copy link

Is there a tradeoff between supporting, WinterCG & being the fastest possible ?
While being 100% drop-in compatable with say CloudFlare Workers is neat, since the API is close to Express.js I think there are use-cases for a Bun-focused Web Server Framework that's easy to set up.

@tomByrer
Copy link

BTW @brillout if you're really focused on WinterCG, then maybe a new CloudFlare Workers OSS clone, Lagon may be of interest to you. (I think both Bun/BaoJS & Lagon have their use cases, though there is some overlap.)

@cyco130
Copy link

cyco130 commented Jul 11, 2022

Is there a tradeoff between supporting, WinterCG & being the fastest possible?

Probably not. HatTip's Bun adapter (WIP), Cloudflare Workers adapter, and Deno adapter are very very light (essentially noops) since all these platforms use Request and Response. The current router is not very fast (it uses linear scan) but it is very small. We do plan to implement a trie router too in any case.

Lagon may be of interest to you.

It is indeed :) Saw it on Hacker News and started watching.

@mattreid1
Copy link
Owner

Nice work 👌.

Is supporting https://wintercg.org/ something Bao.js is interested in?

(CC @cyco130 author of HatTip which is a cross-platform Express.js alternative with preliminary Bun support.)

I wasn't aware of WinterCG but that would be really neat to get working!

@mattreid1 mattreid1 assigned mattreid1 and unassigned mattreid1 Jul 12, 2022
@mattreid1 mattreid1 added the enhancement New feature or request label Jul 12, 2022
@brillout
Copy link
Author

WinterGC's goal is having server code that is agnostic to the runtime.

So I'm thinking that all server frameworks will eventually be runtime agnostic.

In turn, this means that Bao.js will eventually be similar to HatTip. Maybe there could be a way to collaborate here?

What would be the difference between a completely runtime agnostic server framework and one that is focused on Bun? Not much, right?

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

No branches or pull requests

4 participants