SIMPL 1.3.3 is out, a free download for Windows and Linux. The standard library grows from six libraries to eight, with more than 110 new routines and eight new classes, and from now on an update of SIMPL brings the new copies of the libraries and programs with it. Hints now speak about your program, and a file the system refuses is explained in words.
Upgrading from 1.3.2? Three changes in the libraries can affect your programs: see Upgrading from 1.3.2 at the end.
Help others find SIMPL
SIMPL is made by one independent developer, with no company or advertising behind it: it grows when the people who find it useful tell others about it. If you enjoy SIMPL, whatever you use it for, here is how you can help others find it:
- Rate it on itch.io: simpl-pseudocode.itch.io/simpl/rate. Five stars take ten seconds and help SIMPL show up where people look for tools. Made a game, solved a tricky problem, or just ran your first program? Add a review and tell the story: it’s what convinces the next person to hit Download.
- Like it on AlternativeTo: SIMPL on AlternativeTo. A like takes one click; a detailed review helps people choose the right tool, and yours might be the one that tips them toward SIMPL.
- Share the page with anyone it could help, or on social media: simpl-pseudocode.itch.io/simpl.
Thank you! And if something doesn’t work as it should, tell me on the community board.
A bigger toolbox

Splitting a sentence into words, sorting with four different algorithms, a median or a standard deviation, the day of the week of a date, a dictionary that counts words: what you used to write from scratch is now one IMPORT away. Each new routine does what the same function of Python does, and Appendix E of the manual describes each one with an example.
mathlib: rounding (Floor,Ceiling,Round,RoundTo),Sign,Clamp, even and odd numbers, square roots and perfect squares, digits, combinations and permutations,Fibonacci,Hypotenuse,Exp, trigonometry in radians and degrees, number bases from binary to hexadecimal, random numbers and dice.IsPrimeis much faster on large numbers.stringlib: searching (Find,FindLast,CountSubstring,StartsWith,EndsWith), replacing, padding and centering, trimming one side,CapitalizeWords,CaesarShift, tests on characters and words, and the proceduresSplit,SplitWordsandJoin.arraylib: four more sorting algorithms (selection, insertion, merge and quick sort),IsSorted,Shuffle, inserting, removing, filling and rotating elements, the position of the largest and smallest, and the routines for arrays of REALs and of STRINGs.iolib: reading and writing CSV lines, the format spreadsheets save.structures: the classesStringStackandStringQueue,ListandStringList,PriorityQueue,Dictionary,Tally(a Dictionary that counts) andBinaryTree, the tree of Chapter 22.- New
statlib: median, mode, range, variance, standard deviation and percentiles. - New
datelib: leap years, days in a month, the day of the year and of the week, days between two dates, the names of days and months.
The new names. A program of your own that defines one of these and IMPORTs their library stops at the IMPORT (see Compatibility). statlib IMPORTs arraylib, so a program that IMPORTs statlib has the names of arraylib too.
mathlib: ArcTan, Ceiling, Clamp, Combinations, Cos, CountDigits, Degrees, DigitSum, Exp, Fibonacci, Floor, FromBase, FromBinary, FromHex, Hypotenuse, IntegerSqrt, IsEven, IsOdd, IsPerfectSquare, Permutations, Radians, RandomInteger, RandomReal, RollDice, Round, RoundTo, Sign, Sin, Tan, ToBase, ToBinary, ToHex.stringlib: CaesarShift, CapitalizeWords, Center, CountSubstring, CountWords, EndsWith, Find, FindLast, IsDigit, IsLetter, IsLower, IsUpper, IsWholeNumber, Join, PadLeft, PadRight, Replace, ReplaceFirst, Split, SplitWords, StartsWith, TrimLeft, TrimRight.arraylib: AverageReals, BinarySearchReals, BinarySearchStrings, BubbleSortReals, BubbleSortStrings, FillArray, InsertAt, InsertionSort, IsSorted, LinearSearchReals, LinearSearchStrings, MaximumReals, MaximumStrings, MergeSort, MinimumReals, MinimumStrings, PositionOfMaximum, PositionOfMinimum, PrintArrayReals, PrintArrayStrings, QuickSort, QuickSortPart, RemoveAt, RotateArray, SelectionSort, Shuffle, ShuffleReals, ShuffleStrings, SumReals.iolib: AppendCsvLine, JoinCsv, ReadCsvColumn, SplitCsv.structures: BinaryTree, Dictionary, List, PriorityQueue, StringList, StringQueue, StringStack, Tally.statlib: Median, Mode, Range, PopulationVariance, SampleVariance, PopulationStandardDeviation, SampleStandardDeviation, Percentile, and each of them withRealsat the end (MedianReals…).datelib: DayName, DayNumber, DayOfWeek, DayOfYear, DaysBetween, DaysInMonth, IsLeapYear, IsWeekend, MonthName.
Hints about your program

A hint now speaks about what your program shows, and following it to the letter leads to a program that works.
- An index out of bounds written as a number: Write an index from 1 to 3 here. One step out: The last index is 5: if this index comes from a loop, make it stop at 5. Further out, the hint gives the value and asks where it comes from.
- The wrong number of values in a call names the parameters: Power has 2 parameters, Base and Exponent: give one value for each, in this order. The same for a built-in function, LENGTH takes 1 value: LENGTH(S)., and for a method of the Canvas or of Sound.
- A division by zero: by a 0 you wrote, write another number; by a variable, Count is 0 here, with the IF that checks it.
- Text where a number goes: the hint depends on what the text holds,
"13","13.5"or"thirteen". - Values written by hand: a DATE or TRUE between quotes is shown without them; a DECLARE without its colon, and a whole group of elements assigned at once, get the line rewritten with your names; a pixel outside the Canvas gets the size of your Canvas.
- A pointer or NULL stored or compared where a number goes has a hint of its own.
Files the system refuses
When the system refuses a file, SIMPL now explains why in plain words, with a hint, instead of the system’s own phrase (Permission denied).
- The reasons: the system doesn’t allow it: the file may be read-only, or open in another program (a CSV open in Excel, on Windows), the disk is full, the disk can only be read, its name is too long.
- A character Windows doesn’t allow in a name, such as
"a?.png": its name has ‘?’, which a file name can’t have. - Everywhere a file is used: the file statements, saving a Canvas, IMPORT, and GU{I}DE’s Open, Save and Print.
The User Manual
The tables of the appendices are easier to read at a glance, some sections have clearer titles, and the e-book is updated with the manual.
- Tables you can read at a glance. The tables of the appendices follow the same rules: what you look up first, the chapter last, the guide marked Yes or No, short examples, with the details below. Code in a table has the colors of code, and the tables of a section line up.
- Clearer titles: Length and parts of a string, Worked example: counting coins with an array, Inserting a record: the guide’s example, Reading an address never written, Before and after the recursive call, Choosing the next piece: the 7-bag, Checking every move: IsValidPosition, How a line is run: the pipeline, and Part III — Beyond the Cambridge guide.
- One name for each command: the toolbar’s button is User Manual, as in the Help menu, and Run Selection has the same name in the menu and on the toolbar.
- The e-book,
simpl_manual.epub, is updated with the manual.
Also in this release
- A name of a CONSTANT of your program can be the name of a parameter, a local or a property, in your routines and in a library’s:
CountCharofstringlibruns in a program withCONSTANT Count = 5. - More › stays in one piece at the end of a line in the console.
- Two clearer diagnoses: a FUNCTION whose first line misses RETURNS gets Expected RETURNS at the end of this line, and
DECLARE X Y : STRINGgets A comma is missing before Y.
Upgrading from 1.3.2
Compatibility. A program runs as before, with three exceptions, all in the libraries:
- A name of your own that a library now uses. A program that defines a routine, a class or a CONSTANT with one of the new names (listed under A bigger toolbox), and IMPORTs the library that has it, stops at the IMPORT: stringlib.simpl defines IsDigit, which is already defined on line 2 of the program as a FUNCTION. Give yours another name, or use the library’s.
CountCharcounts one character. Its second value is now a CHAR, soCountChar(Text, "an")stops, where it gave 0. To count a longer piece of text, use the newCountSubstring.- Some results change, to the exact ones:
Powertakes a negative exponent (Power(2, -1)gives 0.5, where it gave 1.0),NewtonSqrtis exact to about 12 digits for a number below 1 too,GCDof negative numbers is never negative, andLCMof 0 gives 0, where it stopped. AStackor aQueueholds as many items as its capacity, beyond 1000 too, andOUTPUTof a whole one shows that many elements.
The words of many hints are new, which matters only if you quote them in your own notes.
- Put the new
simpl.exe(Windows) orsimpl.appimage(Linux) in the same folder as the old one, replacing it. Your settings (simpl_settings), your programs (programs) and your libraries (lib) are next to it, and they are kept. - The libraries update themselves. At its first start, SIMPL 1.3.3 replaces each library in
libthat came with an earlier version and that you never changed, and adds the two new ones,statlibanddatelib. A library you changed is never touched: SIMPL keeps yours and says so in the console, once. To get the new one, rename yours (for example tostringlib_mine.simpl) and start SIMPL again; then change the IMPORT of the programs that need your version. The programs inprogramshaven’t changed. statlibneeds the newarraylib. If you kept a changedarraylib, the statistics of REAL arrays stop with Undefined procedure: BubbleSortReals: rename yours, as above.- Bookmarks in the User Manual. Eight sections have a clearer title (see The User Manual), and a bookmark in one of them, or in the introduction of Part I or Part III, now opens the manual near its start: go to the section and bookmark it again. Every other bookmark works as before.
If you put SIMPL 1.3.3 in a new, empty folder instead, it starts with fresh copies of everything; copy your own programs over from the old programs folder.