Rubicon Rowe

Results 17 comments of Rubicon Rowe

@NefixEstrada After hours of work, I believe this use case could not be supported. Clearly: 1. We can only control the memory layout in packed struct. 2. The compiler controls...

The new patch rejects the nested structure use case and emits warning for structures with any bitfield.

> ``` > src/a.zig:9:5: error: dependency loop detected > pub const ngx_file_t = struct_ngx_file_s; > ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > ``` @patryk4815 This problem is about the analysis (it even happens in the...

> Maybe c-translate should check if this is 'same' struct referencing itself, and replace it with `@This()`? > > ```zig > pub const ngx_file_s = EmulateBitfieldStruct(struct { > thread_handler: ?fn...

> Our best chance may be to rework the DSL syntax for `EmulateBitfieldStruct`, avoid to resolve the type when it's a specific type (like pointer). > My concern is, even...

This PR is going to be closed because it's blocked by some key problems. I have learnt much from this PR and I hope this experience can also help others...

I got this error even from the command line (with bun). After digging, looks like the problem is related to the https://github.com/babel/babel/issues/13855 , which is about the babel's CJS-ESM interop....