zlacker

[return to "My fast zero-allocation webserver using OxCaml"]
1. smartm+tq[view] [source] 2026-02-02 14:06:19
>>noelwe+(OP)
From the article:

> I am also deeply sick and tired of maintaining large Python scripts recently, and crave the modularity and type safety of OCaml.

I can totally relate. Switching from Python to a purely functional language can feel like a rebirth.

◧◩
2. IshKeb+BI[view] [source] 2026-02-02 15:47:00
>>smartm+tq
OCaml isn't pure.
◧◩◪
3. pkal+JT[view] [source] 2026-02-02 16:36:39
>>IshKeb+BI
I recently realized that "pure functional" has two meanings, one is no side-effects (functional programmers, especially of languages like Haskell use it this way) and the other is that it doesn't have imperative fragments (the jump ISWIM to SASL dropped the non-functional parts inherited from ALGOL 60). A question seems to be whether you want to view sequencing as syntax sugar for lambda expressions or not?
◧◩◪◨
4. nh2+v11[view] [source] 2026-02-02 17:17:31
>>pkal+JT
Who uses the second meaning?

In my experience, "purely functional" always means "you can express pure functions on the type level" (thus guaranteeing that it is referentially transparent and has no side effects) -- see https://en.wikipedia.org/wiki/Pure_function

[go to top]