Skip to content
This repository has been archived by the owner on Jun 22, 2021. It is now read-only.

why is libuv not written by c++? #169

Open
anlexN opened this issue Sep 22, 2020 · 6 comments
Open

why is libuv not written by c++? #169

anlexN opened this issue Sep 22, 2020 · 6 comments

Comments

@anlexN
Copy link

anlexN commented Sep 22, 2020

  • Version: all
  • Platform: all
    can i be rewritten by c++? nodejs source code mostly use c++ so that we can unify source code language.
@cjihrig
Copy link

cjihrig commented Sep 22, 2020

I think it's written in plain C for maximum portability. Node.js is also not the only consumer to consider.

@anlexN
Copy link
Author

anlexN commented Sep 22, 2020

i think portability is not so important. c++ also have very large portability, and microsoft widely support c++, not c.

@bnoordhuis bnoordhuis transferred this issue from libuv/libuv Sep 22, 2020
@anlexN
Copy link
Author

anlexN commented Sep 26, 2020

100% sure that microsoft only support some standard C, so C is not more portability than C++. so i think libuv can be rewritten by C++ so that libuv source code can be more wonderful and let me read less code.

@anlexN anlexN changed the title why is libuv written by c++? why is libuv not written by c++? Sep 30, 2020
@twose
Copy link

twose commented Nov 12, 2020

100% sure that microsoft only support some standard C, so C is not more portability than C++. so i think libuv can be rewritten by C++ so that libuv source code can be more wonderful and let me read less code.

I do not think so, not everyone likes C++, at least l am not.
And the source code of libuv is great, it is one of the best learning projects of C language.
If you're right, I think that maybe all of the C projects need to be refactored to C++ :)

@bsergean
Copy link

If you're looking for a C++ libuv binding take a look at https://github.com/skypjack/uvw

@anlexN
Copy link
Author

anlexN commented Nov 15, 2020

@bsergean can you anwser this issue?

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

No branches or pull requests

4 participants