flat assembler
Message board for the users of flat assembler.

Index > Heap > OCaml

Author
Thread Post new topic Reply to topic
Imagist



Joined: 13 Jun 2004
Posts: 114
Location: Pennsylvania (USA)
Imagist
Has anybody tried OCaml? I'm thinking about learning a new programming language, and this seems like a nice replacement for C since it is comparably fast and IMHO, C is actually HARDER to use than assembly (and therefore provides little benefit).

_________________
Many things are possible. Few things are likely.
Post 11 Dec 2008, 19:44
View user's profile Send private message Visit poster's website Reply with quote
asmcoder



Joined: 02 Jun 2008
Posts: 784
asmcoder
[content deleted]


Last edited by asmcoder on 14 Aug 2009, 14:54; edited 1 time in total
Post 11 Dec 2008, 20:08
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
Quote:
C is actually HARDER to use than assembly (and therefore provides little benefit)

I don't think you can judge benefit only by how hard language is to use. If that was the case, we should all use python, or java, or something like that.
Post 11 Dec 2008, 21:29
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
bitRAKE



Joined: 21 Jul 2003
Posts: 2915
Location: [RSP+8*5]
bitRAKE
Have you seen the programming language shootout? Try to code something in ATS, Laughing ...OCaml places high on some tests, but always beat by C++. As a programming language it seems interesting - as does Haskell.

Do you have any specific goals, or just a new language?
Post 12 Dec 2008, 02:38
View user's profile Send private message Visit poster's website Reply with quote
TmX



Joined: 02 Mar 2006
Posts: 821
Location: Jakarta, Indonesia
TmX
From a mathematical point of view, OCaml is very nice, as well as Haskell, Lisp, and other functional languages.

But sometimes, the concept of "purity" is quite hard to grasp.

Laughing
Post 12 Dec 2008, 07:53
View user's profile Send private message Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4633
Location: Argentina
LocoDelAssembly
If you are looking for very pure object oriented language then give Smalltalk a try.
Post 12 Dec 2008, 14:09
View user's profile Send private message Reply with quote
MazeGen



Joined: 06 Oct 2003
Posts: 975
Location: Czechoslovakia
MazeGen
vid wrote:
If that was the case, we should all use python, or java, or something like that.


QBASIC.EXE worked great for me back in 1995 Cool
Post 12 Dec 2008, 15:17
View user's profile Send private message Visit poster's website Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4237
Location: 2018
edfed
why a new language?
why don't just fasm syntax with your own macros/includes to code?
Post 12 Dec 2008, 17:13
View user's profile Send private message Visit poster's website Reply with quote
TmX



Joined: 02 Mar 2006
Posts: 821
Location: Jakarta, Indonesia
TmX
edfed wrote:
why a new language?
why don't just fasm syntax with your own macros/includes to code?


OCaml its not an entirely new language.
It's based on ML language:
"http://en.wikipedia.org/wiki/ML_(programming_language)"

which dated back to 1970s

I think it's pretty nice for prototyping algorithms ... Smile
Post 17 Dec 2008, 09:47
View user's profile Send private message Reply with quote
MattBro



Joined: 08 Nov 2003
Posts: 37
MattBro
I think Haskell is a bit nicer, at least with regards to syntax. It's compiler has improved as well and is usually competitive, performance-wise with Ocaml. Moreover it has a very active community.

Just be forewarned, for all these languages, development tools are rather primitive. In fact for functional programming languages you can not even guarantee the order of execution, so that debugging becomes a bit tricky.

Also some of the more abstract concepts, like monads, give me a headache every time I use them; and you use them a lot in Haskell. In fact any time you have to deal with state, things can get tricky. If you are writing a compiler though, it's hard to find a better paradigm. Also, surprisingly, even though state is somewhat unnatural, you can write really elegant gui wrappers in these languages.
Post 03 Jan 2009, 07:37
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar.

Powered by rwasa.