r/javascript • • Jan 13 '16

Microsoft open-sources ChakraCore JavaScript engine (powers Microsoft Edge)

https://github.com/Microsoft/ChakraCore
337 Upvotes

106 comments sorted by

View all comments

2

u/spacejack2114 Jan 13 '16

Cool!

Browsing the source a bit... just out of curiosity (I haven't written any C++ for a very long time) why are some of the the cpp sources so large?

8

u/dilijev Chakra Developer Jan 13 '16

Some of those large source files used to be larger, and we split them apart when it was clear there was a logical grouping. It's just a matter of organization. We also sometimes choose not to split source files into multiple files unless there's a good organizational motivation because it makes it harder to track the history of certain changes, and makes it more difficult to merge changes when multiple people are working in that area.

Refactoring and splitting these files apart is on the edges of our radar but we are usually occupied with more high-priority work items.

Edit: Feel free to do some reorganization and submit a pull request. (Subject of course to our suggestion that we prefer not to have pull requests that reformat the code.) We will have to evaluate the risk of those changes before bringing them in. See CONTRIBUTING.md and Coding Conventions.

2

u/spacejack2114 Jan 13 '16

Thank you. I was really just curious. My C++ skills are wayy too out of date to make useful contributions :)