Sheerpower Logo

A Brief Introduction


Welcome to Sheerpower Programming

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.

Note for Beginners:
In Sheerpower, your code expresses intent. The language automatically manages complex systems like memory handling and task execution. You don't need to worry about low-level implementation details. This allows developers to stay focused on writing clean business code.

Simplified Code Structure & Syntax

program hello_world print "Hello, World" end

Program Declaration

A source file may begin with an optional PROGRAM statement. This sets the program name used in crash reports, profiling, and other system-generated files. The file may end with an optional END statement that marks the logical end of the program.

Stopping the Program

Use STOP or END to terminate a program. Both perform a normal shutdown: open files are closed, buffers flushed, and resources released.

  • STOP — can appear anywhere; execution halts at that line.
  • END — typically appears once at the bottom to mark the file’s end. If omitted, the physical end of the file is treated as the program’s end.

Optimized Decimal-Precise Arithmetic

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.

print (0.1 + 0.2) - 0.3 // Outputs exactly 0.0

This ensures reliable calculations for applications like financial software.

High-Speed, Uninterrupted Text Processing

Sheerpower is optimized for the heavy text work common in business apps. It manages memory so efficiently that it never needs to pause to "clean up," a process that can cause frustrating "hiccups" or "freezes" in many other languages. This approach ensures your application is always fast and responsive.


Sub-Second Compilation

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.


High-Performance Data Clusters

Sheerpower's cluster feature works like an in-memory spreadsheet, processing hundreds of thousands to millions of rows per second on a modern PC depending on data complexity and available system resources.

Note: Cluster arrays can handle extremely large datasets (tested with hundreds of millions of rows) with fast key lookups, limited primarily by available RAM.

Comprehensive Statistics Package

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 .

Web Server Integration

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 .


Secure Deployment of Applications

Building a Sheerpower program is like compiling and linking in traditional languages. Deployment is optional and does not change runtime behavior. It packages your app for delivery, protects your source, enables secure distribution, and reduces startup times.

  • No behavior change: Deployed apps run identically to source-based runs.
  • Single-file delivery: Creates a unity image that bundles your program and all include files.
  • Source protection: Compaction and encryption virtually eliminate inspection and tampering.
  • Secure distribution: Supports integrity checks and controlled updates.
  • Faster startups: Pre-merged include files shorten cold-start time.

Terminology: A “unity image” is a single packaged artifact containing the program plus its required include files.


Summary

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:

  1. High-Precision Math: Ensures accuracy for financial and data-focused applications.
  2. High-Speed Compilation: Enables fast development and quick testing cycles.
  3. Clusters for Data Processing: Handles large datasets efficiently.
  4. Integrated Web Server: Supports many transactions per second with low resource use.
  5. Backward Compatibility: Ensures continuity and reduces maintenance costs.
  6. Secure Deployment: Protects source code from prying eyes and enables secure, fast, portable distribution — ideal for commercial software.
  7. Reliability: Eliminates common failure modes like stack overflows and unpredictable performance pauses, ensuring stable operation under load.

In Conclusion:

Sheerpower empowers developers to build fast, accurate, and scalable business software. It excels at applications that process large data volumes and demand reliable performance.

(Show/Hide Sheerpower Introduction Takeaways)
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.