Talk:Pseudocode

message: Is it really a good idea to give a piece of bad-practice code as an example? Wouter Lievens 08:19, 29 August 2005 (UTC)
replies: text: Nope, so please feel free to improve! :)  [I'm no PHP programmer myself.]  --Wernher 08:31, 29 August 2005 (UTC)
replies: text: I've removed the extraneous code stub and improved the PHP stub. It's still simple to the point of simplisticness, but it's better. The original was just horrible though. — Ambush Commander(Talk) 04:34, 30 December 2005 (UTC)
thread_title:  PHP code stub format 

message: I got redirected to "pseudocode" after clicking on a link for "dummy code" on the disambiguation page for "dummy." From the description given there, it doesn't seem like that redirect should happen. —Preceding unsigned comment added by Blueyoshi321 (talk • contribs) 17 October 2006
: Good comment. I have created a new dummy code stub. Please feel free to add information. Mange01 16:17, 17 October 2006 (UTC)
thread_title:  Dummy code 

message: Why is the example in PHP? To me, it doesn't represent a general programming language. Could we use C? Gutworth 01:48, 30 April 2007 (UTC)
thread_title:  Why PHP? 

message: This article is, on the one hand, very poorly sourced, and the other,  a sketchy treatment of pseudocode that seems to rely on original research and the understanding of the authors,  not independently documented public knowledge.  Should it be flagged? KenThomas (talk) 18:54, 31 January 2008 (UTC)
replies: text: Please be less sketchy in your criticism. :) Or suggest concrete improvements. Is four sources poor? The PHP example perhaps originates from someones own work. Except from that, the article is not based on original research. I have contributed especially to the mathematical style pseudocode issues, and to the definitions. I started out from a large number of definitions that I found on the net and rephrased them. (None of them were authorities, so I did no mention them in the reference list.) The sentences about i/o varibles in the lead (I did not write that) could be improved and made more generic since it is very application specific.  Mange01 (talk) 11:19, 4 February 2008 (UTC)
thread_title:  Quality 

message: :Category:Articles with example pseudocode is nominated for deletion. You can vote Keep or Delete at the CfD debate. Mange01 (talk) 15:33, 5 February 2008 (UTC)
replies: text: The result of the discussion was Keep. Mange01 (talk) 22:38, 21 February 2008 (UTC)
thread_title:  "Category:Articles with example pseudocode" is nominated for deletion 

message: Being a somewhat older generation of programmer, I came to this article looking for what's actually called a pseudo-code machine.  Can I suggest that this article be disambiguated from p-code machine, or at least have one of those intro lines they have in some articles saying "if you meant p-code machine, click here"?  I'm not a big-time Wikipedia editor, so I'm not sure what standards are in cases like these. --Rob (talk) 00:08, 23 January 2009 (UTC)
replies: text: First we should clarify in what contexts p-code means pseudo code, and where it means precompiled byte code? I suppose the latter is more common today, for example in Java and Matlab. I don't understand in what sense the p-code is pseudo code. Mange01 (talk) 13:15, 24 March 2009 (UTC)

text: What you described is Intermediate representation. Dimawik (talk) 17:12, 23 October 2023 (UTC)
thread_title:  Pseudo-code Machine Disambiguation 

message: Pseudo code or pseudo machine code is produced by some compilers. 
An sssembly macro is also referred to as a pseudo code instruction. A compiler may produce pseudo code that is then translated to machine code by a pseudo code definition in the target matchine code instruction.
Pseudo code used in this way is an abstraction allowing the translation of a high level language to an intermediate pseudo code instruction set that can then be defined for a specific target: processor. 
This is the same as the p-code instructions. The p-code is pseudo-code. It can be interpreted or translated to machine code.
There should a section covering this usage of pseudo code.  — Preceding unsigned comment added by Steamerandy (talk • contribs) 18:51, 4 December 2014 (UTC)
replies: text: What you described is Intermediate representation. Dimawik (talk) 17:12, 23 October 2023 (UTC)
thread_title: P-code short for pseudo code

message: 203.129.48.197 wrote:
"Python is commonly used in place of psuedocode due to its ease of human readability and conciscion. Examples of this can be seen in other wikipedia articles." 
The same we could say about Pascal etc. I am sure this has to be removed!--Tim32 (talk) 18:39, 4 November 2010 (UTC)
replies: text: Agree. I addressed that issue a while ago.Mange01 (talk) 22:32, 13 March 2011 (UTC)

text: Actually Python pseudo-code often introduces confusion as it typically relies on Python syntax elements rather than human language. Pseudo-code should be thought of as language agnostic and avoid operator soup and specific block conventions as much as possible 82.67.45.232 (talk) 07:06, 23 June 2015 (UTC)
thread_title:  Python? 

message: Why was the following added in the top of the article:
:This article is about human-readable pseudocode article. For the compressed binary code used by run-time software interpreters, see bytecode.
Pseudocode is not mentioned in the bytecode. Is bytecode really commonly confused with pseudocode? Perhaps you have p-code in mind, i.e. precompiled code? I suggest a removal of that sentence. Mange01 (talk) 13:01, 14 February 2011 (UTC)
replies: text: Agreed. I removed it.--Tim32 (talk) 21:54, 13 March 2011 (UTC)
replies: text: Great! Mange01 (talk) 22:32, 13 March 2011 (UTC)
thread_title:  Why mention bytecode in the first sentence? 

message: Commercial for Donald Knuth's "seminal" book has not much to do with pseudo-code. His MMIX code is assembler code rather than pseudo-code. I have tried to remove the text but it reappeared. Mange01 (talk) 22:58, 13 March 2011 (UTC)
replies: text: Ok: very important remark! MMIX assembler is not pseudo-code! We can find any MMIX simulator in Internet, but it would be impossible to find any interpreter program for an original pseudo-code. Moreover, it would be impossible to implement such simulator for any pseudo-code (except trivial cases).--Tim32 (talk) 18:30, 14 March 2011 (UTC)
replies: text: Thnx for the support. I have now removed the text.Mange01 (talk) 23:48, 15 March 2011 (UTC)
replies: text:  Ok.--Tim32 (talk) 19:49, 16 March 2011 (UTC)
thread_title: Why the commercial for Donald Knuth's book

message: Pseudocode is a design step which, in many if not most cases, takes place prior to the language being selected.  It really acts as a high level language interpretation of a flow chart.  In fact, language is considered to be a secondary thought to a solution.  For example, not all programs are best fit for an Object Oriented approach.  In these cases, it would be counterproductive to presuppose the use of Java before you knew what was needed, only because Java was what you knew best or was most comfortable with.  So, in other words, there should not be any examples of pseudo being any where near any language.  If, else, while, do - while and for are aspects of all languages and therefore acceptable.  But aside from a few examples it should be able to be passed from a designer/consultant to an engineer without regard to any language and then be translated into what ever language best suits the program's requirements.  Some solutions are  even best handled with multiple languages.  An engineer or programmer who understands the fundamentals to PROGRAMMING can learn any language in short order.  Syntax is really the only difference between languages, because for the most part all languages do the same thing IPO.  Therefore, all pseudocode should be completely syntax neutral.
    Also, variable declaration should be included in pseudocode, but again without language preference.  12.56 would be a "float" in C/C++, but if declared in pseudo it would be a "real" or a "floating point" number.  
    Basically, I would argue that the article needs heavy editing.  There would be no point in using the examples presented.  Why get 3/4 of the way there just to leave off the the important things that would be necessary for compilation?  — Preceding unsigned comment added by 98.208.32.192 (talk) 09:22, 7 July 2012 (UTC)
replies: text: Agreed. 75.85.52.233 (talk) 20:43, 23 February 2013 (UTC)
thread_title:  Isn't this a bit misleading?!? 

message: Hello! In the moment I do not have the time to do it myself, but I suggest that you folks add a mention to PlusCal: it is a precise language for writing algorithms (not programs), developed by Leslie Lamport (the creator of LaTeX). Algorithms written in PlusCal can be formally checked for bugs, so they are precise in a sense, but one may use the power of mathematical notation to keep from writing excessively detailed code.  PabloMayckonSilvaFarias (talk) 00:46, 7 May 2013 (UTC)
thread_title:  Consider mentioning the PlusCal language 

message: If anyone knows anything about this, it would be nice to have your input. Almost all pseudocode I ever encounter is in imperative style. Functional solutions do exist, and, in some (if you're like me, all) fields (e.g. computational geometry), can be desirable. This page gives some examples, but it's the only thing I could find online.
As an example, see the mergesort algorithm. Implemented naively in a functional language, it is quite inefficient. Thus, being given the algorithm in imperative style is not always much help when implementing with a functional language.  — Preceding unsigned comment added by Surement (talk • contribs) 19:33, 16 May 2013 (UTC)
replies: text: Generally, I do not expect much in this area, as the idea behind pseudocode is to omit trivial but tedious details. Well, in functional programming syntax is by far least of concerns (both because it is fairly simple and the functional concept is hard), thus there is little to gain by using pseudocode. The ideas about conditional operations and loops can be taught to kindergarten-age kids, the same is not true about the functional programming. That said, you can look at some pseudocode vs. Scala considerations in  around page 13. Dimawik (talk) 20:45, 16 November 2023 (UTC)
thread_title:  Functional pseudocode 

message: The external link to a "pseudocode generation tool" appears to be nothing more than advertising for a company called gnstudio.  The APDT tool is not available for download or inspection through this link, and I gather that it is a paid-for commercial tool as well.   I think this link should be deleted.  — Preceding unsigned comment added by 31.210.131.206 (talk) 11:17, 30 October 2013 (UTC)
thread_title:  What is APDT? 

message: I reverted some edits by Loadmaster . — ravi patel123  20:11, 23 November 2015 (UTC)
replies: text: Yes, you did, including the of my comment on this talk page. I have placed a warning on your talk page that Wikipedia does not accept original research, such as your invented term 'persuacode', without proper citations of reliable sources. Either provide proper citations or stop adding unsupported content. — Loadmaster (talk) 20:26, 23 November 2015 (UTC)
thread_title:  Persuadocode OR/vandalism 

message: I note on the AVL Tree page that pseudo code is provided for the algorithms. This is very interesting since the specified code contains pointers. Modern programming languages like C# and Java avoid pointers altogether. Doesn't this leave pseudo code in limbo? Isn't pseudo code related to languages like Pascal and C++ - where there are pointers? This leads me to suspect that either pseudo code needs to be updated, or it will simply be replaced with actual Java and C# code. Personally, I prefer the latter. NNcNannara (talk) 08:41, 8 July 2016 (UTC)
thread_title:  Is Pseudo Code Dated? 

message: I hope some one might find this useful. I have been programming sense 1965. Personally I am a bit perturbed by changes in computer and programming termonolgy over the years that has lead to gross misunderstanding of old technology and reinvention of things that only differ in termonolgy describing them.
First pseudo comes from greek and means: 
1. Not actually real
2. Pretending to be.
3. Having the appearance of.
So pseudo <thing> is like fake <thing>. The latter a term we kinda think of as bad.
Is a fake diamond not functional. Is a fake name brand shirt not wearable?
We use pseudo, not in the derogatory fake sense. We have science fiction using pseudo-science. But the pseudo science of science fiction has in some cases turned out
real.
Pseudo code serves the function of real code in expressing algorithms.
Technically source code is pseudo code. It must be translated into machine code.
Assembly macros are pseudo assembly insttuctions. They appear in assembly source as a single instruction. On translation to machine code a macro may expand to any number of lines of assembly. Including 0 lines. A common use of assembly macros was in debuging that conditionality generated code for debug versions of a program.
We define programming languages as belonging to programmig paradigms.
Pseudo code language may be found belonging to those same programmig paradigms.
Assembly macros are pseudo assembly instructions.
I think wiki policy No-Personal-Research is a bit to restrictive. Personal experance seams to fall into that restriction. Having worked in this field for over 50 years I can not always find quotable sources of my knolage. How does one referance a collage course taken in 1965.
Parsing expression grammers are a perfect example of termonolgy change. They are no different then the grammars of the Schorre line of metalanguage compilers from the 1960s. Stated as based on 1970s TDPLs. These same parser languages were called reductive grammars in the 1960s.
Steamerandy (talk) 13:40, 30 October 2018 (UTC)
replies: text: "code" means "text in some programming language", and as such "pseudocode" is accurate because indeed text in a "fake", "not real" programming language. I don't see a problem here. OTOH, I'm not sure I agree with your "We define programming languages as belonging to programmig(sic) paradigms.". — MFH:Talk 14:10, 28 March 2022 (UTC)
thread_title:  My use and understanding of the term pseudo code 

message: Arthur.Goldberg (talk) 19:32, 10 January 2018 (UTC)
replies: text: I replaced [1] by [in this stackexchange question]. The link is working. I agree the reference is maybe incomplete, but it's easy to find, see e.g. https://www.cengagebrain.com.mx/shop/isbn/9781337561914 (trailing number is ISBN). (Oh, maybe you didn't mean that [1] (found toward the end of the page as of today) but the first occurrence of [1], but that reference appears to be totally complete.) — MFH:Talk 14:05, 28 March 2022 (UTC)
thread_title:  Reference 1 is missing, and I cannot find it online 

message: The section with this title gives the example of "Σ x ∈ S which may represent a for-loop and selection procedure", but many languages (like Python, Maple, Mathematica, PARI/GP, ...) implement this as a native instruction. There is a priori no reason to assume that a sum is necessarily implemented through a "for-loop" (even if this would always be the case) -- or it should be explained that pseudocode must only use elementary operations like + - * / := etc. But even then, "Σ" is just a notation for a "sum" function/operator. - — MFH:Talk 13:39, 28 March 2022 (UTC)
thread_title:  Mathematical style pseudocode 

message: It would be nice to add education to the Applications section. However, despite obviousness of the claim that pseudocode is widely used in education, I did not find truly good sources. If someone finds the sources and adds the text, they might consider mentioning the fact that British AQA exams extensively use pseudocode. Dimawik (talk) 20:35, 16 November 2023 (UTC)
thread_title:  In education