The Wayback Machine - https://web.archive.org/web/20200708025213/https://github.com/topics/ocaml
Skip to content
#

OCaml

ocaml logo

OCaml is a general purpose industrial-strength programming language with an emphasis on expressiveness and safety, It is supporting functional, imperative and object-oriented styles.

Here are 1,610 public repositories matching this topic...

lk-geimfari
lk-geimfari commented Aug 30, 2019

Well, we need to check all the projects and remove outdated ones.

We declare this in the readme:

However, keep in mind that we don't accept mammoth's shit. Only active and interesting projects with good documentation are added. Dead and abandoned projects will be removed.

But, sadly at this moment, this project looks like a mammoth shit itself.

We really need to fix it. I think

bryphe
bryphe commented Mar 28, 2020

Since we don't have an interactive tutorial, and our docs are sparse, we should at least be bundling the existing vim tutor.

  • Include the vimtutor as a runtime asset.
  • Add a command to open the vimtutor
  • Set the readonly flag on vimtutor, so that it can't be saved.

Additional things to think about:

  • We should hook up a Vim command as an entry point as well (ie, :tutor, `:vim
urielz
urielz commented Sep 28, 2017

Hey there,

just wanted to point out that on macOS opam install google-drive-ocamlfuse fails with:


∗  installed conf-gmp.1
[ERROR] The compilation of conf-gmp-powm-sec failed at "sh -exc cc -c $CFLAGS -I/usr/local/include test.c".

A workaround for this is to install gmp first like this:

env CFLAGS="-I/opt/local/include/" opam install conf-gmp-powm-sec.1

You

tahina-pro
tahina-pro commented Oct 23, 2019

With some help from @nikswamy , I am trying to write mutually recursive functions with decreases clauses.

Consider the following example: variable-arity trees with a label on each edge.

module L = FStar.List.Tot
noeq type tree =
| Leaf
| Node:
  (labels: list nat) -> // I should probably add a `L.noRepeats` refinement here, but this is irrelevant here
  (children: ((x: nat {x 
ivg
ivg commented Feb 27, 2020

Our documentation site is always lagging behind as updating the docs is a non-trivial task that has to be automated. Setting up the Travis job for building wouldn't be trivial (we probably won't fit into the time constraints), but we can use GitHub actions and host a documentation builder on one of our servers. We shall update both bap documentation and Primus Lisp docs.

arvidj
arvidj commented Mar 9, 2020

I'm a OCaml beginner. I'm used to tools like Hoogle or Yahoo. I'm looking for a function of some type t. I'm hoping merlin can help me. I'm using Emacs. I try the command merlin-search. It is undocumented. I try any string, the response is:

Not_found
Raised at file \"src/ocaml/typing/407/ident.ml\", line 171, characters 6-21
Called from file \"src/ocaml/typing/407/env.ml\", line 281,
dunnl
dunnl commented Apr 4, 2020

Version: Dune 2.4.0
Issue: I am confused about how to generate documentation
Suggestion: Any of the following:

  1. Explain that dune build @doc builds documentation for packages
  2. Explain what command dune build @doc is running in the docs.
  3. Print the command dune build @doc is using with --verbose
  4. Retool dune init <option> such that dune build @doc works immediately
XVilka
XVilka commented Mar 4, 2020

Currently it is impossible to make a local or regional mirror for both opam repository and source files in a batch, like some of the Linux distributions or package managers. It would be amazing and useful to setup a couple mirrors on a various regional CDNs, like some other languages/distributions did, And add the instruction on how to add them into the global mirror lists:

matsud224
matsud224 commented Oct 6, 2019

Currently, there are 2 VM instruction definition files in this repository:

  • src/frontend/bytecomp/vminstdef.yaml
  • tools/gencode/vminst.ml

This may confuse contributors who wants to add new primitives. According to the Makefile, the latter is generated by the former. So, I think it should be removed from this repository. I also think the name "vminstdef" should be like "primitivedef" because

DrYSG
DrYSG commented Feb 4, 2020

platform: windows 10
Dune: version 2.1.2
Cygwin: CYGWIN_NT-10.0 YSG4206 3.1.2(0.340/5/3) 2019-12-21 15:25 x86_64 Cygwin

$ git clone https://github.com/andreas/ocaml-graphql-server.git
$ cd ocaml-graphql-server
$ dune exec examples/server.exe
ocaml-crunch graphql-cohttp/src/assets.ml (exit 1)
(cd _build/default/graphql-cohttp/src && D:\cygwin64\home\ysg4206\.opam
\ocaml-variants.4.
sahanakk
sahanakk commented Apr 20, 2020

Given the below-mentioned code for client, how do we add a timeout. For eg . I want the request to timeout after 1 minute if the server doesn't respond.

(* client_example.ml *)
open Lwt
open Cohttp
open Cohttp_lwt_unix

let body =
  Client.get (Uri.of_string "https://www.reddit.com/") >>= fun (resp, body) ->
  let code = resp |> Response.status |> Code.code_of

Created by Xavier Leroy

Released 1996

Latest release 4 months ago

Repository
ocaml/ocaml
Website
ocaml.org
Wikipedia
Wikipedia
You can’t perform that action at this time.