This is the
talk page for discussing improvements to the
Macro (computer science) article. This is not a forum for general discussion of the article's subject. |
Article policies
|
Find sources: Google ( books · news · scholar · free images · WP refs) · FENS · JSTOR · TWL |
![]() | This ![]() It is of interest to the following WikiProjects: | |||||||||||||||||
|
![]() | This article may be too technical for most readers to understand.(September 2010) |
![]() | The contents of the Macro instruction page were merged into Macro (computer science) on 15 August 2018. For the contribution history and old versions of the redirected page, please see its history; for the discussion at that location, see its talk page. |
![]() | The contents of the Parameterized macro page were merged into Macro (computer science) on 18 January 2019. For the contribution history and old versions of the redirected page, please see its history; for the discussion at that location, see its talk page. |
We need a webpage that will compare macro languages! thanks! — Preceding unsigned comment added by 91.132.61.165 ( talk) 01:52, 9 September 2012 (UTC)
This article discusses three different kinds of macros (keyboard macros, application macros, and programming macros) without clearly drawing the proper distinctions among them first. For instance the section "programming macros" is not about the kind of macros found in programming, but rather on writing application macros. Yet it occurs in a page that is mostly about the kind of macro used in programming. - furrykef ( Talk at me) 20:21, 4 October 2005 (UTC)
I've had a go at clarifying this by adapting the way that FOLDOC describes macros. I've also added a mention of TeX as a system that depends heavily on macro expansion. However, I still think the article could be improved by not starting with the rather vague bit about abstraction and patterns. This is too far removed from what a Wikipedia reader is likely to be able to grasp. An article should start with plain talk, and get into technical detail later. Sangwine 19:29, 9 December 2006 (UTC)
à — Preceding unsigned comment added by 125.160.185.188 ( talk) 03:47, 22 November 2017 (UTC)
I still dont get it. What's a macro?
Marudubshinki has it right, though it might also be worth expanding upon the difference between macros in, say, C and macros in lisp. Macros in C simply search through code and make textual replacements. In comparison, macros in lisp act like functions which work on expressions passed to them as if they were data. In this way, entirely new constructs can be created with macros.
Examples include
CLOS and the setf
system which allows for any read function to work, essentially, as an accessor function:
>> (setq x '(a b c d)) (A B C D) >> (nth 3 x) D >> (setf (nth 3 x) 'a) A
>> x (A B C A)
In this example, the (setf (nth 3 x) 'm)
line involves setf examining (nth 3 x)
and replacing it with the function that sets that position, which is not standardized. In
CMUCL, that line expands to (LISP::%SETNTH 3 X 'A)
whereas in
SBCL it expands to (SB-KERNEL:%SETNTH 3 X 'A)
-- Eyvin 20:59, 6 April 2006 (UTC)
So, I just reworked the intro. Comments would be nice. I'm also planning on reworking the Programming Macros section. It doesn't talk about lexical, token, and syntactic macros. Worse, hygienic macros are discussed later down the page, but never defined in the page. User:Andrew Eisenberg
Macros in MMORPGs needs to be redone or deleted completely and changed to macros in online games, or a more general title. ^Aftermath^ 16:28, 3 September 2006 (UTC)
I believe the D programming language would also fit under this header, as it has a preprocessor that uses the same syntax as the language itself, as well as compile-time executed functions and mixins. (AST Macros are on the drawing board, but not quite there yet) -- 83.109.108.7 06:00, 18 September 2007 (UTC)
So, what probably leads most people to search for this, including myself, is the macro settings in MS Word. Could someone include how viruses might be executed using macros, and a rule of thumb for when to trust and when not to trust? Also, maybe what happens if you do/don't enable them? —Preceding unsigned comment added by Savonnn ( talk • contribs) 18:51, 10 February 2008 (UTC)
The reference "DM dhambhere , system programming and operating system - Tata Macgrahill." looks weird here, orphaned from somewhere in the text, or just plain wrong? ( User:Togr) 88.84.167.98 ( talk) 07:50, 20 April 2009 (UTC)
Wikipedia editors may wish to try the hotkeys script to enable keyboard macros. — GregU ( talk) 02:48, 11 August 2009 (UTC)
I propose to correct the meaning of the word μάκρο in Greek. His main meaning is big (as the opposite of Micro), as Macrophotography, Macrocephalus, Macroeconomics, etc... —Preceding unsigned comment added by 84.220.82.14 ( talk) 17:12, 21 August 2009 (UTC)
I propose that Parameterized macro be merged into Macro (computer science). Parametrization is a feature of macros that does not warrant its own article, and the short length of this article makes it a good candidate for merging. Choard1895 ( talk) 01:24, 17 July 2017 (UTC)
As of this writing, the two hatnotes atop that talk of merger point to 2 difference places,
while the hatnote atop "Macro instruction" points to a third place: "Talk:Macro_instruction".
Before comments are lost/orphaned, the multiple COMMENT places need to be . . . mErGeD
In the middle of an article about programming and compilers, there's a non-sequitur section about end-user software for creating hotkeys and recording keystrokes. This sounds a lot like a separate subject that should live in a separate article. NotTheInferno ( talk) 09:17, 9 February 2018 (UTC)
see above/Merger proposal @ Orphaned Merger discussion Pi314m ( talk) 23:39, 31 July 2018 (UTC)
This is the
talk page for discussing improvements to the
Macro (computer science) article. This is not a forum for general discussion of the article's subject. |
Article policies
|
Find sources: Google ( books · news · scholar · free images · WP refs) · FENS · JSTOR · TWL |
![]() | This ![]() It is of interest to the following WikiProjects: | |||||||||||||||||
|
![]() | This article may be too technical for most readers to understand.(September 2010) |
![]() | The contents of the Macro instruction page were merged into Macro (computer science) on 15 August 2018. For the contribution history and old versions of the redirected page, please see its history; for the discussion at that location, see its talk page. |
![]() | The contents of the Parameterized macro page were merged into Macro (computer science) on 18 January 2019. For the contribution history and old versions of the redirected page, please see its history; for the discussion at that location, see its talk page. |
We need a webpage that will compare macro languages! thanks! — Preceding unsigned comment added by 91.132.61.165 ( talk) 01:52, 9 September 2012 (UTC)
This article discusses three different kinds of macros (keyboard macros, application macros, and programming macros) without clearly drawing the proper distinctions among them first. For instance the section "programming macros" is not about the kind of macros found in programming, but rather on writing application macros. Yet it occurs in a page that is mostly about the kind of macro used in programming. - furrykef ( Talk at me) 20:21, 4 October 2005 (UTC)
I've had a go at clarifying this by adapting the way that FOLDOC describes macros. I've also added a mention of TeX as a system that depends heavily on macro expansion. However, I still think the article could be improved by not starting with the rather vague bit about abstraction and patterns. This is too far removed from what a Wikipedia reader is likely to be able to grasp. An article should start with plain talk, and get into technical detail later. Sangwine 19:29, 9 December 2006 (UTC)
à — Preceding unsigned comment added by 125.160.185.188 ( talk) 03:47, 22 November 2017 (UTC)
I still dont get it. What's a macro?
Marudubshinki has it right, though it might also be worth expanding upon the difference between macros in, say, C and macros in lisp. Macros in C simply search through code and make textual replacements. In comparison, macros in lisp act like functions which work on expressions passed to them as if they were data. In this way, entirely new constructs can be created with macros.
Examples include
CLOS and the setf
system which allows for any read function to work, essentially, as an accessor function:
>> (setq x '(a b c d)) (A B C D) >> (nth 3 x) D >> (setf (nth 3 x) 'a) A
>> x (A B C A)
In this example, the (setf (nth 3 x) 'm)
line involves setf examining (nth 3 x)
and replacing it with the function that sets that position, which is not standardized. In
CMUCL, that line expands to (LISP::%SETNTH 3 X 'A)
whereas in
SBCL it expands to (SB-KERNEL:%SETNTH 3 X 'A)
-- Eyvin 20:59, 6 April 2006 (UTC)
So, I just reworked the intro. Comments would be nice. I'm also planning on reworking the Programming Macros section. It doesn't talk about lexical, token, and syntactic macros. Worse, hygienic macros are discussed later down the page, but never defined in the page. User:Andrew Eisenberg
Macros in MMORPGs needs to be redone or deleted completely and changed to macros in online games, or a more general title. ^Aftermath^ 16:28, 3 September 2006 (UTC)
I believe the D programming language would also fit under this header, as it has a preprocessor that uses the same syntax as the language itself, as well as compile-time executed functions and mixins. (AST Macros are on the drawing board, but not quite there yet) -- 83.109.108.7 06:00, 18 September 2007 (UTC)
So, what probably leads most people to search for this, including myself, is the macro settings in MS Word. Could someone include how viruses might be executed using macros, and a rule of thumb for when to trust and when not to trust? Also, maybe what happens if you do/don't enable them? —Preceding unsigned comment added by Savonnn ( talk • contribs) 18:51, 10 February 2008 (UTC)
The reference "DM dhambhere , system programming and operating system - Tata Macgrahill." looks weird here, orphaned from somewhere in the text, or just plain wrong? ( User:Togr) 88.84.167.98 ( talk) 07:50, 20 April 2009 (UTC)
Wikipedia editors may wish to try the hotkeys script to enable keyboard macros. — GregU ( talk) 02:48, 11 August 2009 (UTC)
I propose to correct the meaning of the word μάκρο in Greek. His main meaning is big (as the opposite of Micro), as Macrophotography, Macrocephalus, Macroeconomics, etc... —Preceding unsigned comment added by 84.220.82.14 ( talk) 17:12, 21 August 2009 (UTC)
I propose that Parameterized macro be merged into Macro (computer science). Parametrization is a feature of macros that does not warrant its own article, and the short length of this article makes it a good candidate for merging. Choard1895 ( talk) 01:24, 17 July 2017 (UTC)
As of this writing, the two hatnotes atop that talk of merger point to 2 difference places,
while the hatnote atop "Macro instruction" points to a third place: "Talk:Macro_instruction".
Before comments are lost/orphaned, the multiple COMMENT places need to be . . . mErGeD
In the middle of an article about programming and compilers, there's a non-sequitur section about end-user software for creating hotkeys and recording keystrokes. This sounds a lot like a separate subject that should live in a separate article. NotTheInferno ( talk) 09:17, 9 February 2018 (UTC)
see above/Merger proposal @ Orphaned Merger discussion Pi314m ( talk) 23:39, 31 July 2018 (UTC)