Rafael Batiati

Results 54 comments of Rafael Batiati

Thanks so much, I feel better already :sweat_smile: Let us try to reproduce it in the simplest possible form, so we can figure out what's actually happening.

Closing, as it was fixed by #1380. Specifically by this code: https://github.com/tigerbeetle/tigerbeetle/blob/2e008091365e53e7b0c1e4d5774ba367d4715433/src/clients/go/tb_client.go#L184-L186

Thanks for the detailed report @DashBarkHuss! We handle this case for the TigerBeetle executable (https://github.com/tigerbeetle/tigerbeetle/pull/1890) but not for clients! Indeed, we should do something similar, giving more information about what...

> We should be calling .deinit to do this though, no? Yes, I think it's fine to use `c_allocator` when calling `tb.init()` from the FFI exports. However, we should wrap...

Hey, @raisinrand, can you write a unit test to reproduce it? I tried this one, but it passed: ``` test "Sections: Empty nodes" { const template_text = "{{#section}}A{{#empty}}{{/empty}}{{/section}}"; const expected...

>Has this been fixed on a newer version? I have currently tried 3 versions adjacent to the 0.13 version bump and all seem to exhibit the same bug. Hey @asier-ochoa!...

Hey! Thanks for the first review, I'll start reading through! Just a comment about lambdas with only the `ctx` parameter. They are intended to be applied over the rendered children...

Hello @tiawl! > I find another way to achieve what I want to do without this feature. I'm curious about how you solved it! I believe some use cases might...

Hello @tiawl, thanks for the kind words! Currently, lambda isn't supported on JSON by design: https://github.com/batiati/mustache-zig/blob/4913f1ff3b5400da604258e9c40825c91d139889/src/rendering/contexts/json/context.zig#L129-L146 However, it might be a low-hanging fruit, I think most of the invoker code...

It would be something like this: ```zig const MyGlobalLambdas = struct { // Global lambda that can be applied over any rendered value, regardless of the type of context. pub...