Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

OCaml

Name: Anonymous 2010-08-17 18:14

So I'm looking at OCaml, but I'm having some reservations.

First is the relationship with Haskell. They seem to share some of the same ideas, with Haskell being the more `modern' language, but OCaml being more pragmatic. Has Haskell mostly obsoleted OCaml, or do they occupy separate niches?

Then there's the general suitability. I'm not too taken with the syntax, it seems verbose, yet not particularly readable, and in fact rather confused and arbitrary. And the people who use it always seem to feel the need to point out that they used some fraction or another of the lines of code a corresponding program written in C did, which strikes me as a kind of insecurity.

Has anybody used OCaml in a situation where it shined? Is it good for anything but parsers?

Name: Anonymous 2010-08-17 18:30

If you don't like it don't use it.

Name: Anonymous 2010-08-17 18:41

ML is generally nice for making compilers and theorem provers.
I find the kind of thinking required to write in them a bit strange and rigid, that's why I don't use ML-based languages that much and instead opt for dynamicly typed languages which allow me to mold the idea gradually, however if you can imagine the full type tree(s) in your mind before you even write the code, then it should be good for you.

Name: Anonymous 2010-08-17 18:49

>>2
But then I could hardly use anything! :(
Except maybe chocolate ice cream. ^__^

Name: Anonymous 2010-08-17 18:56

Thread status changed from open to closed: resolution set to WONTFLAME.

Name: Anonymous 2010-08-17 19:12

>>4
Maybe programming isn't for you. In particular, /prog/ membership has the prerequisite: has a hardon for one or more of: C, Lisp, Python, Haskell. (And preferably also: finds distasteful two or more of: Perl, PHP, Ruby, Javascript, Java, Sepples, C, Lisp, FIOC, HASKAL. This is not a strict requirement.)

Name: Anonymous 2010-08-17 19:19

>>6
IWT

Name: Anonymous 2010-08-17 20:34

>>6
As a typical /prog/rider, I enjoy the following languages: Python, C, Scheme, Javascript, Lua, and I dislike the following languages: Sepples, Java, Javascript, HASKAL, FIOC, Lua. For other languages not listed, I remain more or less neutral.
This post contains the following number of errors: 0

Name: Anonymous 2010-08-17 20:43

>>8
This post contains the following number of errors: 0

...ascript, Lua, and I disl...
...ascript, Lua; and I disl...
ftfy

Name: Anonymous 2010-08-17 20:50

>>9
That was intentional. YHBT.

Name: Anonymous 2010-08-17 22:19

>>6
I'm a bit of a black sheep.

Like: Lua, Python, Scheme, C, C++, C#
Dislike: Java, C++, Ruby, PHP, Perl

Name: Anonymous 2010-08-17 22:21

>>10
I believe that it's Y who HBT, because that should indeed be a coma in >>8. You wouldn't put a semicolon there because of the "and."

Name: Anonymous 2010-08-17 22:23

>>12
Not if a comma-delimited series precedes it.

Name: Anonymous 2010-08-17 22:35

>>8
You should love Javascript if you like Scheme and C. It's a Lisp-like language with C style syntax.

Name: Anonymous 2010-08-17 22:41

>>13
Funnily enough, Lua permits you to use commas and semicolons as terminators, not delimiters, so that generating code is much easier.

Name: Anonymous 2010-08-17 22:41

>>14
What if I want a portable assembler with S-expressions?

Name: Anonymous 2010-08-18 0:52

>>14
Javascript is a Lisp in the same way that PHP is a Perl.

Name: Anonymous 2010-08-18 2:03

>>17
That's harsh man.

Name: Anonymous 2010-08-18 2:08

>>18

Seriously.  Perl isn't compiled.

Name: Anonymous 2010-08-18 4:12

I have a raging hard-on for:
U MENA HASKAL
•Scheme
•Factor

I despise:
•Java
•Common Rispu
•Sepples


#lang racket
(define b (λ () (display "BLOOD ") (&)))
(define & (λ () (display "& ") (t)))
(define t (λ () (display "THUNDER. ") (M)))
(define M (λ () (display "THOR'S MOTHER, ") (b)))
(M)

Name: Anonymous 2010-08-18 5:30

Name: Anonymous 2010-08-18 5:45

a hardon for:
Common Lisp (excellent base language and base library, features fit within each other very well, allows me a great deal of freedom in expressing my programming ideas, minimizes the amount of work I have to do, and overall excellent when it comes to interactive development and debugging. Fits almost all of my high-level needs)
C (fits my low-level needs well enough, life would be much harder without it)

finds distasteful two or more of:
PHP (Terrible! I hate myself when I have to write in it. Autoconversion, inconsistent language and library, overall messy language with terrible design choices.)
Sepples (Syntax soup, large amount of features which don't exactly fit right. Time waster and a huge pain to debug and learn.)
C (I wish there was something better for doing what C does, but I don't know of anything else. It's a love - hate relationship. )

The other languages are placed on less extreme positions.
Mild like:
Scheme (excellent minimal Lisp. Too minimal for me to write most of my software in, but great for embedding in tiny systems or reimplementing it. Writing metacircular evaluators is also much more easier than in more advanced lisps. )
O'Caml ( Excellent for writing parsers and compilers, but I can't get into the mindset needed to write largescale stuff in it. I'm too used to the Lisp way  (and more happy with it) to go back to it now. )
Haskell ( similar thoughts as O'Caml, but with the appropriate differences, it's also a bit too 'pure' for me for using it for regular apps, but the concepts it teaches are quite useful. )

Factor (Larger-scalish Forth, it's neat for certain applications, for example, assemblers/disassemblers)
Prolog (parsers, great pattern matching, but too limited for real-world usage. makes a good DSL for some domains)
Lua (cool free emebeddable language)

Feels neutral, indifferent or confused/mixed about:
FIOC (too much BDSM, but good support and libraries)
Ruby (SLOW AS FUCK, but good variety of features, however still not Lispy enough)
Javascript (would have been better off as a Scheme, de-facto Javascript "standards" are a mess, but there's decent compatibility libraries and compilers from *insert favorite language* to js)
Java, C# (large library which is a good thing, but the language forces you to think too much in one direction. I'm not a fan of the "patterns" that Java has caused. Many of them disappear with the right language tools.)

Slight dislike:
Perl (too much syntactic soup for my taste and I find autoconversion highly distateful, but it's still much better than PHP)

Name: Anonymous 2010-08-18 6:21

Name: Anonymous 2010-08-18 6:36

>>6
This is too true, and I don't really get why /prog/lodytes hate ruby so much.

Name: Anonymous 2010-08-18 6:38

Also,

Like: C, Scheme, Python
Dislike: Perl, PHP, Java, Sepples

Name: Anonymous 2010-08-18 7:15

>>20
It's a racket they renamed it that.
BADUM-TSSSSS

Name: OP 2010-08-18 8:53

Between the OCaml program I was looking at having integer overflows and being generally buggy, and stumbling across http://sds.podval.org/ocaml-sucks.html, I have been suitably unimpressed and will be discontinuing my pursuit for the time being.

Name: Anonymous 2010-08-18 9:01

>>27
I know you're not really from around these parts so I'll let it slide, but please don't call yourself that.

Name: Anonymous 2010-08-18 9:13

assembly, C, Lua, Scheme

I intend to learn some ML language, but it will probably be Standard ML, not Haskell.

Name: Anonymous 2010-08-18 10:00

>>28
Prithee, why not?

Name: Anonymous 2010-08-18 10:10

>>30
YHBT

Name: Anonymous 2010-08-18 10:32

(/prog/rider? >>27-san)
=> #f

Dearest >>30-san It is customary to call oneself >>1-san if one wishes to identify oneself as the former poster of a thread, thank you.

Name: Anonymous 2010-08-18 10:37

>>32
s/n I/n, i
Oh, HAX.

Name: Anonymous 2010-08-18 10:45

>>32-33
No one cares about your `customs.' Go fuck yourself.

Name: Anonymous 2010-08-18 11:16

>>34
I care about these customs. Therefore you are worng.

Name: Anonymous 2010-08-18 11:41

>>34
They're customs, , uh, it's customary to care about them. Go fuck you're dead dof.

Name: Anonymous 2010-08-18 12:47

Xarn should write up that shibboleth speech like he promised he would.

Name: Anonymous 2010-08-18 13:15

>>34
For a Homosexual American that does not very much care for customs you sure do quite a few customary things. For instance:

• You've written the comma inside the quotation marks, as it is customary in English. Although frequently avoided by seasoned /prog/riders
• You've used a single link that englobes several posts rather than a series of links to each (the latter being customary in the imageboards due to poor implementation—Terrible !)
 ›Please be reminded that it is good etiquette to use >>32,33 instead, as the series consists of only two elements.
• You've made marvellous use of your [sage][/sage] tags.
• You've played the ``Faggot'' card.

Clearly you do care for IHB  T traditions of yore.

Name: Anonymous 2010-08-18 13:15

>>32
No.  You aren't allowed to identify yourself in any way.  There is no reason to identify oneself as the ``Oh Pee.''

Name: >>39-san 2010-08-18 13:18

Disregard that, I suck cocks.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List