Jake Wharton

Results 1657 comments of Jake Wharton

We have systems which need to parse, read, and write protos dynamically at runtime in Java. We also ship our own "compiler" and Java runtime which generates files that are...

While this is for 32-bit integers, I've also seen integers larger than 53 bits quoted so as to not lose precision with JS clients/servers/proxies. Having them transparently unwrapped when a...

For a `ByteString` you should create a `Buffer` and call write with it. No need for an implementation that allocates byte arrays while reading.

The byte array version is unsafe, and should either do a defensive copy (by just being an alias to Buffer().write) or be added to the existing unsafe function object.

> Could you please elaborate on this? I am a beginner and don't quite understand this sentence. Sure! The gist is that the copy of data from the mutable byte...

Sure, but matching java.io behavior has never really been a design goal of the API provided by this library or Okio before it. One of the motivating factors for its...

This is basically a variant of memoization, and if considered for inclusion I'd prefer a timeout parameter also be introduced (which can default to infinity). I'm surprised there isn't a...

I don't think we even need to use the schema mechanism. We can just define a regular interface similar to that which would be generated with a generic type for...

> ## Can we expose dynamic content APIs in the Redwood layer? > > At the moment RedwoodView has `reset()` which is the manual version of a code update. >...

I guess I'm not entirely opposed to it, but it makes non-fullscreen usage much more difficult as it likely requires using a placeholder `FrameLayout` and either attempting to replace it...