Installation
Installing Goxpyriment to create your own experiments¶
- Install Git, then Go on your compute (if you are new to this, consult the detailed instructions).
-
clone goxpyriment Github repository, by opening a Terminal (App
Git Bashunder Windows), and executing the command-linegit clone https://github.com/chrplr/goxpyriment.gitLater, a simple
git pullwill suffice to upgrade to the most recent version.Alternatively you can just download the ZIP and unzip it.
-
In the Terminal, execute:
This compiles the codes in examples/*. If all goes well, the _build folder should now contain executable (apps) for many experiments.
The first time, it will take a while because Go needs to download several libraries. Once done, compilation will be fast.
Program your own experiment¶
After having a look at Getting Started, and the examples' source codes. the available functions
- Create a folder for your experiment and start coding a
main.gofile. You can test it by runninggo run main.go.
💡 TIP Vibe-coding: Launch an AI coding agent (Claude, Gemini, etc.) inside the
goxpyrimentfolder and ask it to add a new experiment to theexamplesfolder — this leads the agent to read the existing examples for context. Describe the experiment (stimuli, design, etc.) in plain language and enjoy. Recommendation: save your prompt in adescription.mdfile.
-
Once satisfied with the code, compile your experiment into an executable with
go build .. This executable will run on any machine with the same OS and architecture. -
If you need to distribute your experiment to colleagues who use another operating system or architecture, you can easily cross-compile.