LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-31-2007, 06:10 AM   #1
entz
Member
 
Registered: Mar 2007
Location: Milky Way , Planet Earth!
Distribution: Opensuse
Posts: 453
Blog Entries: 3

Rep: Reputation: 40
Question Flash or Java ?


Greetings,

to get directly into the situation , I'm running a project that requires an online GUI for the users to interact with etc..
so I've studied alot of possibilities to do that , from making a standalone client to using web-embedded technologies for this particular task.

and I think that a web-embedded solution would be best at the moment , the only problem is that I can't fix my mind toward a certain approach , should I use java scripts or adope flash?

to be honest I'm not a fan of scripting languages , so I thought I could use your console (if you know what I mean) , personnally I'm tending to toward flash , first because it seems richer and because I don't really like java (despite that I've some experience in that language)

to give a more detailed description of what is demanded:
first , the used technology must enjoy full portability i.e it must be compatible with absolutely any browser running on any OS which runs on whatever cpu architecture ..etc

second , the script language must be able to handle in an effective and easy way , rich and complex 2d animations plus full multimedia support (playing sounds etc) and of course mouse and keyboard input.

and finally and most importantly be able to handle network connections (internet sockets ,TCP/IP etc) since this whole script is supposed to be the GUI part of a bigger system.

if you have any other suggestions on whatsoever language could be useful , then plz feel free to talk about it.

and thanks .
 
Old 03-31-2007, 07:05 AM   #2
graemef
Senior Member
 
Registered: Nov 2005
Location: Hanoi
Distribution: Fedora 13, Ubuntu 10.04
Posts: 2,379

Rep: Reputation: 148Reputation: 148
I would suggest that you narrow down the requirements:
Quote:
the used technology must enjoy full portability i.e it must be compatible with absolutely any browser running on any OS which runs on whatever cpu architecture ..etc
If you are using the browser as your interface then you will spend a lot of time tweaking incompatibilities between browsers. Either list the browsers for which you are going to support, or avoid the browser and take something like Python which is supported on a number of different OS.
 
Old 03-31-2007, 11:31 AM   #3
taylor_venable
Member
 
Registered: Jun 2005
Location: Indiana, USA
Distribution: OpenBSD, Ubuntu
Posts: 892

Rep: Reputation: 43
Quote:
Originally Posted by entz
... java scripts or adope flash?

... I don't really like java
JavaScript != Java

Also, I agree with graemef.

If it's really got to work on all possible platforms ever, and all possible browsers ever, you've ruled out everything but static HTML.
 
Old 03-31-2007, 12:59 PM   #4
entz
Member
 
Registered: Mar 2007
Location: Milky Way , Planet Earth!
Distribution: Opensuse
Posts: 453

Original Poster
Blog Entries: 3

Rep: Reputation: 40
Quote:
Originally Posted by taylor_venable
If it's really got to work on all possible platforms ever, and all possible browsers ever, you've ruled out everything but static HTML.
DO you really believe that differences between browsers are so vast? I guess you're a lil bit exaggerating.

shall we take for example Adope Flash 9 , according to Macromedia it's supported on Windows , linux , Solaris (SunOS) and Mac (OS x , etc) .
basically all major Platforms are fine with it , so I think that unless two users have two different versions of Flash installed , there shouldn't be any difference to be noticed.

at least that's what I found when running several flash prog's and animations , on both windows (IE 7) and on suse linux (Mozilla Firefox) .
actually there was only one incompatibility incident where flash 7 is installed by default on Suse 10.1 but after I removed it and got the latest version (9) then everything worked fine.

and after all , How can incompatibility problems arise , when both javascript and Flash are platform-independent script languages that run on the browsers and where the developers (Sun Microsystems and Macromedia) have done a tiresome job to assure this independency ?

You guys are really confusing me , am I missing something here or what?
 
Old 03-31-2007, 01:20 PM   #5
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by entz
How can incompatibility problems arise , when both javascript and Flash are platform-independent script languages that run on the browsers and where the developers (Sun Microsystems and Macromedia) have done a tiresome job to assure this independency ?
You are confusing Javascript and Java.

Neither Flash nor Java are scripting languages, although Flash programming language is close to Javascript (ECMAScript precisely), they are both compiled to bytecode targeted to a virtual machine.

Last edited by jlliagre; 03-31-2007 at 01:23 PM.
 
Old 03-31-2007, 02:19 PM   #6
entz
Member
 
Registered: Mar 2007
Location: Milky Way , Planet Earth!
Distribution: Opensuse
Posts: 453

Original Poster
Blog Entries: 3

Rep: Reputation: 40
Quote:
Originally Posted by jlliagre
You are confusing Javascript and Java.

Neither Flash nor Java are scripting languages, although Flash programming language is close to Javascript (ECMAScript precisely), they are both compiled to bytecode targeted to a virtual machine.
First of all , I'm not confusing Javascript and Java ! ( i know that the two are different)

Well , you say that Neither Flash nor Java are scripting languages then you contradict yerself by saying that they run on a virtual machine (in other words they are scripts !) since a loose definition of scripts could be " a set of instructions that are executed via an interpreter (virtual machine or whatever you may call it) instead of being compiled to machine code ...."

Anyways , I'm NOT posting this to argue about the terminology of scripts and scripting languages.
After reading about the possible options for a while , I've decided to go with Flash .

Problem solved and thank you!
 
Old 03-31-2007, 02:20 PM   #7
graemef
Senior Member
 
Registered: Nov 2005
Location: Hanoi
Distribution: Fedora 13, Ubuntu 10.04
Posts: 2,379

Rep: Reputation: 148Reputation: 148
Quote:
How can incompatibility problems arise
Quote:
Originally Posted by entz
actually there was only one incompatibility incident where flash 7 is installed by default on Suse 10.1 but after I removed it and got the latest version (9) then everything worked fine.
Well that's one problem you'll have to consider. Different versions will behave differently and looking at Adobe's website for some OS the recommended version is 7 (Legacy windows & OS9 and Solaris)

I would say that if you are going to be investing a lot of effort on development then it may be worth avoiding the weaknesses of the browser.
 
Old 03-31-2007, 02:37 PM   #8
entz
Member
 
Registered: Mar 2007
Location: Milky Way , Planet Earth!
Distribution: Opensuse
Posts: 453

Original Poster
Blog Entries: 3

Rep: Reputation: 40
Quote:
Originally Posted by graemef
I would say that if you are going to be investing a lot of effort on development then it may be worth avoiding the weaknesses of the browser.
Well , a good point indeed !
but the fact is that avoiding the "weaknesses" of the browsers , would result in the need of dealing with more severe weaknesses .
The only alternative to web-embedded solutions would be making a client from scratch for each and every OS that's out there , and that gonna be a pain in the ass (if ya know what I mean)

A key point is to target as much users as possible thru an interface that's generic despite the users Box , therefore requesting the user to get the latest flash for example would be much easier than telling him to download and run an executable that only runs on a specifiec machine etc.
I'm arguing from the client's perspective but also from the developers point of view (me in this case)

Nonetheless , a future effort for programming a full-blown client software is inevitable in the long run , but for now a web-based Gui is more than suffient.
 
Old 03-31-2007, 02:53 PM   #9
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by entz
First of all , I'm not confusing Javascript and Java ! ( i know that the two are different)
That's okay. However you wrote Javascript was a product from Sun that run on a virtual machine, which led me to believe you were confusing them.
Quote:
Well , you say that Neither Flash nor Java are scripting languages then you contradict yerself by saying that they run on a virtual machine (in other words they are scripts !)
That's a controversial subject. You may agree that it isn't java source code that run on the JVM, but bytecodes.
Quote:
since a loose definition of scripts could be " a set of instructions that are executed via an interpreter (virtual machine or whatever you may call it) instead of being compiled to machine code ...."
Bytecodes are machine code. The fact the machine is real or not shouldn't change the concept.
Quote:
Anyways , I'm NOT posting this to argue about the terminology of scripts and scripting languages.
After reading about the possible options for a while , I've decided to go with Flash .
I was suspecting that from your first post as you wrote you didn't like java anyway. Flash is the better choice for you then, especially now you have narrowed the requirements to mainstream platforms.
 
Old 03-31-2007, 03:12 PM   #10
95se
Member
 
Registered: Apr 2002
Location: Windsor, ON, CA
Distribution: Ubuntu
Posts: 740

Rep: Reputation: 32
Quote:
Originally Posted by entz
DO you really believe that differences between browsers are so vast? I guess you're a lil bit exaggerating.
Having done much web work, he really isn't. It's a PITA. By the end, everything feels like a hack

Quote:
Originally Posted by entz
shall we take for example Adope Flash 9 , according to Macromedia it's supported on Windows , linux , Solaris (SunOS) and Mac (OS x , etc) .
As long as the browser using the plug-in supports NSAPI. Also, Adobe doesn't even have a version of their flash player for amd64/emt64 linux yet... And Windows, linux, solaris, and Mac OS X is hardly exhaustive. Does solaris cover intel 32 & 64 bit machines as well, or just alpha?

Also, remember that asking a user to install the latest flashplayer or Java is a hassle. If you just have regular home-based users, it's not a huge issue, but if they're corporate users, they may not be able to just install whatever they want.

I think, by far, your safest bet if you need somewhat dynamic behaviour is to use a server-side programming language and XHTML+CSS. If your really adventurous you should look into AJAX as well.

Last edited by 95se; 03-31-2007 at 03:15 PM.
 
Old 03-31-2007, 11:28 PM   #11
graemef
Senior Member
 
Registered: Nov 2005
Location: Hanoi
Distribution: Fedora 13, Ubuntu 10.04
Posts: 2,379

Rep: Reputation: 148Reputation: 148
Quote:
Originally Posted by entz
The only alternative to web-embedded solutions would be making a client from scratch for each and every OS that's out there
No, look at cross OS libraries, or languages. For example Java, Python, Ruby all provide networking support native in the target OS or my personal favourite is QT which will compile to native machine code from the same source (C++). But there are many other solutions out there.

And you can also make it easier for the user when it comes to downloading the client software by using a scripting language on the server (eg PHP) to identify the clients OS and from that information suggesting which software they should be downloading.

Anyway, I gather that you are happy with flash (in that it addresses many of your requirements) so it just leaves me to wish you all the best with your endeavour.
 
Old 04-02-2007, 01:12 PM   #12
entz
Member
 
Registered: Mar 2007
Location: Milky Way , Planet Earth!
Distribution: Opensuse
Posts: 453

Original Poster
Blog Entries: 3

Rep: Reputation: 40
Appreciating the info you've posted folks!

Quote:
Originally Posted by graemef
Anyway, I gather that you are happy with flash (in that it addresses many of your requirements) so it just leaves me to wish you all the best with your endeavour.
Oh , Thank you!
 
Old 04-02-2007, 02:47 PM   #13
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
interestingly similar: http://www.linuxquestions.org/questi...d.php?t=540702

Quote:
Originally Posted by entz
First of all , I'm not confusing Javascript and Java ! ( i know that the two are different)

Well , you say that Neither Flash nor Java are scripting languages then you contradict yerself by saying that they run on a virtual machine (in other words they are scripts !) since a loose definition of scripts could be " a set of instructions that are executed via an interpreter (virtual machine or whatever you may call it) instead of being compiled to machine code ...."

Anyways , I'm NOT posting this to argue about the terminology of scripts and scripting languages.
After reading about the possible options for a while , I've decided to go with Flash .

Problem solved and thank you!
also, scripting languages vs. compiled language.

a scripted language has no equivelent binary executable associated with the source. it is all ascii text interpreted line by line and usually calls programs made by compiled binary executables.

a compiled language takes source code in ascii format and compiles it into byte code which contains machine language instructions (opcodes) specific for a particular processor (e.g.- m68k, wdc6502, x86, powerpc, jvm, dec-alpha...)

Last edited by schneidz; 04-02-2007 at 02:49 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
java, flash, etc. discourse Ubuntu 6 06-11-2005 04:07 PM
Firebird and Java / Flash bluefire Linux - Software 2 10-07-2003 10:45 AM
mozilla - no java and flash? spyghost Linux - Software 1 08-26-2003 10:24 AM
linux java/ flash help y2kzigen Linux - Software 9 03-22-2003 07:39 AM
linux Java help/ or flash y2kzigen Linux - Newbie 2 03-21-2003 06:37 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration