Re: (Oh My) Gentool 0.3.0 released

2021-05-10 Thread Gavin Ray via Digitalmars-d-announce
On Monday, 10 May 2021 at 07:11:26 UTC, evilrat wrote: Can't say I hate that idea, but it has same issues as SWIG, writing any non trivial rule becomes next to impossible as there is practically zero examples and very poor documentation, the whole process becomes trial and error marathon

Re: (Oh My) Gentool 0.3.0 released

2021-05-10 Thread evilrat via Digitalmars-d-announce
On Sunday, 9 May 2021 at 19:35:52 UTC, Gavin Ray wrote: **However, I had an idea which I haven't seen tried yet, and have been prototyping:** - Using `cppyy` in Python (which uses `cling`) for runtime bindings to C++ and ability to write raw C++ code in Python strings and JIT compile it. -

Re: (Oh My) Gentool 0.3.0 released

2021-05-09 Thread Gavin Ray via Digitalmars-d-announce
On Friday, 7 May 2021 at 18:15:47 UTC, Jacob Carlborg wrote: On 2021-05-05 12:01, user1234 wrote: Is it possible to use libclang and more generally LLVM c++ api [directly in D](https://dlang.org/spec/cpp_interface.html) or the Cpp interface is too limited ? Was this an option, have you tried

Re: (Oh My) Gentool 0.3.0 released

2021-05-07 Thread evilrat via Digitalmars-d-announce
On Friday, 7 May 2021 at 18:17:36 UTC, Jacob Carlborg wrote: On 2021-05-05 13:54, user1234 wrote: Thanks for the explanations. BTW I had the same question for LDC backend being c++, I guess the answer would be similar. If I understand correctly, the Zig compiler is implemented partially in

Re: (Oh My) Gentool 0.3.0 released

2021-05-07 Thread Jacob Carlborg via Digitalmars-d-announce
On 2021-05-05 13:54, user1234 wrote: Thanks for the explanations. BTW I had the same question for LDC backend being c++, I guess the answer would be similar. If I understand correctly, the Zig compiler is implemented partially in Zig. It use the LLVM C API and some wrappers C around the C++

Re: (Oh My) Gentool 0.3.0 released

2021-05-07 Thread Jacob Carlborg via Digitalmars-d-announce
On 2021-05-05 12:01, user1234 wrote: Is it possible to use libclang and more generally LLVM c++ api [directly in D](https://dlang.org/spec/cpp_interface.html) or the Cpp interface is too limited ? Was this an option, have you tried ? Yes, it's possible to use libclang. DStep [1] is using

Re: (Oh My) Gentool 0.3.0 released

2021-05-06 Thread Dominikus Dittes Scherkl via Digitalmars-d-announce
On Wednesday, 5 May 2021 at 11:54:51 UTC, user1234 wrote: On Wednesday, 5 May 2021 at 10:01:13 UTC, user1234 wrote: Maybe some time in future, but for now there is a lot more priority stuff to do before even attempting this. Thanks for the explanations. BTW I had the same question for LDC

Re: (Oh My) Gentool 0.3.0 released

2021-05-05 Thread user1234 via Digitalmars-d-announce
On Wednesday, 5 May 2021 at 11:51:27 UTC, evilrat wrote: On Wednesday, 5 May 2021 at 10:35:23 UTC, Dominikus Dittes Scherkl wrote: On Wednesday, 5 May 2021 at 10:01:13 UTC, user1234 wrote: ... To answer both: clang has lots of templates, sometimes not so trivial ones, its code base filled

Re: (Oh My) Gentool 0.3.0 released

2021-05-05 Thread evilrat via Digitalmars-d-announce
On Wednesday, 5 May 2021 at 10:35:23 UTC, Dominikus Dittes Scherkl wrote: On Wednesday, 5 May 2021 at 10:01:13 UTC, user1234 wrote: I have a technical question about the tool itself. It is mostly written in cpp. Oh dear! Isn't it possible to use it to translate itself into D? To answer

Re: (Oh My) Gentool 0.3.0 released

2021-05-05 Thread Dominikus Dittes Scherkl via Digitalmars-d-announce
On Wednesday, 5 May 2021 at 10:01:13 UTC, user1234 wrote: I have a technical question about the tool itself. It is mostly written in cpp. Oh dear! Isn't it possible to use it to translate itself into D?

Re: (Oh My) Gentool 0.3.0 released

2021-05-05 Thread user1234 via Digitalmars-d-announce
On Wednesday, 5 May 2021 at 06:50:29 UTC, evilrat wrote: (Oh My) Gentool - Yet another C/C++ binding generator. It is a tool to convert C/C++ code to D usable form. It takes JSON config, basically all C++ compiler flags and switches, and outputs extern(C++) declarations, (hopefully) in usable

(Oh My) Gentool 0.3.0 released

2021-05-05 Thread evilrat via Digitalmars-d-announce
(Oh My) Gentool - Yet another C/C++ binding generator. It is a tool to convert C/C++ code to D usable form. It takes JSON config, basically all C++ compiler flags and switches, and outputs extern(C++) declarations, (hopefully) in usable form D! It can already process (dear) imgui library