Skip to main content
deleted 123 characters in body
Source Link
Tobia
  • 5.7k
  • 24
  • 39

APL, 10↑↑3.4

Here's my revised attempt:

{⍞←⎕D}⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⊢n←⍎⎕D

100 char (or byte*)/byte* program, running on current hardware (uses a negligible amount of memory and regular 32-bit int variables) although it will take a very long time to complete.

You can actually run it on an APL interpreter and it will start printing digits. If allowed to complete, it will have printed a number with 10 × 12345678944 digits.

Therefore the score is 1010 × 12345678944 / 1003 ≈ 1010353 ≈ 10↑↑3.406161

Explanation

  • ⎕D is a predefined constant string equal to '0123456789'
  • n←⍎⎕D defines n to be the number represented by that string: 123456789 (which is < 231 and therefore can be used as a loop control variable)
  • {⍞←⎕D} will print the 10 digits to standard output, without a newline
  • {⍞←⎕D}⍣n will do it n times ( is the "power operator": it's neither *, /, nor ^, because it's not a math operation, it's a kind of loop)
  • {⍞←n}⍣n⍣n will repeat the previous operation n times, therefore printing the 10 digits n2 times
  • {⍞←n}⍣n⍣n⍣n will do it n3 times
  • I could fit 44 ⍣n in there, so it prints n44 times the string '0123456789'.

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
*: ForAPL can be written in its own (legacy) single-byte charset that maps APL symbols to the upper 128 byte values. Therefore, for the purpose of scoring, a N char long APL program that only makes use of ASCII characters and APL symbolsN chars that only uses ASCII characters and APL symbols can be considered to be N bytes long. This is because traditionally—before Unicode—APL files were saved in a specific single-byte charset which would map all the special symbols in the upper 128 values. Most interpreters can still read and write files in this charset.

APL, 10↑↑3.4

Here's my revised attempt:

{⍞←⎕D}⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⊢n←⍎⎕D

100 char (or byte*) program, running on current hardware (uses a negligible amount of memory and regular 32-bit int variables) although it will take a very long time to complete.

You can actually run it on an APL interpreter and it will start printing digits. If allowed to complete, it will have printed a number with 10 × 12345678944 digits.

Therefore the score is 1010 × 12345678944 / 1003 ≈ 1010353 ≈ 10↑↑3.406161

Explanation

  • ⎕D is a predefined constant string equal to '0123456789'
  • n←⍎⎕D defines n to be the number represented by that string: 123456789 (which is < 231 and therefore can be used as a loop control variable)
  • {⍞←⎕D} will print the 10 digits to standard output, without a newline
  • {⍞←⎕D}⍣n will do it n times ( is the "power operator": it's neither *, /, nor ^, because it's not a math operation, it's a kind of loop)
  • {⍞←n}⍣n⍣n will repeat the previous operation n times, therefore printing the 10 digits n2 times
  • {⍞←n}⍣n⍣n⍣n will do it n3 times
  • I could fit 44 ⍣n in there, so it prints n44 times the string '0123456789'.

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
*: For the purpose of scoring, a N char long APL program that only makes use of ASCII characters and APL symbols can be considered to be N bytes long. This is because traditionally—before Unicode—APL files were saved in a specific single-byte charset which would map all the special symbols in the upper 128 values. Most interpreters can still read and write files in this charset.

APL, 10↑↑3.4

Here's my revised attempt:

{⍞←⎕D}⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⊢n←⍎⎕D

100 char/byte* program, running on current hardware (uses a negligible amount of memory and regular 32-bit int variables) although it will take a very long time to complete.

You can actually run it on an APL interpreter and it will start printing digits. If allowed to complete, it will have printed a number with 10 × 12345678944 digits.

Therefore the score is 1010 × 12345678944 / 1003 ≈ 1010353 ≈ 10↑↑3.406161

Explanation

  • ⎕D is a predefined constant string equal to '0123456789'
  • n←⍎⎕D defines n to be the number represented by that string: 123456789 (which is < 231 and therefore can be used as a loop control variable)
  • {⍞←⎕D} will print the 10 digits to standard output, without a newline
  • {⍞←⎕D}⍣n will do it n times ( is the "power operator": it's neither *, /, nor ^, because it's not a math operation, it's a kind of loop)
  • {⍞←n}⍣n⍣n will repeat the previous operation n times, therefore printing the 10 digits n2 times
  • {⍞←n}⍣n⍣n⍣n will do it n3 times
  • I could fit 44 ⍣n in there, so it prints n44 times the string '0123456789'.

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
*: APL can be written in its own (legacy) single-byte charset that maps APL symbols to the upper 128 byte values. Therefore, for the purpose of scoring, a program of N chars that only uses ASCII characters and APL symbols can be considered to be N bytes long.

deleted 59 characters in body; added 5 characters in body
Source Link
Tobia
  • 5.7k
  • 24
  • 39

APL, 10↑↑3.4

Here's my revisedrevised attempt:

{⍞←⎕D}⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⊢n←⍎⎕D

100 100 char (or byte*) program, perfectly capable of running on current hardware (only uses 45 stack frames, standard output,uses a negligible amount of memory and regular 32-bit int variables) although it couldwill take an inordinate amout ofa very long time to complete.

You can actually run it on an APL interpreter and it will start printing digits. If allowed to complete, after a few gazillion years it will have printed a number with 10 × 12345678944 digits.

Therefore the score is 1010 × 12345678944 / 1003 ≈ 1010353 ≈ 10↑↑3.406161

Explanation

  • ⎕D is a predefined constant string equal to '0123456789'
  • n←⍎⎕D defines n to be the number represented by that string: 123456789 (which is < 231 and therefore can be used as a loop control variable)
  • {⍞←⎕D} will print the 10 digits to standard output, without a newline
  • {⍞←⎕D}⍣n will do it n times ( is the "power operator": it's neither *, /, nor ^, because it's not a math operation, it's a kind of loop)
  • {⍞←n}⍣n⍣n will repeat the previous operation n times, therefore printing the 10 digits n2 times
  • {⍞←n}⍣n⍣n⍣n will do it n3 times
  • I could fit 44 ⍣n in there, so it prints n44 times the string '0123456789'.

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
*: For the purpose of scoring, a N char long APL program that only makes use of ASCII characters and APL symbols can be considered to be N bytes long. This is because traditionally—before Unicode—APL files were saved in a specific single-byte charset which would map all the special symbols in the upper 128 values. Most interpreters can still read and write files in this charset.

APL

Here's my revised attempt:

{⍞←⎕D}⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⊢n←⍎⎕D

100 char (or byte*) program, perfectly capable of running on current hardware (only uses 45 stack frames, standard output, and regular 32-bit int variables) although it could take an inordinate amout of time to complete.

You can actually run it on an APL interpreter and it will start printing digits. If allowed to complete, after a few gazillion years it will have printed a number with 10 × 12345678944 digits.

Therefore the score is 1010 × 12345678944 / 1003 ≈ 1010353

Explanation

  • ⎕D is a predefined constant string equal to '0123456789'
  • n←⍎⎕D defines n to be the number represented by that string: 123456789 (which is < 231 and therefore can be used as a loop control variable)
  • {⍞←⎕D} will print the 10 digits to standard output, without a newline
  • {⍞←⎕D}⍣n will do it n times ( is the "power operator": it's neither *, /, nor ^, because it's not a math operation, it's a kind of loop)
  • {⍞←n}⍣n⍣n will repeat the previous operation n times, therefore printing the 10 digits n2 times
  • {⍞←n}⍣n⍣n⍣n will do it n3 times
  • I could fit 44 ⍣n in there, so it prints n44 times the string '0123456789'.

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
*: For the purpose of scoring, a N char long APL program that only makes use of ASCII characters and APL symbols can be considered to be N bytes long. This is because traditionally—before Unicode—APL files were saved in a specific single-byte charset which would map all the special symbols in the upper 128 values. Most interpreters can still read and write files in this charset.

APL, 10↑↑3.4

Here's my revised attempt:

{⍞←⎕D}⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⊢n←⍎⎕D

100 char (or byte*) program, running on current hardware (uses a negligible amount of memory and regular 32-bit int variables) although it will take a very long time to complete.

You can actually run it on an APL interpreter and it will start printing digits. If allowed to complete, it will have printed a number with 10 × 12345678944 digits.

Therefore the score is 1010 × 12345678944 / 1003 ≈ 1010353 ≈ 10↑↑3.406161

Explanation

  • ⎕D is a predefined constant string equal to '0123456789'
  • n←⍎⎕D defines n to be the number represented by that string: 123456789 (which is < 231 and therefore can be used as a loop control variable)
  • {⍞←⎕D} will print the 10 digits to standard output, without a newline
  • {⍞←⎕D}⍣n will do it n times ( is the "power operator": it's neither *, /, nor ^, because it's not a math operation, it's a kind of loop)
  • {⍞←n}⍣n⍣n will repeat the previous operation n times, therefore printing the 10 digits n2 times
  • {⍞←n}⍣n⍣n⍣n will do it n3 times
  • I could fit 44 ⍣n in there, so it prints n44 times the string '0123456789'.

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
*: For the purpose of scoring, a N char long APL program that only makes use of ASCII characters and APL symbols can be considered to be N bytes long. This is because traditionally—before Unicode—APL files were saved in a specific single-byte charset which would map all the special symbols in the upper 128 values. Most interpreters can still read and write files in this charset.

slight revision, better score
Source Link
Tobia
  • 5.7k
  • 24
  • 39

APL

Here's a lazymy revised attempt:

{⍞←n⍞←⎕D}⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⊢n←↑⍴⎕AV⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⊢n←⍎⎕D

99100 char or(or byte*) program, printsperfectly capable of running on current hardware (only uses 45 stack frames, standard output, and regular 32-bit int variables) although it could take an inordinate amout of time to complete.

You can actually run it on an APL interpreter and it will start printing digits. If allowed to complete, after a few gazillion years it will have printed a number with 310 × 2561234567894344 or 107507747624534602106757229467285 325349838983867263177675199476846262009816647725378282119677037141557248 digitsdigits.

ScoreTherefore the score is something like 2.56 × 1010750774762453460210675722946728532534983898386726317767519947 684626200981664772537828211967703714155724810 × 12345678944 / 1003. ≈ 1010353

Explanation

  • ⎕AV⎕D is a predefined array with 256 charactersconstant string equal to (it's the legacy charset of APL)'0123456789'
  • n←↑⍴⎕AVn←⍎⎕D defines nn to be is itsthe number of elements, or 256represented by that string: 123456789 (which is < 231 and therefore can be used as a loop control variable)
  • {⍞←n⍞←⎕D} will print this number "256"the 10 digits to standard output, without a newline
  • {⍞←n⍞←⎕D}⍣n will printdo it 256n times ( is the "power operator": it's neither *, /, nor ^, because it's not a math operation, it's a kind of loop)
  • {⍞←n}⍣n⍣n will repeat the previous operation 256n times, therefore printing it 256^2the 10 digits n2 times
  • {⍞←n}⍣n⍣n⍣n will printdo it 256^3n3 times
  • I could fit 4344 ⍣n in there, so it prints 256^43n44 times the string "256"'0123456789'.

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
*: For the purpose of scoring, a N char long APL program that only makes use of ASCII characters and APL symbols can be considered to be N bytes long,. This is because traditionally—before Unicode—APL files were saved within a specific single-byte charset which would map all the special symbols in the upper 128 values. Most interpreters can still read and write files in this charset.

APL

Here's a lazy attempt:

{⍞←n}⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⊢n←↑⍴⎕AV

99 char or byte* program, prints a number with 3 × 25643 or 107507747624534602106757229467285 325349838983867263177675199476846262009816647725378282119677037141557248 digits.

Score is something like 2.56 × 1010750774762453460210675722946728532534983898386726317767519947 6846262009816647725378282119677037141557248 / 1003.

Explanation

  • ⎕AV is a predefined array with 256 characters (it's the legacy charset of APL)
  • n←↑⍴⎕AV defines n to be is its number of elements, or 256
  • {⍞←n} will print this number "256" without a newline
  • {⍞←n}⍣n will print it 256 times ( is the "power operator": it's neither *, /, nor ^, because it's not a math operation, it's a kind of loop)
  • {⍞←n}⍣n⍣n will repeat the previous operation 256 times, therefore printing it 256^2 times
  • {⍞←n}⍣n⍣n⍣n will print it 256^3 times
  • I could fit 43 ⍣n in there, so it prints 256^43 times the string "256".

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
*: For the purpose of scoring, a N char long APL program can be considered to be N bytes long, because traditionally—before Unicode—APL files were saved with a specific single-byte charset which would map all the special symbols in the upper 128 values. Most interpreters can still read and write files in this charset.

APL

Here's my revised attempt:

{⍞←⎕D}⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⍣n⊢n←⍎⎕D

100 char (or byte*) program, perfectly capable of running on current hardware (only uses 45 stack frames, standard output, and regular 32-bit int variables) although it could take an inordinate amout of time to complete.

You can actually run it on an APL interpreter and it will start printing digits. If allowed to complete, after a few gazillion years it will have printed a number with 10 × 12345678944 digits.

Therefore the score is 1010 × 12345678944 / 1003 ≈ 1010353

Explanation

  • ⎕D is a predefined constant string equal to '0123456789'
  • n←⍎⎕D defines n to be the number represented by that string: 123456789 (which is < 231 and therefore can be used as a loop control variable)
  • {⍞←⎕D} will print the 10 digits to standard output, without a newline
  • {⍞←⎕D}⍣n will do it n times ( is the "power operator": it's neither *, /, nor ^, because it's not a math operation, it's a kind of loop)
  • {⍞←n}⍣n⍣n will repeat the previous operation n times, therefore printing the 10 digits n2 times
  • {⍞←n}⍣n⍣n⍣n will do it n3 times
  • I could fit 44 ⍣n in there, so it prints n44 times the string '0123456789'.

⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
*: For the purpose of scoring, a N char long APL program that only makes use of ASCII characters and APL symbols can be considered to be N bytes long. This is because traditionally—before Unicode—APL files were saved in a specific single-byte charset which would map all the special symbols in the upper 128 values. Most interpreters can still read and write files in this charset.

added 381 characters in body
Source Link
Tobia
  • 5.7k
  • 24
  • 39
Loading
added score
Source Link
Tobia
  • 5.7k
  • 24
  • 39
Loading
added score
Source Link
Tobia
  • 5.7k
  • 24
  • 39
Loading
edited body
Source Link
Tobia
  • 5.7k
  • 24
  • 39
Loading
Source Link
Tobia
  • 5.7k
  • 24
  • 39
Loading