Skip to content

Comments

Add changelog for minimal runtime implementation PRs#7829

Closed
JinShil wants to merge 1 commit intodlang:masterfrom
JinShil:minimal_changelog
Closed

Add changelog for minimal runtime implementation PRs#7829
JinShil wants to merge 1 commit intodlang:masterfrom
JinShil:minimal_changelog

Conversation

@JinShil
Copy link
Contributor

@JinShil JinShil commented Feb 2, 2018

This should only be merged after #7825 and #7799 have been merged.

This makes it known in the changelog that users can now use D without the runtime in a more pay-as-you-go fashion with a low barrier to entry and much less friction. It is the result of the following PRs.

@dlang-bot
Copy link
Contributor

Thanks for your pull request, @JinShil!

Bugzilla references

Your PR doesn't reference any Bugzilla issue.

If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog.

Copy link
Contributor

@wilzbach wilzbach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

and missing `ModuleInfo`, among others.)

$P(Starting with this release, one can now create a library for use from another
language, requiring only the .d source file that implements that library, and
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Backticks for .d maybe?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

with a minimal runtime implementation.)

$B(Example 2)
$P(DMD auto-generates call to `_d_run_main` which, in turn, calls `main`.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the/a call

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

calls the user-defined main function.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

---

$(CONSOLE
dmd -c -lib main.d object.d -of=main.o
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Library files are typically named .a

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not in this case. The -lib is only used to prevent dmd from generating the main scaffolding; we're not generating a library here, just doing separate compiling and linking.

@JinShil
Copy link
Contributor Author

JinShil commented Feb 2, 2018

#7825 met some resistance, and due to the the global DFLAGS always importing the runtime, testing turned out to be non-trivial. So, I can't justify advertising these features until I find a better strategy for getting the design through and completing the implementation. Closing.

@JinShil JinShil closed this Feb 2, 2018
@wilzbach wilzbach added the Review:Phantom Zone Has value/information for future work, but closed for now label Feb 2, 2018
@JinShil JinShil removed the Review:Phantom Zone Has value/information for future work, but closed for now label Feb 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants