scene.org File Archive

File download

<root>­/­demos­/­artists­/­amix/herpes_linuxpc_python3x_ctg59.zip

File size:
38 198 bytes (37.30K)
File date:
2023-03-31 05:45:01
Download count:
all-time: 8

Preview

  • code.png 19.92K
  • file_id.diz 1.16K
  • star6.png 18.92K
  • star6.py 135B

file_id.diz

<dropping pystar>

Author: <Herpes / Sign>
Category: <Christmas Challenge>
System:   <PC>
Language: <Python 3.x>
Len source code: <# 135 bytes>
Len exe file:    <# bytes>
Len code only:   <# bytes> (valid for assembler only; length of executable without BASIC stub)
Instructions:
<python star6.py>
<start from shell; install python 3.x; in shell preferably linux bash run 'python star6.py'>
Description:
<Still hooked to slicing- my 6th iteration. Data is now coded in binary.
additionally used function renaming (newly learned) so now I'm down to
135bytes>
Comments:
<After the first submission with the size 326 bytes to be accepted for
the challenge, I kept thinking how to improve my "wordy" encoding.
I switched to binary encoding and managed to go down in total to
135 bytes because I additionally found out, that in python one can
rename functions (hooray!). Nevertheless I would've been beaten by all
other python submissions. Later I found out the separeate star-data
approach is not the best - a simple loop from 0-16 would've done the trick.
But I would NEVER EVER have found that trick out by myself. ;-)
This small learning steps were presented at the CTG59 Spektral/Graz>