Go to Post FIRST always talks about grandmothers and making them proud. So FIRST---you made my grandmother proud. - Collin Fultz [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

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 05-07-2013, 04:35
Foster Foster is offline
Engineering Program Management
VRC #8081 (STEMRobotics)
Team Role: Mentor
 
Join Date: Jul 2007
Rookie Year: 2005
Location: Delaware
Posts: 1,392
Foster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond repute
eLua -- Lua lovers wanted, Lua haters wanted more

Back in my early years as "Rock Star System Developer" , on a regular basis I'd include TCL as a way to on the script things on the fly. (Which soon was script things, don't use the base code" Think of it as a Visual Basic Addon in Excel, but in the middle of a major systems application.

In the last few years I've ditched TCL (sob, but TCL programmers don't exist, C and Java programmers do) for LUA (more people can use it. ie C and java people) So my basic hello world program, now includes LUA and you can script away.

A number of FRC teams have used LUA, the Greyhound project tied LUA to the CRio with pretty good success. Some teams posted their code that they were happy with.

So I'm on a quest to get eLua, small footprint Lua on the Cortex from VEX and some other platforms. eLua does not have all the libraries, you can include them, but 128K is not much space.

I'd like a discussion on how you used Lua and won, how you used Lua and failed (and nonposts from people saying you should use xxxx, Lua is stupid) So if you have used Lua, post please. I'm thinking coding the WPILibrary API's from the PIC days, lots of good interfaces that are simple to use.

But before I mount my horse and tilt at another windmill, let me get grounded in robot versions of Lua. From a app developer, it's a great addon with small footprint. I can avoid the compile-link-download binary steps, but I risk syntax errors at the Lua level.

I'll cross post this to VEX forum, those roboteers are expanding into things we talk about. Please be nice to them when they cross over here.
__________________
Foster - VEX Delaware - 17 teams -- Chief Roboteer STEMRobotics.org
2010 - Mentor of the Year - VEX Clean Sweep World Championship
2006-2016, a decade of doing VEX, time really flies while having fun
Downingtown Area Robotics Web site and VEXMen Team Site come see what we can do for you.
  #2   Spotlight this post!  
Unread 05-07-2013, 10:32
Andrew Schreiber Andrew Schreiber is offline
Joining the 900 Meme Team
FRC #0079
 
Join Date: Jan 2005
Rookie Year: 2000
Location: Misplaced Michigander
Posts: 4,062
Andrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond repute
Re: eLua -- Lua lovers wanted, Lua haters wanted more

First off, I have little to no experience with Lua, we used it briefly in one of my game design courses but I didn't really have a use at the time.

From what I understand it's a small language whose core was written in C, what's the benefit of using it over other scripting languages like ruby, python, or even javascript? In my experience adoption of those languages has been far larger which would create a lower barrier to utilization of this feature.



Quote:
Originally Posted by Foster View Post
I can avoid the compile-link-download binary steps, but I risk syntax errors at the Lua level.
Is it possible that Lua includes a flag to check syntax? I know Ruby does if you call ruby -c [filename].
__________________




.
  #3   Spotlight this post!  
Unread 05-07-2013, 15:25
Foster Foster is offline
Engineering Program Management
VRC #8081 (STEMRobotics)
Team Role: Mentor
 
Join Date: Jul 2007
Rookie Year: 2005
Location: Delaware
Posts: 1,392
Foster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond reputeFoster has a reputation beyond repute
Re: eLua -- Lua lovers wanted, Lua haters wanted more

Quote:
Originally Posted by Andrew Schreiber View Post
First off, I have little to no experience with Lua, we used it briefly in one of my game design courses but I didn't really have a use at the time.

From what I understand it's a small language whose core was written in C, what's the benefit of using it over other scripting languages like ruby, python, or even javascript? In my experience adoption of those languages has been far larger which would create a lower barrier to utilization of this feature.

Is it possible that Lua includes a flag to check syntax? I know Ruby does if you call ruby -c [filename].
Most of the "small languages" are written in C. It's another scripting language like Ruby, Python and Javascript. Or the mother of all scripting languages AWK.

So my preference would be to write a Robot controller in AWK, I can smack AWK out of my fingers about as fast as you can say specifications out.

But my interest is here "First off, I have little to no experience with Lua, we used it briefly in one of my game design courses but I didn't really have a use at the time. "

You've seen Lua, you know of it, you might / will see it again. I do a ton of "prove to me our network is at fault" I use Wireshark and I write Lua plugs to dig through hours of traces to find "where their network is at fault" So it's around.

If I have to pick a scripting language, I'll pick AWK, then Lua then some form of Robot COBOL

I'm not after widespread adoption. Teams will do C (C++) or Labview. Small numbers will do Perl, Ruby, Lua, Klingon, etc. I'm doing it for personal satisfaction, but the hive mind here is too much, so I have to ask what they think. I put the disclaimer in to fend away the people that can't grok something else.

I love C, and the Kevin Watson libraries are (wanted to write were, but my fingers wouldn't do it) just magical. The WPI libs that followed were the base for lots of my team's robots.

As a mentor, I want to give my roboteers life skills. Not losing a finger in a lathe is one. Programmers need to have the same chance to learn "stuff" So I can offer Lua. Another tool, another possibility. As a mentor, my chances for greatness are limited (oh just look around :-) ) so I'm doing something that will make me happy.

As far as the syntax check goes, the "home PC" can do a quick compile for syntax, but in the fast "now now now we are in the finals", that may not happen. Just change a few chars and upload
__________________
Foster - VEX Delaware - 17 teams -- Chief Roboteer STEMRobotics.org
2010 - Mentor of the Year - VEX Clean Sweep World Championship
2006-2016, a decade of doing VEX, time really flies while having fun
Downingtown Area Robotics Web site and VEXMen Team Site come see what we can do for you.
  #4   Spotlight this post!  
Unread 05-07-2013, 16:09
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: eLua -- Lua lovers wanted, Lua haters wanted more

I've seen Lua. I haven't seen anything about it that makes me think it's any better than other scripting languages. I get the impression that it's Just Another Java.



On the other hand, I really really like Tcl. Its syntax is so minimal that it's almost nonexistent, and I appreciate a language that gets out of my way. At the same time, it's so easy to write small procedures to extend the interpreter to act like whatever tiny language is appropriate for the task. I got to the point where I could often write a page of script, then take an existing configuration or data file and just execute it to get things done. The networking support is just short of magical, and there are code packages out there to make web applications almost as easy as writing a DOS batch file. Alas, I've been forced away from such simple and effective tools and toward more "institutionally viable" things like PHP.
Closed Thread


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 03:02.

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