generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: messagepack > json

Previous Thread :: Next Thread 
Mescalyne is not online. Mescalyne
Joined: 20 Apr 2017
Total Posts: 418
30 Jul 2017 11:16 AM
json is old
messagepack is the future, just take a look at this efficiency
input data used was a table of fractions that yielded repeating decimal representations

-- output
Finished in 7.2956085205078e-05 seconds
Len in bytes of packed MessagePack data: 28
Len in bytes of JSON-encoded data: 99

that's nearly a 70% reduction in storage used
grab the port to modulescripts here
https://www.roblox.com/library/947790292/aa
Report Abuse
Pxkez is not online. Pxkez
Joined: 24 Sep 2015
Total Posts: 1066
30 Jul 2017 11:18 AM
Speak RBX.lua plz
Report Abuse
Mescalyne is not online. Mescalyne
Joined: 20 Apr 2017
Total Posts: 418
30 Jul 2017 11:18 AM
sorry kiddo
this is big boy talk
go learn basic computer science and then come back
Report Abuse
systematicaddict is not online. systematicaddict
Joined: 13 Jul 2012
Total Posts: 4188
30 Jul 2017 11:19 AM
@Px JSONs can be encoded, decoded, and used with RBX.Lua...
Report Abuse
Mescalyne is not online. Mescalyne
Joined: 20 Apr 2017
Total Posts: 418
30 Jul 2017 11:22 AM
sorry that i didn't really explain a lot of this before.

json is an encoding which is short for Javascript Object Notation; it's what datastores use by default to store tables. however, messagepack makes storage of these objects that would usually be represented by JSON much more compact, yielding more storage space.

for example, it stores whole numbers up to 2^8-1 as one single character, 2^16-1 as 2, 2^32-1 as 4 and so on. it also stores floating point numbers not as decimal representations but in raw binary format itself

it's based on the messagepack spec and it was ported to lua by jferrad.
Report Abuse
IISnoop_DogII is not online. IISnoop_DogII
Joined: 13 Jun 2011
Total Posts: 1139
30 Jul 2017 11:22 AM
> json is old
from Wikipedia:

"JSON is a language-independent data format. It was derived from JavaScript, but as of 2017 many programming languages include code to generate and parse JSON-format data. The official Internet media type for JSON is application/json. JSON filenames use the extension .json."


Your average 12 year old forumer
Report Abuse
Mescalyne is not online. Mescalyne
Joined: 20 Apr 2017
Total Posts: 418
30 Jul 2017 11:24 AM
JSON's economic value pales in comparison to MessagePack, really. That's what I should've said.
Report Abuse
Pxkez is not online. Pxkez
Joined: 24 Sep 2015
Total Posts: 1066
30 Jul 2017 04:00 PM
@System really !!! Never knew !!!11
Report Abuse
systematicaddict is not online. systematicaddict
Joined: 13 Jul 2012
Total Posts: 4188
30 Jul 2017 06:16 PM
@Pxk Well, a sense of incompetence was radiating due to the fact that you posted "Speak RBX.Lua", so, I mean I think it's fair to assume you didn't know the fact. No need be sarcastic.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image