Author Topic: AI in java  (Read 4168 times)

0 Members and 1 Guest are viewing this topic.

Offline KitsuneTopic starter

  • Jr. Member
  • **
  • Posts: 18
  • Helpful? 0
AI in java
« on: July 02, 2008, 05:25:52 AM »
Is it possible to write an AI program in Java

Offline ahab

  • Jr. Member
  • **
  • Posts: 18
  • Helpful? 0
Re: AI in java
« Reply #1 on: July 02, 2008, 11:48:45 AM »
AI? Sure. It is possible to create an AI with most high level languages. The AI class at my university is taught in Java. Most robots are programmed in C, so you may want to keep that in mind.

Interact directly with hardware? Woo... I have no idea. Java is not my thing anymore.
« Last Edit: July 02, 2008, 11:53:29 AM by ahab »

Offline Webbot

  • Expert Roboticist
  • Supreme Robot
  • *****
  • Posts: 2,165
  • Helpful? 111
    • Webbot stuff
Re: AI in java
« Reply #2 on: July 02, 2008, 06:47:20 PM »
Its perfectly possible to use Java - goggle for the Javelin. However the significant downside with Java is that it needs a Java Runtime (JRE) that interprets your program when it executes. This means that your board also needs to have memory to store this rutime component which may require 8k or so on top of the size of your own program.

As for AI then a program is a program - whether its intelligent or not is in the eye of the beholder
Webbot Home: http://webbot.org.uk/
WebbotLib online docs: http://webbot.org.uk/WebbotLibDocs
If your in the neighbourhood: http://www.hovinghamspa.co.uk

Offline KitsuneTopic starter

  • Jr. Member
  • **
  • Posts: 18
  • Helpful? 0
Re: AI in java
« Reply #3 on: July 02, 2008, 08:30:36 PM »
Its perfectly possible to use Java - goggle for the Javelin. However the significant downside with Java is that it needs a Java Runtime (JRE) that interprets your program when it executes. This means that your board also needs to have memory to store this rutime component which may require 8k or so on top of the size of your own program.

As for AI then a program is a program - whether its intelligent or not is in the eye of the beholder

I will be building my own motherboard so I can add as much ram as I want and I have a 2 terabite hard drive

Offline Cotowar

  • Full Member
  • ***
  • Posts: 50
  • Helpful? 0
  • Ubuntu for Humans
    • The Tech Stop
Re: AI in java
« Reply #4 on: July 08, 2008, 09:52:56 PM »
Hey, I have used Java significantly in school, along with Visual BASIC, FORTRAN, and a little C++. Of the four, I would have chosen Java as well for programming my robot, and as for building your own MoBo, you can do that if you want, but you might consider using something like this here.

http://www.logicsupply.com/categories/mainboards

I was considering using this very same board, or perhaps a Nano- ITX form factor. You can get a wireless card adaprter specifically for this board, meaning you can theoretically make your robot utilize the internet or at least a network for operation. The possibilities are endless.

Oh, and you might consider a SSD as opposed to a HDD simply because seek times are faster and the form factor is more low profile. Up to you though.

Cheers, and good luck mate.
--Cotowar--

Offline arixrobotics

  • Full Member
  • ***
  • Posts: 119
  • Helpful? 3
    • TalasTronics WCIT KL2008 Fund Raising
Re: AI in java
« Reply #5 on: July 12, 2008, 07:27:45 PM »

Offline lemontree

  • Jr. Member
  • **
  • Posts: 38
  • Helpful? 0
Re: AI in java
« Reply #6 on: July 18, 2008, 03:21:01 AM »
Java is great for doing prototypes and testing algorithms. You also get a few nice things like hash tables.
The real trouble is when you want do any sort of input or output with your code.  Even doing a simple chart is a pain.
I often use FreeBasic because at least I can do a plot or chart or even use OpenGL very easily and get keyboard input.
With AI you would like to be able to work with video and sound data easily but that still seems to be a dream. 

Offline syd919

  • Beginner
  • *
  • Posts: 1
  • Helpful? 0
Re: AI in java
« Reply #7 on: August 05, 2008, 02:21:02 AM »
guys i'm a first year student in java can u pls post sum cool ideas on AI progamming

 


Get Your Ad Here

data_list