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

Migrate to bun #48

Open
ditsuke opened this issue Sep 15, 2023 · 3 comments
Open

Migrate to bun #48

ditsuke opened this issue Sep 15, 2023 · 3 comments

Comments

@ditsuke
Copy link
Member

ditsuke commented Sep 15, 2023

Bun, a faster modern alternative to Node.JS just released its first stable version. Why we want to migrate:

  • It's fast.
  • Compatible with Node APIs: expected to "just work" by just switching out Node for Bun.
  • Has its own, very fast web framework; we can switch from Fastify as a second stage of the migration.
  • Can transpile TS to JS on its own (a lot faster than tsc). However the transpilation process does not typecheck (citation needed), so we'll need a separate type-checking workflow.
  • Is cool. We want Amibot to be cool and cutting-edge so it's always fun and appealing for new contributors.
@ditsuke ditsuke changed the title ## Migrate to bun Migrate to bun Sep 15, 2023
@AnshGupta01
Copy link
Contributor

Hey there, as porting to bun is kinda drag and drop for the first stage, shall I start with this issue?
Also just to clarify, you want to move away from fastify in lue of fully using bun right?

@ditsuke
Copy link
Member Author

ditsuke commented Oct 19, 2023

Hey there, as porting to bun is kinda drag and drop for the first stage, shall I start with this issue?

Hi Ansh, sure go on.

Also just to clarify, you want to move away from fastify in lue of fully using bun right?

That's right. You can do this in stages though.

@AnshGupta01
Copy link
Contributor

Alrighty, created a PR!

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

No branches or pull requests

2 participants