SIMPL 1.2.1 is a consolidation release. There is nothing new in the language this time: instead, I put SIMPL and GU{I}DE through a stress test, and fixed everything it found. Along the way, programs got faster, the IDE got quicker, and a few parts of the interface got a careful polish.
Faster everywhere
Programs run from a third faster to twice as fast, depending on what they do: loops and arrays are about twice as fast, in GU{I}DE and from the command line. Programs that print a lot are much faster in the IDE: 5,000 lines of OUTPUT took almost 2 seconds, now they take a few hundredths, and the window stays smooth while a program runs. Typing in a long program no longer lags, and searching (Ctrl+F) in the editor, the console and the User Manual is instant.
Keyboard Shortcuts, redesigned
The shortcuts window is now organized by task, one action per row, in the words of the menus, with its keys drawn as keys. It always fits the screen, even on a small laptop.
Start typing to filter: by name (save, run) or by keys (ctrl s, f5).
Zoom that works with UI Size
UI Size sets the size of the whole interface, and zoom (Ctrl++, Ctrl+-, Ctrl+0) works on top of it, from 70% to 200%, as in a browser. It now takes in the Inspector too: Variables, Call Stack and the Trace Table grow and shrink with the code, keeping the column widths you set. Your previous text size carries over.
Files from other programs
A program or a data file saved by Notepad or Excel with a BOM (an invisible mark at the start of the file) could stop with an error on a line that looked perfectly fine. Files in the older Windows encoding, with letters such as à and é, couldn't be opened at all. Both now just work, and GU{I}DE saves such programs as UTF-8.
And also
The dividers between the panels light up under the mouse, so they're easier to find, and scroll bars have a cleaner look, with a rounded slider and no arrows. Dates such as 25/12/2026 are colored as one value, which also shows when something you meant as a division is read as a date. The console keeps the last 10,000 lines, so a program stuck printing in an endless loop can't fill the memory. Dialogs taller than the screen now scroll, with their buttons always in view. And several error messages now say more clearly what went wrong and what to do.
Before you upgrade
Programs written for 1.2 run unchanged, with a few exceptions: mistakes that SIMPL used to let through in silence now stop with an error that explains them.
- Declaring a variable a second time with another type.
- An array whose first bound is greater than the second, such as
ARRAY[5:1]. LEFT,RIGHTorMIDwith a negative number of characters.- Raising a negative number to a fractional power, or a BOOLEAN to any power.
- A REAL calculation going past the largest REAL, which used to go on with
inf.
None of the programs in the User Manual, in lib or in programs does any of these.
How to upgrade
Put the new simpl.exe (Windows) or simpl.appimage (Linux) in the same folder as the old one, replacing it. Your settings, your programs and your libraries are kept. No file in lib or programs has changed in this release, so there is nothing else to do.
Full list of changes
Faster
- Programs run from a third faster to twice as fast.
- Programs that print a lot run much faster in GU{I}DE, and the window stays smooth while a program runs.
- Typing in a long program no longer lags.
- Searching in the editor, the console and the User Manual is instant, and searches once you stop typing.
The IDE
- Zoom works on top of UI Size, from 70% to 200%, and takes in the Inspector.
- Keyboard Shortcuts redesigned, with a search box.
- The dividers between the panels light up under the mouse; scroll bars have no arrows, a slider with rounded ends, and react more gently.
- Dates are colored as one value.
- The console keeps the last 10,000 lines.
- Files with a BOM, and files in the Windows-1252 encoding, can be opened, run, imported and read with
READFILE.
Error messages
OUTPUTwith nothing after it now says OUTPUT needs a value to show, on its own line.^A[2]and^R.Fieldnow explain that^takes the address of a whole variable.- A field of an object not yet created with
NEWalways says so. - A program that can't be opened gets a message in plain words.
Fixed
- Searching the User Manual closed GU{I}DE.
- Integers of more than 4,300 digits stopped with an internal error.
- A negative CASE label (
-1 :) after a statement was read as a subtraction. - The field of an object in an array (
Pupils[i].Name) couldn't be read. - A number too large for a REAL stopped with an internal error, or became
inf. - The console's input line disappeared with large text.
- Dialogs taller than the screen were cut off.
- About and Keyboard Shortcuts flickered as they opened, and the User Manual's scroll bar jumped for a couple of seconds after opening.
- At a smaller UI Size, the User Manual opened much wider than its text.
- The bottom of the editor could flicker without end with a long line.
- On Linux, scroll bars flashed while a divider was dragged or the window resized, and so did a thin light frame at the bottom of the console. Scroll bars now have no arrows and a slider with rounded ends, as in VS Code and most modern apps.
- On Linux, the User Manual's scroll bar appeared a moment after its text, moving it slightly to the left.
- On Windows, the whole window shook while it was resized.
- On Windows, the User Manual opened white for a moment, and dialogs opened away from the center of the window, too high when it was maximized.
- On Windows, disabled menu commands (such as Stop when no program runs) looked blurred on the dark theme.
- Brackets and other symbols were sometimes colored as keywords.
SIMPL is a free download for Windows and Linux. Questions, ideas and bug reports are welcome on the community board.