News for hackers. Stuff that matters.
Re:D is being used for autonomous driving research – Audi an... by jsjsjsjsjsjs on Tuesday June 25, 2019 @07:24AM (#20273064)
> - Nim: C/C++ interop is second to none.

This is very wrong.

There is perfect c interop - you can import c functions using {.importc.} pragma.

C++ interop is best i have seen so far. You can use c++ template types! Here is the sample: https://github.com/3dicc/Urhonimo/blob/master/modules/contai... Of course it is not perfect. For example if you would like to override c++ method you will have to write a bit of c++ code using {.emit.} pragma. I do not know a single language that could map c++ template types into it's own generic types like nim can.

Re:D is being used for autonomous driving research – Audi an... by Leszek on Tuesday June 25, 2019 @07:27AM (#20273084)
"second to none" means "best" ("there is no one it is second to, thus it is first")
Re:D is being used for autonomous driving research – Audi an... by jsjsjsjsjsjs on Tuesday June 25, 2019 @10:27AM (#20274515)
TIL. Not native english-speaker. My bad.
Re:D is being used for autonomous driving research – Audi an... by totalperspectiv on Tuesday June 25, 2019 @10:54AM (#20274816)
You made my point better though! Nim interop is awesome.
Re:D is being used for autonomous driving research – Audi an... by mhh__ on Tuesday June 25, 2019 @10:53AM (#20274801)
D's C++ interop looks better at a glance.

With a simple extern(C++) you can use templates, classes and vtable's are matched up to single inheritance. There is also some experimental work on catching C++ exceptions but I've never tried to use it.

Re:D is being used for autonomous driving research – Audi an... by p0nce on Tuesday June 25, 2019 @12:57PM (#20276243)
Also: COM support. This can be incredibly useful for interop.
Re:D is being used for autonomous driving research – Audi an... by pjmlp on Friday June 28, 2019 @02:43AM (#20302028)
Specially since Windows has gone full COM for all new major APIs.
Re:D is being used for autonomous driving research – Audi an... by detaro on Tuesday June 25, 2019 @07:28AM (#20273096)
"second to none" means "the best".