Main Menu

Recent posts

#1
Tiko Programming Language / Re: Why Tiko Programming Langu...
Last post by Marc Giao - November 08, 2026, 11:40:21 PM
Thank you Paul,

Epic effort man, I am really glad retirement didn't put out to pasture!

If only Mr. Z had been more receptive/appreciative of the work you and Jose did/do, who knows where PB could have gone, but, I am truly grateful you guys never gave up.

Tiko is an AMAZING programming language/platform!

Marc
#2
Tiko Programming Language / Why Tiko Programming Language?
Last post by Paul Squires - November 08, 2026, 05:52:07 PM
Like a lot of us here, over the years I have written software to handle my own personal day-to-day tasks in order to make life easier. I have written two of my most used applications over and over trying to get reliable working cross platform versions of my financial applications. I have written versions of them in C++ with ImGui and wxWidgets, and even tried my hand at Rust with Tauri (an endeavor that I failed at spectacularly).

I have always wanted to be able to easily use FreeBASIC to be the backbone of my personal projects but it was always close but not close enough. That's one of the main reasons I've produced this new Tiko Programming Language. I wanted to keep all my FB knowledge but smooth out the rough edges and fill in the  missing features of FB. Maybe contributing patches to the FB project itself would have been a better route, but with the amount of changes that I wanted, it was faster for me to do Tiko instead. Only time will tell whether that choice proves to be a fruitful decision.

Long story short, I have achieved my goal and now my two main financial applications run flawlessly on Windows, Linux and MacOS using Tiko and Tiko's built in cross platform widget library, tkControls. I have attached some screenshots with fake data and dark/light themes just to show what I am talking about.

My hope is that others may find Tiko beneficial for their application development. Tiko is to the point now where I can not think of any major new feature that I can implement. Testing and breaking the existing code base is now my focus so that it can be hardened for an eventual path to a version 1 release.
#3
Tiko Programming Language / Re: Tiko Programming Language ...
Last post by Johan Klassen - November 08, 2026, 03:30:43 PM
thank you Paul  :)
#4
Tiko Programming Language / Re: Tiko Programming Language ...
Last post by Paul Squires - November 08, 2026, 02:39:02 PM
Hi Johan, FYI that in the new 0.1.3 toolchain that the TKO_* environment variables are renamed to TIKO_*
#5
Tiko Programming Language / Tiko 0.1.3 toolchain release (...
Last post by Paul Squires - November 08, 2026, 10:53:18 AM
New Tiko toolchain 0.1.3 released.

Get it at:
https://github.com/PaulSquires/tiko-lang/releases/tag/toolchain-7515ba56

Here are the highlights:

- String slices. slice, uslice and wslice are zero-copy views of a string, ustring or wstring (and of fixed-length strings and zstring / wstring pointers), written s[lo to hi]: inclusive, 0-based code units, range-checked when the slice is made. A slice reads like a string: len, compare, &, print, for each, select case, and any string passes where a const slice parameter is wanted.

- Interfaces and classes. interface, class, implements and inherits; calls through an interface, conversions, trycast and is, interface properties, generic interfaces, and interfaces as generic constraints.

- Properties. Auto-properties, get / set blocks, any number of indices, static and namespace properties.

- Graphics on Linux and macOS. The fbgfx-compatible graphics library now has an X11 driver on Linux (libX11 loaded at run time, no X11 libraries needed to link) and a Cocoa driver on macOS, beside Windows' GDI one.

- tkEdit has a debugger. A Debug menu, and a Debug tab in the Output pane (Locals, Globals and Watch beside the Call Stack and Breakpoints), with data tips on hover. F9 sets a breakpoint, F6 builds with -g and runs to it, and F10 / F11 / Shift+F11 step. It drives LLVM's lldb-dap.

- Environment variables are now changed to the TIKO_* prefix rather than TKO_*

As always, everything is documented with complete examples:

Github wiki:
https://github.com/PaulSquires/tiko-lang/wiki

The Tiko Book:
https://tiko-lang.net/book/

Tiko by-Example:
https://tiko-lang.net/by-example/

Website:
https://tiko-lang.net/

#6
Tiko Programming Language / Re: Tiko Programming Language ...
Last post by Johan Klassen - November 06, 2026, 10:31:23 AM
thanks Paul
that works, I thought that the variables needed only to point to the folder but they must point to clang.exe and to libclang.dll
#7
Tiko Programming Language / Re: Tiko Programming Language ...
Last post by Paul Squires - November 06, 2026, 10:08:56 AM
You can do a tiko --version and it will print the folder location where tiko automatically found llvm.

You can override the location with the environment variables:

TKO_CLANG points to clang.exe.
TKO_LIBCLANG points to libclang.dll. You only need it if libclang.dll isn't in the same folder as that clang.

Version 19 should work. tiko requires any llvm version 18 or higher.

Don't be fooled by the "clang" requirement. Tiko does NOT produce C code that is later compiled to exe. CLang in llvm is an all in one compiler that takes the source code, produces the llvm IR intermediate code, and then compiles/links that IR code. There is no "C" involved.
#8
Tiko Programming Language / Re: Tiko Programming Language ...
Last post by Johan Klassen - November 06, 2026, 09:17:43 AM
hello Paul
is it possible to use a Visual Studio LLVM installation by setting the environment variables TKO_CLANG and TKO_LIBCLANG?
the current version is 19
#9
Tiko Programming Language / Re: Tiko Programming Language ...
Last post by Paul Squires - November 06, 2026, 09:06:41 AM
Hi Johan,

I am not seeing any crash on my computer using your files that you posted. I was able to use tkEdit load, compile, and run the test-c-include3.bas file without any problems. Not sure why I am not seeing any issues other than maybe my tkEdit or tiki compiler has some newer functionality that's not present in your version. 
#10
Tiko Programming Language / Re: Tiko Programming Language ...
Last post by Johan Klassen - November 05, 2026, 10:37:56 PM
Paul
I wanted to test including C headers, so I wrote a very simple program using libgmp

test-c-include3.bas
#cmdline "-Wl -verbose"

#cinclude "./gmp.h"
#inclib "./gmp"

dim as __mpf_struct x
dim as zstring ptr s=callocate(1024)
__gmpf_init2(@x,512)
mpf_set_ui(@x,3)
mpf_sqrt(@x, @x)
gmp_snprintf(s,1000,"%50.40Fe",@x)
print ">>> ";*s

mpf_clear(@x)
deallocate(s)
Print "press return to quit";
Sleep
if I try to open test-c-include3.bas then I get a dialog:
---------------------------
tkEdit - G:\Desktop-10-23-26\mp64\myLocal64s\include\test-cinclude\test-c-include3.bas: tkedit.exe - Application Error
---------------------------
The instruction at 0x00007FF7035204D0 referenced memory at 0xFFFFFFFFFFFFFFFF. The memory could not be read.

Click on OK to terminate the program
Click on CANCEL to debug the program
---------------------------
OK   Cancel   
---------------------------
click OK then relaunch and everything works
here are the necessary files

sometimes tkedit will simply vanish without any message

btw, the autocomplete after a #cinclude is fantastic