View Single Post
Old 05-19-2004, 05:22 AM   #1
samael
Constant Bitrate
 
samael's Avatar
 
Join Date: May 2001
Location: new zealand
Posts: 130
what language to write program in

HI all
I would like your opinions on what language i should use to write some softare in to run under linux. Here are the basic requirements :
Be able to talk via sockets to mpd.
Be able to talk via sockets to lcdproc.
interperet key strokes.

mpd is a daemon (a service for those using winblows) that plays music. music playing daemon. You run it, then connect to it (you could probably even use telnet ) then give it commands like "play /mp3/a band/an album/a song.,mp3" etc... I cant remember the exact syntax.

lcdproc is a daemon that controls an alphanumeric screen. you connect to it, and tell it what to display. You can do this with telnet also, but that ould suck....

By interperet keystrokes, i mean things like i will bind a key on my keyboard for "play" and "next" and "go to menu" etc.... When i it the "next" key, the program would tell mpd to go to the "next" track. It would recieve information from mpd on what the next track is, then tell lcdproc to diplay certain information. Periodicly mpd would tell my program something, like the current position in the track in seconds. I'll need to handle stuff like that also.

Now i could rip this up in java no sweat. For a super simple mp3 car system which will only play mp3's, having a jvm hanging around is undesireable. On the other hand I could compile the java to native code.

I could use c. Maybe, i would have to learn threading probably, maybe easy, maybe hard. Intuition tells me this would be best, though i am not sure why. I know java better than i know c, i only have a university knowledge of c.

I could use c++, make it an excercise in learing it.

I could probably do it in lisp or scheme, that would be interesting, and making a menu structure (for navigating file system and manuipulating the playlist lisp or scheme would be _perfect_)

Perl or some other interpereted language, i dunno. I dont know them, but they could be the fastest, easyest way.

Or i could just use win 98se lite and set the shell to be winamp and use one of the plugins that pretty much work exactly the way i want. but wheres the fun in that?? >8)

what do you guys rekon?
__________________
stupid quote # 1 : "i dont do drugs , i only ever smoke pot when i'm coming down" , Me , 6 september , 2001.
samael is offline   Reply With Quote
Advertisement
 
Advertisement
Sponsored links