frno7 / forthmath Goto Github PK
View Code? Open in Web Editor NEWUseful mathematical words in Forth.
License: GNU General Public License v3.0
Useful mathematical words in Forth.
License: GNU General Public License v3.0
Try out some form of literate programming to document the Forth code. Particularly illuminating cases in the test suite could serve as examples in the text. Document formats could include HTML, Markdown, PDF, etc. Resources:
Is there are usable and portable lambda expression implementation for Forth? As an example,
: prime' ( n n -- n ) nip true ; ( True to obtain next prime number. )
: prime ( n -- n ) 0 swap ['] prime' traverse-primes ;
could be stated more succinctly as:
: prime ( n -- n ) 0 swap '[ ( n n -- n ) nip true ]' traverse-primes ;
Resource: Adding lambda expressions to Forth
Standard stack effect notation with suffixed types is somewhat undescriptive and less readable than desired. For example, the standard declaration of the extended Euclidean algorithm is:
\ Extended greatest common divisor. Bézout’s identity n1·n3 + n2·n4 = n5 holds.
: extended-gcd ( n1 n2 -- n3 n4 n5 )
Can the parameter names be improved in some standard way? For example (nonstandard):
\ Extended greatest common divisor. Bézout’s identity p·m + q·n = d holds.
: extended-gcd ( p q -- m n d )
Forth style conventions could be improved, especially naming. Resources:
Test compatibility with various Forth systems. Does it work with for example 8-bit, 12-bit, 16-bit, 18-bit, 24-bit, 26-bit, 31-bit, etc. cells as well as valid but odd implementations?
The test suite probably needs at least 16 bits to be useful. Can it be made to adapt?
Resource: The Forth standard portability guide
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.