Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
With the Developer Preview only supporting Java Applications on Android Things I am curious to know if native applications can also be run on this platform.
Mainly due to 2 reasons.
Embedded devices have a large support for sensors many of which are written in C/C++. Here's one for example: https://github.com/intel-iot-devkit/upm. With NDK, wouldn't this be easier to integrate into Android Things rather than rewriting the same sensor drivers in Java?
It would also be very interesting to compare the speed characteristics of running Native Apps to Java ones utilizing Peripheral Manager APIs for GPIO/I2C/SPI etc.
With the Developer Preview only supporting Java Applications on Android Things I am curious to know if native applications can also be run on this platform.
You can build and run apps with native support in Android Things. Simply create a project in Android Studio with C++ support and run.
It would also be very interesting to compare the speed characteristics of running Native Apps to Java ones utilizing Peripheral Manager APIs for GPIO/I2C/SPI etc.
It is possible to compare Java/Kotlin PIO APIs and Native PIO APIs.
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I thought this would be the appropriate community to ask this question.
Back when Apple had their developer's conference over the summer, I was aware that they were going to make Swift open source.
I was under the impression that Xcode would not be ported to Linux, but I was under the understanding that some entity would create a development program to imitate Xcode.
Therefore, I am wondering about new developments in this situation.
Does anyone have any more current knowledge about this topic or any experiences with this?
There's a misunderstanding here.
Swift the programming language is open source.
It doesn't mean that iOS or OS X frameworks, like Cocoa, UIKit, etc, are available in Linux - Apple didn't announce that.
When you make an app for iOS using Swift, you have to import UIKit and other libraries - those are the iOS parts.
Swift is just the language - you can already make an iOS app with Ruby, Objective-C, JavaScript, etc, using these same libraries.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I used node for 1 year, but only for writing server applications. I am now interested in making an application that's usually written in a language like C or C++, so I am not sure if it's possible, for example, to write a keylogger or simillar applications using JavaScript and Node.js?
Yes, you can use Node.js to write desktop applications which can act as a keylogger, communicate with device drivers and other system resources.
Most of the system interoperability has gone into providing cross-platform support for particular system event notifications and I/O. Be mindful that there are tall stacks for reading keyboard events that differ from platform to platform, so you will probably want to take a look around the Node.js ecosystem for packages like node-ffi, which may assist you at accessing system resources from your application's event loop.
Should you want to write your own system bindings that are exposed to V8 and accessible by your Node.js application, there is excellent support for going native, from packaging to creating asynchronous events for your Node.js application.
Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
My goal is to create single page applications on my Mac book running OSX.
Support for Angular.js / Node.js / TypeScript
Ability to run on Mac OSX
Free or cheap
Support for debugging
Ability to run locally for testing
You can use WebStorm from JetBrains. It provides code completition, syntax and error check for html, css, most JS libraries and even for CoffeeScript. It has an internal terminal to work with npm modules. It's compatible with some test environment such as Karma for AngularJS.
You can have an academic license for 26€ if you are a student.
Btw, if you want to work with PHP as well, I suggest you PHPStorm. It offers pretty much everything WebStorm offers plus PHP support.
Personally, I don't like XCode for web purposes. On all my PC's I use sublime text 3, but that's too basic for heavy duty web development. A "mature" product, specialized on web languages for mac, featuring special things like live preview, code completion, folding, syntax checking etc, is Panic's Coda 2. (but you'll need to spend 75 bucks. Get the trial. It's worth it.)
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I have one application, which has been developed on Linux (gcc based), I need to port the entire application to Windows.
Can you suggest me which tool/interface should choose to build the environment?
If I choose Visual Studio, will it support GCC compiler tool chain or which one is suitable among MinGW and Cygwin ?
Please give me some Inputs and the challenges will there while porting.
Thanks...
I would recommend an abstraction layer for all your OS-dependent routines. You then provide two implementations of those routines. One for Linux, one for Windows, and you compile one or the other depending on the current platform. You should keep the portable code well separated from the platform-specific code.
Of course you could also use an already existing platform abstraction layer, like Qt's Core module (which provides abstractions for threading and I/O) or the Network module, which provides portable networking. Of course I cannot determine whether this is suitable in your case or not, since I don't know what kinds of system calls you need or if C++ is even acceptable, but it might be worth looking into it (or other similar portability libraries.)
As a compiler, you can actually build the Windows binaries under Linux. I've been doing that for a long time now, since I'm not a Visual Studio kind of guy. I prefer the likes of CMake or Autotools. For that, I recommend MXE.
Well, GCC is just the copiler. I assume they are just c or cpp files so just compile them in windows with a windows compatible c/cpp compiler.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I know its possible to use haskell with web development, but what about for mobile development? Since Haskell runs almost flawlessly windows, Linux, and Mac, I can't see why this wouldn't be possible.
GHC does support ARM to some extent, so you could compile Haskell programs to run on most mobile phones.
That said, there's very little library support for Haskell mobile applications on the big platforms (iOS and Android) at the moment. The issue is that they use custom system and UI libraries that aren't (really) available outside their ecosystems. You could interface Haskell code with Android or iOS apps (probably via the C bindings), but there's no automated way of it, and there's no simple library to use. So, although you could write some Haskell program that computes something, getting input from a user, and showing them the result would be quite a hassle (see the relevant HaskellWiki articles on Android and IPhone).
Your best bet at the moment would probably be Maemo, which should be able to run GTK Haskell apps for ARM without much hassle. That said, there aren't many Maemo phones out there. There are also a few other mobile distributions that just run vanilla Linux systems and those would work just as well; in particular, any tablet that runs a vanilla Linux (as opposed to Android, or some other heavily customized distribution) would probably run even graphical Haskell apps just fine.