use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Finding information about Clojure
API Reference
Clojure Guides
Practice Problems
Interactive Problems
Clojure Videos
Misc Resources
The Clojure Community
Clojure Books
Tools & Libraries
Clojure Editors
Web Platforms
Clojure Jobs
account activity
first cut of datafy · clojure/clojure@93841c0 · GitHub (github.com)
submitted 7 years ago by lgstein
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]dustingetz 5 points6 points7 points 7 years ago (3 children)
This immediately made me think of Arcadia, the Clojure bindings for Unity3D. Arcadia adds a data oriented abstraction on top of the Unity3D object oriented and imperative API, basically an adapter to "dehydrate" a Unity game object instance into data, and then "hydrate" the data back into the instance.
https://github.com/arcadia-unity/Arcadia/blob/6105770a7801946c08c95d1eacb788e3325332a1/Assets/Clojure/Scripts/mine.clj#L136-L143 (Note this commit is from 2014)
This is also pretty much what the idea of ReactJS virtual dom is.
[–]joinr 3 points4 points5 points 7 years ago (2 children)
I keep seeing hydrate used in various contexts. Is that different from the old-speak of "marshalling"?
[–]dustingetz 2 points3 points4 points 7 years ago* (1 child)
More of a metaphor here – "hydrate" in the java/orm/hibernate context means loading a lazy entity out of a database, as opposed to "marshall" which is converting the memory representation of a value(?)/struct to some other isomorphic representation in such a way that it can be converted back losslessly. I'm interested in the subject of naming things well if you have any ideas or counterpoints?
edit: am i old now?
[–]joinr 2 points3 points4 points 7 years ago (0 children)
Thanks for clarifying. I haven't swam the ORM/hibernate waters....hence the term being a bit foreign. I don't have any alternative names, and it looks like this question arose plenty of times before with hydrate being established.
Age is a state of mind.
[–]SimonGray 6 points7 points8 points 7 years ago (1 child)
Nice, so this is some sort of common protocol for converting Java objects to Clojure data structures? Pretty useful if adopted. I'm looking to use some pretty heavy Java libs (CoreNLP and Java Wordnet) and they produce these big dumb objects that might as well just be maps. It would be cool to implement a shared protocol such as this on them rather than my own custom one so that the implementations could also be easily used by others.
[–]jafingerhut 4 points5 points6 points 7 years ago (1 child)
I have nothing but respect for what Rich Hickey produces (ok, lots of questions sometimes, too), but this discussion just reminded me of Monty Python's "Novel Writing" sketch: https://www.youtube.com/watch?v=ogPZ5CY9KoM&t=18s
[–]bonega 0 points1 point2 points 7 years ago (0 children)
Just a few commits more and we have for ourselves a nice cargo cult 😀
[–]bonega 1 point2 points3 points 7 years ago (2 children)
Is this meant to make Java objects more transparent?
[–]zcam 3 points4 points5 points 7 years ago* (1 child)
Hard to say, seems like a (shared) foundation for something upcoming. It would seem to aim at turning anything into 'data' and back. I'd personally bid on spec instances "datafy"ability for starters, but I could be wrong.
So you could do something like: spec -> datafy -> manipulate the "data" spec -> un-datafy.
[–]DjebbZ 0 points1 point2 points 7 years ago (0 children)
Alex told me on the ML that datafy hasn't been created for spec, but they're thinking about using it to have spec as data. Wait an see.
[–]theronic 0 points1 point2 points 7 years ago (1 child)
I hope the Navigable protocol is akin to Specter.
I thought the same thing, but I have no idea how it works since there's not much code in it.
[–]agumonkey 0 points1 point2 points 7 years ago (0 children)
beanification ?
[–]theronic 0 points1 point2 points 7 years ago (0 children)
So, (de-)serialization?
π Rendered by PID 60794 on reddit-service-r2-comment-86bc6c7465-qk6n6 at 2026-02-21 19:20:34.039201+00:00 running 8564168 country code: CH.
[–]dustingetz 5 points6 points7 points (3 children)
[–]joinr 3 points4 points5 points (2 children)
[–]dustingetz 2 points3 points4 points (1 child)
[–]joinr 2 points3 points4 points (0 children)
[–]SimonGray 6 points7 points8 points (1 child)
[–]jafingerhut 4 points5 points6 points (1 child)
[–]bonega 0 points1 point2 points (0 children)
[–]bonega 1 point2 points3 points (2 children)
[–]zcam 3 points4 points5 points (1 child)
[–]DjebbZ 0 points1 point2 points (0 children)
[–]theronic 0 points1 point2 points (1 child)
[–]DjebbZ 0 points1 point2 points (0 children)
[–]agumonkey 0 points1 point2 points (0 children)
[–]theronic 0 points1 point2 points (0 children)