Talk:"Hello, World!" program/Archive 2

A Commons file used on this page or its Wikidata item has been nominated for deletion
The following Wikimedia Commons file used on this page or its Wikidata item has been nominated for deletion: Participate in the deletion discussion at the. —Community Tech bot (talk) 05:55, 30 June 2021 (UTC)
 * Hello World Brian Kernighan 1974.jpg

Brian Kernighan an inventor of BCPL?
"This claim is supposedly supported by the archived notes of the inventors of BCPL, Brian Kernighan at Princeton and Martin Richards at Cambridge."

I don't think so. From what I can see Kernighan might have written the first "hello world" in BCPL, but BCPL was developed in UK before migrating to US where Kernighan came across it.

Maybe someone can produce documentary evidence, but I have not seen it in any BCPL documentation. — Preceding unsigned comment added by Ian.joyner (talk • contribs) 10:18, 10 December 2021 (UTC)


 * According to https://ozanerhansha.medium.com/on-the-origin-of-hello-world-61bfe98196d5
 * Unsure myself of whether the first documented use of “Hello, World!” was in BCPL or B, I emailed Prof. Kernighan and he confirmed it:
 * I have never written a line of BCPL, so I definitely never wrote a hello world example for BCPL documentation. As best I can recall, the original example was for the internal B manual that I wrote at Bell Labs…
 * I'll delete the Kernighan reference to BCPL. I suggest it is only reinstated if someone can provide any evidence that Kernighan had anything to do with the design of BCPL. Ian.joyner (talk) 02:40, 26 March 2022 (UTC)

JavaScript also uses document.write;
The paragraphs I wrote below have been modified after hearing arguments from both sides as of 28 April 2022 no longer works is not the only way to output on JavaScript. To output a 'Hello, world!', A  function is needed program will also output. If you don't believe me and/or still believe  works is the only output, try it yourself on W3schools, repl.it, or any other IDE with JavaScript included. If I don't see a used   on this page, I will add it to the page. If someone removes it, I will act quickly to revert such edits. FlyDragon792, 02:26, 02 January 15:50, 28 April 2022 (UTC)
 * I'm not sure what you mean by "no longer works".  works fine in the console of all browsers which support such things. It, when embedded in an HTML page as a script, outputs to the console log just fine. It doesn't modify the DOM like   does but I think using   is fine as both something that currently works and more common as a hello world Javascript (alert is/was also common). See  and  for a couple of examples. If we only have one JS example in this article, I'm not sure which is the best one, I'd personally lean toward   or   but at the very least reverting   because it doesn't work isn't correct since it works as well as it ever did (quite well for its purpose). Skynxnex (talk) 17:08, 23 January 2022 (UTC)
 * Are you sure you are using the latest version of: JavaScript, Windows, or your browser about this? Because  did not work for me when testing the code in W3 3.7, JavaScript 5, Windows 10/11, or Edge 98, but   does . Also,   is not really 'printing' the string onto an IDE. FlyDragon792, 04:46, 07 February 2022 (UTC)
 * It works in Chrome, Firefox, Edge, and more. Where have you see any documentation that it stops working? In-browser playgrounds are not always the best. If you use it interactively in the browser's inspector it runs fine there. If you have an HTML document that includes a script tag with  that will show up in that output as well.   will clearly make that message appear but as just a single line it also obliterates anything that was already on the page.   also has the advantage of working in Node.JS, while the other two options don't. And MDN has a more complex example using  .  has all three mentioned show. So they clearly all work. I think a reasonable solution is showing both   and   in some some equal fashion, but we don't really want the examples to be complex. Maybe something like:
 * JavaScript
 * Using DOM manipulation:
 * Using a browser's web development tools or Node.js:
 * As an idea. Skynxnex (talk) 20:05, 7 February 2022 (UTC)
 * As an idea. Skynxnex (talk) 20:05, 7 February 2022 (UTC)
 * As an idea. Skynxnex (talk) 20:05, 7 February 2022 (UTC)

Messages
Message: Why don't add some more "Hello, World!" examples in some programming languages such as Ada, in the "Hello, World!" program page? Please add now and quick! — Preceding unsigned comment added by Mihai000 (talk • contribs) 13:18, 12 May 2022 (UTC)

"Bad apple"
"Bad Apple!! (graphic equivalent to "Hello, World!" for old hardware)"

This makes no sense. Please check what is being linked to there. That whole line should be deleted, or the link updated, clarification added, or something, because as it stands it's just gobbledygook. Comiscuous (talk) 19:55, 2 May 2021 (UTC)


 * @Comiscuous I have updated the link to point to the section in Use as a graphical and audio_test where the test is discussed. Does that seem to address the issue? Skynxnex (talk) 22:54, 12 May 2022 (UTC)


 * @Skynxnex Yes. Comiscuous (talk) — Preceding undated comment added 23:20, 20 May 2022 (UTC)

History section dubious
There seems no proof that hello world in K&R was the first. Indeed that goes against what is written above: "Encyclopedic content must be verifiable through citations to reliable sources." — Preceding unsigned comment added by Ian.joyner (talk • contribs) 02:54, 26 March 2022 (UTC)
 * It seems OP addressed that concern in these edits. 2A02:8071:184:DA00:4E5:17E6:C2C2:7310 (talk) 11:46, 27 May 2022 (UTC)

Ezhil?
Struggling to wrap my head around this language's degree of notability. Apparently, its main intended use is as a teaching tool in schools catering for the 75 million Tamil speakers (well, the ones between six and 18 years old who are actually attending school). Ezhil uses a syntax inspired by either Pascal or BASIC, depending which documentation you choose to read, and it uses Python libraries for its 350 built-in functions. Its own source code is indicated to be 33% Python on Github (can be inaccurate). Is it an active project? Well, its Github repository seems to have been in "maintenance mode" for the last four years. That may simply mean the language is feature-complete and hasn't needed any fixes.

I'm generally in favour of including languages that aren't based around English in their syntax, so long as they can demonstrate sufficient adoption. But if we should be already looking at Ezhil through the rear-view mirror of history, I'm not sure it clears the bar. What do others think? — Preceding unsigned comment added by 2A02:8071:184:DA00:AD01:267D:B591:1C4C (talk) 19:09, 12 May 2022 (UTC)


 * I have similar questions but I think I'd err on the side of leaving it in, for now. Even if Ezhil isn't very active, I think having examples of a variety of even dead historical languages is worthwhile. (We have two ALGOL examples! Hm, maybe one of them should be pruned...) Its Wikipedia page is much more developed and long-standing than, I think, basically all of the example languages that have been removed. And the value of having a non-English example seems high enough, so I'd say keep. Skynxnex (talk) 15:51, 30 May 2022 (UTC)

English
hello, world! 222.166.213.21 (talk) 14:19, 1 January 2023 (UTC)

Question
https://en.m.wikipedia.org/wiki/User:Kai_Burghardt The Batch language doesn't have a ISO standard? Thanks! MihaiPedia101 (talk) 18:39, 4 February 2023 (UTC)

C++23 "hello world" needs fix
With C++23 the preferred output statement is Unicode-supporting and type safe `std::print` (adopted from the {fmt} library), not unsafe and Unicode-challenged `std::prinln` from old C.

I'm not going to create an account and password and shit to fix that.

Wikipedia needs some fixing too, yes.

- Alf 77.16.74.79 (talk) 09:47, 6 July 2023 (UTC)


 * Done: . Thanks. Skynxnex (talk) 15:44, 26 July 2023 (UTC)