Go to Post I am not even out of high school, and my foot is already in the door of my dream job. And FIRST got me there. - half geek [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Spotlight this post!  
Unread 11-12-2013, 23:04
yash101 yash101 is offline
Curiosity | I have too much of it!
AKA: null
no team
 
Join Date: Oct 2012
Rookie Year: 2012
Location: devnull
Posts: 1,191
yash101 is an unknown quantity at this point
Re: Using Multiple Languages

Quote:
Originally Posted by mathmogul View Post
The cRIO can only support one language image at a time, which can be changed via the cRIO Imaging Tool. However, you could also run an interpreted language like Python or another scripting language with a runtime written in whatever language the cRIO is imaged in. Other than that, there shouldn't be a problem using multiple languages since the cRIO and the coprocessor are two separate systems.

I'm not familiar with OpenCV as it pertains to Java. I'm sure someone else can point you in the right direction.
Thanks. I was looking at a comparison between just sticking with one language, sticking with one language, but making some exceptions, and allowing every language, even if it is as old as Forth!

I know that almost every software giant, like Google, Microsoft and Facebook (IDK about Apple, so I won't comment), use multiple languages to do their processes. Google has most of it's code written in Java, but uses quite a bit of python interleaved.

Our team has, for this year, stuck to using just Java, because our mentor's told us that it is the "best" language. While it isn't a bad language (I like Java, actually), There are some places where I think it is impractical to use Java. In this case, I am thinking solely about OpenCV. It is probably one of the most feature-packed CV library, but installing the Java connector seems like rocket science. Not only that, but SoCs typically have crappy JVMs, making it a hassle to run the code. OpenCV, for example, is written in C. That means that the Java interpreter needs to run the binaries continuously. In the case where you have limited resources like RAM, that seems quite impractical, the same reason why a Raspberry Pi + Minecraft Server don't always work out well, if you are a typical gamer!

Typically, linking multiple languages isn't the easiest thing to do. However, in this case, the cRIO is the i2C host server and the Pi is the i2C slave, obeying the instructions of the cRIO!

On a full-blown Debian system, I noticed that the JVM takes quite a bit of time to launch. It takes 1-5 minutes for Minecraft, Vanilla, to load on my MacBook. I think the reason why I get such load speeds is because the DSP of my Pi isn't powerful enough to max out my Hard Disk, another reason why I shouldn't waste my money buying an SSD for the Pi! That's why when you go on my site, when the chrome bar is moving backwards slowly, the HDD is being read, and the site is being generated/downloaded as the circle turns around!

This is just what I have noticed when programming.
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 22:40.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi