-
Notifications
You must be signed in to change notification settings - Fork 191
Create helloworld.md #339
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
base: cdl-08
Are you sure you want to change the base?
Create helloworld.md #339
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,266 @@ | ||||||
| # Helloworld Programs | ||||||
|
|
||||||
|  | ||||||
|
|
||||||
| We list below Helloworld programs for different programming languages, i.e. programs that print "Hello, World!". | ||||||
| The specified compiler or interpreter is required for each programming languages. | ||||||
|
|
||||||
| The table below summarizes the programs: | ||||||
|
|
||||||
| | Language | Language (Spec) Site | Section | Build / Run Toolchain | Debian / Ubuntu Packages | | ||||||
| |----------|----------------------|---------|-----------------------|--------------------------| | ||||||
| | C | [The Standard - C](https://www.iso-9899.info/wiki/The_Standard) | [C](#c) | GCC | `build-essential` | | ||||||
| | C++ | [The Standard - C++](https://isocpp.org/std/the-standard) | [C++](#c++) | GCC / G++ | `build-essential`, `g++` | | ||||||
|
||||||
| | C++ | [The Standard - C++](https://isocpp.org/std/the-standard) | [C++](#c++) | GCC / G++ | `build-essential`, `g++` | | |
| | C++ | [The Standard - C++](https://isocpp.org/std/the-standard) | [C++](#c-1) | GCC / G++ | `build-essential`, `g++` | |
Copilot
AI
Mar 22, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The D build command is compiling helloworld.cpp, but the D example (and the repo’s sample file) is .d. This command won’t work as written; update it to compile the D source file name consistently.
| gdc -Wall -o helloworld helloworld.cpp | |
| gdc -Wall -o helloworld helloworld.d |
Copilot
AI
Mar 22, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rust snippet prints "Hello, World" (missing !) even though the doc intro says programs print "Hello, World!". If Rust is intended to match the others, update the string to include the exclamation mark.
| println!("Hello, World"); | |
| println!("Hello, World!"); |
Copilot
AI
Mar 22, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Rust build/run commands are inconsistent: rustc hello.rs doesn’t match the section’s helloworld naming, and running ./helloworld won’t work unless the output binary is explicitly named that way. Make the source filename and output name consistent with the run command.
Copilot
AI
Mar 22, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The x86_64 Assembly section has an empty code block and TODO for the build command, so it doesn’t currently provide a runnable “Hello, World!” example. Either fill in the assembly source + toolchain commands or remove it from the summary table until it’s implemented.
Copilot
AI
Mar 22, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The ARM64 Assembly section is also empty and has TODO for the build command. As written it can’t be followed to produce output; please add the actual example + commands or drop it from the table for now.
Copilot
AI
Mar 22, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PHP example as written won’t run: echo "Hello, World!" is missing a terminating semicolon, and the run command ./helloworld doesn’t invoke PHP (unless you add a shebang and make the script executable). Update the snippet and run instructions so they work together.
Copilot
AI
Mar 22, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Perl snippet is missing a trailing semicolon after the print(...) statement, which will cause a syntax error when run with perl. Add the semicolon so the example is valid.
| print("Hello, World!\n") | |
| print("Hello, World!\n"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Grammar: “for each programming languages” should be singular (“for each programming language”).