Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement ANS Core Extension words #5

Open
42 of 48 tasks
remko opened this issue May 27, 2018 · 5 comments
Open
42 of 48 tasks

Implement ANS Core Extension words #5

remko opened this issue May 27, 2018 · 5 comments
Labels
enhancement New feature or request

Comments

@remko
Copy link
Owner

remko commented May 27, 2018

Implement the most interesting ANS Core Extension words

  • .(
  • .R
  • 0<>
  • 0>
  • 2>R
  • 2R>
  • 2R@
  • :NONAME
  • <>
  • ?DO
  • ACTION-OF
  • AGAIN
  • BUFFER:
  • C"
  • CASE
  • COMPILE,
  • DEFER
  • DEFER!
  • DEFER@
  • ENDCASE
  • ENDOF
  • ERASE
  • FALSE
  • HEX
  • HOLDS
  • IS
  • MARKER
  • NIP
  • OF
  • PAD
  • PARSE
  • PARSE-NAME
  • PICK
  • REFILL
  • RESTORE-INPUT
  • ROLL
  • S\"
  • SAVE-INPUT
  • SOURCE-ID
  • TO
  • TRUE
  • TUCK
  • U.R
  • U>
  • UNUSED
  • VALUE
  • WITHIN
  • \
@remko remko changed the title Implement ANS Core Extension word set Implement ANS Core Extension words May 27, 2018
@remko remko added the enhancement New feature or request label May 20, 2022
@farvardin
Copy link

@remko

TIME&DATE could also be interesting (see https://forth-standard.org/standard/facility/TIMEandDATE) for example to make less predicable results.

The "Plant" in Thurtle always gives the same pattern.

@remko
Copy link
Owner Author

remko commented Feb 22, 2024

@farvardin That's a good one, but since this depends on the environment (and I want to keep the dependencies of the core minimal), I'm probably going to add it to the JavaScript wrapper, and provide an easy way to load these extensions from within JavaScript.

@farvardin
Copy link

@remko I don't really know how WA works, but I was thinking to use it with JS, since the browser has access to the system's clock :)

@remko
Copy link
Owner Author

remko commented Feb 23, 2024

@farvardin Not sure I want to add TIME&DATE anymore (i want to keep the system dependency as simple as possible, and computing time and date is not trivial), but for the purpose of bringing randomness into the system, I added a RANDOM word (and adapted the Plant example).

@farvardin
Copy link

@remko sure, random will probably be even more useful for most people, and given thurtle's goal!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants