Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

D programming & iPhone

Tags:

macos

iphone

d

I've just started learning "D Programming". I'd like to deploy my programs on an iPhone. which has me wondering; is is possible to develop for a Mac or iPhone using D?. I'd like the application to be completely written D or at least minimal objective-c. Am I starting a hopeless battle by choosing D over the other mainstream languages (c/c++/java/objective-c/c#)?

like image 830
Terry Su Avatar asked Dec 09 '09 10:12

Terry Su


People also ask

What is the meaning of D programming?

D Programming - Overview. D programming language is an object-oriented multi-paradigm system programming language developed by Walter Bright of Digital Mars. Its development started in 1999 and was first released in 2001. The major version of D(1.0) was released in 2007.

What is D programming language used for?

D has been successfully used for AAA games, language interpreters, virtual machines, an operating system kernel, GPU programming, web development, numerical analysis, GUI applications, a passenger information system, machine learning, text processing, web and application servers and research.

How can I learn D code?

D programming is actually developed by re-engineering C++ programming language, but it is distinct programming language that not only takes in some features of C++ but also some features of other programming languages such as Java, C#, Python, and Ruby.

How popular is D programming language?

The TIOBE programming language popularity index for February 2019 (snapshot) shows D being in 23rd place with 0.635% market share. This is an increase over last month (snapshot), where it showed D 25th with 0.579%. TIOBE also says that D's highest-ever ranking was 12th place with 1.809% in Mar 2009.


3 Answers

Never say never, michelf has been working on a D/Objective-C bridge for a while.

Here's the old site: http://michelf.com/projects/d-objc-bridge/

The current efforts can be watched at https://github.com/michelf/dmd/tree/d-objc Have a look at the readme.

like image 126
Trass3r Avatar answered Sep 21 '22 02:09

Trass3r


You won't be able to do D Programming Language on the iPhone.

On Mac OS though, you can use GCC to compile your D code.

like image 24
Pablo Santa Cruz Avatar answered Sep 22 '22 02:09

Pablo Santa Cruz


take a peek at http://michelf.com/projects/d-for-xcode/ it's the installer package for D for Xcode (the latest version, so not the uncompleted D 1.0 version from 2007). although since xcode 4.2 is just released, this installer is a bit out of date and not fully supported yet. but for me it works just fine, except from the fancy syntax highlighting and auto-completion. be sure to give it a look :)

like image 45
Marnix v. R. Avatar answered Sep 20 '22 02:09

Marnix v. R.