GaS - GG Flip as a Service

Flip signs faster than light speed!

GG Flip as a Service (GaS) takes advantages of switch block optimizations in V8 Engine and lets you flip signs literally faster than speed of light. Built on top of proven GG Flip.

V8 Engine

V8 Engine highly optimises the switch blocks and they are way too fast compared to any other control statements. GaS takes advantage of this feature and takes sign flipping performance to next level. Enterprise edition of GaS provides forked version of V8 with GG Flip built in.

Blockchain

The generated lib is of few gigabytes in size, which is pretty common for Node.js libraries. However, for efficient and secure distribution GG Flip makes use of Blockchain. Also, the genesis block is initialized with 0.0 and subsequent blocks are incremented by 10-64, so that all the floating numbers are also included.

Open Source

GaS is a web service (REST) for GG Flip library which is completely Open Source and released under MIT License. When it is Open Source, you just know it works. The code is available to everyone for performance benchmarks and security audit.


Performance

Even in low memory environments (old computers, internet explorer, iPhones with low battery), GG Flip performs almost twice as fast compared to the minimal approach and in the usual environments, it's almost 10x faster than the usual method and 4x faster than the minimal approach. The Enterprise edition uses Blockchain and the performance is 12x!


API

GaS provides the simplest REST API for the sign flipping.

All the API requests should have Authorization header. API supports both GET and POST requests.

If you are using GG Flip on low memory devices, send X-GG-PLATFORM with low-memory as value. Send X-GG-PLATFORM as Blockchain in enterprise editions.

let xmlHttp = new XMLHttpRequest();
let apiURL = "https://gg-flip.herokuapp.com/api/v1/flip?num=69"
xmlHttp.open("GET", apiURL, true);
xmlhttp.setRequestHeader("Authorization", "your API key here");
xmlHttp.send(null);
console.log(xmlHttp.responseText);
// {"flipped": -69, "flippedStr": "-69"}
let xmlHttp = new XMLHttpRequest();
let apiURL = "https://gg-flip.herokuapp.com/api/v1/flip"
xmlHttp.open("POST", apiURL);
xmlhttp.setRequestHeader("Authorization", "your API key here");
xmlHttp.setRequestHeader("Content-Type", "application/json;charset=UTF-8");
xmlHttp.send(JSON.stringify({ num: 69}));
console.log(xmlHttp.responseText);
// {"flipped": -69, "flippedStr": "-69"}

Pricing

GaS has a simple pricing and believes in pay as you flip. The Enterprise edition comes with Blockchain and V8 fork which has GG Flip built in. Contact support for pricing and more details.

Negative Zero

$0 / mo

  • Rate limited API
  • Max 100 requests per minute
  • Integers only
  • GaS npm library

Leftpad

$15 / mo

  • All good things of Negative Zero
  • 1000 requests per second
  • Integers and floats only
  • GG Flip low memory API

Pinkie Promise

$299 / mo

  • All good things of Leftpad
  • V8 fork with GG Flip built in
  • Support for complex numbers
  • On-site training for your JS devs