article thumbnail

Mangling JSON numbers

TechEmpower

If we have a long (64-bit integer) that we serialize into JSON, we might be in trouble if JavaScript consumes that JSON. JavaScript has the equivalent of double (64-bit floating point) for its numbers, and double cannot represent the same set of numbers as long. The output of x.toString() in JavaScript is suspicious.

article thumbnail

Framework Benchmarks

TechEmpower

For example, we used Sequelize for the JavaScript MySQL tests. JavaScript. write(HelloDbResponse.mapper.writeValueAsString(worlds)); } catch (IOException ex) { } } }); return response; }. Here, the programmers at TechEmpower share our thoughts and opinions. Switched gigabit Ethernet. Load simulator. MySQL 5.5.29.

Framework 560
Insiders

Sign Up for our Newsletter

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

article thumbnail

Everything about Java 8

TechEmpower

At the time of this writing, Java 8 development is still very much in progress. It is essentially another way of writing Collections.newSetFromMap(new ConcurrentHashMap ()). It performs better than RRWL when used as a plain read-write lock. Nashorn JavaScript Engine. Language features and APIs may still change.

Java 560
article thumbnail

Pragmatism with Flavor

TechEmpower

Sure we still get excited and animated about a new JavaScript library, a new CSS trick, a new device, or a new data store. You're in the thick of it and about to write a small chunk of server-side code. but getting work done requires shutting down the news feed and writing code. We love technology, but.

Web 200
article thumbnail

Frameworks Round 1

TechEmpower

For example, we used Sequelize for the JavaScript MySQL tests. JavaScript. write(HelloDbResponse.mapper.writeValueAsString(worlds)); } catch (IOException ex) { } } }); return response; }. As with JSON serialization, we''ve selected a best-of-breed ORM when the framework is agnostic. Switched gigabit Ethernet. Load simulator.

Framework 544