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

compile time speed #23

Open
1 of 3 tasks
timotheecour opened this issue Apr 4, 2018 · 1 comment
Open
1 of 3 tasks

compile time speed #23

timotheecour opened this issue Apr 4, 2018 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@timotheecour
Copy link
Owner

timotheecour commented Apr 4, 2018

  • would be nice to have a more comprehensive answer regarding compile time difference, in different scenarios, and using real world examples

(ported from #11 (comment))

  • There is the Faster Command Line Tool in <insert language> benchmark that was started by the D community, Nim also replicated it, TL;DR D and Nim had the same speed and same compilation time.

EDIT

@timotheecour timotheecour changed the title compile time performance compile time speed Apr 4, 2018
@timotheecour timotheecour added the help wanted Extra attention is needed label Apr 4, 2018
@marler8997
Copy link

marler8997 commented Apr 11, 2018

Note that the example in the NIM article was only with 1 source file. Because Nim compiles to C, it suffers from the same scalability compile-time issues that C suffers from. The core issue being that every source file is compiled in its own universe, where everything that is referenced needs to be redefined for every source file. I believe Nim tries to mitigate this by only defining whatever is being used by the file, which helps, but can't compete with a solution where analyzed code is "reused" instead of "redefined" with every source file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants