Jump to content

Talk:C++

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
Former good articleC++ was one of the Engineering and technology good articles, but it has been removed from the list. There are suggestions below for improving the article to meet the good article criteria. Once these issues have been addressed, the article can be renominated. Editors may also seek a reassessment of the decision if they believe there was a mistake.
Article milestones
DateProcessResult
December 12, 2005Good article nomineeListed
March 19, 2006Peer reviewReviewed
September 8, 2007Good article reassessmentDelisted
August 27, 2011Good article nomineeNot listed
Current status: Delisted good article

Move Language section to C++ syntax

[edit]

The Language section is excessively long and provides copious amounts of technical information that isn’t appropriate when pages like C++ syntax exists (it was previously a redirect page to this section, but there is no reason to leave it as a redirect when such a page could be expanded to contain the technical information). Pages such as Java (programming language) are much more concise and leave the intricacies of syntax to its own page, Java syntax. Therefore I propose that the section should be cleared or at least simplified enough to shorten and keep the technical details to the dedicated page. 72.136.107.164 (talk) 20:53, 27 February 2025 (UTC)[reply]

This is not an RfC matter. Discuss in the normal way please. If it is felt that broader input is needed, the procedure described at WP:SPLIT should be followed. --Redrose64 🌹 (talk) 19:40, 3 March 2025 (UTC)[reply]
I do think that Language should be moved to a different article, as it is quite long. It would also be good to split it for people who want to learn the language and for people who just want to learn the history of the language as they may get confused. Vivaidris (talk) 19:46, 10 March 2025 (UTC)[reply]
I think it would be ideal if the Language section were not deleted entirely, but trimmed or otherwise rewritten only to contain rudimentary knowledge/information on the language, while detailed information about the language and its syntax were moved to the C++ syntax page. 129.97.124.47 (talk) 22:37, 10 March 2025 (UTC)[reply]
It's been a month since this discussion began and there hasn't been much disagreement (though admittedly not much engagement at all), is it okay to just make the requested changes? 129.97.124.74 (talk) 11:06, 28 March 2025 (UTC)[reply]
Well, have you left notes at interested Wikiprojects, like Wikipedia talk:WikiProject C/C++ or Wikipedia talk:WikiProject Computer science? Templates such as {{fyi}} and {{subst:please see}} are available for this. --Redrose64 🌹 (talk) 15:17, 29 March 2025 (UTC)[reply]

Proposed Edits to C++ Compatibility Section: C++ and Assembly

[edit]

I would like to update the compatibility section of the C++ article to include a brief mention of the relationship between C++ and Assembly language. The goal is to highlight how C++ can interface with Assembly, particularly in contexts where low-level programming or performance optimizations are required, looking for any feedback or advice before I begin editing.

Key Points to be Added:

[edit]
  • Interfacing with Assembly: C++ allows for the inclusion of inline assembly, enabling programmers to write assembly code within C++ programs for tasks that require direct hardware manipulation or highly optimized routines.
  • Assembly Language Integration: Many C++ compilers, like GCC and MSVC, support integrating assembly code into C++ programs, offering fine-grained control over system resources.
  • Performance Considerations: C++’s low-level access and ability to combine with assembly language can be crucial for performance-critical applications, particularly in embedded systems or system programming.

References

[edit]
  • asm declaration[1]
  • Interfacing C and C++ With Assembly Language

Vasisht25 (talk) 16:08, 30 March 2025 (UTC)[reply]

Integrating C++ with other programming languages

[edit]

I plan to update the compatibility section of the main article by adding a subsection to briefly talk about how to integrate C++ with other programming languages like Python, Java, and JavaScript. Considering corporate C++ with other languages offers significant advantages[1], highlighting a few connections with other languages might be worthwhile. The initial contents I plan to add are shown below:

Integrating C++ with other programming languages:

[edit]

Integrate with Python (programming language):

  • pybind11[2] is a lightweight, header-only library that enables seamless interoperability between C++ and Python by exposing C++ types to Python and vice versa.

Integrate with Java (programming language):

Integrate with JavaScript:

  • Node.js allows integration with C++ code for performance-critical tasks or to utilize existing C/C++ libraries.

Sswekinng (talk) 02:31, 31 March 2025 (UTC)[reply]

Update to Standardization Section

[edit]

I'm looking to append to the bullet points in this section with two recently published technical reports and documents from the C++ International Organization for Standardization. ISO/IEC TS 9922:2024[2] offers specifications for C++ extensions for concurrency 2, and ISO/IEC TS 19568:2024[3] covers C++ extensions for library fundamentals. I believe these additions will keep the article page more up to date with the committee. TheGreatMuffinMan125 (talk) 04:35, 31 March 2025 (UTC)[reply]

  1. ^ Obregon, Alexander (May 11, 2024). "Integrating C++ with Other Languages". Medium. Retrieved March 30, 2025.
  2. ^ "pybind11 — Seamless operability between C++11 and Python". pybind11.readthedocs.io. Retrieved March 30, 2025.