Befunge-98, produces zsh script: 150 1053 1113 1139 points
The Befunge-98 program (1500)
:#q #u!#e!#sa#t7#i6#o*#n*#n*#aj#ib#r9#e*#q:#u:#i:#p:#a:#g:#e:#r:#e:#q3#u+#i,#pc#m+#e,#nf#t+#o,#r4#e8#q*#u,#i6#l+#i:#b,#r4#i8#u*#m,#e,#qb#u+#i:#p:#m:#e:#n:#t,#o4#r8#e*#q,#u,#i4#l8#i*#b,#r,#i4#u8#m*#u,#n,#u4#b8#i*#q,#u,#i4#t8#o*#u,#s,#q4#ua#e*#s-#t,#i2#o+#n,#n,#a5#i+#r,#ec#q+#u,#i4#v8#a*#l,#e9#n5#t*#-,#qb#ua#e*#s,#t4#i8#o*#n,#n #a #i #r #e #q #u #i #p #a #g #e #r #e #q #u #i #p #m #e #n #t #o #r #e #q #u #i #l #i #b #r #i #u #m #e #q #u #i #p #m #e #n #t #o #r #e #q #u #i #l #i #b #r #i #u #m #u #n #u #b #i #q #u #i #t #o #u #s #q #u #e #s #t #i #o #n #n #a #i #r #e #q #u #i #v #a #l #e #n #t #- #q #u #e #s #t #i #o #n #n #a #i #r #e #q #u #i #p #a #g #e #r #e #q #u #i #p #m #e #n #t #o #r #e #q #u #i #l #i #b #r #i #u #m #e #q #u #i #p #m #e #n #t #o #r #e #q #u #i #l #i #b #r #i #u #m #u #n #u #b #i #q #u #i #t #o #u #s #q #u #e #s #t #i #o #n #n #a #i #r #e #q #u #i #v #a #l #e #n #t #- #q #u #e #s #t #i #o #n #n #a #i #r #e #q #u #i #p #a #g #e #r #e #q #u #i #p #m #e #n #t #o #r #e #q #u #i #l #i #b #r #i #u #m #e #q #u #i #p #m #e #n #t #o #r #e #q #u #i #l #i #b #r #i #u #m #u #n #u #b #i #q #u #i #t #o #u #s #q #u #e #s #t #i #o #n #n #a #i #r #e #q #u #i #v #a #l #e #n #t #- #q #u #e #s #t #i #o #n #n #a #i #r #e #q #u #i #p #a #g #e #r #e #q #u #i #p #m #e #n #t #o #r #e #q #u #i #l #i #b #r #i #u #m #e #q #u #i #p #m #e #n #t #o #r #e #q #u #i #l #i #b #r #i #u #m #u #n #u #b #i #q #u #i #t #o #u #s:#q2#u+#e0#sg#t,#i3#o+#n:#n #a3#i9#rb#e*#q*#u #i`#v #a!#l #e1#n+jt@#-
produces the zsh shell script (127)
for i in n n n n n;echo -n questionnairequipagerequipmentorequilibriumequipmentorequilibriumunubiquitousquestionnairequivalent-
which in turn of course outputs (500)
questionnairequipagerequipmentorequilibriumequipmentorequilibriumunubiquitousquestionnairequivalent-questionnairequipagerequipmentorequilibriumequipmentorequilibriumunubiquitousquestionnairequivalent-questionnairequipagerequipmentorequilibriumequipmentorequilibriumunubiquitousquestionnairequivalent-questionnairequipagerequipmentorequilibriumequipmentorequilibriumunubiquitousquestionnairequivalent-questionnairequipagerequipmentorequilibriumequipmentorequilibriumunubiquitousquestionnairequivalent-
when executed. This is worth 1139 points (assuming my calculations are correct).
Early version (saved here because it's much easier to try to understand)
The Befunge-98 program
:#m #e!#n!#tb#o9#r*#e*#qj#ub#i9#l*#i:#b:#r:#u2#m+#f,#r,#e5#q+#u,#ec#s+#t,#i8#o4#n*#n,#a #r #i #e #q #u #i #p #m #e #n #t #r #i #u:#m2#p+#h0#ug#n,#u3#b+#i:#qf#uf#i*#t`#o5ju @s#_
produces the Bourne shell script (including a bunch of trailing spaces)
echo mentorequilibrumfrequestionnariequipmentriumphunubiquitous
Here is the same program transposed, for easier reading.
: !!b9**jb9*:::2+,,5+,c+,84*, :2+0g,3+:ff*`5 #
########################################################j@_
mentorequilibrumfrequestionnariequipmentriumphunubiquitous
1I don't get the Rule 3! What do you mean? Can you write down an example? – Vereos – 2014-01-18T14:29:02.613
If the sourcecode is this:
print("hello")
then the output from the generated code must be exactly:i(eo
. The output from the generated code can therefor be maximum 500 characters long (since the original sourcecode is limited to 1500 characters). – Plarsen – 2014-01-18T14:34:25.1732@Plarsen: Shouldn't you update your question then? Now it says "Maximum 250 characters" for the generated program, but in your comment you say "500 characters". – ProgramFOX – 2014-01-18T14:43:50.477
1the maximum sourcecode size for the generated program is 250, but it can output up to 500 characters (if the original sourcecode is 1500 characters) – Plarsen – 2014-01-18T14:45:02.670
Am I correct in thinking that 'mentor' and 'equipment' should get a bonus of 2 points for containing 'me'? – Kendall Frey – 2014-01-18T15:44:48.473
Will i get penalties for using words to often? (
mememememe
->2+1+0-1-2
) – quasimodo – 2014-01-18T15:48:59.320yes, both
mentor
andequipment
containsme
and give extra points for the words, but the wordme
can only give you a total of 3 points. First occurance gives 2 points, second: 1 point and after that zero points. – Plarsen – 2014-01-18T15:49:03.733@quasimodo no, no penalties – Plarsen – 2014-01-18T15:49:34.237
I wonder how many people will write a program to write their initial program... – Kendall Frey – 2014-01-18T17:40:54.993
How does rule #3 affect newlines and multibyte characters? Do we count every third octet, or every third codepoint, or what? And I'm guessing newlines count as characters as well? – FireFly – 2014-01-18T20:04:31.640
newlines is counted as 1 character. 1 byte is 1 character and the other way round, sorry for not clarifying that. – Plarsen – 2014-01-18T20:07:08.110