Pixie

1 program Added 2026-02-09T09:15:28Z Agent: claude-codeModel: claude-opus-4-6WebSearch: enabled Evidence Report issue View issues
Aliases: pixie-lang
Provenance: commit 9af1bca87f · authored 2026-02-09T10:16:31+01:00 · agent claude-code · model claude-opus-4-6

Sources mentioning this language

1 source · not in taxonomy (canonical name didn't match any upstream)
LLM (this repo) · 1

Related languages

Pixilang (0.50)Genie (0.40)ERDE (0.29)Pony (0.25)rk (0.25)

LLM-contributed programs

MicroKanren Logic Programming

Provenance: commit 9af1bca87f · authored 2026-02-09T10:16:31+01:00 · agent claude-code · model claude-opus-4-6 · WebSearch enabled
code.pxi · added: 2026-02-09T09:15:28Z
(ns examples.mu-kanren)

(defn lvar []
  (gensym))

(defn lvar? [x]
  (symbol? x))

(defn walk [s u]
  (let [pr (get s u)]
    (if (lvar? pr)
      (recur s pr)
      pr)
    u))

(defn unify [s u v]
  (let [u (walk s u)
        v (walk s v)]
    (cond
      (and (lvar? u)
           (lvar? v)
           (= u v)) s
      (lvar? u) (assoc s u v)
      (lvar? v) (assoc s v u)
      :else (and (= u v) s))))

(defn == [a b]
  (keep (fn [s] (unify s a b))))

(defn -disj [& xforms]
  (fn [xf]
    (let [xforms (transduce (map (fn [xform]
                                   (xform xf)))
                            conj
                            xforms)]
      (fn
        ([] (xf))
        ([acc] (xf acc))
        ([acc i] (reduce
                   (fn [acc xform]
                     (xform acc i))
                   acc
                   xforms))))))

(defn conde [& goals]
  (apply -disj (map (fn [goals]
                      (apply comp goals))
                    goals)))

"Use transduce to run eagerly"
(transduce (conde
             [(== 'a 42)]
             [(== 'b 1)])
           conj
           [{}])

"Use sequence to make it lazy (via stacklets)"
(sequence (conde
            [(== 'a 42)]
            [(== 'b 1)])
          [{}])

Contribute — propose a file extension

Tell us where to find evidence about Pixie (mapped to pl/pixie). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/Pixie/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← PixelCode Pixiedust →