Sign in to follow this  
vanevery0

Unity OCaml?

Recommended Posts

vanevery0    146
Has anyone here tried OCaml for game development? Anyone actually using it for game development? Anyone using it for Windows game development? I started a mailing list, ocamlgames. I proposed a few community projects that nobody bit on. After some initial sputterings about UNIX vs. Windows issues, it went dead. I have an intention to implement an OCaml Script Server for the Nebula Device 3D engine. But, it will depend on the PITA factor. I'm going to just screw around with the engine first, probably in Lua because that would be easiest. It's what that crowd seems to be into. Lua won't cut it for more abstract development though, and I'm not going to do things in C++. I thought maybe I'd bug people here... or else find out if there's some other better language that people tend to rally around. I've contemplated Bigloo, Chicken Scheme, MzScheme, and D. I'm mainly interested in performance for 3D and AI in games. I don't really care about scripting languages, I'm interested in natively compiled languages. I'm interested in good C FFIs, 32-bit floating point support, good Windows support.

Share this post


Link to post
Share on other sites
ToohrVyk    1595
VanEvery0:

While I love OCaml and consider it a great language, I'm afraid to say AblazeSpace is right, there are much better languages than OCaml for making games. This comes from the fact that there are [only a] few game-oriented libraries for OCaml.

Of course, this is only the case if you intend to code the entire game in OCaml: you could always code the rendering, control and sound parts in another language, use OCaml for the game logic, and link everything together, no questions asked. Or even use it as a scripting language.

So the bottom word is: do it. OCaml was never designed for game development, and as such lacks any game-related support. But if you managed to prove good games with OCaml are possible (which they are), it would surely shove the language in the right path.

AblazeSpace:

It's too bad that you hate that language, but most people that study Caml after having studied another language (mostly imperative ones) first have the same reaction.

What I find quite sad about OCaml is that it is extremely elegant and concise, prevents many bugs that would appear in weak-typed languages, and still has the same library support as a dead paraplegic snail for anything beyond computer beeping or plotting pixels.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster   
Guest Anonymous Poster
Quote:
Original post by ToohrVykmost people that study Caml after having studied another language (mostly imperative ones) first have the same reaction.

Most people that learn how to stand on hands after having learnt another way of standing (mostly standing on feet) first have the same reaction...
;)

Share this post


Link to post
Share on other sites
Diodor    517
Quote:
Most people that learn how to stand on hands after having learnt another way of standing (mostly standing on feet) first have the same reaction...


Most people that learn how to stand on feet after having learnt another way of standing (mostly on their hands) first have the same reaction...
;)

[Edited by - Diodor on October 2, 2004 12:26:05 AM]

Share this post


Link to post
Share on other sites
Guest Anonymous Poster   
Guest Anonymous Poster
It sounds like you're going through a progression of languages that I went through a little while ago... good stuff.

Bigloo, Chicken, and Chez Scheme are all great. But they get pretty tedious to work in -- the FFIs get really annoying, because you need to work with lots unboxed variables. Maybe it's just me; I'm not as good at Scheme as I would like to be, so I think that contributed to the klunkiness.

D is pretty nice, especially if you're looking for something C++ish that's not Java. Actually, I guess D is a Java that doesn't suck.

But man, OCaml is damn nice. The FFI is fantastic. It's got a totally rockin' native code compiler that will beat gcc any day, but it's still got all the features of a language that supports the functional and/or OO paradigm. It's got a really good community, too.

Go with OCaml -- I'd be with you all the way.

-- John

Share this post


Link to post
Share on other sites
Guest Anonymous Poster   
Guest Anonymous Poster
Quote:
Original post by AblazeSpace
I was forced to work with the functional version of caml at university... I HATE CAML! I see no reason to use it because there are other, much better languages...


Which are ?
Given your experience, I doubt you think about Clean or Haskell. But if you think about C++ or C#, then all I can say is, this can only come from a very inexperienced programmer.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

  • Similar Content

    • By dobbey
      Who are you?
      We call ourselves Dobbey. Our team currently consists of two people.
      We are both early 20's and come from Germany. At the moment this is our hobby.
      What's the name of the game and what is it about?
      The game is called Insane and it is a 2D adventure puzzle game with horror elements.
      Insane is about a scientist who has been doing human experiments for years.
      His most successful experiment is number 73, which seems to be mentally labile.
      This experiment manages to flee one day but can't distinguish between reality and imagination.
      In this game you will find a creepy atmosphere with difficult and varied puzzles.
      What inspired you?
      The style of the game is inspired by Limbo. But we were also inspired by Jump 'n' Run games and movies.
      Of course, we have also our own elements like an inventory system, butterfly effect, the "INSANE" effect, using a QR-Code..
      Which program do you use to develop the game?
      We are programming it with Unity. In our opinion, it is the best program for indie games.
      And of course we are working with Photoshop to create the graphics.
      What platform will Insane be available on?
      For PC.
      How can I support you?
      Twitter:        http://bit.ly/20POkfM    
      YouTube:     http://bit.ly/2rLXoM0
      Instagram:   http://bit.ly/2qwU2bl
      Facebook:    http://bit.ly/2p3nwRQ
      Website:       http://bit.ly/2s8buqU
       

      Here you can see some of our screenshots.

       

      (You can find the animation on Twitter/Instagram.)
       

       

       

      (You can find the animation on YouTube.)

      What do you think about it?
       
      Yo can see more screenshots or videos on Twitter, Instagram or YouTube.
    • By Liquid1Phantom
      Hello, my name is Thomas and I am currently starting up a project. 
      The project is going to be a very hardcore, and tactical FPS that is similar to Escape from Tarkov. It will be made within Unity, and will be programmed in C#. Currently, I have a Unity project started, an organized Discord setup, and as well as a very organized Google Drive. The Google Drive has art references, and plenty of folders for organization. Lastly, the payment for this project will be solely rev-share as I have no money.
      I am looking for anyone who can contribute: 2D artists, 3D artists, composers, programmers, etc.
      If you would like to help out and be of use, please email me at: thomasmunson2277@gmail.com
      Alternatively, add my Discord: Thomas#3788
    • By ilovegames
      Score points by shooting enemies! Before you is one of the best representatives of the simulator sniper games genre, with stunning graphics, quality effects, and realistic ballistics of bullets. It will not be easy to win for sure. Are you ready? Then take a sniper rifle and fight!
      Download http://falcoware.com/Sniper.php




  • Popular Now