nim-lang / RFCs

A repository for your Nim proposals.
137 stars 23 forks source link

Create Dart_Backend #379

Closed jfilby closed 3 years ago

jfilby commented 3 years ago

An RFC for the creation of a Dart backend.

nc-x commented 3 years ago

Hi @jfilby Creating a new backend is a huge task, and requires lots of time to be implemented. And even if a dart backend is implemented, there is a very high chance that the Nim semantics do not match exactly to Dart (If you have ever used Haxe, you will know that while having various backends sounds good, but it always leaves much to be desired). Also a Dart backend does not mean that it will be easy to use Flutter. Flutter has a huge surface area which would still need to be somehow wrapped, which again due to differences between Nim and Dart might be a big headache. Anyways, the time it would take to implement and maintain a Dart backend itself suggests against implementing it. If there are developers willing to work on the Nim compiler, they should preferably work on much needed things such as finishing/polishing features, improving tooling and modernizing the stdlib.

Also, no need to create a PR in the future for an RFCs. We use issues themselves for the RFCs. :)

Araq commented 3 years ago

As an RFC it's fine, yes it's much work but maybe we find an easier solution during the discussion.

juancarlospaco commented 3 years ago
dom96 commented 3 years ago

As an RFC it's fine

I disagree, this isn't what we should be encouraging. This is far from what an RFC should be: a detailed account of the suggestion, with discussions around the problems that it solves. This is fine for our forum, but this repo should have a higher standard IMO.

jfilby commented 3 years ago

When I try to create a new Issue and click New Feature, the top of the text preset says to create an RFC for large features.

Regarding not enough detail, that would require a much more in-depth knowledge of the Nim compiler than I have. If there is not much support for this RFC then it can be closed.

ghost commented 3 years ago

@jfilby

When I try to create a new Issue and click New Feature, the top of the text preset says to create an RFC for large features.

You misunderstood a bit - you should create an RFC as an issue in this RFCs repo (check other issues, they're all RFCs), not in the Nim repo

Araq commented 3 years ago

I disagree, this isn't what we should be encouraging. This is far from what an RFC should be: a detailed account of the suggestion, with discussions around the problems that it solves. This is fine for our forum, but this repo should have a higher standard IMO.

Alright, I take it back.

jfilby commented 3 years ago

Could I repost this as an issue (feature) for further investigation at a later stage?

Thanks Jason

On Mon, May 24, 2021 at 9:23 AM Andreas Rumpf @.***> wrote:

I disagree, this isn't what we should be encouraging. This is far from what an RFC should be: a detailed account of the suggestion, with discussions around the problems that it solves. This is fine for our forum, but this repo should have a higher standard IMO.

Alright, I take it back.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/nim-lang/RFCs/pull/379#issuecomment-846827261, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAITKO3QD3G5GGEEJSQDT2TTPH5F5ANCNFSM45JB2CIA .

Araq commented 3 years ago

Please write a forum post first.

jfilby commented 3 years ago

Here's the original thread: https://forum.nim-lang.org/t/8005

The idea started with transpiling Nim to Dart, but the conversation changed to a Dart backend for Nim.

Would you prefer a new thread?

On Mon, May 24, 2021 at 9:34 AM Andreas Rumpf @.***> wrote:

Please write a forum post first.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/nim-lang/RFCs/pull/379#issuecomment-846835650, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAITKO5T4GI3EW2V4XFHMATTPH6SDANCNFSM45JB2CIA .