New page wikitext, after the edit (new_wikitext) | '{{WIP}}
{{infobox proglang
|name=קודש
|paradigms=Object-Oriented
|author=Eliran Ben Moshe, Stav Solomon
|year=[[:Category:2026|2026]]
|typesys=Static
|class=[[:Category:Turing complete|Turing complete]]
|refimpl=<!--Link to be added when repository goes public-->
|influence=[[wp:Java (programming language)|Java]], Biblical Hebrew (Tanakh)
|files=.אמן
}}
'''Codesh''' (Hebrew: '''קודש''') is an [[object-oriented paradigm|object-oriented]] esoteric programming language designed by [[User:StavWasPlayZ|Stav Solomon]] and Eliran Ben Moshe whose syntax is modelled as faithfully as possible to the [http://Hebrew%20Bible%20https://en.wikipedia.org/wiki/Hebrew_Bible Hebrew Bible (Tanakh)]. Its source files carry the extension <code>.אמן</code> (<em>amen</em>).
Its official compiler, '''המוציא בשאלה''' (English: '''Motzi L'She'ela''') (<em>to be realeased</em>), compiles to [https://en.wikipedia.org/wiki/JVM_bytecode JVM bytecode], allowing it to be fully object-oriented (as G-d intended) and maintains full interoperability with Java and any other JVM language.
<pre>
בס"ד
ויהי עצם ושמו תוכנית נגלה היה ויאמר:
ויהי מעשה ושמו בראשית לכל־נגלה היה ויקח כתובים כמסדר ושמו מנחות ויאמר:
ויעש מסוף ל־אמר כי־ויקרא היי אמא לאמר כי־טוב:
ויתם:
ויתם:
</pre>
''A '''Shalom Olam''' Codesh program''
==Similarity to the Hebrew Language==
Reading a Codesh program is practically indistinguishable from reading a passage of scripture.
'''Scopes''', or '''Pillars''' in [[#Terminology|Codesh terminology]], open with <code>ויאמר:</code> (''"and he said:"'') and close with <code>ויתם:</code> (''"and it was complete:"''); Functions are invoked with <code>ויעש</code> ("''and he did''"); and a new object is conjured into existence with <code>ויברא</code> (''"and he created"''). Every statement ends with a colon as every verse in the Torah ends with one too.
==Biblicase==
As a convention, all identifiers in the Codesh programming language are written in '''Biblicase'''.
Biblicase is defined as pure Hebrew words separated by Maqaf Elion (<code>־</code>).
===Examples===
<pre>
ויהי שלם ושמו שם־משתנה:
ויהי מעשה ושמו שחרר־את־עמי:
</pre>
==Abominations==
All compilation errors in Codesh are considered an '''abomination''', and will lead to a '''תועבה''' (''to'eva'').
===Besiyata Dishmaya (בסיעתא דשמיא)===
Every Codesh source must open with one of three prescribed invocations:
{| class="wikitable"
!Invocation
!Transliteration
|-
| <code>בס"ד</code>
| ''Besiyata Dishmaya'' ("With the help of Heaven")
|-
| <code>בע"ה</code>
| ''Be'ezrat Hashem'' ("With God's help")
|-
| <code>אי"א</code>
| ''Im Yirtzeh Allah'' ("If Allah wills it")
|}
Any invocation besides <code>בס"ד</code> may lead to unexpected compilation issues as it is believed by the Motzi L'She'ela that the programmer in question is not Jewish enough.
==Biblical Numerals==
Numbers in Codesh are not written as digits. Rather, they are '''spelled out in words''', in the manner of the biblical counting system.
Numbers are composed by additive decomposition. A leading <code>ו</code> prefix on a word means addition; adjacent words without it imply multiplication by powers of ten.
===Examples===
{| class="wikitable"
!Decimal
!Codesh
|-
| <code>127
| <code>שבע ועשרים ומאה</code>
|-
| <code>1</code>
| <code>אחד</code>
|-
| <code>7</code>
| <code>שבע</code>
|-
| <code>12</code>
| <code>תריסר</code>
|-
| <code>621000</code>
| <code>אחד ועשרים אלף ושש מאה אלף</code>
|}
Decimal points are written with the word <code>נקודה</code> ("dot" / "period").
==Examples==
===Fibonacci===
<pre>
בס"ד
ויהי עצם ושמו תוכנית נגלה היה ויאמר:
ויהי מעשה ושמו בראשית לכל־נגלה היה ויקח כתובים כמסדר ושמו מנחות ויאמר:
ויעש פיבונאצי כי־עשר כי־טוב:
ויתם:
ויהי מעשה ושמו פיבונאצי לכל־נגלה היה ויקח שלם ושמו חזרות ויאמר:
ויהי שלם ושמו א ויהי חמס:
ויהי שלם ושמו ב ויהי אחד:
ויהי שלם ושמו הבא:
וימנה שלם ושמו מונה מן חמס עד חזרות ויאמר:
ויעש מסוף ל־אמר כי־א כי־טוב:
ויחלף הבא ב־ויוסף ל־א ב:
ויחלף א ב־ב:
ויחלף ב ב־הבא:
ויתם:
ויתם:
ויתם:
</pre>
===Inheritance===
<pre>
בס"ד
ויהי עצם ושמו חיה נגלה היה ויאמר:
ויהי מעשה ושמו צליל ויאמר:
ויעש מסוף ל־אמר כי־ויקרא חיה עושה צליל לאמר כי־טוב:
ויתם:
ויתם:
ויהי עצם ושמו כלב בן־חיה נגלה היה ויאמר:
ויהי מעשה ושמו נביחה ויאמר:
ויעש מסוף ל־אמר כי־ויקרא ווף ווף לאמר כי־טוב:
ויתם:
ויתם:
</pre>
[[Category:Languages]]
[[Category:2026]]
[[Category:Object-oriented paradigm]]
<!--NOTE: The compiler to the Codsh programming language is a WIP at a private GitLab repo.-->
[[Category:Implemented]]
[[Category:Turing complete]]
[[Category:Thematic]]
[[Category:High-level]]
[[Category:Pseudonatural]]' |
Lines added in edit (added_lines) | [
0 => '{{WIP}}',
1 => '{{infobox proglang',
2 => '|name=קודש',
3 => '|paradigms=Object-Oriented',
4 => '|author=Eliran Ben Moshe, Stav Solomon',
5 => '|year=[[:Category:2026|2026]]',
6 => '|typesys=Static',
7 => '|class=[[:Category:Turing complete|Turing complete]]',
8 => '|refimpl=<!--Link to be added when repository goes public-->',
9 => '|influence=[[wp:Java (programming language)|Java]], Biblical Hebrew (Tanakh)',
10 => '|files=.אמן',
11 => '}}',
12 => '',
13 => ''''Codesh''' (Hebrew: '''קודש''') is an [[object-oriented paradigm|object-oriented]] esoteric programming language designed by [[User:StavWasPlayZ|Stav Solomon]] and Eliran Ben Moshe whose syntax is modelled as faithfully as possible to the [http://Hebrew%20Bible%20https://en.wikipedia.org/wiki/Hebrew_Bible Hebrew Bible (Tanakh)]. Its source files carry the extension <code>.אמן</code> (<em>amen</em>).',
14 => '',
15 => 'Its official compiler, '''המוציא בשאלה''' (English: '''Motzi L'She'ela''') (<em>to be realeased</em>), compiles to [https://en.wikipedia.org/wiki/JVM_bytecode JVM bytecode], allowing it to be fully object-oriented (as G-d intended) and maintains full interoperability with Java and any other JVM language.',
16 => '',
17 => '<pre>',
18 => 'בס"ד',
19 => '',
20 => 'ויהי עצם ושמו תוכנית נגלה היה ויאמר:',
21 => ' ויהי מעשה ושמו בראשית לכל־נגלה היה ויקח כתובים כמסדר ושמו מנחות ויאמר:',
22 => ' ויעש מסוף ל־אמר כי־ויקרא היי אמא לאמר כי־טוב:',
23 => ' ויתם:',
24 => 'ויתם:',
25 => '</pre>',
26 => '''A '''Shalom Olam''' Codesh program''',
27 => '',
28 => '==Similarity to the Hebrew Language==',
29 => '',
30 => 'Reading a Codesh program is practically indistinguishable from reading a passage of scripture.',
31 => '',
32 => ''''Scopes''', or '''Pillars''' in [[#Terminology|Codesh terminology]], open with <code>ויאמר:</code> (''"and he said:"'') and close with <code>ויתם:</code> (''"and it was complete:"''); Functions are invoked with <code>ויעש</code> ("''and he did''"); and a new object is conjured into existence with <code>ויברא</code> (''"and he created"''). Every statement ends with a colon as every verse in the Torah ends with one too.',
33 => '',
34 => '==Biblicase==',
35 => '',
36 => 'As a convention, all identifiers in the Codesh programming language are written in '''Biblicase'''.',
37 => '',
38 => 'Biblicase is defined as pure Hebrew words separated by Maqaf Elion (<code>־</code>).',
39 => '',
40 => '===Examples===',
41 => '',
42 => '<pre>',
43 => 'ויהי שלם ושמו שם־משתנה:',
44 => 'ויהי מעשה ושמו שחרר־את־עמי:',
45 => '</pre>',
46 => '',
47 => '==Abominations==',
48 => '',
49 => 'All compilation errors in Codesh are considered an '''abomination''', and will lead to a '''תועבה''' (''to'eva'').',
50 => '',
51 => '===Besiyata Dishmaya (בסיעתא דשמיא)===',
52 => '',
53 => 'Every Codesh source must open with one of three prescribed invocations:',
54 => '',
55 => '{| class="wikitable"',
56 => '!Invocation',
57 => '!Transliteration',
58 => '|-',
59 => '| <code>בס"ד</code>',
60 => '| ''Besiyata Dishmaya'' ("With the help of Heaven")',
61 => '|-',
62 => '| <code>בע"ה</code>',
63 => '| ''Be'ezrat Hashem'' ("With God's help")',
64 => '|-',
65 => '| <code>אי"א</code>',
66 => '| ''Im Yirtzeh Allah'' ("If Allah wills it")',
67 => '|}',
68 => '',
69 => 'Any invocation besides <code>בס"ד</code> may lead to unexpected compilation issues as it is believed by the Motzi L'She'ela that the programmer in question is not Jewish enough.',
70 => '',
71 => '==Biblical Numerals==',
72 => '',
73 => 'Numbers in Codesh are not written as digits. Rather, they are '''spelled out in words''', in the manner of the biblical counting system.',
74 => '',
75 => 'Numbers are composed by additive decomposition. A leading <code>ו</code> prefix on a word means addition; adjacent words without it imply multiplication by powers of ten.',
76 => '',
77 => '===Examples===',
78 => '',
79 => '{| class="wikitable"',
80 => '!Decimal',
81 => '!Codesh',
82 => '|-',
83 => '| <code>127',
84 => '| <code>שבע ועשרים ומאה</code>',
85 => '|-',
86 => '| <code>1</code>',
87 => '| <code>אחד</code>',
88 => '|-',
89 => '| <code>7</code>',
90 => '| <code>שבע</code>',
91 => '|-',
92 => '| <code>12</code>',
93 => '| <code>תריסר</code>',
94 => '|-',
95 => '| <code>621000</code>',
96 => '| <code>אחד ועשרים אלף ושש מאה אלף</code>',
97 => '|}',
98 => '',
99 => 'Decimal points are written with the word <code>נקודה</code> ("dot" / "period").',
100 => '',
101 => '==Examples==',
102 => '',
103 => '===Fibonacci===',
104 => '',
105 => '<pre>',
106 => 'בס"ד',
107 => '',
108 => 'ויהי עצם ושמו תוכנית נגלה היה ויאמר:',
109 => '',
110 => ' ויהי מעשה ושמו בראשית לכל־נגלה היה ויקח כתובים כמסדר ושמו מנחות ויאמר:',
111 => ' ויעש פיבונאצי כי־עשר כי־טוב:',
112 => ' ויתם:',
113 => '',
114 => ' ויהי מעשה ושמו פיבונאצי לכל־נגלה היה ויקח שלם ושמו חזרות ויאמר:',
115 => ' ויהי שלם ושמו א ויהי חמס:',
116 => ' ויהי שלם ושמו ב ויהי אחד:',
117 => ' ויהי שלם ושמו הבא:',
118 => '',
119 => ' וימנה שלם ושמו מונה מן חמס עד חזרות ויאמר:',
120 => ' ויעש מסוף ל־אמר כי־א כי־טוב:',
121 => ' ויחלף הבא ב־ויוסף ל־א ב:',
122 => ' ויחלף א ב־ב:',
123 => ' ויחלף ב ב־הבא:',
124 => ' ויתם:',
125 => ' ויתם:',
126 => '',
127 => 'ויתם:',
128 => '</pre>',
129 => '',
130 => '===Inheritance===',
131 => '',
132 => '<pre>',
133 => 'בס"ד',
134 => '',
135 => 'ויהי עצם ושמו חיה נגלה היה ויאמר:',
136 => ' ויהי מעשה ושמו צליל ויאמר:',
137 => ' ויעש מסוף ל־אמר כי־ויקרא חיה עושה צליל לאמר כי־טוב:',
138 => ' ויתם:',
139 => 'ויתם:',
140 => '',
141 => 'ויהי עצם ושמו כלב בן־חיה נגלה היה ויאמר:',
142 => ' ויהי מעשה ושמו נביחה ויאמר:',
143 => ' ויעש מסוף ל־אמר כי־ויקרא ווף ווף לאמר כי־טוב:',
144 => ' ויתם:',
145 => 'ויתם:',
146 => '</pre>',
147 => '',
148 => '[[Category:Languages]]',
149 => '[[Category:2026]]',
150 => '[[Category:Object-oriented paradigm]]',
151 => '<!--NOTE: The compiler to the Codsh programming language is a WIP at a private GitLab repo.-->',
152 => '[[Category:Implemented]]',
153 => '[[Category:Turing complete]]',
154 => '[[Category:Thematic]]',
155 => '[[Category:High-level]]',
156 => '[[Category:Pseudonatural]]'
] |