Live data from Hacker News

A fast EDN (Extensible Data Notation) reader written in C11 with SIMD boost

github.com

41–43 of 43 posts

Re: A fast EDN (Extensible Data Notation) reader written in C11 with SIMD boost

#41

I'm grateful for this! Love seeing EDN find its way into new places.

And also with experimental things that might eventually find its way to Clojure :) Check out digit delimiters and text block features:

  {:pi  3.141_592_653_589
   :c   299_792_458
   :hex 0xDE_AD_BE_EF
   :tb  """
        #!/usr/bin/env bb

        (require '[babashka.http-client :as http])

        (defn get-url [url]
          (println "Downloading url:" url)
          (http/get url))
        """}

Re: A fast EDN (Extensible Data Notation) reader written in C11 with SIMD boost

#43
post #42

Stopped reading at this insanity https://github.com/DotFox/edn.c?tab=readme-ov-file#control-c... Call it symbol, if it's not identifiable

From the spec: about symbols - "Symbols are used to represent identifiers" about keywords - "Keywords are identifiers that typically designate themselves."

more than that: in this reader implementation nil, true, false are also valid identifiers with special handling to turn them into nil and bool.

I encourage you to reread original specification and then continue after "this insanity" :)

Post reply on HN