tiko 0.1.9 released (Nov 30, 2026)

Started by Paul Squires, November 30, 2026, 09:15:29 PM

Previous topic - Next topic

Paul Squires

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
Paul Squires
PlanetSquires Software

Paul Squires

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.
Paul Squires
PlanetSquires Software