GTK4 + GSK Cairo / Vulkan
GitHub: https://github.com/dickensas/kotlin-gradle-templates/tree/master/gtk4-gsk
This demo kotlin code explains how to render a cairo+graphene rectangle region using GSK
Kotlin Code
GitHub: https://github.com/dickensas/kotlin-gradle-templates/tree/master/gtk4-gsk
This demo kotlin code explains how to render a cairo+graphene rectangle region using GSK
Kotlin Code
This is a small experiment for AVR Atmega8
GitHub: https://github.com/dickensas/kotlin-gradle-templates/tree/master/arduino-atmega8
A simple swap function which is possibly re-used inside actual avr "C/C++" code as library
This is an experimental code with few glitches
it allows Cygwin+Mingw to use GTK3 from cygwin to render opengl GLEW
GitHub: https://github.com/dickensas/kotlin-gradle-templates/tree/master/gtk3-glew
Kotlin code
GTK windows design using glade builder
GitHub: https://github.com/dickensas/kotlin-gradle-templates/tree/master/gtk3-glade3
This code explains how to use Kotlin to program GTK3 and Glade3 using Cygwin Glade designer
Install cygwin with below dependencies (basic cygwin installation explained here install R using cygwin)
Embedded OpenCL inside Kotlin
GitHub: https://github.com/dickensas/kotlin-gradle-templates/tree/master/embed-opencl
OpenCL code which runs from kotlin
#pragma OPENCL EXTENSION cl_khr_byte_addressable_store : enable
__constant char hw[] = "Hello World";
__kernel void hello(__global char * A) {
size_t tid = get_global_id(0);
A[tid] = hw[tid];
}
Kotlin code which runs OpenCL
Embedded TCL inside Kotlin
GitHub: https://github.com/dickensas/kotlin-gradle-templates/tree/master/embed-tcl
TCL code which runs from kotlin
puts "Hello, world!"
Kotlin code which run TCL
Embedded R inside Kotlin
GitHub: https://github.com/dickensas/kotlin-gradle-templates/tree/master/embed-r
Demo output
R code which is running inside Kotlin, simply add number 2 all the incoming array values and return
FANN is an open source library https://libfann.github.io/fann/docs/files/fann-h.html
which offers C based API which can be invoked from Kotlin
Below Kotlin example shows how it can be invoked
import fann.*
fun main()
{
var ann = fann_create_standard(4, 2, 8, 9, 1)
fann_print_connections(ann)
fann_destroy(ann)
}
Below is the sample output from MSYS2 terminal
GNU Octave https://www.gnu.org/software/octave/
Is one of the popular Scientific Programming Language or platform
general MATLAB functions will work in Octave
It can be download https://www.gnu.org/software/octave/download.html and installed for free
This Article explains how to trigger Mex script from Kotlin using "mex.h" and "octave.h" C API in Kotlin
Octave is installed in C:\octave with below structure and files
R is amazing platform which many numerical methods and analysis options available
This article explains how to use R in Windows using Cygwin
Reason for Cygwin, it has X11 and Cygwin-X with amazing setup selection tools and many libraries
Below are the installation steps
Step 1: Download and install Cygwin and dependencies
64 Bit Windows: https://www.cygwin.com/setup-x86_64.exe 32 Bit Windows: https://www.cygwin.com/setup-x86.exe