cross-platform

C++ performance tips and rules of thumb anyone?

When coding, what is a good rule of thumb to keep in mind with respect to performance? There are endless ways to optimize for a specific platform and compiler, but I'm looking for answers that apply equally well (or almost) across compilers and platforms. ...

Develop app to run natively or go cross platform?

What's your opinion on whether one should write an application for a specific platform or use a cross platform approach and reach more potential clients? It would be a GUI based application and I'm thinking of using Java. Most of the applications that I've used built on Java don't run as smooth as the native applications on the respect...

Embedded web browser engine for cross platform desktop application?

I'd like to embed a browsing engine (HTML,JS,CSS,DOM) in my desktop applications. Which one is most suitable for me if I want to use it in a cross-platform desktop application? Should I stick to one specific or write my own abstraction layer on top of the natives ones? Update: A solution needs to provide an option for at least Windows/...

java background/daemon/service cross platform best pratices

Howdy I am looking for the best way to make my desktop java program run in the background (daemon/service?) across most platforms (Windows, Mac OS, Linux [Ubuntu in particular]). By "best way" I am hoping to find a way that will: 1) require a minimum amount of platform-specific code. 2) not require the user to do anything a general co...

How can I detect the operating system in Perl?

I have Perl on Mac, Windows and Ubuntu. How can I tell from within the script which one is which? Thanks in advance. Edit: I was asked what I am doing. It is a script, part of our cross-platform build system. The script recurses directories and figures out what files to build. Some files are platform-specific, and thus, on Linux I don't...

Elisp performance on Windows and Linux

I have the following dead simple elisp functions; the first removes the fill breaks from the current paragraph, and the second loops through the current document applying the first to each paragraph in turn, in effect removing all single line-breaks from the document. It runs fast on my low-spec Puppy Linux box using emacs 22.3 (10 seco...

Will Flash Popularity Become AIR Popularity?

[This is a community Wiki so do not bother voting it down if it seems like a poll question. It is.] Will Adobe be able to translate its success in Flash Penetration (although also questionable, see my post here) to Adobe AIR? Is Adobe AIR the "next big thing" in a desktop platform, just another player (along with what else?), or will it...

Cross-platform executable/runtime delivery method

I need assistance finding a delivery method that best fulfills the following requirements: We wish to deliver a single file to my clients. Clients should be able to launch this file from the operating system shell - much like running an '.exe' on Windows. After being launched, the program/script should be able to display a window with ...

Cross platform keylogger

I'm looking for ways to watch mouse and keyboard events on Windows, Linux and Mac from Python. My application is a time tracker. I'm not looking into the event, I just record the time when it happens. If there are no events for a certain time, say 10 minutes, I assume that the user has left and stop the current project. When the user r...

3D Engine Comparison

I am currently investigating several free/open source OpenGL based 3D engines, and was wondering if you guys could provide some feedback on these engines and how they are to work with in a real world project. The engines being compared are (in no particular order): Crystal Space Panda3D Irrlicht These are the main ones i know that ...

Listing the processes running on one's computer in Python

Is there a cross-platform way to list the processes running on one's computer through a python script? For Unix based system "ps -ef" works, but I am new to Python and don't know a way to write something that would work across any platform. Thanks! ...

How can I negate the return-value of a process?

I'm looking for a simple, but cross-platform negate-process that negates the value a process returns. It should map 0 to some value != 0 and any value != 0 to 0, i.e. the following command should return "yes, nonexistingpath doesn't exist": ls nonexistingpath | negate && echo "yes, nonexistingpath doesn't exist." The ! - operator is ...

Cross-Platform Desktop Apps -- An Approach?

I have what I believe is a killer idea for an application. By definition, this would be a desktop application, and it ties into some fairly low-level services provided by the platforms for which I'd write it (Windows Search Service, Mac OS X Spotlight server). My intent is both a Mac OS X and Windows version. The absolute intent is actu...

What is a lightweight cross platform WAV playing library?

I'm looking for a lightweight way to make my program (written in C) be able to play audio files on either windows or linux. I am currently using windows native calls, which is essentially just a single call that is passed a filename. I would like something similar that works on linux. The audio files are Microsoft PCM, Single channel...

Using cmake to generate visual studio C++ project files

Hi, I am working on an open source C++ project, for code that compiles on Linux and Windows. I use cmake to build the code on Linux. For ease of dev-setup and political reasons, I must stick to visual studio project files/editor on Windows (I can't switch to Code::Blocks, for example). I see instructions to generate visual studio files...

What would you do if you coded a C++/OO cross-platform framework and realize its laying on your disk for too much due to no time?

This project started as a development platform because i wanted to be able to write games for mobile devices, but also being able to run and debug the code on my desktop machine too (ie, the EPOC device emulator was so bad): the platforms it currently supports are: Window-desktop WinCE Symbian iPhone The architecture it's quite compl...

Does W3C validated CSS automatically mean cross-browser compatibility?

I've finally completed a working version of my first ever CSS-supported site (thanks to some very helpful suggestions on this forum) and have validated the CSS. Before I go out and find (buy?) another machine (I'm a Mac) to check IE on, is it remotely possible that the valid CSS is really truly valid on IE as well as Firefox, Safari tha...

Cross Platform SWF Playback with Python?

I'm looking for different solutions to playing back SWF files on Windows, OSX and Linux using Python. Ideally I'd like to embed the player inside a wxPython frame/window. One possibility I'm investigating is the Mozilla XPCOM framework since its used by FireFox to load the Flash plugin within the browser. ...

OS X equivalent to OutputDebugString() ?

I'm examining the feasibility of porting an existing Windows MFC control to OS X/Carbon. My test bed is a C++ Carbon application generated using the XCode 3 Wizard. I'm looking for a quick way to dump some trace info to the debugger or the OS X equivalent of DbgView. On Win32 I'd use OutputDebugString() - what's the deal on OS X? Is th...

How a Windows Developer can most easily get his software to work well under Wine

Many of my users have been telling me that they'd like to run my software on their Linux machines under Wine. But I'm a Windows Developer who has practically no experience with Linux. Now I could spend a month or two installing Linux, learning Linux, installing Wine, learning Wine, and thoroughly ensure my application runs well under W...