Sheerpower by Touch Technologies, Inc.
Sheerpower by Touch Technologies, Inc.
  • 75
  • 4 409
The sieve of Eratosthenes
This program calculates prime numbers less than a user-defined upper bound using the ancient algorithm known as the "Sieve of Eratosthenes," developed by a Greek mathematician around 2200 years ago. This algorithm efficiently identifies all prime numbers up to the specified limit. The program initializes an array, performs the sieving process to eliminate non-prime numbers, counts the primes, and then displays them. It highlights Sheerpower features such as constant definitions, timer functions, and array manipulations, demonstrating a classic method for prime number calculation with historical significance.
Переглядів: 21

Відео

A simple Guessing Game
Переглядів 24День тому
This simple guessing game in Sheerpower uses random number generation, conditional statements, and printed output. The RND() function generates a random number between 1 and a specified maximum value. The game generates a random number between 1 and 5; enter your guess in variable X and run the code to see if you can guess the number. A new random number is generated each time you play.
The Right Tool for the Right Job
Переглядів 20День тому
Sheerpower is the ideal tool for creating and maintaining large business applications, especially where business rules frequently change. It offers extremely fast compiling times (over 500,000 lines of code per second), perfect precision math without rounding errors, and highly efficient string handling. It includes a built-in high-speed database engine and connects to many others. Sheerpower i...
Browser Scripting
Переглядів 76День тому
Sheerpower can be used for dynamic web development through its InterNet Services Web Server (SPINS_WEBSERVER). Start the server by running spins_webserver in the command prompt. Confirm any network access requests from Windows. Verify the server by navigating to localhost/ in your browser, which should display the SPINS_WEBSERVER index page. To change the default root folder, use the -wwwroot o...
Installing Sheerpower Step by Step
Переглядів 32День тому
Sheerpower can be quickly installed on any recent version of Windows in under two minutes. After downloading the installer, follow these steps: double-click the installer, select "More info," and then "Run anyway." Click "Next," agree to the terms by checking the box and clicking "Next" again. Proceed by selecting "Next," then "Install," and finally "Finish." This straightforward process will h...
Sheerpower and Visual Studio Code VScode
Переглядів 30День тому
Visual Studio Code (VSCode) is a popular Integrated Development Environment (IDE) with extensions for many programming languages, including Sheerpower. After installing VSCode, search for and install the two Sheerpower extensions. These extensions provide real-time syntax checking, contextual information on built-in functions and custom routines, and easy navigation to routine headers with the ...
Writing and Running Sheerpower Programs
Переглядів 29День тому
Sheerpower programs are written in text files with .spsrc for primary programs and .spinc for include files. Sheerpower features its own Integrated Development Environment (IDE) called SPDEV, though any text editor, such as Visual Studio Code (VSC), can be used. Sheerpower has extensions for VSC to streamline writing, debugging, and running code. To validate and run your program in SPDEV, use t...
Strings as Code
Переглядів 55День тому
Sheerpower allows strings to contain executable code, facilitating the creation of business-specific scripting languages. Using the eval() function, you can compile and evaluate string content at runtime. For example, a string containing a*b pi can be evaluated, with the result stored in a dynamic variable. Additionally, Sheerpower supports "code manifestation" through the execute statement, wh...
Exception Handling
Переглядів 33День тому
Exception handling in Sheerpower intercepts runtime exceptions, allowing a block of code to handle them. Without an exception handler, Sheerpower provides an exception message and either stops execution or retries the offending statement. There are two types of handlers: ATTACHED and DETACHED. ATTACHED handlers, similar to try/catch blocks in other languages, use the WHEN EXCEPTION IN statement...
Create Your First ARS Database Table
Переглядів 26День тому
Sheerpower's integrated database system, ARS (Advanced Record System), offers high-performance read/write access with record-level concurrency, capable of over a million accesses per second. To create an ARS table, you first need to install Sheerpower, a process that takes less than five minutes. Once installed, open the SPDEV.EXE program. In this example, you will create a PAYROLL table with f...
Build Generalized Database Utilities
Переглядів 23День тому
Sheerpower's full access to database table metadata allows for the development of generalized utilities through the ASK TABLE statement. This statement queries various characteristics of a table, such as field descriptions, prompts, positions, lengths, headings, print masks, screen masks, and help messages, enabling dynamic inspection of table structures within a program. For example, you can o...
Integrated Database Access
Переглядів 28День тому
Sheerpower seamlessly integrates database operations within the language, enabling efficient table management. Using the open table statement, tables can be accessed and manipulated with ease. The EXTRACT/END EXTRACT block allows for iterating through table rows, creating collections that can be filtered and sorted. Various key lookup methods, including exact, partial, and range lookups, facili...
Building and Deploying Sheerpower Programs
Переглядів 23День тому
Building and deploying Sheerpower programs involves compiling and linking to create a protected, non-viewable, and non-modifiable version of your code. The process generates a .sprun file, a compressed and base64 encrypted text file that hides the source code. To execute a .sprun file, the recipient needs Sheerpower installed or a renamed copy of the sp4gl.exe file (e.g., MyProgram.exe) placed ...
Calling Procedures Written in Other Languages
Переглядів 20День тому
Sheerpower can call procedures written in other languages if they are in a DLL as a global routine. This is done using the call statement, which executes library routines, saving the need to write code from scratch. The DLL must be specified in a library statement. Routines within a DLL are called by the call statement followed by the routine's name in quotes. Most arguments are passed by value...
Using Modules for Further Code Segmentation
Переглядів 18День тому
Using modules in Sheerpower allows for further segmentation of your code, enhancing development and maintenance. You can group related routines into a module, making it easier to manage complex codebases. By including the module with the %include directive in your main code, you can reference the module's data and routines by prefixing their names with the module name and a dot. This modular ap...
Program Segmentation using Include Directives
Переглядів 22День тому
Program Segmentation using Include Directives
Passing Clusters to Routines
Переглядів 18День тому
Passing Clusters to Routines
Passing Simple Parameters to Routines
Переглядів 17День тому
Passing Simple Parameters to Routines
Routines and Variable Scoping
Переглядів 25День тому
Routines and Variable Scoping
Transcendental Math Functions
Переглядів 212 дні тому
Transcendental Math Functions
Common Math Functions
Переглядів 322 дні тому
Common Math Functions
Date and Time Functions
Переглядів 232 дні тому
Date and Time Functions
Artificial Intelligence AI Chat
Переглядів 322 дні тому
Artificial Intelligence AI Chat
JSON Related Functions
Переглядів 292 дні тому
JSON Related Functions
Strings to Reals
Переглядів 302 дні тому
Strings to Reals
SPRINTF String Formatting
Переглядів 342 дні тому
SPRINTF String Formatting
REGEX String Functions
Переглядів 322 дні тому
REGEX String Functions
String Comparing and Searching
Переглядів 332 дні тому
String Comparing and Searching
String Manipulation Functions and Features
Переглядів 332 дні тому
String Manipulation Functions and Features
String Handling
Переглядів 392 дні тому
String Handling

КОМЕНТАРІ

  • @desscott5798
    @desscott5798 3 роки тому

    This is so helpful because I get this error all the time from Chrome! So luck I now know how to fixt this- thank you!

  • @sheerpower4gl
    @sheerpower4gl 3 роки тому

    This tutorial was inspired by our work with the Sheerpower language. The performance of SheerPower, like other Windows programs, can be greatly enhanced by increasing the amount of virtual address space.

  • @sheerpower4gl
    @sheerpower4gl 3 роки тому

    By the way, this method assumes that you have disk space available to make the larger page file. If you don't, Windows will not allow you to make the larger page file. Also, if you are increasing memory in order to run programs that would not run before, they will not run as quickly as they would if you buy more RAM. But, they will run! As a test, we used Sheerpower to process a 150 million row spreadsheet. And, using this method, we eliminated the "out of memory" errors that we had been experiencing.

  • @MisterDan
    @MisterDan 3 роки тому

    My friend Rick pointed out that because of the way MB and GB are calculated, that 64GB is actually 65,535MB and not 64,000MB. Many thanks, Rick!

  • @williamdaul3207
    @williamdaul3207 3 роки тому

    makes me want to program again. niced video.

    • @sheerpower4gl
      @sheerpower4gl 3 роки тому

      Thanks that's one of the goals when designing Sheerpower.