Hacker GitHub

← All repos

ocaml-ppx/ppx_deriving

View on GitHub ↗ ★ 522 OCaml

Type-driven code generation for OCaml

6 mentions on Hacker News by 4 people: 0 stories, 6 comments · first 2018-10-04 · latest 2025-11-04

Mentions per year 6 mentions · busiest year 2025 (3)
20082026
  1. …pretty widespread if you need derive functionality, and it can derive basic functions. Proper link: https://github.com/ocaml-ppx/ppx_deriving?tab=readme-ov-file...
    comment by ernst_klim · 2025-11-04 · in Pain Points of OCaml
  2. …toString or Rust's #[derive(Debug)] There are devivers and a Format module for pretty printing. https://github.com/ocaml-ppx/ppx_deriving https://ocaml.org/manual/5.4/api/Format.html
    comment by ernst_klim · 2025-11-04 · in Pain Points of OCaml
  3. …[1], and I think ppx in general had made my overall experience with OCaml a lot better. [1] https://github.com/ocaml-ppx/ppx_deriving
    comment by StepBroBD · 2025-11-04 · in Pain Points of OCaml
  4. …code is unreadable because I don't have type annotations and ignore the REPL for introspection. [1] https://github.com/ocaml-ppx/ppx_deriving
    comment by ywei3410 · 2023-04-25 · in My thoughts on OCaml
  5. …add inline tests, generate getter/setter/pretty-printing functions, and so on. Here is an example: https://github.com/ocaml-ppx/ppx_deriving
    comment by sleepydog · 2022-08-29 · in OCaml at First Glance
  6. …[2] and the power of the language. Take a look at graphql bindings as an example [3] [4]. [1] https://github.com/ocaml-ppx/ppx_deriving [2] https://github.com/mjambon/atd [3] https://github.com/andreas/ocaml-graphql-server [4]…
    comment by ernst_klim · 2018-10-04 · in Go 1/2 Proposal: Immutable Types