face-hh / fextify

A simple text editor written in Rust using Tauri, inspired by Obsidian.
Apache License 2.0
197 stars 14 forks source link

Rewrite in C++ so we can rewrite in rust. #4

Closed Gammer0909 closed 10 months ago

Gammer0909 commented 10 months ago

Normally this is the point where someone says

Rewrite in Rust so it can be blazingly fast and safe!!

But it's already written in Rust, we can't rewrite it in Rust. Therefore, I am proposing we rewrite it in C++, so we can then rewrite it in Rust.

When this issue gets cleared I shall begin a C++ rewrite

owofied commented 10 months ago

Because of C++, the project will be no longer maintained because the maintainer would be found dead with his legs blown off, so I would rewrite it in javascript first and then in rust

Gammer0909 commented 10 months ago

Because of C++, the project is no longer maintained because the maintainer would be found dead with his legs blown off, so I would rewrite it in javascript first and then in rust

Well we need it to be in C++, because the person asking for a Rust rewrite always complains

We shouldn't use C++ because Rust is memory safe

Therefore, we have to have it in C++. Also, half the project is already written in JavaScript.

Shlok-Bhakta commented 10 months ago

I agree that we should rewrite this in JavaScript so we can use electron. Then we rewrite this in rust for true blazingly fast code.

Maybe even embed c++ using only features from c into the JavaScript for extra stuff to rewrite

ghost commented 10 months ago

You should sprinkle some huge C++ templates and complex inheritance. Additionally let's respect C by only using malloc.

ghost commented 10 months ago

Please make sure to randomly try and free a reference from time to time, additionally add a macro for true so that luck can decide how the program will work.

Proposed solution:

#define true (time(nullptr) % 86400 != 0)
face-hh commented 10 months ago

😂

Gammer0909 commented 10 months ago

Dang this issue got a lot more support than I thought. Are we clear for a rewrite?