haxscramper
haxscramper
Something other than `.json` need to be used, mainly due to its limitations wrt. to type handling. Jsony creates minified json, while I would prefer to minimize diffs since I...
`frosty` handles this task flawlessly, but generated sources are not human-readable (serialized to binary). The main objective is to be able to check IR dumps into git, and provide a...
Related - https://github.com/Clonkk/nim-cppstl/issues/15 - https://github.com/SciNim/flambeau/issues/5
Main issue that arises from this difference - I need to figure out a way how to "mend together" nim and C++ object ownership/memory-management semantics. Nim (sadly) does not have...
Running with `--expandArc:main` shows that nim code infers `c1` to be a cursor into c ```nim block :tmp: var c c = CxxContainer[NimObject](value: NimObject(field: 2)) var c1_cursor = c `=destroy`(c)...
Partially related https://github.com/nim-lang/RFCs/issues/432 - if would be nice to have some form of "requires move" etc. annotations [How to prevent return value from been`=copy`ed?](https://forum.nim-lang.org/t/8549)
- [ ] Support automatic `ref T` generation for cxx classes. Was supported in IRv1, but best to be reimplemented. Two possible ways of implementing - ```nim proc newImportAux*() {.importc:...
- https://github.com/nim-lang/Nim/pull/9603 - https://github.com/nim-lang/Nim/issues/12624 - https://github.com/nim-lang/Nim/commit/e1129749207d25597e81fe06cd7e3099b5ecb61e
This issue can be partially solved if only `ref`/`ptr` types are used. It still breaks on the value objects as things just break on C++ semantics (when passing `bycopy` objects...
Actually I just realized I can drop `bycopy` and replace it with `byref`: ```nim {.emit: """/*TYPESECTION*/ struct Base { int baseField; int baseMethod() { return 12; } virtual int toOverride()...