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
20082026
-
…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 -
…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 -
…[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 -
…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 -
…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 -
…[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