--
---
You received this message because you are subscribed to the Google Groups "The Ring Programming Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ring-lang+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/ring-lang/87b69085-b556-42be-9b50-e729b26fd5dbn%40googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/ring-lang/840a4436-73f1-451f-bd75-d13701111221n%40googlegroups.com.
- load "ringml.ring"
- load "AlKalam.ring" // Added
- load "AlQalam.ring" // 1st
- load "ringml.ring" // 2nd
Now the samples start !!
Thanks !! I will study the libraries.
////////////////////////////////////
==================================================
3D Physics Simulation using RingTensor
Processing 100000 particles in Real-Time
==================================================
[1] Generating Galaxy...
Line 52 Error (R14) : Calling Method without definition: subscalar
in file C:/MyStuff/AA-TENSOR-Azzeddine/ParticleSystem-1.ring


To view this discussion visit https://groups.google.com/d/msgid/ring-lang/c126772e-7cea-4f88-8b31-475d14b3ab70n%40googlegroups.com.


To view this discussion visit https://groups.google.com/d/msgid/ring-lang/83c7cac9-aeb7-4d55-a5a4-bceea0abac4en%40googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/ring-lang/48d681d8-b427-43d4-862f-e228f32692acn%40googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/ring-lang/d7f71856-2790-4cb0-b4a6-85a65e3970c7n%40googlegroups.com.
As an experiment, I converted the Ring Mug Demo into both JRuby and Kotlin. The JRuby program first calls a precompiled Kotlin .JAR file to run the Kotlin version of the mug demo, followed by JRuby running its own demo. This allows running two mug demos each written in a different programming language but both running on the JVM. The example demonstrates how JRuby can easily call compiled Kotlin code while still providing its own implementation within the same application.

Here are the results from the Mug Rotation demo. The JRuby implementation includes both an unoptimized version and an optimized version for speed, while the Kotlin version was kept simple but still has room for further optimization.
This demonstrates why combining JRuby with Kotlin on the JVM is so compelling: it lets you write dynamic, expressive Ruby scripts for application logic while offloading performance-intensive tasks to Kotlin or Java. This approach gives you the best of both worlds—leveraging the rich ecosystem of Ruby Gems and Ruby on Rails, alongside JVM libraries like Java Swing for GUI, all with seamless cross-platform compatibility. You also benefit from the JVM’s just-in-time compilation, highly optimized garbage collector, and mature runtime performance.
In short, JRuby + Kotlin on the JVM allows developers to maintain fast, efficient applications without sacrificing the flexibility and readability of Ruby dynamic scripting.
