...

jaen

204

Karma

2010-07-22

Created

Recent Activity

  • Or... you could just use a programming language that looks good and has great support for embedded domain-specific languages (eDSL), like Haskell, OCaml or Scala.

    Or, y'know, use the language you have (JavaScript) properly, eg. add a `sum` abstraction instead of `.reduce((acc, val) => { return acc+val }, 0)`.

    In particular, the problem of "all the calculations are blocked for a single user input" is solved by eg. applicatives or arrows (these are fairly trivial abstract algebraic concepts, but foreign to most programmers), which have syntactic support in the abovementioned languages.

    (Of course, avoid the temptation to overcomplicate it with too abstract functional programming concepts.)

    If you write an XML DSL:

    1. You have to solve the problem of "what parts can I parallelize and evaluate independently" anyway. Except in this case, that problem has been solved a long time ago by functional programming / abstract algebra / category-theoretic concepts.

    2. It looks ugly (IMHO).

    3. You are inventing an entirely new vocabulary unreadable to fellow programmers.

    4. You will very likely run into Greenspun's tenth rule if the domain is non-trivial.

  • I really wish people would read the article, the library does exactly this:

    > Okmain downsamples the image by a power of two until the total number of pixels is below 250,000.

  • I've had success in the past in customizing macOS key bindings using Karabiner: https://karabiner-elements.pqrs.org/

  • The page literally credits "Open English Wordnet" (based on it) in the sidebar :)

    (the link is broken though, it should be https://github.com/globalwordnet/english-wordnet)

  • Single testcase benchmark, no citations, inventing nonsense terms for trivial concepts like "Synaptic Plasticity", LLM-slop style writing.

    Nobody in their right mind would publish this to ArXiv. I suggest looking up and reading guides on how to write a research paper.

HackerNews