Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Cross-compiling OCaml
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Brandon J. Van Every <vanevery@i...>
Subject: RE: [Caml-list] Cross-compiling OCaml
Sven Luther wrote:
> Brandon J. Van Every wrote:
> >
> > I already explained why I'm stuck with Windows.
>
> Only because you chose to, nobody is ever stuck with windows.

To belabor a point: yes, I choose to develop commercial games.  Windows
PCs and consoles are the primary markets for those.  I believe the
choice of problem domain is first, language is second, and OS is third.
If you can get Linux onto 50% of the home users' desktops, great, do so.
I'll give Linux equal attention at that time.  Meanwhile, Microsoft has
95% of the consumer desktop marketshare.  They've got the job done
today, so that's where we play.

> Just go over and develop under linux, and cross compile.
> doing this in windows
> is order of magnitudes more painfull, as you noticed.

I think you're underestimating the number of other resources that need
to be accessed on Windows to ship a high quality commercial title.
Although it may eventually be possible to wrap up such tools under an
OCaml-centric, platform-neutral rubric, that day is not today.  If you
have any serious interest in the problem, please join us on
http://groups.yahoo.com/group/ocamlgames/ and also look at
http://sourceforge.net/projects/ocalibs/

> > > Well, but i guess the majority of caml developers are
> > > compiling under linux, so ...
> >
> > So, to me that's a problem to be solved.
>
> No its not, that is how it should be.

I see.  Linux is The One True Operating System [TM].  Ok, we have
intractable world views.  You're a Linux booster, and I don't like any
platform.


Cheers,                         www.indiegamedesign.com
Brand*n Van Every               S*attle, WA

Praise Be to the caml-list Bayesian filter! It blesseth
my postings, it is evil crap!  evil crap!  Bigarray!
Unboxed overhead group!  Wondering!  chant chant chant...

Is my technical content showing?

// return an array of 100 packed tuples
temps
  int $[tvar0][2*100]; // what the c function needs
  value $[tvar1]; // one int
  value $[tvar2]; // one tuple
  int $[tvar3] // loop control var
oncePre
eachPre
  $[cvar0]=&($[tvar0][0]);
eachPost
  $[lvar0] = alloc(2*100, 0 /*NB: zero-tagged block*/ );
  for(int $[tvar3]=0;$[tvar3]<100;$[tvar3]++) {
    $[tvar2] = alloc_tuple(2);
    $[tvar1] = Val_int($[cvar0][0+2*$[tvar3]]);
    Store_field($[tvar2],0,$[tvar1]);
    $[tvar1] = Val_int($[cvar0][1]);
    Store_field($[tvar2],1,$[tvar1+2*$[tvar3]]);
    Array_store($[lvar0],$[tvar3],$[tvar0]);
  }
oncePost

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners