portability

Lightweight, portable C++ fibers, MIT license

戏子无情 提交于 2019-12-02 22:19:55
I would like to get ahold of a lightweight, portable fiber lib with MIT license (or looser). Boost.Coroutine does not qualify (not lightweight), neither do Portable Coroutine Library nor Kent C++CSP (both GPL). Edit: could you help me find one? :) Libtask : MIT License Libconcurrency : LGPL (a little tighter than MIT, but it's a functional library!) Both are written for C. I actually blogged about this in the past. Have a look! I hope it answers your questions. In it, I cover a number of libraries, and I was particularly interested in ones that were useful for systems programming (asynchronous

SQL portability gotchas

人盡茶涼 提交于 2019-12-02 21:08:01
My company has me working on finishing a back end for Oracle for a Python ORM. I'm amazed at how much differently RDBMSes do things even for the simple stuff. I've learned a lot about the differences between Oracle and other RDBMSes. Just out of sheer curiosity, I'd like to learn more. What are some common "gotchas" in terms of porting SQL from one platform to another? Please, only one gotcha per answer. Oracle does not seem to have a problem with cursors, they are a huge performance problem in SQL server. Actually pretty much all performance tuning is database specific (which is why ANSII

Could Grand Central Dispatch (`libdispatch`) ever be made available on Windows?

我的梦境 提交于 2019-12-02 20:42:57
I’m looking into multithreading, and GCD seems like a much better option than manually writing a solution using pthread.h and pthreads-win32 . However, although it looks like libdispatch is either working on, or soon going to be working on, most newer POSIX-compatible systems… I have to ask, what about Windows? What are the chances of libdispatch being ported to Windows? What are the barriers preventing that from happening? If it came down to it, what would I need to do to preform that portage? Edit: Some things I already know, to get the discussion started: We need a blocks-compatible

Setting up RStudio Portable Default R version

人走茶凉 提交于 2019-12-02 20:42:57
I recently discovered a portable version of R and RStudio @ http://rportable.sourceforge.net/ Open source rocks! At any-rate, I am jumping from pc to pc at my university, and I'd like to get Portable R-studio to recognize Portable R as the default R version. Most computers at the university already have several versions of r-installed, and RStudio uses one of those versions of R. When I go into the Global Options to change the default version, it does not "see" portable R on the USB drive. I am basically hopping I can run R without constantly having to download packages, specifying the work

Developing lightweight (no runtime) Windows based GUI applications using free tools [closed]

不羁的心 提交于 2019-12-02 20:32:37
Does anyone know of free tools (languages, environments) that would support development of GUI applications on the Windows platform? I am looking to be able to create a single executable file that has no dependencies on any external runtime or library. I would like to be able to then run this EXE in a very similar manner to Process Explorer or Autoruns from SysInternals. In other words; a no installer, portable application. This application must also provide a reasonably rich windowing (controls, widgets etc) user interface and should run on Windows 2000, XP, Vista and later. I'm aware of C/C+

Preventing MSYS 'bash' from killing processes that trap ^C

时光毁灭记忆、已成空白 提交于 2019-12-02 18:51:38
I have a console-mode Windows application (ported from Unix) that was originally designed to do a clean exit when it received ^C (Unix SIGINT ). A clean exit in this case involves waiting, potentially quite a long time, for remote network connections to close down. (I know this is not the normal behavior of ^C but I am not in a position to change it.) The program is single-threaded. I can trap ^C with either signal(SIGINT) (as under Unix) or with SetConsoleCtrlHandler . Either works correctly when the program is run under CMD.EXE. However, if I use the "bash" shell that comes with MSYS (I am

What is the difference between a wrapper, bindings and a port?

寵の児 提交于 2019-12-02 14:07:07
In software portability context, what is the difference between this three concepts? So for example, I want to use the ncurses library, the original ncurses library is written in C, but my application is being written in C++, then I found "ncurses wrapper", "bindings to ncurses", and "ncurses port". Which one should I use? What are the pros and cons of each one? A wrapper is a bit of code that sits on top of other code to recycle it's functionality but with a different interface. This usually implies an interface written in the same language. It should also be noted that sometimes people will

pygame not working with portable python

杀马特。学长 韩版系。学妹 提交于 2019-12-02 00:42:44
I'm trying to get pygame working with portable python 3.2.1.1 running off a USB stick, but when I use the following code: import pygame, sys It says: ImportError: No module named pygame My understanding was that pygame came embedded in portable python. Can anyone help? Pygame does not come embeded in portable python 3.2. Tho it comes in the 2.7 version. Sources: http://portablepython.com/wiki/PortablePython3.2.1.1 - 3.2 (No pygame here!) http://portablepython.com/wiki/PortablePython2.7.3.1 - 2.7 (Pygame embeded!) Running Pygame on Portable Python.... On Windows 7 download and copy the msi file

C++ Portability between Windows and Linux

為{幸葍}努か 提交于 2019-12-01 21:49:40
问题 I have a question about writing programs to be portable between windows and linux. Recently I have realized that if you write a program that uses any sort of external library, if that library doesn't have a linux version (or a windows version when developing in linux) then you're screwed. Here then is my question: if I write a program in linux that links to lol.a and then I want to compile and run it on windows without recompiling lol.a into lol.lib, can something like MinGW or Cygwin do this

How does one programmatically determine if “write” system call is atomic on a particular file?

徘徊边缘 提交于 2019-12-01 19:38:16
In some cases the coder cannot rely on system calls being atomic, e.g. if the file is on a NFS filesystem. (c.f. NFS Overview, FAQ and HOWTO Documents ). But atomic system calls are ultimately required for most database work. (c.f. Atomicity of database systems ). Is there a standard (and OS independent) way of confirming writes (and other syscalls) are atomic on a particular FILE in C (or python). Any suggestions? Subsequent notes: Atomicity on pipes is discussed in the following: unix pipe multiple writers What happens if a write system call is called on same file by 2 different processes