• R/O
  • SSH

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revisionc8b6111159082ae4c6e3e916744a815068dbcbc2 (tree)
Time2023-08-21 20:11:21
AuthorAlbert Mietus < albert AT mietus DOT nl >
CommiterAlbert Mietus < albert AT mietus DOT nl >

Log Message

RENAMED (target) SieveDemo into DemoSieve

Change Summary

Incremental Difference

diff -r bc32b31e1411 -r c8b611115908 .hgignore
--- a/.hgignore Mon Jul 31 22:39:30 2023 +0200
+++ b/.hgignore Mon Aug 21 13:11:21 2023 +0200
@@ -9,6 +9,6 @@
99 .*\.o
1010 CC-event-sieve.Castle-handCompiled
1111
12-Sieve_in_rPython/SieveDemo-c
12+Sieve_in_rPython/Demo__Sieve-c
1313 Sieve_in_rPython/_OUT_*
1414 _prefREF_OUT
diff -r bc32b31e1411 -r c8b611115908 CMP_OTHER_LANGUAGES/Sieve_in_rPython/Demo__Sieve.py
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/CMP_OTHER_LANGUAGES/Sieve_in_rPython/Demo__Sieve.py Mon Aug 21 13:11:21 2023 +0200
@@ -0,0 +1,33 @@
1+"""This is a (first) rPython implementation of "the Sieve".
2+It should work in python (cpython and PyPy), And can be translated (compiled) to c (aka machine code); using PyPy's ``translate``
3+
4+The design isn't optimal (efficient). As in all sieve-examples, we the standard 3 "CC" componenten: Generator, Sieve (element), and Finder
5+See: http://docideas.mietus.nl/en/default/CCastle/4.Blog/b.TheSieve.html
6+"""
7+
8+#import Generator
9+#import Sieve
10+import FinderMoat, FinderClass
11+import SimpleSieve
12+import hack
13+
14+import sys
15+
16+def main(argv):
17+ prog= argv[0][:9] +"..." # only the base. As ``*.py`` and ``*-c`` give a test/diff-error
18+ print ("Starting Sieve_in_rPython/" + prog + " ".join(argv[1:])) #Python-2 & -3 compatible
19+
20+ FinderMoat.debug()
21+ FinderClass.debug()
22+ SimpleSieve.debug()
23+
24+ hack.connect_and_Machinery()
25+
26+ return 0
27+
28+def target(*args):
29+ return main, None
30+
31+if __name__ == '__main__':
32+ import sys
33+ main(sys.argv)
diff -r bc32b31e1411 -r c8b611115908 CMP_OTHER_LANGUAGES/Sieve_in_rPython/Makefile
--- a/CMP_OTHER_LANGUAGES/Sieve_in_rPython/Makefile Mon Jul 31 22:39:30 2023 +0200
+++ b/CMP_OTHER_LANGUAGES/Sieve_in_rPython/Makefile Mon Aug 21 13:11:21 2023 +0200
@@ -1,8 +1,8 @@
11 #default: time_it
2-default: try
2+default: all
33 all: try2 run try_all
44
5-TARGET=SieveDemo
5+TARGET=Demo__Sieve
66 ARGV=""
77
88 TARGET_PY=${TARGET}.py
diff -r bc32b31e1411 -r c8b611115908 CMP_OTHER_LANGUAGES/Sieve_in_rPython/SieveDemo.py
--- a/CMP_OTHER_LANGUAGES/Sieve_in_rPython/SieveDemo.py Mon Jul 31 22:39:30 2023 +0200
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,33 +0,0 @@
1-"""This is a (first)) rPython implementation of "the Sieve".
2-It should work in python (cpython and PyPy), And can be translated (compiled) to c (aka machine code); using PyPy's ``translate``
3-
4-The design isn't optimal (efficient). As in all sieve-examples, we the standard 3 "CC" componenten: Generator, Sieve (element), and Finder
5-See: http://docideas.mietus.nl/en/default/CCastle/4.Blog/b.TheSieve.html
6-"""
7-
8-#import Generator
9-#import Sieve
10-import FinderMoat, FinderClass
11-import SimpleSieve
12-import hack
13-
14-import sys
15-
16-def main(argv):
17- prog= argv[0][:9] +"..." # only the base. As ``*.py`` and ``*-c`` give a test/diff-error
18- print ("Starting Sieve_in_rPython/" + prog + " ".join(argv[1:])) #Python-2 & -3 compatible
19-
20- FinderMoat.debug()
21- FinderClass.debug()
22- SimpleSieve.debug()
23-
24- hack.connect_and_Machinery()
25-
26- return 0
27-
28-def target(*args):
29- return main, None
30-
31-if __name__ == '__main__':
32- import sys
33- main(sys.argv)