[erlang-questions] Frames proposal

Richard O'Keefe ok@REDACTED
Tue May 1 00:54:45 CEST 2012


On 1/05/2012, at 5:13 AM, Max Lapshin wrote:

> Maybe it possible to add JSON notation to frame handling?
> 
> It would be very convenient, because  {id : 4135, title : "title2"} is
> mapped to [{id, 4135}, {title, "title2"}].
> The only difference is that in all external format handlers binaries
> are used to represent external strings.

I don't quite understand this question.
There is a section in the frames proposal titled "Frames and JSON"
which mainly just presents a table

	JSON		Erlang
	null		null
	false		false
	true		true
	numbers		numbers, but JSON has no integers
	strings		binaries
	arrays		lists or tuples
	dictionaries	frames

The implied mapping takes JSON {id: 4135, title: "title2"}
to <{id ~ 4135, title ~ <<"title2">>}>.

The bounded size of the Erlang atom table is a vulnerability
but there is an EEP to address that; that in itself is a much
more urgent issue than frames.






More information about the erlang-questions mailing list