Main Menu

Recent posts

#11
Tiko Programming Language / Re: tiko 0.2.0 released (Dec 1...
Last post by Marc Giao - December 01, 2026, 07:20:10 PM
Thank you sir!
#12
Tiko Programming Language / Re: Editor Questions
Last post by Paul Squires - December 01, 2026, 06:23:17 PM
All the new editor changes are now in the 0.2.0 release: https://www.planetsquires.com/protect/forum/index.php?topic=4910.0
#13
Tiko Programming Language / tiko 0.2.0 released (Dec 1, 20...
Last post by Paul Squires - December 01, 2026, 06:20:36 PM
tkEdit's Settings dialog and Project Options, and project.toml

This release is about the editor: every setting in one dialog, build configurations you edit in a form, and a project that builds with the same configurations as a single file.

New in 0.2.0
  • tkEdit's Settings dialog: every setting is on a page — open it from the Settings panel or with Ctrl+Comma. Its Builds page holds your build configurations, each edited in a form (optimisation, console or GUI, runtime checks, debug info, AddressSanitizer, warnings) with Paths and Defines for include and library folders and -d defines.
  • Project Options: one page in place of the old Project dialog — output file name, command line, compiler switches added to the build configuration you pick, folders to copy the output to, and a switch that creates the resource file and manifest. OK writes only what changed and keeps the file's comments.
  • One way to build: a project now builds with the same build configurations as a single file, picked in the status line's Build picker, whose Build Configurations... row opens Settings at the Builds page.
  • project.toml: a project file may be named project.toml as well as tiko.toml — one format, two names — and New Project writes project.toml. The language server and the VS Code extension know both names. See tiko build.
  • tiko build --profile none: a profile with no flags of its own, so --options alone says how the program is built — what tkEdit uses.
  • Fixes: an open .rc file no longer flashes a console window when tkEdit starts, and the Build, Encoding and Line ending pickers show a check mark on the one in force.
The Form Designer is unchanged in this release: build your first form with the step-by-step Contacts tutorial. The forms you design run on Windows, Linux and macOS.

Breaking changes: tkEdit now builds a project with a build configuration from Settings, no longer with the project's [profile.*] tables (tiko build in a terminal reads the file as before) — put a project's own switches in Project Options. New projects are written as project.toml, which a tiko older than 0.2.0 does not read.

Get it
Learn more
#14
Tiko Programming Language / Re: Editor Questions
Last post by Paul Squires - December 01, 2026, 02:07:48 PM
I have removed and/or simplified all of the confusing build stuff. I have also created dedicated popup dialogs so you can visually select Settings and Project options rather than having to edit the text files. Only some of the more advanced things remain in the text files should you ever need to modify them.

I will package a new release today so that everyone can have access to the new tkEdit.
#15
Tiko Programming Language / Re: Editor Questions
Last post by Johan Klassen - December 01, 2026, 09:30:41 AM
rnbw
you can also add a GUI build option in settings.toml and then when you press F7 you will have that option as well
open settings.toml
Files->Options->Settings
then add something like the following

[[builds]]
name = 'GUI Release'
options = '-s gui -O2'
default = false

save it then close and relaunch tkedit, now when you press F7 you will be able to choose the GUI build
#16
Tiko Programming Language / Re: Editor Questions
Last post by rnbw - December 01, 2026, 07:30:45 AM
Quote from: Johan Klassen on November 30, 2026, 06:34:13 PM@mbw
I couldn't find a gui option either but putting the following at the top of file should work
#cmdline "-s gui"
Thank you Johan.  When the code has been compiled #cmdline "-s gui" works and there is no Console.  If you just run the code from the editor then the console still appears.  This isn't a problem, if you know that's what supposed to happen.
#17
Tiko Programming Language / Re: tiko 0.1.9 released (Nov 3...
Last post by Paul Squires - November 30, 2026, 09:23:38 PM
With this release, just about everything that I originally wanted in the language is now there.

I am extremely pleased with the results so far. The next phase involves refining the current elements of the language to make sure everything works as it should and that everything is easy to understand.
#18
Tiko Programming Language / Re: Editor Questions
Last post by Paul Squires - November 30, 2026, 09:17:36 PM
Thanks @Marc Giao nice of you to say.

After I read your earlier post I went back to the editor and started off fresh like a new user would. It was confusing and I should know how it all ties together!  :-)   I can see and completely understand why someone knew would get lost in the complexity of the Build system.
#19
Tiko Programming Language / tiko 0.1.9 released (Nov 30, 2...
Last post by Paul Squires - November 30, 2026, 09:15:29 PM
String interpolation, derive and moves, and database, network and compression libraries. Clients for PostgreSQL and MySQL, SSH and FTP, and compression with .zip archives.

The Form Designer
tkEdit's toolbox gains three controls, all with data binding: tkMaskEdit for masked and formatted input — fixed, numeric, date, time and regular-expression masks — with masked columns in the data grid; tkGauge for radial and linear gauges and the bullet graph; and tkSparkline, a word-sized chart that also works as a data-grid column and in reports. A label can now hold links, set in the designer's Links editor. The forms you design run on Windows, Linux and macOS. Check out the full selection of GUI controls in the online GUI controls gallery.

New in 0.1.9
  • String interpolation: $"Total: {total:.2f} for {who}" writes values into a string, as in C#: any expression in a hole, with an alignment and a format. See String Interpolation. This is an amazingly useful feature that once you read how it works, you'll wish you had it 20 years ago.

  • Move semantics: a returned local or a temporary is moved, not copied; move( x ) moves on request, and the std containers and channels move what you hand them. See Move Semantics. Imagine creating a gigabyte sized structure in a sub or function and then being able to return it to the calling code by simply "moving" the data to a new variable WITHOUT copying it! The compiler only needs to copy a small number of control block bytes rather than a gigabyte of data.

  • derive: one line in a type — derive equal, order, hash, text, fields — and the compiler writes its comparison operators, a hash, ToText( ) and field iteration; enumname, enumcount and enumvalue turn an enum into names and back, and std/config reads and writes TOML straight into your types. The Reflection Tutorial walks through it. This allows you to perform serialization on TYPES and ENUMS so that you can read and write them to disk based on the names of fields within the structure itself.

  • Databases, networking, compression, sound: new packages for PostgreSQL and MySQL/MariaDB, SSH and SFTP (libssh2), libcurl (HTTP, FTP, SFTP and more), zlib, zstd, xz, brotli, lz4 and bzip2 behind one tiko API with .zip archives, miniaudio for sound and pl_mpeg for MPEG-1 video, and Mini-XML — each with a tutorial on the wiki (PostgreSQL, MySQL, SSH, FTP, Compression).

  • Your machine, from code: std/hardware reads the system, firmware, CPU and disks on Windows, Linux and macOS, and sys/win/dmi, José Roca's DMI module, gives the SMBIOS tables on Windows. See Hardware.

  • Faster compiles: less LLVM IR per statement and unused generic code dropped after lowering — a 400-function benchmark program builds 8.9% faster at -O0 and 3.9% at -O2, and a warm module build of a program that imports std/strings takes 8 ms instead of 32 ms.

  • Android (experimental): still experimental, built from the Windows toolchain; the compression, sound, video and XML packages now build for it too. Start with the Android Setup Tutorial.

  • Fixes: s &= s no longer reads freed memory, xor over two booleans gives FreeBASIC's answer, and for each over a method call without parentheses walks the call's result.

Get it
Learn more
#20
Tiko Programming Language / Re: Editor Questions
Last post by Marc Giao - November 30, 2026, 08:57:12 PM
Quote from: Paul Squires on November 30, 2026, 08:29:24 PMI will work on this tonight to simplify the whole thing.

Thanks Paul, please note that I am finding my way in a new system, not criticizing. Once I get the very, very basics I should be fine.

I've said it before but I think you and Jose have done a fantastic job with Tiko. Thank you!