{"id":18841917,"url":"https://github.com/diskuv/dkml-ghmirror","last_synced_at":"2026-02-13T00:49:51.264Z","repository":{"id":65312760,"uuid":"429201385","full_name":"diskuv/dkml-ghmirror","owner":"diskuv","description":"A GitHub mirror of the authoritative https://gitlab.com/diskuv-ocaml/distributions/dkml. Used to validate GitHub CI actions for GitHub users","archived":false,"fork":false,"pushed_at":"2023-11-25T06:37:25.000Z","size":10345,"stargazers_count":2,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"next","last_synced_at":"2025-05-22T22:13:16.014Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://diskuv-ocaml.gitlab.io/distributions/dkml/","language":"CMake","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/diskuv.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-11-17T21:08:51.000Z","updated_at":"2024-10-20T09:33:22.000Z","dependencies_parsed_at":"2023-11-23T01:44:58.907Z","dependency_job_id":"114aa8cc-8134-4985-97ed-3cf63d7b6fbf","html_url":"https://github.com/diskuv/dkml-ghmirror","commit_stats":null,"previous_names":[],"tags_count":128,"template":false,"template_full_name":null,"purl":"pkg:github/diskuv/dkml-ghmirror","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diskuv%2Fdkml-ghmirror","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diskuv%2Fdkml-ghmirror/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diskuv%2Fdkml-ghmirror/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diskuv%2Fdkml-ghmirror/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/diskuv","download_url":"https://codeload.github.com/diskuv/dkml-ghmirror/tar.gz/refs/heads/next","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/diskuv%2Fdkml-ghmirror/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274921418,"owners_count":25374268,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-13T02:00:10.085Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T02:53:02.535Z","updated_at":"2026-02-13T00:49:51.183Z","avatar_url":"https://github.com/diskuv.png","language":"CMake","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DkML 2.0.3\n\nThe DkML distribution is an open-source set of software\nthat supports software development in pure OCaml. The distribution's\nstrengths are its:\n\n* full compatibility with OCaml standards like Opam, Dune and ocamlfind\n* laser focus on \"native\" development (desktop software, mobile apps and embedded software) through support for the standard native compilers like Visual Studio\n  and Xcode\n* ease-of-use through simplified installers and simple productivity commands; high school students should be able to use it\n* security through reproducibility, versioning and from-source builds\n\nDo not use this distribution if you have a space in your username\n(ex. `C:\\Users\\Jane Smith`).\n\nThese alternatives may be better depending on your use case:\n\n* Developing in a Javascript first environment? Have a look at [Esy and Reason](https://esy.sh/)\n* Developing operating system kernels? Have a look at [Mirage OS](https://mirage.io/)\n* Developing Linux server software like web servers? Plain old [OCaml on Debian, etc.](https://ocaml.org/docs/up-and-running) works well\n* Writing compilers or proofs? Plain old OCaml works really well\n* Wanting quick installations? *Use anything but DkML!* DkML will conduct\n  from-source builds unless it can guarantee (and code sign) the binaries are\n  reproducible. Today that means a lot of compiling.\n\nThe DKML Installer for OCaml generates and distributes installers for\nthe DkML distribution. Windows is ready today; macOS will be available soon.\n\nCommercial tools and support are available from Diskuv for mixed OCaml/C\ndevelopment; however, this pure OCaml distribution only has limited support\nfor mixed OCaml/C. For example, the `ctypes` opam package has been patched\nto work with Visual Studio but is out-dated. Contact\nsupport AT diskuv.com if you need OCaml/C development.\n\nFor news about DkML,\n[![Twitter URL](https://img.shields.io/twitter/url/https/twitter.com/diskuv.svg?style=social\u0026label=Follow%20%40diskuv)](https://twitter.com/diskuv) on Twitter.\n\n**Please visit our documentation at \u003chttps://diskuv.com/dkmlbook/\u003e**\n\n## License\n\nThe *DkML* distribution uses an open-source, liberal\n[Apache v2 license](./LICENSE.txt).\n\n## Quick Start\n\nAfter installation, open a new Command Prompt or PowerShell, open\nan interactive \"*full*\" REPL with:\n\n```powershell\nC:\\\u003e utop-full\n\n(* Real World OCaml book: This is similar to the .ocamlinit\n   shown on the book's Installation page.\n   Learn more at https://dev.realworldocaml.org/ *)\n#require \"base\";;\nopen Base;;\n\n(* Real World OCaml book: This is one example from the Error\n   Handling section. *)\nList.find [1;2;3] ~f:(fun x -\u003e x \u003e= 2);;\n\n(* refl: Type-safe type reflection. Learn more at\n   https://github.com/thierry-martinez/refl#readme *)\n#require \"refl\";;\n#require \"refl.ppx\";;\n\n(* refl: PPX-es are macros that generate tedious code for you.\n   Here is a basic example of a binary tree type with the\n   [@@deriving refl] macro attached. You'll see a ton of\n   generated code. *)\ntype 'a binary_tree =\n  | Leaf\n  | Node of { left : 'a binary_tree; label : 'a; right : 'a binary_tree }\n        [@@deriving refl] ;;\n\n(* refl: Here is an example of how the generated code is\n   used. *)\nRefl.show [%refl: string binary_tree] []\n    (Node { left = Leaf; label = \"root\"; right = Leaf });;\n\n(* graphics: A simple cross-platform 2D drawing library.\n   Learn more at https://ocaml.org/docs/first-hour *)\n#require \"graphics\";;\nopen Graphics;;\n\nopen_graph \" 640x480\";;\n\nfor i = 12 downto 1 do\n  let radius = i * 20 in\n    set_color (if i mod 2 = 0 then red else yellow);\n    fill_circle 320 240 radius\ndone;;\n\n(* sqlite3: A file-based database.\n   Learn more at https://mmottl.github.io/sqlite3-ocaml *)\n#require \"sqlite3\";;\nopen Sqlite3;;\n\nlet schema = \"CREATE TABLE test_values ( \" ^\n\"    row_id INTEGER NOT NULL, \" ^\n\"    string_col TEXT NULL, \" ^\n\"    int_col INT NULL, \" ^\n\"    int64_col INT NULL, \" ^\n\"    float_col FLOAT NULL, \" ^\n\"    bool_col INT NULL\" ^\n\");\" ;;\nlet insert_sql = \"INSERT INTO test_values \" ^\n   \"(row_id, string_col, int_col, int64_col, float_col, bool_col) \" ^\n   \"VALUES (?, ?, ?, ?, ?, ?)\" ;;\nlet select_sql = \"SELECT \" ^\n   \"string_col, int_col, int64_col, float_col, bool_col \" ^\n   \"FROM test_values WHERE row_id = ?\" ;;\n\n(* Construct database and statements *)\nlet db = db_open \"t_values\";;\nlet rc = exec db schema;;\nPrintf.printf \"Created schema: %s\" (Rc.to_string rc);;\nlet insert_stmt = prepare db insert_sql;;\nlet select_stmt = prepare db select_sql;;\n\n(* Insert values in row 1 *)\nlet test_float_val = 56.789 ;;\nreset insert_stmt;;\nbind insert_stmt 1 (Sqlite3.Data.INT 1L);;\nbind insert_stmt 2 (Data.opt_text (Some \"Hi Mom\"));;\nbind insert_stmt 3 (Data.opt_int (Some 1));;\nbind insert_stmt 4 (Data.opt_int64 (Some Int64.max_int));;\nbind insert_stmt 5 (Data.opt_float (Some test_float_val));;\nbind insert_stmt 6 (Data.opt_bool (Some true));;\nstep insert_stmt;;\n\n(* Fetch data back with values *)\nreset select_stmt;;\nbind select_stmt 1 (Sqlite3.Data.INT 1L);;\nSqlite3.step select_stmt;;\nData.to_string_exn (column select_stmt 0);;\nData.to_int_exn (column select_stmt 1);;\nData.to_int64_exn (column select_stmt 2);;\nData.to_float_exn (column select_stmt 3);;\nData.to_bool_exn (column select_stmt 4);;\n```\n\n## Sponsor\n\n\u003ca href=\"https://ocaml-sf.org\"\u003e\n\u003cimg align=\"left\" alt=\"OCSF logo\" src=\"https://ocaml-sf.org/assets/ocsf_logo.svg\"/\u003e\n\u003c/a\u003e\nThanks to the [OCaml Software Foundation](https://ocaml-sf.org)\nfor economic support to the development of DkML.\n\u003cp/\u003e\n\n## Acknowledgements\n\nThe *DkML* distribution would not be possible without many people's efforts!\n\nSome of the critical pieces were provided by:\n\n* Andreas Hauptmann (fdopen@) - Maintained the defacto Windows ports of OCaml for who knows how long\n* INRIA for creating and maintaining OCaml\n* Tarides, OCamlPro, Jane Street and the contributors to `dune` and `opam`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiskuv%2Fdkml-ghmirror","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdiskuv%2Fdkml-ghmirror","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiskuv%2Fdkml-ghmirror/lists"}