Questions tagged [platform-independent]

Software or peripherals intended to permit uniform functionality on multiple platforms, such as multiple operating systems or multiple devices.

Overview

  • This tag should be marked as synonymous with [cross-platform].

See also

123 questions
9
votes
6 answers

Portable way to get file size in C/C++

I need to determin the byte size of a file. The coding language is C++ and the code should work with Linux, windows and any other operating system. This implies using standard C or C++ functions/classes. This trivial need has apparently no trivial…
chmike
  • 17,648
  • 19
  • 66
  • 93
8
votes
6 answers

How platform-independent is .Net?

Can the .NET framework be installed on Linux, Unix, MAC etc. operating systems?
Ravi
  • 663
  • 1
  • 5
  • 13
8
votes
4 answers

OS-independent API to monitor file system?

I would like to experiment with ideas about distributed file synchronization/replication. To make it efficient when the user is working, I would like to implement some kind of daemon to monitor changes in some directory (e.g.…
Alex. S.
  • 126,349
  • 16
  • 50
  • 61
7
votes
3 answers

Bridge between Java and C#

I have been given a task to create a bridge between C# and Java. It was said that if we use C# right now, and then we receive a Java file from somewhere else, we should be able to convert that Java file into .NET so it can be compatible with our…
Alexey
  • 3,387
  • 8
  • 32
  • 53
7
votes
2 answers

Capitalization and NoClassDefFoundError vs ClassNotFoundException

I'm seeing differences across platforms about when Class.forName() throws ClassNotFoundException and when it throws NoClassDefFoundError. Is this behavior well-defined somewhere, or have I stumbled across a bug? Consider the following code (which is…
Zack
  • 5,156
  • 8
  • 29
  • 47
7
votes
4 answers

How to run a script and not wait for it in Perl?

I have a system call in Perl that looks like this: system('/path/to/utility >> /redirect/to/log file'); But this waits for utility to complete. I just want to trigger this and let the Perl script finish irrespective of whether the utility call…
Lazer
  • 79,569
  • 109
  • 264
  • 349
7
votes
2 answers

Pure WBXML encoding for PHP?

Is there a native PHP wbxml API that can be used platform-independently? Perhaps a loadable module? I have seen the pecl implementations but I have not been able to successfully work with the builds on win32 platforms.
Olaseni
  • 7,250
  • 15
  • 41
  • 64
7
votes
1 answer

How to ensure same float numbers on different systems?

If I compile following c lines on windows and linux(ubuntu) I get different results. I would like to avoid. How can I do it? double a = DBL_EPSILON; double b = sqrt(a); printf("eps = %.20e\tsqrt(eps) = %.20e\n", a, b); linux output: eps =…
Will
  • 145
  • 1
  • 2
  • 5
6
votes
3 answers

Is it possible to use #ifdef like checks in assembler?

I have tested a bit of assembler on Linux using the AT&T syntax. One thing that struck me was that the book I was reading was written from a 32-bit standpoint. Thus, all sizes would have to be changed to the correct 64-bit versions for me. Or I…
inquam
  • 11,960
  • 14
  • 53
  • 95
6
votes
3 answers

Avoid implementation defined types in platform independent code

I just started working on a big project which is supposed to be platform independent, but it actually uses types which are implementation defined such as char. This had already caused some problems, since for some devices char is by default signed…
Nick
  • 9,515
  • 17
  • 75
  • 175
6
votes
15 answers

Is .NET platform independent?

.NET is a language independent platform. But is it platform independent as well ? How ? EDIT : I have heard, .NET 4.0 is developed considering plateform independency ! Well, hope it may take over Java, if so ! EDIT : The answer depends upon the…
user284291
6
votes
3 answers

Get user name from the command line on different platforms

Is there a way in MATLAB to get the user name of the user that started the session? I am interested in solutions for Windows, Linux and Mac OSX. I imagine that if the solutions are platform-specific, both solutions can be integrated as follows: if…
Amelio Vazquez-Reina
  • 74,000
  • 116
  • 321
  • 514
5
votes
8 answers

Most appropriate platform independent development language

A project is looming whereby some code that I will be writing may be deployed on any hardware that potential clients happen to have. Its a business application that will be running 24/7 so I envisage that most of the host machines will be server…
Jim
5
votes
3 answers

Email obfuscation question

Yes, I realize this question was asked and answered, but I have specific questions about this that I feel were not clear on that thread and I'd prefer not to get lost in the shuffle on another thread as well. Previous threads said that rendering the…
Rich
  • 34,878
  • 31
  • 108
  • 151
5
votes
11 answers

Platform independent languages

I was searching a bit for another platform independent language like Java. Are there other P.I. languages? Thanks
Martijn Courteaux
  • 63,780
  • 43
  • 187
  • 279
1
2
3
8 9