Examine individual changes

Abuse Filter navigation (Home | Recent filter changes | Examine past edits | Abuse log)
Jump to navigation Jump to search

This page allows you to examine the variables generated by the Abuse Filter for an individual change.

Variables generated for this change

VariableValue
Edit count of the user (user_editcount)
1
Name of the user account (user_name)
'A-jar-of-peanuts'
Age of the user account (user_age)
3445
Page ID (page_id)
0
Page namespace (page_namespace)
0
Page title (without namespace) (page_title)
'Polyphony'
Full page title (page_prefixedtitle)
'Polyphony'
Action (action)
'edit'
Edit summary/reason (summary)
''
Old content model (old_content_model)
''
New content model (new_content_model)
'wikitext'
Old page wikitext, before the edit (old_wikitext)
''
New page wikitext, after the edit (new_wikitext)
'{{infobox proglang |name=Polyphony |paradigms=[[Stack|stack-based]] |author=[[User:A-jar-of-peanuts|A-jar-of-peanuts]], Hanson Sun |year=[[:Category:2024|2024]] |class=[[:Category:Turing complete|Turing complete]] |refimpl=[https://github.com/Hanson-Sun/polyphony polyphony] |influence=[[Velato]] |files=<code>.mid</code> }} '''Polyphony''' is an interpreted stack-based concatenative [[esoteric programming language]] that uses MIDI files as source code. ==Language overview== In general, certain chords reserved as keywords. For our purposes, a chord is defined as 2 or more notes played simultaneously (Take care that one note can be part of multiple chords depending on its length and overlap with other notes). If a chord that is not recognized as a keyword is played, the highest note of the chord will be used as the literal. Outside of this, single notes are considered as literals. Polyphony operates on a base 12 number system. Each semitone represents a digit, with C being 0 and B being 11. The octave doesn't matter so both C#4 and C#5 represent 1. As opposed to being identified by the specific notes in a chord, chords are identified by the intervals between its notes (More specifically, the amount of semitones between any 2 consecutive notes of a chord as opposed to intervals based on scales). From now on, we will represent a chord by its intervals. ex: an octave is written as (13) and the chord CC#E is written as (2,4). In case it is not obvious these are written in base 10. ==Syntax== Polyphony has 31 keywords and they are all listed below. For readability, we have provided descriptive keywords along with the interval based ones. Binary operations read in RPN, meaning the operation 1 - 2 is 1 2 - in Polyphony. {| class="wikitable" |- !Chord !Description |- |- |(5): def |start of definition |- |`(5, 4)`: `end` |marks the end of identifier calls, control flow chunks, definitions |- |`(5, 5)`: `space` |optionally marks the end of literals |- |- |`(13)`: `#` |comment wrappers |- |- |`(4)`: `f` |start of identifier call (executes definition or pushes variable address to top of stack, depending on the identifier) |- |- |`(8, 2)`: `+` |pops 2 items off the stack and pushes their sum onto the stack |- |- |`(8, 3)`: `-` |pops 2 items off the stack and pushes (s1 - s0) |- |- |`(8, 4)`: `*` |pops 2 items off the stack and pushes their product onto the stack |- |- | `(8, 5)`: `/` |pops 2 items off the stack and pushes (s1 / s0) |- |- |`(8, 6)`: `%` |pops 2 items off the stack and pushes (s1 mod s0) |- |- |`(7, 2)`: `=` |pops 2 items off the stack and pushes 1 if they are equal, 0 otherwise |- |- |`(7, 3)`: `<` |pops 2 items off the stack and pushes 1 if (s1 < s0), 0 otherwise |- |- |`(7, 4)`: `>` |pops 2 items off the stack and pushes 1 if (s1 > s0), 0 otherwise |- |- |`(6, 2)`: `&` |pops 2 items off the stack and pushes bitwise and |- |- |(6, 3): &#124; |pops 2 items off the stack and pushes bitwise or |- |- |`(6, 4)`: `~` |pops 2 items off the stack and pushes bitwise not |- |- |`(9, 2)`: `pop` |pops the top of the stack |- |- |`(9, 3)`: `dup` |duplicates the top of the stack |- |- |`(9, 4)`: `dup.` |pops the top of the stack. not counting the item just popped, duplicates the nth item. ex: `1 dup.` duplicates the second item on the stack not counting 1. |- |- |`(9, 5)`: `swap` |swaps the first and second items on the stack |- |- |`(9, 6)`: `size` |returns the size of the stack and pushes it onto the stack |- |- |`(5, 4, 4)`: `input` |reads a value from the console and pushes it onto the stack |- |- - `(5, 4, 5)`: `print` pops and prints the top of the stack onto the console as a number |- |- |`(5, 4, 6)`: `print&#45;` |pops and prints the top of the stack onto the console as a ASCII character |- |- |`(5, 4, 7)`: `debug` |prints the entire stack onto the console |- |- - `(5, 5, 4)`: `if` pops the top of the stack, if it is 0, executes the second (`else`) block, otherwise executes the first (`if`) block |- |- |`(5, 5, 5)`: `else` |see above |- |- |`(5, 5, 6)`: `while` |pops the top of the stack, if it is 0, exit the loop. Otherwise, executes the block between the `while` and `end` commands |- |- |`(8)`: `var` |start of variable declaration |- |- |`(9)`: `!` |pops 2 items off the stack. top of the stack is the value, second item is the address. Stores the value at the address |- |- |`(10)`: `@` |pops the top of the stack, gets the value at the address and pushes it onto the the stack |- |- |`(11)`: `^` |pops the top of the stack, frees the memory at the address on the top of the stack |} ==See also== * [[Velato]] (2009) [[Category:Languages]] [[Category:Non-textual]] [[Category:Implemented]]'
Unified diff of changes made by edit (edit_diff)
'@@ -1,0 +1,159 @@ +{{infobox proglang +|name=Polyphony +|paradigms=[[Stack|stack-based]] +|author=[[User:A-jar-of-peanuts|A-jar-of-peanuts]], Hanson Sun +|year=[[:Category:2024|2024]] +|class=[[:Category:Turing complete|Turing complete]] +|refimpl=[https://github.com/Hanson-Sun/polyphony polyphony] +|influence=[[Velato]] +|files=<code>.mid</code> +}} + +'''Polyphony''' is an interpreted stack-based concatenative [[esoteric programming language]] that uses MIDI files as source code. + +==Language overview== +In general, certain chords reserved as keywords. For our purposes, a chord is defined as 2 or more notes played simultaneously (Take care that one note can be part of multiple chords depending on its length and overlap with other notes). If a chord that is not recognized as a keyword is played, the highest note of the chord will be used as the literal. Outside of this, single notes are considered as literals. + +Polyphony operates on a base 12 number system. Each semitone represents a digit, with C being 0 and B being 11. The octave doesn't matter so both C#4 and C#5 represent 1. + +As opposed to being identified by the specific notes in a chord, chords are identified by the intervals between its notes (More specifically, the amount of semitones between any 2 consecutive notes of a chord as opposed to intervals based on scales). From now on, we will represent a chord by its intervals. ex: an octave is written as (13) and the chord CC#E is written as (2,4). In case it is not obvious these are written in base 10. + +==Syntax== +Polyphony has 31 keywords and they are all listed below. For readability, we have provided descriptive keywords along with the interval based ones. Binary operations read in RPN, meaning the operation 1 - 2 is 1 2 - in Polyphony. + +{| class="wikitable" +|- +!Chord +!Description +|- +|- +|(5): def +|start of definition +|- +|`(5, 4)`: `end` +|marks the end of identifier calls, control flow chunks, definitions +|- +|`(5, 5)`: `space` +|optionally marks the end of literals +|- +|- +|`(13)`: `#` +|comment wrappers +|- +|- +|`(4)`: `f` +|start of identifier call (executes definition or pushes variable address to top of stack, depending on the identifier) +|- +|- +|`(8, 2)`: `+` +|pops 2 items off the stack and pushes their sum onto the stack +|- +|- +|`(8, 3)`: `-` +|pops 2 items off the stack and pushes (s1 - s0) +|- +|- +|`(8, 4)`: `*` +|pops 2 items off the stack and pushes their product onto the stack +|- +|- +| `(8, 5)`: `/` +|pops 2 items off the stack and pushes (s1 / s0) +|- +|- +|`(8, 6)`: `%` +|pops 2 items off the stack and pushes (s1 mod s0) +|- +|- +|`(7, 2)`: `=` +|pops 2 items off the stack and pushes 1 if they are equal, 0 otherwise +|- +|- +|`(7, 3)`: `<` +|pops 2 items off the stack and pushes 1 if (s1 < s0), 0 otherwise +|- +|- +|`(7, 4)`: `>` +|pops 2 items off the stack and pushes 1 if (s1 > s0), 0 otherwise +|- +|- +|`(6, 2)`: `&` +|pops 2 items off the stack and pushes bitwise and +|- +|- +|(6, 3): &#124; +|pops 2 items off the stack and pushes bitwise or +|- +|- +|`(6, 4)`: `~` +|pops 2 items off the stack and pushes bitwise not +|- +|- +|`(9, 2)`: `pop` +|pops the top of the stack +|- +|- +|`(9, 3)`: `dup` +|duplicates the top of the stack +|- +|- +|`(9, 4)`: `dup.` +|pops the top of the stack. not counting the item just popped, duplicates the nth item. ex: `1 dup.` duplicates the second item on the stack not counting 1. +|- +|- +|`(9, 5)`: `swap` +|swaps the first and second items on the stack +|- +|- +|`(9, 6)`: `size` +|returns the size of the stack and pushes it onto the stack +|- +|- +|`(5, 4, 4)`: `input` +|reads a value from the console and pushes it onto the stack +|- +|- +- `(5, 4, 5)`: `print` pops and prints the top of the stack onto the console as a number +|- +|- +|`(5, 4, 6)`: `print&#45;` +|pops and prints the top of the stack onto the console as a ASCII character +|- +|- +|`(5, 4, 7)`: `debug` +|prints the entire stack onto the console +|- +|- +- `(5, 5, 4)`: `if` pops the top of the stack, if it is 0, executes the second (`else`) block, otherwise executes the first (`if`) block +|- +|- +|`(5, 5, 5)`: `else` +|see above +|- +|- +|`(5, 5, 6)`: `while` +|pops the top of the stack, if it is 0, exit the loop. Otherwise, executes the block between the `while` and `end` commands +|- +|- +|`(8)`: `var` +|start of variable declaration +|- +|- +|`(9)`: `!` +|pops 2 items off the stack. top of the stack is the value, second item is the address. Stores the value at the address +|- +|- +|`(10)`: `@` +|pops the top of the stack, gets the value at the address and pushes it onto the the stack +|- +|- +|`(11)`: `^` +|pops the top of the stack, frees the memory at the address on the top of the stack +|} + +==See also== +* [[Velato]] (2009) + +[[Category:Languages]] +[[Category:Non-textual]] +[[Category:Implemented]] '
New page size (new_size)
4705
Old page size (old_size)
0
Lines added in edit (added_lines)
[ 0 => '{{infobox proglang', 1 => '|name=Polyphony', 2 => '|paradigms=[[Stack|stack-based]]', 3 => '|author=[[User:A-jar-of-peanuts|A-jar-of-peanuts]], Hanson Sun', 4 => '|year=[[:Category:2024|2024]]', 5 => '|class=[[:Category:Turing complete|Turing complete]]', 6 => '|refimpl=[https://github.com/Hanson-Sun/polyphony polyphony]', 7 => '|influence=[[Velato]]', 8 => '|files=<code>.mid</code>', 9 => '}}', 10 => '', 11 => ''''Polyphony''' is an interpreted stack-based concatenative [[esoteric programming language]] that uses MIDI files as source code. ', 12 => '', 13 => '==Language overview==', 14 => 'In general, certain chords reserved as keywords. For our purposes, a chord is defined as 2 or more notes played simultaneously (Take care that one note can be part of multiple chords depending on its length and overlap with other notes). If a chord that is not recognized as a keyword is played, the highest note of the chord will be used as the literal. Outside of this, single notes are considered as literals.', 15 => '', 16 => 'Polyphony operates on a base 12 number system. Each semitone represents a digit, with C being 0 and B being 11. The octave doesn't matter so both C#4 and C#5 represent 1.', 17 => '', 18 => 'As opposed to being identified by the specific notes in a chord, chords are identified by the intervals between its notes (More specifically, the amount of semitones between any 2 consecutive notes of a chord as opposed to intervals based on scales). From now on, we will represent a chord by its intervals. ex: an octave is written as (13) and the chord CC#E is written as (2,4). In case it is not obvious these are written in base 10.', 19 => '', 20 => '==Syntax==', 21 => 'Polyphony has 31 keywords and they are all listed below. For readability, we have provided descriptive keywords along with the interval based ones. Binary operations read in RPN, meaning the operation 1 - 2 is 1 2 - in Polyphony.', 22 => '', 23 => '{| class="wikitable"', 24 => '|-', 25 => '!Chord', 26 => '!Description', 27 => '|-', 28 => '|-', 29 => '|(5): def ', 30 => '|start of definition', 31 => '|-', 32 => '|`(5, 4)`: `end` ', 33 => '|marks the end of identifier calls, control flow chunks, definitions', 34 => '|-', 35 => '|`(5, 5)`: `space` ', 36 => '|optionally marks the end of literals', 37 => '|-', 38 => '|-', 39 => '|`(13)`: `#` ', 40 => '|comment wrappers', 41 => '|-', 42 => '|-', 43 => '|`(4)`: `f` ', 44 => '|start of identifier call (executes definition or pushes variable address to top of stack, depending on the identifier)', 45 => '|-', 46 => '|-', 47 => '|`(8, 2)`: `+` ', 48 => '|pops 2 items off the stack and pushes their sum onto the stack', 49 => '|-', 50 => '|-', 51 => '|`(8, 3)`: `-` ', 52 => '|pops 2 items off the stack and pushes (s1 - s0)', 53 => '|-', 54 => '|-', 55 => '|`(8, 4)`: `*` ', 56 => '|pops 2 items off the stack and pushes their product onto the stack', 57 => '|-', 58 => '|-', 59 => '| `(8, 5)`: `/` ', 60 => '|pops 2 items off the stack and pushes (s1 / s0)', 61 => '|-', 62 => '|-', 63 => '|`(8, 6)`: `%` ', 64 => '|pops 2 items off the stack and pushes (s1 mod s0)', 65 => '|-', 66 => '|-', 67 => '|`(7, 2)`: `=` ', 68 => '|pops 2 items off the stack and pushes 1 if they are equal, 0 otherwise', 69 => '|-', 70 => '|-', 71 => '|`(7, 3)`: `<` ', 72 => '|pops 2 items off the stack and pushes 1 if (s1 < s0), 0 otherwise', 73 => '|-', 74 => '|-', 75 => '|`(7, 4)`: `>` ', 76 => '|pops 2 items off the stack and pushes 1 if (s1 > s0), 0 otherwise', 77 => '|-', 78 => '|-', 79 => '|`(6, 2)`: `&` ', 80 => '|pops 2 items off the stack and pushes bitwise and', 81 => '|-', 82 => '|-', 83 => '|(6, 3): &#124;', 84 => '|pops 2 items off the stack and pushes bitwise or', 85 => '|-', 86 => '|-', 87 => '|`(6, 4)`: `~` ', 88 => '|pops 2 items off the stack and pushes bitwise not', 89 => '|-', 90 => '|-', 91 => '|`(9, 2)`: `pop` ', 92 => '|pops the top of the stack', 93 => '|-', 94 => '|-', 95 => '|`(9, 3)`: `dup` ', 96 => '|duplicates the top of the stack', 97 => '|-', 98 => '|-', 99 => '|`(9, 4)`: `dup.`', 100 => '|pops the top of the stack. not counting the item just popped, duplicates the nth item. ex: `1 dup.` duplicates the second item on the stack not counting 1.', 101 => '|-', 102 => '|-', 103 => '|`(9, 5)`: `swap`', 104 => '|swaps the first and second items on the stack', 105 => '|-', 106 => '|-', 107 => '|`(9, 6)`: `size`', 108 => '|returns the size of the stack and pushes it onto the stack', 109 => '|-', 110 => '|-', 111 => '|`(5, 4, 4)`: `input` ', 112 => '|reads a value from the console and pushes it onto the stack ', 113 => '|-', 114 => '|-', 115 => '- `(5, 4, 5)`: `print` pops and prints the top of the stack onto the console as a number', 116 => '|-', 117 => '|-', 118 => '|`(5, 4, 6)`: `print&#45;` ', 119 => '|pops and prints the top of the stack onto the console as a ASCII character', 120 => '|-', 121 => '|-', 122 => '|`(5, 4, 7)`: `debug` ', 123 => '|prints the entire stack onto the console', 124 => '|-', 125 => '|-', 126 => '- `(5, 5, 4)`: `if` pops the top of the stack, if it is 0, executes the second (`else`) block, otherwise executes the first (`if`) block', 127 => '|-', 128 => '|-', 129 => '|`(5, 5, 5)`: `else`', 130 => '|see above', 131 => '|-', 132 => '|-', 133 => '|`(5, 5, 6)`: `while` ', 134 => '|pops the top of the stack, if it is 0, exit the loop. Otherwise, executes the block between the `while` and `end` commands', 135 => '|-', 136 => '|-', 137 => '|`(8)`: `var` ', 138 => '|start of variable declaration', 139 => '|-', 140 => '|-', 141 => '|`(9)`: `!` ', 142 => '|pops 2 items off the stack. top of the stack is the value, second item is the address. Stores the value at the address', 143 => '|-', 144 => '|-', 145 => '|`(10)`: `@` ', 146 => '|pops the top of the stack, gets the value at the address and pushes it onto the the stack', 147 => '|-', 148 => '|-', 149 => '|`(11)`: `^` ', 150 => '|pops the top of the stack, frees the memory at the address on the top of the stack ', 151 => '|}', 152 => '', 153 => '==See also==', 154 => '* [[Velato]] (2009)', 155 => '', 156 => '[[Category:Languages]]', 157 => '[[Category:Non-textual]]', 158 => '[[Category:Implemented]]' ]
Unix timestamp of change (timestamp)
'1735530222'