www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - what about d and mobile phones?

reply bobef <bobef_member pathlink.com> writes:
very soon mobile devices will have the power of today's
pc's... i think it is clear to anyone that pc's we are 
using today are already obsolete design... without
making any more predictions about the future will
mobile device programming be possible with d (ot if it is
now)? and if not i think this may kill d...

(btw i don't like mobiles.. but people do, so please do not 
judge me for this opinion)
Aug 09 2004
next sibling parent reply "Jarrett Billingsley" <kb3ctd2 yahoo.com> writes:
if someone writes a compiler for it, then yes, it will move to mobile
phones.

i mean look at C ;)  it hasn't had much problem moving to just about every
platform in existence.
Aug 09 2004
parent teqDruid <me teqdruid.com> writes:
On Mon, 09 Aug 2004 21:52:29 -0400, Jarrett Billingsley wrote:

 if someone writes a compiler for it, then yes, it will move to mobile
 phones.
 
 i mean look at C ;)  it hasn't had much problem moving to just about every
 platform in existence.

And with GDC, neither will D! :) With the GCC backend, D is (theoretically) just as portable. The only problem is the library, but If phobos is POSIX complaint, then it should be portable as well.
Aug 10 2004
prev sibling next sibling parent reply Ilya Minkov <minkov cs.tum.edu> writes:
bobef schrieb:

 very soon mobile devices will have the power of today's
 pc's... i think it is clear to anyone that pc's we are 
 using today are already obsolete design... without
 making any more predictions about the future will
 mobile device programming be possible with d (ot if it is
 now)? and if not i think this may kill d...

How is memory managed on mobile phones? What i can think of, is compiling to Java (or perhaps .NET?) bytecode, which can then be executed on Java mobiles - just then it will loose many security and performance advantages of D. And if Java's memory management works on the target device, then i bet one could get D to work perfectly well in a native mode as well, though effort might be too big for an individual. It just puzzles me how memory on such tiny devices is managed. The premise of efficient Garbage Collection is that the device has many times more memory than it needs on average. Does anyone know how it works on mobiles? I wonder because it might be interesting to get D to run on a Dreamcast, and do stuff which uses it to the limit - including CPU's memory, of which it has 16 megabytes. Apart from memory management, i don't see any problem using D on limited devices. It is even possible now with GNU D Compiler, which should work on many 32-bit devices supportd by GCC. A .NET compiler has also been written. A compiler to C for most existing compilers is possible, but no work has been done. -eye
Aug 10 2004
parent Lars Ivar Igesund <larsivar igesund.net> writes:
Ilya Minkov wrote:

 It just puzzles me how memory on such tiny devices is managed. The 
 premise of efficient Garbage Collection is that the device has many 
 times more memory than it needs on average. Does anyone know how it 
 works on mobiles?

I remember doing some Java ME programming on the first Siemens with Java support (a prototype of the SL45 I think). Just a couple of small menus doing some logic, and the heap was full. Especially string handling were killing it. I suppose the handling has improved since then (late 2001) and the size of available memory increased, though. Lars Ivar Igesund
Aug 10 2004
prev sibling parent Martin <Martin_member pathlink.com> writes:
Many mobiles run Java VM. If we can make D to compile into java bytecode, then
it's solved. They are already makind the D# compiler, so D->Java  compiler is
nothing impossible. 
I personally would like to use such a tool very much. I need to write programs
for Java VM but I hate Java programming language.
(Don't take it personally Java fans, but it is just not for me)
So D->Java compiler is something that I need very much. When I have more time,
then maybe I try to make something like that. But I don't know when I have such
time, maybe next summer, maybe even later. 

So if anyone has time, then make a D->Java VM compiler or D->Java->Java VM
compiler. The speed is not so important, as long it works.

Martin



In article <cf8iv8$u1s$1 digitaldaemon.com>, bobef says...
very soon mobile devices will have the power of today's
pc's... i think it is clear to anyone that pc's we are 
using today are already obsolete design... without
making any more predictions about the future will
mobile device programming be possible with d (ot if it is
now)? and if not i think this may kill d...

(btw i don't like mobiles.. but people do, so please do not 
judge me for this opinion)

Sep 12 2004