1
\$\begingroup\$

(SmileBASIC is a BASIC interpreter for the Nintendo 3DS)

SmileBASIC has a special "folder" named SYS that contains built in resources, such as the default sprite sheets, font, and sample programs. It cannot be modified, since it's not actually a folder; it's stored in the game's ROM. (It's just treated as a folder so you can easily load files from it)

Every copy of SmileBASIC has the exact same files in SYS, and SB would not work without them.

The "clear everything" command, ACLS, loads the default sprite sheets and font from SYS, and they are also loaded automatically whenever a program is run from the main menu. The FONTDEF (reset font) command also loads from SYS

My question: "Is it ok to load files from SYS without them counting towards the program size?"

\$\endgroup\$
  • 1
    \$\begingroup\$ I'm not familiar with the environment, but how would this compare/contrast to built-in libraries in e.g., Python or Mathematica? \$\endgroup\$ – AdmBorkBork Feb 7 '17 at 16:45
3
\$\begingroup\$

There are no files in SYS that contain library functions, only samples, default assets, and a table of kanji characters. I personally don't consider the fact that some builtins load from SYS as loading an external file, and I can't imagine the default assets to be of much use to any sort of challenge. If we make it a "rule" that every program assumes some default environment, this isn't really an issue.

\$\endgroup\$
  • 1
    \$\begingroup\$ It's already a rule. We define a programming language by its implementation. Since this folder is part of the implementation, it can be accessed without penalty, assuming there's no import required. \$\endgroup\$ – mbomb007 Feb 7 '17 at 19:27

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .