# Bigstringaf not implemented

**URL:** <https://discuss.ocaml.org/t/bigstringaf-not-implemented/17422>\
**Category:** Learning\
**Tags:** ocsigen, opam\
**Created:** [October 27, 2025, 1:54am UTC](https://discuss.ocaml.org/t/bigstringaf-not-implemented/17422 "2025-10-27T01:54:40Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![vgauther](https://avatars.discourse-cdn.com/v4/letter/v/ebca7d/32.png) [@vgauther](https://discuss.ocaml.org/u/vgauther)\
**Post date:** [October 27, 2025, 1:54am UTC](https://discuss.ocaml.org/t/bigstringaf-not-implemented/17422/1 "2025-10-27T01:54:41Z")

</div>

Hi,

I’m new to Ocaml.

I have school project where I need to create a game with ocsigen (eliom, etc..)

I’ve generated a project with eliom-distillery and I’m trying to execute some js throught js\_of\_ocaml, but it seems to crash before doing anything (I can’t log in the console)

The reason seems to be that bigstringaf not implemented.

Can someone explain how can I implement it? It seems to be installed. Maybe it doesn’t compile with it.

For the record, I’ve generated a basic.ppx template project.

---

<div class="post-metadata">

**Author:** ![otini](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ocaml.org/otini/32/3533_2.png) [@otini](https://discuss.ocaml.org/u/otini)\
**Post date:** [October 28, 2025, 1:35pm UTC](https://discuss.ocaml.org/t/bigstringaf-not-implemented/17422/2 "2025-10-28T13:35:30Z")

</div>

How are you running the JavaScript? I would expect you to include it in a web page, in which case you can access the browser console.

How do you know the problem comes from bigstringaf? If it is an exception saying `<function name> not implemented`, you should have gotten warnings about this when you compiled the project. Was it the case?

---

<div class="post-metadata">

**Author:** ![vgauther](https://avatars.discourse-cdn.com/v4/letter/v/ebca7d/32.png) [@vgauther](https://discuss.ocaml.org/u/vgauther)\
**Post date:** [October 28, 2025, 11:07pm UTC](https://discuss.ocaml.org/t/bigstringaf-not-implemented/17422/3 "2025-10-28T23:07:23Z")

</div>

Here is the project if you want to look at it : [h42n42/h42n42 at main · vgauther/h42n42 · GitHub](https://github.com/vgauther/h42n42/tree/main/h42n42)

For now, I’m trying to update the page and add multiple `<div>`

I’m using `Html.Manip.appendChild ~%elt c.elt;` where `c.elt` is a `<div>`. Also, I’m trying to log in the console at some point of the program but none of the print happends. For me, I’m using js\_of\_ocaml to run JS.

I have in fact Bigstringaf not implemented in the console. And it throw a warning when I compile the project, yes.

And it is very strange that even with the program not edited (basic.ppx template), I had this error (Bigstringaf not implemented)

---

<div class="post-metadata">

**Author:** ![dbuenzli](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ocaml.org/dbuenzli/32/18_2.png) [@dbuenzli](https://discuss.ocaml.org/u/dbuenzli)\
**Post date:** [October 28, 2025, 11:25pm UTC](https://discuss.ocaml.org/t/bigstringaf-not-implemented/17422/4 "2025-10-28T23:25:46Z")

</div>

It seems `bigstringaf` has [support](https://github.com/inhabitedtype/bigstringaf/blob/master/lib/runtime.js) to compile to JavaScript, so something is likely off in the compilation instructions. Did you consider [this advice](https://github.com/vgauther/h42n42/blob/main/h42n42/README#L3) ?

---

<div class="post-metadata">

**Author:** ![vgauther](https://avatars.discourse-cdn.com/v4/letter/v/ebca7d/32.png) [@vgauther](https://discuss.ocaml.org/u/vgauther)\
**Post date:** [October 29, 2025, 6:33pm UTC](https://discuss.ocaml.org/t/bigstringaf-not-implemented/17422/5 "2025-10-29T18:33:53Z")

</div>

I’m not sure of what a dune-template is but I think my code should work as it is. It is very basic.

---

<div class="post-metadata">

**Author:** ![otini](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ocaml.org/otini/32/3533_2.png) [@otini](https://discuss.ocaml.org/u/otini)\
**Post date:** [October 29, 2025, 10:22pm UTC](https://discuss.ocaml.org/t/bigstringaf-not-implemented/17422/6 "2025-10-29T22:22:45Z")

</div>

What commands do you use to compile ? And then to run?

---

<div class="post-metadata">

**Author:** ![vgauther](https://avatars.discourse-cdn.com/v4/letter/v/ebca7d/32.png) [@vgauther](https://discuss.ocaml.org/u/vgauther)\
**Post date:** [October 30, 2025, 11:48am UTC](https://discuss.ocaml.org/t/bigstringaf-not-implemented/17422/7 "2025-10-30T11:48:05Z")

</div>

I’m using `make test.byte` as the readme me told me so. It compiles and run the server locally.

---

<div class="post-metadata">

**Author:** ![otini](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ocaml.org/otini/32/3533_2.png) [@otini](https://discuss.ocaml.org/u/otini)\
**Post date:** [October 31, 2025, 10:57am UTC](https://discuss.ocaml.org/t/bigstringaf-not-implemented/17422/8 "2025-10-31T10:57:30Z")

</div>

Here is what I get when typing `make test.byte` in your repo:

```auto
eliomc -ppx -infer -package lwt_ppx -package js_of_ocaml-ppx_deriving_json h42n42.eliom
File "h42n42.eliom", line 23, characters 6-20:
23 | Playground.elt;
           ^^^^^^^^^^^^^^
Error: Unbound module Playground

```

Also as pointed out with @dbuenzli you are using a deprecated Makefile and template. I don’t know how you used eliom-distillery but I would advise that you create a new, more up-to-date template (`eliom-distillery -template app.exe -name <PROJECT NAME>`) and copy your files there; otherwise you risk having some features that don’t work.

---

<div class="post-metadata">

**Author:** ![vgauther](https://avatars.discourse-cdn.com/v4/letter/v/ebca7d/32.png) [@vgauther](https://discuss.ocaml.org/u/vgauther)\
**Post date:** [November 2, 2025, 8:03pm UTC](https://discuss.ocaml.org/t/bigstringaf-not-implemented/17422/9 "2025-11-02T20:03:13Z")

</div>

I’ve tried `eliom-distillery -template app.exe -name <PROJECT NAME>` but I got a `Not a known template name: “app.exe“`

I’m using eliom 10.2.0, only with this version I managed to make a server run. Maybe should I use an other version ?

---

<div class="post-metadata">

**Author:** ![otini](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ocaml.org/otini/32/3533_2.png) [@otini](https://discuss.ocaml.org/u/otini)\
**Post date:** [November 7, 2025, 10:36am UTC](https://discuss.ocaml.org/t/bigstringaf-not-implemented/17422/10 "2025-11-07T10:36:11Z")

</div>

This version is two years old. Yes, I expect it would work with the latest 11.1.1.
