Matthieu Monsch

Results 85 comments of Matthieu Monsch

I see. `:Scratch` should have the behavior you describe if you add `g:scratch_insert_autohide = 0` to your config.

OK, I see. There is no built-in command with this behavior. You could implement it by checking for the existence of the `__Scratch__` buffer (very similar to `preview`'s [underlying logic](https://github.com/mtth/scratch.vim/blob/master/autoload/scratch.vim#L166))....

> Do you intend to support the ability to roundtrip various Avro types to/from JSON? It's nice to have, but I'm OK dropping `coerceBuffers` if it adds significant complexity.

@endel - Your benchmarks aren't doing what you think they are. You forgot to `JSON.parse` the [`data`](https://github.com/endel/msgpack-benchmark/blob/d51c10c6a2ffbfc3a5da0a34055477e56024c2d7/benchmark.js#L13). Once you change this, `msgpack-lite` should perform a lot better relatively.

Hi @dbrito. `bytes` are mapped to `Buffer` instances in `avsc`'s current release. Wrapping the text encoder's output in the CodePen works: ```js import avro from "https://esm.sh/avsc"; import buffer from "https://esm.sh/buffer";...

Hi @eladhaim - apologies for the belated response. This sounds quite useful, but I would encourage you to publish it as a separate library, at least for now. I'm in...

Hi @floriansollami. The typehook above is causing all types (even non-`long`s) to be mapped to a `longType` - that's probably not what you want. Can you try omitting the hook?

Thanks @oleiman, apologies for the very belated response. `SlowBuffer` constructor calls have been removed in `v5.7.8` (via https://github.com/mtth/avsc/pull/499).

Hi @svirpridon. This is an issue with the typings, the underlying library supports this. Until this is fixed, it is safe to use an `any` cast here. Alternatively, you can...

> @mtth can't we just add | Type to DefinedType for this? Seems like it. We should also then simplify `AvroSchema` to omit `Type`.