Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
delaguardo
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
Show HN: Transit-format (JSON/MessagePack) reader/writer in C
(github.com)
6 points
by
delaguardo
4mo ago
|
0 comments
2.
▲
by
delaguardo
4mo ago
Now I have a reason to get reMarkable :)
3.
▲
by
delaguardo
6mo ago
You should split this question in two: - is JVM usage increasing or decreasing in 2026 and - is Java usage increasing or decreasing in 2026 JVM usage (which is the main host for Clojure) as a platform is increasing modestly, driven by mode
4.
▲
by
delaguardo
10mo ago
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
5.
▲
by
delaguardo
10mo ago
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 """
6.
▲
by
delaguardo
10mo ago
> I meant that it would have to decode the entire EDN string literal containing the base64 data before decoding the base64 yes, any edn reader implementation will read the complete base64 string from the example before giving this string
7.
▲
by
delaguardo
10mo ago
> From what I can understand from the specification, the EDN decoder will still need to run and cannot be streamed if the official specification is used Sorry, you understand it wrong There is no enclosing element at the top level. Thus
8.
▲
by
delaguardo
10mo ago
What do you mean under "syntax typing" and complications in the syntax? > The whole world seems to run on JSON That is true, and I don't like that :) From my perspective JSON syntax is too "light" and that transl
9.
▲
by
delaguardo
10mo ago
It should be easy to add source info for every token, some of them already keep both (size and offset) I can create a branch for that. > I'm curious how much AI was used in the creation of edn.c A fair amount. This is my first big p
10.
▲
by
delaguardo
10mo ago
I can do a lot without applying schema at all. For that I only need handful of types defined in EDN specification and Clojure programming language.
11.
▲
by
delaguardo
10mo ago
Thanks for the link! Yes, EDN is a textual format intended to be human-readable. There is also a format called Transit used to serialise EDN elements. Unlike raw EDN, Transit is designed purely for program-to-program communication and drops
12.
▲
by
delaguardo
10mo ago
> EDN seems to lack a proper format for binary data The best part of EDN that it is extendable :) #binary/base64 "SGVsbG8sIHp6bzM4Y29tcHV0ZXIhIEhvdyBhcmUgeW91IGRvaW5nPw==" This is a tagged literal that can be read by provi
13.
▲
by
delaguardo
10mo ago
One of a key design principles in EDN is to be exclusively data exchange format. Which is true even for JSON where json-schema is something that sits on top of JSON itself. Same goes to EDN - in Clojure there is clojure.spec that adds sche
14.
▲
by
delaguardo
10mo ago
Wow, that is a greate news!) Thanks for looking at it from this perspective! There are some benchmarks already available in the project - https://github.com/DotFox/edn.c/blob/main/bench/bench_integr
15.
▲
by
delaguardo
10mo ago
I think you can use metadata to model html attributes but in clojure people are using plain vector for that. https://github.com/weavejester/hiccup tl;dr first element of the vector is a tag, second is a map of attribut
16.
▲
by
delaguardo
10mo ago
Yes, plan is there but didn't have time yet. Most likely will be available next week
17.
▲
A fast EDN (Extensible Data Notation) reader written in C11 with SIMD boost
(github.com)
112 points
by
delaguardo
10mo ago
|
38 comments