<commit_before>This document gives simple usage examples of Jbuilder.

* Building a hello world program

In a directory of your choice, write this =jbuild= file:

#+begin_src scheme
(jbuild_version 1)

(executables
 ((names (hello_world))))
#+end_src

This =hello_world.ml= file:

#+begin_src ocaml
print_endline "Hello, world!"
#+end_src

And build it with:

#+begin_src sh
jbuilder build hello_world.exe
#+end_src

The executable will be built as =_build/default/hello_world.exe=

* Building a hello world program using Lwt

In a directory of your choice, write this =jbuild= file:<commit_msg>Update the quick-start guide<commit_after>This document gives simple usage examples of Jbuilder. You can also
look at [[../example]] for complete examples of projects using Jbuilder.

* Building a hello world program

In a directory of your choice, write this =jbuild= file:

#+begin_src scheme
(jbuild_version 1)

(executables
 ((names (hello_world))))
#+end_src

This =hello_world.ml= file:

#+begin_src ocaml
print_endline "Hello, world!"
#+end_src

And build it with:

#+begin_src sh
jbuilder build hello_world.exe
#+end_src

The executable will be built as =_build/default/hello_world.exe=

* Building a hello world program using Lwt

In a directory of your choice, write this =jbuild= file:
{'fraction_non_alphanumeric': 0.08597986057319908, 'fraction_numerical': 0.001549186676994578, 'mean_word_length': 5.211538461538462, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2805007', 'n_tokens_mistral': 427, 'n_tokens_neox': 414, 'n_words': 163}