Posts

Showing posts from September, 2017

How to fix the Unbound module Graphics in an ocaml project

Image
From ~/pr/gitl/ocaml-gol In a constant effort to learn new programming languages, I'm currently trying to use ocaml , a free and open-source general-purpose, multi-paradigm programming language maintained at the Inria . It's basically an extension of Caml with object-oriented features. I'm mostly interested by its functionnal and pattern matching features but the module part of the language can be a bit difficult to understand for someone with little to none ML (Meta Language) background.   The error When trying to use the graphics module to create a graphical window and go just a little further than the simplest helloworld program, here is the result : If the project uses dune : (executable (name ocaml_project) (libraries lwt.unix graphics) ) with this code : let () = Printf.printf "Hello, world!\n";; Lwt_io.printf "Hello, world!\n";; Graphics.open_graph " 800x600";; The first times I built this project running the du...

Introducing biology, a neural network-based project to handle NPCs

Image
Since now, I will try to free (or make public) a new project every month. These projects mainly come from a private incubator I handle at bitbucket.org . Original news This month, I released  biology  : a study to train a neural network to handle Non-Playable Characters. This is a C++ gui application using wxwidgets as GUI toolkit. Another dependency is libfann , a neural network library. It also need the Google Test unit test framework library to be successfully compiled. The layout of the project is handled in a way that the core of the logic can be used a a separate library called libbiology . The GUI part of the project simply use this library. 2022 Update This project is still a work in progress but is know to still build and run on debian but since I have many projects in this WIP state, it obviously takes me months to get back on this.