![]() |
Coding in jython
Have any teams tried to code the FRC robot in jython?
I was thinking about trying this to help explain coding to the new programmers, but I don't know if it works. Has anyone tried it? |
Re: Coding in jython
Quote:
Not that I'd use it, personally; I don't see how Python makes "explaining coding" to new programmers easier than any other language, contrary to popular opinion. |
Re: Coding in jython
THink, no brackets, no semicolins, no parentheses unless they are req'd, its easier
|
Re: Coding in jython
I've been working on a Jython interpreter port (alongside a rhino JS interpreter)...
It's a little tricky however, because these things are all written for Java 5/6 and have to be retrowoven/hacked back to be 1.3 compliant... The bigger issue, however, is getting java bindings working(which you will need if you want to use anything in WPILibJ) because J2ME does not allow dynamic class loading...something both rhino and jython rely on in their java bindings. Thus, my rhino intepreter works but it pretty much justs prints stuff for the moment...Jython is a bit more tricky to work with. |
Re: Coding in jython
If you're trying to explain code to new programmers, shouldn't you use a language that is well-supported?
In other words, I don't know many FIRST teams (or anybody, really) using Jython. What if they have problems? |
Re: Coding in jython
Quote:
|
Re: Coding in jython
Quote:
However, I do feel that using high-level languages and not having to deal with the low-level stuff is something you can only do properly after you are capable of actually doing that stuff yourself. |
Re: Coding in jython
I'd say that the rationale for python should not be that it is syntatically easier for students to learn, but more that as a dynamically typed and fully interpreted language it allows advanced developers to utilize some neat python features...
|
Re: Coding in jython
I can't say i don't agree. I did port this year's code to jython:
Code:
from edu.wpi.first.wpilibj import SimpleRobot, Timer |
| All times are GMT -5. The time now is 09:42. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi