Page 1 of 1

JavaScript - Mageia Linux vs Windows

PostPosted: Jun 16th, '12, 22:33
by wilcal
Are there still issues between Linux and Windows
when a website is using JavaScript? I have found
one website where launching a JavaScript routine is
definitely resulting in a difference when launched
on Mageia Linux then on Windows.

Re: JavaScript - Mageia Linux vs Windows

PostPosted: Jun 17th, '12, 00:40
by madeye
I would say that should more be a question about which browser is used. However it's not something I have ever had problems with. Then again I am using firefox in both systems...

Could you give an example of a website where there are issues? What browsers have you used?

Re: JavaScript - Mageia Linux vs Windows

PostPosted: Jun 18th, '12, 09:18
by sgunhouse
Presuming you're using the same browser on both platforms, there should be no difference - for the parts the browser renders. External programs/libraries like plugins are another matter, though if you have the same actual plugins those should be the same as well. Having said that, most browsers do include the platform as part of the user agent, so it is possible for websites to send you different code based on your platform ... if it's an issue with only one or two sites it could be that.

(I work on the user forums for a browser, so I have some experience with these things ...)

Re: JavaScript - Mageia Linux vs Windows

PostPosted: Jun 19th, '12, 23:57
by doktor5000
Actually each browser has its own Javascript engine, so which browser are you using, which version, Mageia packages or not, and which website?

Re: JavaScript - Mageia Linux vs Windows

PostPosted: Jun 20th, '12, 00:59
by wilcal
doktor5000 wrote:Actually each browser has its own Javascript engine, so which browser are you using, which version, Mageia packages or not, and which website?

Many thanks to all for the feedback. I've got a lot
of cross platform testing on this before I make any
kind of assessment.

From what I am finding 98% of all java script works
everywhere. It's that 2% I'm trying to isolate. I don't
have either a WinBlows box nor Apple. Neither
OS have Live-CD's like linux.

Re: JavaScript - Mageia Linux vs Windows

PostPosted: Jun 20th, '12, 20:26
by doktor5000
You still haven't mentioned which browser and which version you're using, and which site causes problems. Also are you aware of the many automated Javascript testing and performance-measuring frameworks which are run on most browsers by their developers these days, which compares it to other common browsers?

FWIW, there are numerous livecd's for Windows.

Re: JavaScript - Mageia Linux vs Windows

PostPosted: Jul 1st, '12, 03:36
by andreano
sgunhouse wrote:Presuming you're using the same browser on both platforms, there should be no difference.


... as long as the same compiler & optimizations are used on those platforms.

Software on Windows is usually compiled once, by the makers themselves → Lots of effort is put into optimization. Possibilities include:
* Link time optimization, if you have lots of RAM (It was recently impossible to link Firefox on 32-bit windows due to the address space limitation.)
* Profile guided optimization, if you have the manpower and an expensive toolchain, I presume.

Re: JavaScript - Mageia Linux vs Windows

PostPosted: Jul 1st, '12, 15:57
by doktor5000
FWIW, at least Mozilla does both by default on linux and windows platform, with the former being done as consequence from the results of the latter.

Re: JavaScript - Mageia Linux vs Windows

PostPosted: Jul 10th, '12, 08:47
by sgunhouse
Opera does PGO I know ... but in that sense, optimizations to the program shouldn't really effect what any program does - only how quickly. Unless a program leaves out fallback code and therefore some features are not available on certain systems - other than that (and UI guidelines) programs really should operate the same on Linux, Windows, OSX or whatever. Okay, and presuming the same version on all systems.

Re: JavaScript - Mageia Linux vs Windows

PostPosted: Jul 10th, '12, 19:27
by doktor5000
Well, you're absolutely right, at least in theory :P
First big difference is already widely used compilers, mostly Intel/Microsoft ones on Wintel, and gcc on Linux.

Re: JavaScript - Mageia Linux vs Windows

PostPosted: Jul 10th, '12, 20:16
by wilcal
sgunhouse wrote:programs ( JavaScript ) really should operate the same on Linux, Windows, OSX or whatever. Okay, and presuming the same version on all systems.

Well taken but I'd like to make the point that there is great competition
between website creators to use the very latest and greatest GeeWiz
stuff. Therefore a lot of websites using the latest and greatest ( JavaScript )
will work differently WinBlows -> OSX -> Linux. Many times
not working at all.

Re: JavaScript - Mageia Linux vs Windows

PostPosted: Jul 10th, '12, 23:42
by doktor5000
wilcal wrote:Therefore a lot of websites using the latest and greatest ( JavaScript )
will work differently WinBlows -> OSX -> Linux. Many times
not working at all.

Many times not working at all? What browsers are you using there? I've yet to see a website which doesn't work AT ALL in relatively current browsers ...

Re: JavaScript - Mageia Linux vs Windows

PostPosted: Jul 11th, '12, 00:45
by wilcal
doktor5000 wrote:
wilcal wrote:Therefore a lot of websites using the latest and greatest ( JavaScript )
will work differently WinBlows -> OSX -> Linux. Many times
not working at all.

Many times not working at all? What browsers are you using there? I've yet to see a website which doesn't work AT ALL in relatively current browsers ...

Windows XP + IE I saw just the other day did poorly.
I suspect because it had not been updated in awhile.