![]() |
A Brief Introduction |
Sheerpower is a programming language designed for business applications. It offers fast compilation, accurate math (16 decimal digits of guaranteed accuracy), and a simple syntax. Developers can build scalable, efficient programs for handling large volumes of data.
This tutorial introduces key features of Sheerpower, such as high-precision math, fast compiling, dynamic data clustering, and a built-in web server.
Every Sheerpower program may begin with an optional PROGRAM
statement,
which assigns a program name used in crash reports, profiling,
and other system-generated files.
Use STOP
or END
to end a Sheerpower program.
Both are optional. They close open files, flush buffers, unlock
resources, and stop execution.
END
also marks the logical end of the source file.
If it’s missing, Sheerpower automatically inserts it at the end
of your code.
Sheerpower’s REAL
data type guarantees exact decimal results
with no rounding errors. Internally, it stores numbers as two 64-bit integers—
one for the integer part (up to 18 digits) and one for the fractional part
(up to 16 digits). This design provides precision critical for business and
financial applications, where small errors can lead to significant issues.
By using integer-based operations for addition, subtraction, and multiplication,
Sheerpower achieves high performance compared to traditional decimal arithmetic.
For example, adding 0.1
and 0.2
in
Sheerpower yields exactly 0.3
, avoiding the
floating-point inaccuracies common in other languages. This
eliminates the need for tolerance-based comparisons often required
to handle binary floating-point imprecision.
This ensures reliable calculations for applications like financial software.
Sheerpower compiles at over 500,000 source lines per second on a modern PC — meaning even large business applications compile within a second or two. For example, a build of 872,133 lines (with 419 include files) compiled in under 2 seconds on a $1200 mini-server. This speed virtually eliminates the compile–wait–test cycle that slows development in other languages.
Sheerpower's cluster feature works like an in-memory spreadsheet, processing hundreds of thousands to millions of rows per second depending on data complexity and available system resources.
Sheerpower includes a built-in statistics package with over 30 functions for analyzing data. These functions can be used to identify trends, variability, and relationships in large datasets. Applications include finance, manufacturing, science, and more. For details, see Sheerpower Statistics .
Sheerpower includes a built-in web server optimized for memory-to-memory data transfers. This enables very fast web-based transactions with minimal resource usage. For more details, see the tutorials on Sheerpower Internet Services (SPINS) , Browser Scripting , and Fast-CGI for RESTful Endpoints .
Sheerpower is designed for business applications, with a focus on speed, precision, and long-term reliability. It is not intended for system-level programming or memory-limited environments. Key features include:
REAL
numbers offer 16-digit decimal precision with no rounding errors.PROGRAM
, STOP
, or END
statements.
Hide Description
|
|
Enter or modify the code below, and then click on RUN |
Looking for the full power of Sheerpower?
Check out the Sheerpower website. Free to download. Free to use. |