Andrea Cognolato

About me

I am a student and developer interested in machine learning, functional programming, compilers, and quantitative finance. I am studying Data Science and Engineering at Politecnico di Torino.




  • In the summer, I was a software engineer intern at Optiver Amsterdam.

  • Chose Hierarchical Bayesian Modeling as the topic of the final project for my Mathematics in Machine Learning course.

    I replicated the stackloss and alligators WinBUGS examples using JAGS and the R language.

  • Participated in the Twitter RecSys Challenge 2021 competition with MALTO.

    We ran our distributed training on an Apache Spark cluster. The inference was done inside a Docker container, shipping and embedded Spark environment.

    Link to the code. Blog post coming soon!

  • Participated in the SemEval-2021 Word-in-Context Disambiguation competition with MALTO.

  • Implemented several unconstrained and constrained optimization algorithms in Julia.

    This was part of my homework for the Numerical optimization for large scale problems and Stochastic Optimization course.

  • Built, for my Data Science Lab exam, a pipeline for predicting the quality of a wine from its reviews.

  • Wrote a tiny raytracer in Julia, following Peter Shirley's Ray Tracing in One Weekend

  • Wrote a Tensorflow-like computation graph framework in C++ with reverse-mode automatic-diferentiation support.


  • Joined my university's machine learning competition team: MALTO (MAchine Learning at poliTO)

  • Started working on a Neural Network framework in Julia

  • Graduated with 110/110 from Politecnico di Torino, earning a Bachelor's Degree in Computer Engineering.

  • Contributed to Surrogates.jl, a Julia package for surrogate modeling.

  • Started building a quadcopter from scratch, writing the PID control system in C using a ESP32-WROOM.

  • Competed in Citadel 2020 Data Open Datathon, where my team used the Synthetic Control technique to estimate the effect of the 2012 London Summer Olympics on the Growth Boroughs.

  • Started working for as a Haskell and Purescript Software Engineer.

  • Helped to write X-PLAIN, an interactive tool for inspection and interpretation of classifer predictions. This work was accepted in the Proceedings of the 2020 ACM SIGMOD International Conference on Management of Data.

  • Wrote a gui for an accelerometer usign the ESP32-WROOM, esp-idf, and python.

  • Taught myself various automatic differentiation techniques and implemented them in python

  • Implemented various algorithms from coursera's CS344 in modern OpenGL using compute shaders

  • Started working through Essentials of Compilation: An Incremental Approact and implementing it in Haskell. The code

  • Implemented the Discrete Fourier Transform (DFT) and Cooley-Tukey FFT algorithms. The code


  • Implemented a voxel engine in modern OpenGL (4.5). The code

  • Contributed to the Linux port of the druid ui toolkit.

  • Attended Campus Party Italy 2019 and partecipated to Eni and Illimity Hackatons

  • Wrote a series of blog posts on text rendering which routinely got on the front page of Hacker News and reddit programming. These posts were read by more than 10,000 unique visitors.

  • Wrote a tool to convert Notability's .notability notes into SVG files.

    I initially wrote it in Python, then optimized it until I was satisfied with its performance, and then rewrote it in Rust

  • Wrote several thousand lines of C for my Data Structures and Algorithms course.

  • Wrote an OCaml implementation of Mitchell Wand's 1987 paper: "A Simple Algorithm and Proof for Type Inference".


  • (Unfinished) Wrote react-parser-viz: a react based web application to visualize how a recursive descent parser works.

  • Implemented test-lang: a programming language based on lambda calculus in both Ocaml and Haskell.

  • Worked as a freelancer on (my profile)

    A large section of my work consisted in working with cryptocurrencies and porting software such as blockchain explorers and mining pools to new currencies, ensuring that the compatibility issues between implementations were fixed.

  • Contributed to facebook/reason.


  • Wrote channed: an small 4chan client built with ReactJS.

  • Wrote rust-editorconfig: a Rust library which implemented the editorconfig file format for text editor plugins.

  • Tinkered with the ESP8266 and wrote a custom web UI to control my IKEA led strips.

  • Competed at regional level in flatwater kayaking.

  • Read and implemented my neural network to learn on the MNIST digit dataset in numpy+pandas and Tensorflow.


  • Wrote an online shopping list for my family.

  • Wrote a crawler in F# for the latin dictionary

  • Wrote for a friend magicBot: a python crawler with a web UI which parsed an online market of Magic: The Gathering cards to show the average price of a card between various editions.

  • Tinkered with elm and wrote a simple web app to show data from a local api.

  • Competed at regional level in flatwater kayaking.

  • Read Real World Haskell and Real World OCaml which sparked my interest in functional programming and compilers.


  • Wrote xresthemechanger: a python script to change the .Xresources color theme.

  • Wrote a tiny TPC server in C using the unix system calls.

  • Wrote Drinkcraft: a simple Minecraft mod in Java.

  • Switched to Archlinux and installed and configured it.

  • Won my school's Informatics Olympiad and competed in the regional selections.

  • Won, along with two other students, the science fair with a project on the effects of exposure to non ionizing radiations.