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

Generate a single self-contained C source file #5056

Closed
CrazyPython opened this issue Nov 25, 2016 · 2 comments
Closed

Generate a single self-contained C source file #5056

CrazyPython opened this issue Nov 25, 2016 · 2 comments

Comments

@CrazyPython
Copy link

This is a mix of a feature request and a usage question.

I'm in quite a conundrum.

  • Many many programming competitions (where you attempt to solve problems within an execution time limit*) only accept a few languages - C, C++, and Java
  • C/C++ are the only languages fast enough to use
  • C/C++ takes a very long time to write
  • The competition has a four-hour time limit to write
  • Nim compiles to C, but requires that nim static libraries be present on the compiling machine

I feel like a small tweak could be made to make nim source output 100% portable. Is this possible?

*here's an example

@Araq
Copy link
Member

Araq commented Nov 27, 2016

Nim produces C code that is tied to the OS/CPU/CC combination. It's not a tool for producing readable portable C. Instead I would try to convince the programming competitions that it's 2016 now and we got Nim, Rust, D, Swift for writing high performance code. Fortran often beats C. "C/C++ are the only languages fast enough to use" never was true to begin with.

@CrazyPython
Copy link
Author

@Araq I agree. If any of you want to petition "them", I would recommend convincing USACO - usaco.org

@Araq Araq added the Won't Fix label Feb 2, 2017
@Araq Araq closed this as completed Feb 2, 2017
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