thehappycheese / uiua-keypad

Uiua Keypad for vscode (unofficial)
MIT License
2 stars 1 forks source link

Question: Additonal words in red at the end of all functions #5

Open rpherman opened 20 hours ago

rpherman commented 20 hours ago

After all the functions and & words in the keyboard window, there are a few dozen words in red like: "e i NAN W MaxInt Os Family Arch ExeExt DllExt Sep ThisFile...." etc. What are these for? Is this being pulled from somewhere else? Thank you! Great keyboard otherwise.

thehappycheese commented 6 hours ago

After all the functions and & words in the keyboard window, there are a few dozen words in red

Hi @rpherman Thankyou I am glad you are geting some use from it 😁

The red words are constants that are part of Uiua (I think they are technically functions that take no arguments and return one value to the stack)

They are automatically extracted from the Uiua source code itself; When this extention is built it compiles a small Rust executable that includes the uiua crate... this is then executed (at build time only) to update the metadata used to render this keypad.

In more recent versions there are a lot more system functions and a lot more constants... it has made the button layout not quite as nice as it was in the past. It is already quite challenging to accomodate various screen sizes and aspect ratios without any hidden buttons.