Skip to content
This repository has been archived by the owner on Nov 6, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants