ETA: Also, you already are needing to add code to every encode/decode point for the `map[string]interface{}` handling. :P
96 karma · joined October 3, 2017
ETA: Also, you already are needing to add code to every encode/decode point for the `map[string]interface{}` handling. :P
type Person struct {
FirstName string `json:"first_name"`
}
And you get json like `{"name": "Alice"}`, you can decode it something like this: var doc struct {
FirstName string `json:"name"`
}
json.Unmarshal(data, &doc)
person := Person(doc)
I have not looked at the assembly so I can't say whether this incurs extra overhead or not.ETA: However, nearly all data in restic is encrypted. This includes the index files. So you still need to have the encryption key to look at snapshots and walk their trees.
For instance, jemalloc(3) on amd64 platforms will give back 16-byte aligned pointers:
[...] The allocated space is suitably aligned
(after possible pointer coercion) for storage of any type of object.RPython is both a language (a very ill-defined subset of Python... pretty much defined as "the subset of Python accepted by the RPython compiler"), and a tool chain for building interpreters. One benefit of writing an interpreter in RPython is that, with a few hints about the interpreter loop, it can automatically generate a JIT.
/ # make --version
GNU Make 4.2.1
Built for x86_64-alpine-linux-musl
Copyright (C) 1988-2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.This hasn't been true since iOS 8 with WKWebView[0].
[0] http://www.iphonehacks.com/2014/06/ios-8-javascript-performa...
This, big time. I worked on an ecommerce site that had to ship to Nigeria. No zip codes, often no street name or number. "Two doors north of the post office on the east side of Lagos." The couriers could find it.
Though supporting `-flag` does remove the very nice combining of short flags.
I'm torn between JS and PHP for the language I have the least fun programming in.