Giter Club home page Giter Club logo

eden's People

Contributors

f34nk avatar jfacorro avatar kianmeng avatar naomijub avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

eden's Issues

Release 2.1.0

Can you make a release of version 2.1.0? As well as publish it to HEX?
Maybe convert your fork jfacorro/elixir-array into a new HEX lib? like eden-array.

Also, congrats! this is the only other non-Clojure EDN lib that I have seen that matches EDN Spec nicely!

Could not parse file

Hi,

It seems that unicode characters are not parsed :

{
	:id "th"
	:name "Thaïlande"
	:geometry #wkt "POLYGON(1 2, 3 4, 5 6, 7 8)"
}

=> FunctionClauseError

Thank you

edn (parse tree) -> Elixir

Data Structures Mapping: edn <-> Elixir

Edn Elixir
nil :nil = nil
true :true = true
false :false = false
string String
character ExEdn.Character
symbol ExEdn.Symbol
keyword Atom
integer Integer
float Float
list List
vector Array
map Map
set HashSet
#inst Timex.DateTime
#uuid ExEdn.UUID

Further Considerations

Character

There is no way of distinguishing a common integer from the representation of a character in a String or in Char lists. This forces the creation of a new representation for this type so it can be correctly translated to from and to edn.

Arbitrary Precision Integer and Float

The Erlang VM (EVM) only provides arbitrary precision integer so all integers will have this and the N modifier will be ignored when present.

On the other hand native arbitrary precision floating point numbers are not provided by the EVM so all values of type float will be represented according to what the EVM supports.

Keyword and Symbol Representation

The decision to translate keywords as atoms on the EVM comes form the common use these two data type are given. It might get awkward really quickly using a new ExEdn.Symbol struct as the representation for edn's symbols so this might change.

vector

There is no constant lookup or nearly constant indexed data structure like edn's vector other than the :array data structure implemented in one of Erlang's standard library modules. Until there is a better implementation for this ExEdn will use the Array, an Elixir wrapper library for Erlang's array.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.