Sheerpower Logo
A.2  Who Uses Sheerpower

Sheerpower isn't a one-size-fits-all solution; it's specifically designed for developers who are responsible for creating, maintaining, and enhancing large-scale, mission-critical business applications. In the world of programming languages, Sheerpower stands out with its high-level language features, which are essential for rapid application development and efficient debugging. These features make Sheerpower an ideal choice for developers who prioritize efficiency and need to deliver reliable, high-performance software.


One standout feature is its status as a Memory Safe Language. With Sheerpower, developers can bid farewell to concerns like memory leaks, buffer overflows, memory allocations/deallocations, and the intricacies and delays caused by memory garbage collection. Sheerpower gracefully handles these intricate internal considerations, liberating developers to focus on crafting exceptional applications.

Key Features

  1. Rapid Business Development Environment: Sheerpower offers a dynamic platform for swiftly advancing business development, empowering developers to transform ideas into functional applications with remarkable speed.
  2. Perfect Precision Math: Sheerpower delivers unmatched accuracy in mathematical calculations, ensuring exact results without floating-point errors. This precision is crucial for applications like financial software where small errors can have significant consequences.
  3. Integrated High-Speed Database Engine: Sheerpower's integrated database engine efficiently manages data, enhancing application performance through efficient high-speed storage and retrieval.
  4. Focused Language Constructs: Sheerpower's constructs are designed to simplify complex coding tasks, enabling developers to concentrate on crafting robust business rules.

The PRINT statement is the primary method for outputting results in Sheerpower. Multiple items can be printed at once by separating them with a ;, which avoids adding spaces between items. For advanced formatting, use the SPRINTF() function.


print 1.2 - 1.0 print 'a';'b';'c' print sprintf('%s is %r %p old.', "Sally", 10, "year")

Sheerpower eliminates penny-rounding errors. Unlike other languages, simple math operations always give perfectly accurate results by default. For example:
print (10.7 + 3.2)
will correctly return exactly 13.9 in Sheerpower, unlike some other languages that may return an approximate result.

Highly Unique Features for Business Applications

Sheerpower offers features specifically designed for high-performance business applications, ensuring ease of use and precision. These features include:

  1. Rapid Business Development Environment: Sheerpower allows developers to quickly transform ideas into functional applications, enabling rapid iteration and deployment.
  2. Perfect Precision Math: Sheerpower's patented Perfect Precision Math eliminates floating-point errors, ensuring perfectly accurate calculations. This is especially important in fields like finance, where even small inaccuracies can have significant impacts.
  3. Integrated High-Speed Database Engine: Sheerpower's integrated engine simplifies data management, offering high-performance operations with secure access and efficient storage.
  4. Context-Aware Dynamic Type Handling: Sheerpower automatically adjusts database meta-data data types based on context, minimizing the need for manual conversions and ensuring seamless operations.

    Note: In Sheerpower, variable types must be consistent once declared. A variable such as a = 18 cannot later be used in a string context such as a + '9' without producing a compile-time error. This behavior enforces type safety in variables, ensuring more predictable results. However, table field references (e.g., payroll(salary)) are treated differently, as the field's data type can only be determined at runtime. This allows for dynamic type handling when accessing fields from database tables, but does not apply to regular variables.
  5. Lazy Write Mechanism for Database Operations: Sheerpower optimizes performance by deferring database write operations, thus improving application efficiency.
  6. Custom Data Type with Formatting: Developers can define custom data types with predefined output formats, improving code readability and precision.
  7. Default Variable Data Types Based on Suffixes: Sheerpower simplifies variable declarations by automatically assigning types based on suffixes, such as $ for strings, % for integers, and ? for booleans.
  8. Built-in Protection Against SQL Injection: Sheerpower’s database operations are abstracted, meaning developers don’t directly manipulate SQL queries. This built-in structure ensures security by preventing SQL injection attacks through automatic query handling.

Sheerpower's PRINT statement provides flexible output, with advanced formatting options available through the SPRINTF() function.


Using these tutorials

For these tutorials, your code runs inside a safe environment called a "sandbox." This sandbox ensures safety and security by restricting certain features, such as file deletion or direct interactions with the operating system, to prevent unintended consequences. If your application requires these capabilities, you can develop outside the sandbox in a full Sheerpower environment. While in the sandbox, your code will not be able to access certain Sheerpower features, like deleting files or executing OS-level commands. Don't worry if you accidentally attempt to use one of these restricted features, you will receive a warning. Additionally, in the sandbox, program execution is limited to about one second, and output is capped at around 100KB in size.


Each tutorial includes action buttons:
  • Run Runs Sheerpower sample code
  • Reset Resets sample code back to default
  • Clear Clears the sample code window
  • Home Goes to the tutorials homepage
  • Previous Goes back to the previous tutorial
  • Next Continues to the next tutorial

Under the buttons are four fill-in fields, one for each of the variables a$, b$, x, y. You can use these four variables in the sample code or make your own variables.
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.
Wide screen