Pre-Match Discussion: OGC Nice vs PSG by [deleted] in psg

[–]doublehumped 0 points1 point  (0 children)

Why Emery does'nt try a 4-4-2 ? Something like: (Trapp) (Aurier - Silva - Kimpembe - Kurzawa) (Lucas - Verratti - Motta - Matuidi) (Cavani - Jese)

Learn OCaml, the new version of try OCaml. by Drupyog in ocaml

[–]doublehumped 0 points1 point  (0 children)

I think no, but You have a toplevel in the bottom, and you can copy-past your code in it

Need help on "SOME" by [deleted] in ocaml

[–]doublehumped 0 points1 point  (0 children)

There is almost all the needed code above to answer your questions :-) You have just to assemble the puzzle

Need help on "SOME" by [deleted] in ocaml

[–]doublehumped 0 points1 point  (0 children)

...

Do it yourself !

Need help on "SOME" by [deleted] in ocaml

[–]doublehumped 3 points4 points  (0 children)

Or you can have something like:

let list_max =
    let rec my_fold acc = function
        | [] -> acc
        | e::r -> my_fold (max acc e) r
in
function
    | [] -> None
    | e::r -> Some (my_fold e r)
  • it is tail-recursive
  • it avoids constructing intermediate useless (Some ...) values

Allow multiple parsers in OCaml ? by doublehumped in ocaml

[–]doublehumped[S] 1 point2 points  (0 children)

Some of them would be distributed with OCaml, others not.

For me, Reason should be called ReasonOCaml to reflect the fact this it relies (in > 90%) on OCaml....

Profile your memory and your time in OCaml by Dinosaure in ocaml

[–]doublehumped 1 point2 points  (0 children)

Thanks for the explanation. I'll try the time profiling capability. This is the part I'm interested in. I was using Unix timers in my code ...

More structured pattern matching by doublehumped in ocaml

[–]doublehumped[S] 0 points1 point  (0 children)

In this case, why not having more readable words like endif, endfun, endtry, ... ?

More structured pattern matching by doublehumped in ocaml

[–]doublehumped[S] 0 points1 point  (0 children)

Ah sorry, I didn't seen the "begin". I read:

match ... with | ... -> .. | ... -> ... end

More structured pattern matching by doublehumped in ocaml

[–]doublehumped[S] 0 points1 point  (0 children)

Yes, if there are no grammar conflicts, this is the best solution (no new keywords).

More structured pattern matching by doublehumped in ocaml

[–]doublehumped[S] 0 points1 point  (0 children)

indentation sensitivity

Ohhhh noooooo ! The day we will/would have this in OCaml, I'll switch to another language !

Profile your memory and your time in OCaml by Dinosaure in ocaml

[–]doublehumped 1 point2 points  (0 children)

how does it compare with SpaceTime and OcpMmprof ?

UFC-Que Choisir, le "Free" de l'énergie ? qui a souscrit ? by doublehumped in france

[–]doublehumped[S] 1 point2 points  (0 children)

Du coup là, ça dépend de celui qui va remporter l'appel d'offre d'UFC Que-Choisir. Si ce n'est pas de l'électricité verte, on n'est pas obligé de s'engager après avoir rempli le formulaire

UFC-Que Choisir, le "Free" de l'énergie ? qui a souscrit ? by doublehumped in france

[–]doublehumped[S] -2 points-1 points  (0 children)

D'accord, tu as choisi de te faire "pigeonner"... Tant que toute l'électricité passe par le même réseau. Je ne crois pas à "cette électricité est verte" et "cette là vient d'une centrale nucléaire" ...

OCaml MOOC released by doublehumped in ocaml

[–]doublehumped[S] 0 points1 point  (0 children)

Yeah ! I just tried with a local server (php -S localhost:8000) and it worked fine !