Installing R using Cygwin

Submitted by Dickens A S on Wed, 11/27/2019 - 14:37

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

Double click the setup will launch 
Press Next in all the windows 
For Download Site choose
http://mirrors.kernel.org

Pressing next will show software selection window as shown below

Linear Algebra using Kotlin and LAPACK (OpenBLAS)

Submitted by Dickens A S on Mon, 11/25/2019 - 16:37

Kotlin Linear Algebra using LAPACKE C APIs

Code snippet to call the library method

    print_matrix_colmajor( "Entry Matrix A", m, n, a, lda )
    print_matrix_colmajor( "Right Hand Side b", n, nrhs, b, ldb )
    println( "\nLAPACKE_dgels (col-major, high-level) Example Program Results" );
    LAPACKE_dgels(LAPACK_COL_MAJOR,'N'.toInt().toByte(),m,n,nrhs,a,lda,b,ldb)
    println()
    print_matrix_colmajor( "Solution", n, nrhs, b, ldb );

You need to use MSYS2 and install OpenBLAS to make this work, please refer other articles for MSYS2

Call Lua from Kotlin or embed Lua inside Kotlin

Submitted by Dickens A S on Sat, 11/23/2019 - 06:20

Embedded Lua inside Kotlin

Compile and Execute from MSYS2 or Cygwin with python development C header files
 

Demo output

Lua in Kotlin

Lua code which is running inside Kotlin

Kotlin OpenGL Render SVG using librsvg

Submitted by Dickens A S on Fri, 11/22/2019 - 07:55

Kickstart Kotlin OpenGL using GLEW, librsvg using below github code

Output window with GLFW

SVG Using librsvg

You Need MSYS2

This is required for windows to download pre-compiled libraries and its headers

Kotlin OpenGL libpangocairo Unicode Font Rendering

Submitted by Dickens A S on Fri, 11/22/2019 - 05:05

Kickstart Kotlin OpenGL using GLEW, libpangocairo using below github code

Output window with GLFW

Pango+Cairo

libpangocairo offers combined ready made methods to render, save, texture, pattern generate in an image file or in a rendering window

cairo is one of the base libraries used in many open source tool kits

Kotlin OpenGL using FreeGLUT and FreeType2

Submitted by Dickens A S on Thu, 11/21/2019 - 14:50

Kickstart Kotlin OpenGL GLSL using GLEW, FreeGLUT and FreeType2 using below github code

Output 640x480 window with GLUT

FreeGLUT and FreeType2

Download MSYS2

This is required for windows to download pre-compiled libraries and its headers

Kotlin Vulkan Triangle using GLFW for Windows - Single file

Submitted by Dickens A S on Tue, 11/19/2019 - 12:46

Kotlin Vulkan Triangle using below github code

writing code in vulcan is a vast typing.

it has so many pipelines involed to make a simple code to work.

to bring it in a single file will make a developer get confidence and kick start his work in vulkan.

This explains how to do it.

Important Note:

Kotlin Vulkan Initialize

Submitted by Dickens A S on Fri, 11/15/2019 - 13:27

Kickstart Kotlin Vulkan using below github code

Install MSYS2

This is required for windows to download pre-compiled libraries and its headers

pacman -S mingw-w64-x86_64-vulkan-loader mingw-w64-i686-vulkan-loader mingw-w64-i686-vulkan-headers mingw-w64-x86_64-vulkan-headers

Note: libvulkan-1.dll should be copied to the exe folder to make the windows app work

Kotlin Native Def File