Defunctionalization: Everybody Does It, Nobody Talks About It
blog.sigplan.org
Defunctionalization: Everybody Does It, Nobody Talks About It
1–10 of 23 posts
Re: Defunctionalization: Everybody Does It, Nobody Talks About It
#2For anyone else who got nothing from the title.
Re: Defunctionalization: Everybody Does It, Nobody Talks About It
#3Re: Defunctionalization: Everybody Does It, Nobody Talks About It
#4> defunctionalization, a transformation that replaces higher-order functions with equivalent first-order ones. For anyone else who got nothing from the title.
Re: Defunctionalization: Everybody Does It, Nobody Talks About It
#5Just wondering (out loud) how you formalize language semantics so they can be consumed... I know about grammar formalisms (bnf/ebnf, antlr, peach/xsd/asn.1...) but what is the lingua franca of language semantics? Except for latex papers...
Re: Defunctionalization: Everybody Does It, Nobody Talks About It
#6Why "instead?" Knowing more math is good, but I think the author is doing his students a disservice. You don't need to memorize refactoring catalogs, but if someone says "maybe you should use a visitor pattern here" it's helpful to look it up and know what it means. It's not deep, but this is the vocabulary of the programming profession, not noise, and we're not going to switch to speaking in abstract mathematics just because some people like math or see a deeper meaning in it.
Defunctionalization seems like it might be a useful addition to the catalog.
Re: Defunctionalization: Everybody Does It, Nobody Talks About It
#7> For instance, I teach programmers to tune out the noise of refactoring catalogs and learn how most familiar refactorings instead follow from a few primordial algebraic laws Why "instead?" Knowing more math is good, but I think the author is doing his students a disservice. You don't need to memorize refactoring catalogs, but if someone says "maybe you should use a visitor pattern here" it's helpful to look it up an…
Re: Defunctionalization: Everybody Does It, Nobody Talks About It
#8> defunctionalization, a transformation that replaces higher-order functions with equivalent first-order ones. For anyone else who got nothing from the title.
One the fundamental UX, copy-writing, devops/sysadmin and programming axioms is:
Don’t make me think
e.g., reduce cognitive load by making knowledge works as easy to digest as possible using simple, familiar/conventional, intentional and clear patterns.
Re: Defunctionalization: Everybody Does It, Nobody Talks About It
#9> defunctionalization, a transformation that replaces higher-order functions with equivalent first-order ones. For anyone else who got nothing from the title.
I admit to fawning for functional languages like Haskell, Clojure and OCaml for fun, but it seems like they are not more popular because having many additional, higher-order constructs makes code “obsfucated” behind clever features rather than written as simply as possible (but no simpler). Maybe for a coding shop full of insane geniuses (i.e., quants, CalTech aerospace, physicists or Stanford research department) it…
Re: Defunctionalization: Everybody Does It, Nobody Talks About It
#10Earlier quoted context omitted.
I admit to fawning for functional languages like Haskell, Clojure and OCaml for fun, but it seems like they are not more popular because having many additional, higher-order constructs makes code “obsfucated” behind clever features rather than written as simply as possible (but no simpler). Maybe for a coding shop full of insane geniuses (i.e., quants, CalTech aerospace, physicists or Stanford research department) it…
What are the ergonomics-first languages of the functional world?