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

Why not C? - C can be accessed by any language and run on any platform #1078

Closed
SamuelMarks opened this issue Dec 5, 2023 · 3 comments
Closed

Comments

@SamuelMarks
Copy link

SamuelMarks commented Dec 5, 2023

From my understanding, the disadvantages would be requirement of distributing precompiled shared libraries (so the host system could work without build tools; assuming tcc or αpε is not used instead). Other disadvantages would be the lack of namespaces, and types not being as complete as they are in other languages like FORTRAN and ASN.1.

But it would be far more portable to target C than any other language, right?

(yes yes I know some of the languages that can be targeted with Kaitai [Nim] can produce C code;)

So maybe it's more of a future request, extending the Nim target to create:

  1. wrappable C libraries
  2. FFI access code (generated automatically) in dozens of programming languages
  3. release these to their respective app stores (pip install, cargo install, &etc.)

Thoughts?

@generalmimon
Copy link
Member

Please join the discussion in #263.

@generalmimon
Copy link
Member

Duplicate of #263

@generalmimon generalmimon marked this as a duplicate of #263 Dec 5, 2023
@generalmimon generalmimon closed this as not planned Won't fix, can't repro, duplicate, stale Dec 5, 2023
@SamuelMarks SamuelMarks changed the title Why not C? - C can be access by any language and run on any platform Why not C? - C can be accessed by any language and run on any platform Dec 5, 2023
@SamuelMarks
Copy link
Author

Thanks. Missed that. Commented on that issue.

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