Page 1 of 1

Ruby in Stone

PostPosted: Mon Dec 19, 2011 3:15 pm
by Embedded
With FlowStone V2 coming any day now, you get the whole Ruby programming language built inside FlowStone!

coming-soon.png
coming-soon.png (47.9 KiB) Viewed 24519 times


This will mean that you can code your own low-level modules if you like. These can be from simple equations up to full windows programming with external dlls, & APIs etc. You can even use ruby to draw inside FlowStone, which is an easier way to manage co-ordinates etc. Ruby in Stone is also very accurate timing wise as it uses multi-media timers!

There are a few examples already posted in the examples area (Although you will need to wait for V2 before you can open them!):
http://www.dsprobotics.com/support/viewforum.php?f=63

If you want to start learning Ruby here is an on-line user guide:
http://www.rubyist.net/~slagell/ruby/index.html

For those of you that don't know Ruby, it is one of the fastest growing programming languages as it is simple and elegant with a much higher productivity than C++ or C#

Re: Ruby in Stone

PostPosted: Mon Dec 19, 2011 3:41 pm
by DSP
Can't wait! Ruby,Ruby,Ruby

Re: Ruby in Stone

PostPosted: Mon Dec 19, 2011 7:48 pm
by AnthonyTower
Nice post Embedded!

One thing that might be noted is the fact that unlike C and C++, Ruby is interpreted rather than being compiled.

I'm guessing compiled FlowStone 2 execs will have to make external calls to a Ruby interpreter...or will FlowStone be able to compile Ruby scripts internally....wouldn't that be science fiction?

Cheers

Re: Ruby in Stone

PostPosted: Tue Dec 20, 2011 11:19 am
by Embedded
I've been lucky enough to see the new version, it's awesome.

There is no compiling as you say the code runs as you write it, as does the normal FlowStone stuff. When you make an EXE it does need the Ruby DLL installed, but this is packaged up inside the EXE and is automatically installed transparently when you run the EXE.

Cool...

Re: Ruby in Stone

PostPosted: Tue Dec 20, 2011 11:23 am
by Embedded
Here is another Ruby programming guide:

http://www.ruby-doc.org/docs/ProgrammingRuby/

Re: Ruby in Stone

PostPosted: Tue Dec 20, 2011 2:37 pm
by DSP
Wow it's just been released!


Download FlowStone V2 with Ruby here:
http://www.dsprobotics.com/download.php

Re: Ruby in Stone

PostPosted: Tue Dec 20, 2011 5:50 pm
by sal
It looks interesting, but the update fee is not so small for having the ruby module which is related to an open source and free scripting language such as ruby.
I would use it to interact with databases and web applications, but i have to be sure that i can use all the ruby funcionality and that i can add gems as i do on ruby based servers.
Some example in that direction will be very useful to decide for the update.
In the meantime i'm reading the ruby chapter of the manual which doesn't seems to be focused on web and network interaction.

Re: Ruby in Stone

PostPosted: Tue Dec 20, 2011 6:11 pm
by AnthonyTower
Embedded wrote:I've been lucky enough to see the new version, it's awesome.

There is no compiling as you say the code runs as you write it, as does the normal FlowStone stuff. When you make an EXE it does need the Ruby DLL installed, but this is packaged up inside the EXE and is automatically installed transparently when you run the EXE.

Cool...


Wow, this is even more incredible than I thought, eliminating 99% of potential headaches when distributing the compiled exe to an end-user.
I'm sure glad I upgraded !!

FlowStone 2 + 2012 = The Sky's The Limit

Thank you DSP!!!
Cheers