C++, Python, Objective C (and Obj C++), and Other Languages

13 replies [Last post]
intelburn
intelburn's picture
Title: MiniBot
Joined: 07/02/2009
Posts:
BotPoints: 43
User offline. Last seen 9 years 22 weeks ago.

I would at some point use another language than ANSI C or Java on the CBC and I willing to help develop the environment for such other languages, I run a Mac and am part of the ADC program.

We kick bot
JLCC

matthewbot
Title: YAC
Joined: 04/12/2009
Posts:
BotPoints: 94
User offline. Last seen 12 years 10 weeks ago.

Jeremy has C++ working, from what I understand he tracked down the missing g++ binary and libstdc++. Braden has gotten Java working through JamVM, and our team actually ran Lua on our bots for the entire competition. I think there are already python binaries for Chumby, so you'd just have to write bindings for the various CBC libraries. As for Objective C, the Chumby GCC toolchain wasn't compiled with support for it, so you'd have to compile your own toolchain. I've been able to compile a few ARM toolchains for other random projects so if you find me on botball chat I could give you some tips if you'd like.

--
Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction.

Albert Einstein

Project Quadcopter: http://quadcopter.wordpress.com/

JamesL
JamesL's picture
Title: MiniBot+
Joined: 07/03/2009
Posts:
BotPoints: 55
User offline. Last seen 13 years 9 weeks ago.

Obj C/C++ would be nice actually

catron
catron's picture
Title: ZoomBot
Joined: 06/02/2009
Posts:
BotPoints: 98
User offline. Last seen 10 years 30 weeks ago.

C++ was originally my doing -.-

"When you do things right, people won't know you've done anything at all."

matthewbot
Title: YAC
Joined: 04/12/2009
Posts:
BotPoints: 94
User offline. Last seen 12 years 10 weeks ago.

If theres a definite interest in Obj-C I could attempt to build a toolchain if you guys want. Are any of you familiar with linux systems? It is possible to build one to run on windows via cygwin but it is more complex and I'm not familiar with it.

--
Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction.

Albert Einstein

Project Quadcopter: http://quadcopter.wordpress.com/

Jeremy Rand
Jeremy Rand's picture
Title: Botball Youth Advisory Council
Joined: 04/03/2009
Posts:
BotPoints: 1168
User offline. Last seen 7 years 18 weeks ago.

Braden: yes, you got C++ working on the CBC before I did. Of course, you didn't share any details with me, so I had to do it myself for the CBC hacking paper, and I did share the details. Hence I get some credit too. :-)

-Jeremy Rand
Senior Programmer, Team SNARC (2012-2013), Norman Advanced (2010-2011), Norman HS (2008-2009), Norman North (2005-2007), Whittier MS (2003-2004)
2012-2013 VP of Tech, 2011 President, Botball YAC (2009-2013)
Mentor, Alcott and Whittier MS

Jeremy Rand
Jeremy Rand's picture
Title: Botball Youth Advisory Council
Joined: 04/03/2009
Posts:
BotPoints: 1168
User offline. Last seen 7 years 18 weeks ago.

Matt: Actually I'd be happy to just see a Cygwin C/C++ cross-compiler for Chumby... right now Chumby's cross-compiler only supports Linux.

-Jeremy Rand
Senior Programmer, Team SNARC (2012-2013), Norman Advanced (2010-2011), Norman HS (2008-2009), Norman North (2005-2007), Whittier MS (2003-2004)
2012-2013 VP of Tech, 2011 President, Botball YAC (2009-2013)
Mentor, Alcott and Whittier MS

matthewbot
Title: YAC
Joined: 04/12/2009
Posts:
BotPoints: 94
User offline. Last seen 12 years 10 weeks ago.

That's true.. I may try and see how difficult it would be. It took me a long time (week+) to get my quadcopter one to work, but that was a bit more complex since it wasn't targeting an OS and I used newlib instead of libc. But toolchains are still black magic to me at least...

But yeah it would kill two birds with one stone and get obj-c and cygwin support, as well as get the latest GCC up.

--
Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction.

Albert Einstein

Project Quadcopter: http://quadcopter.wordpress.com/

catron
catron's picture
Title: ZoomBot
Joined: 06/02/2009
Posts:
BotPoints: 98
User offline. Last seen 10 years 30 weeks ago.

I will do some experimentation with objc tonight, Although my primary goal is to get my lolcode compiler working.

"When you do things right, people won't know you've done anything at all."

JamesL
JamesL's picture
Title: MiniBot+
Joined: 07/03/2009
Posts:
BotPoints: 55
User offline. Last seen 13 years 9 weeks ago.

omg, you better get that working! LOLcode is the best

PiPeep
PiPeep's picture
Title: RocketBot
Joined: 07/19/2009
Posts:
BotPoints: 170
User offline. Last seen 8 years 28 weeks ago.

I'll just link to this thread about CBCJVM, which, by the way, now has LOLCode support. (although LOLCode can't move motors or access any of the libraries, but Java, Javascript, Scala, and most other JVM languages can!). It's super easy to build and install modules for even more languages. And there are tons of JVM languages.

Also, be sure to sign our letter to Kipr!