Hacker GitHub

← All repos

Const-me/ComLightInterop

View on GitHub ↗ ★ 56 C#

Cross-platform COM interop library for .NET Core 2.1 or newer

21 mentions on Hacker News by 2 people: 1 story, 20 comments · first 2019-08-29 · latest 2024-11-18

Mentions per year 21 mentions · busiest year 2020 (5)
20082026
  1. …or even C++ API: see that library to do that on Linux which doesn’t have COM interop in the runtime https://github.com/Const-me/ComLightInterop
    comment by Const-me · 2024-11-18 · in Stop making me memorize the borrow checker
  2. …or std::iterator<NativeT> etc) it's all pleasant and good. or check this library of mine https://github.com/Const-me/ComLightInterop/ Gotta say this looks neat, but it's exactly the type of code I'd rather not write: UUIDs, bunch of…
    comment by stinos · 2024-07-02 · in Writing GUI apps for Windows is painful
  3. …any weird metadata. You can use C APIs, or COM interop with ATL, or check this library of mine https://github.com/Const-me/ComLightInterop/ If you start with this approach (as opposed to refactoring a C++ app you already have) you’ll find…
    comment by Const-me · 2024-06-30 · in Writing GUI apps for Windows is painful
  4. I have once made something remotely similar, to interop between C++ and C#: https://github.com/Const-me/ComLightInterop I took different approach. Because I only needed to support these two languages, there’s no separate interface…
  5. …Forms which consumes huge chunk of WinAPI. I benchmarked a while ago when testing this library https://github.com/Const-me/ComLightInterop#performance On the computer I was using at that time (probably Ryzen 5 3600 CPU) the overhead was…
  6. …i.e. C ABI with extra first argument for this pointer. Once upon a time I made this library https://github.com/const-me/comlightInterop/ The native side of the interop is idiomatic C++, here’s an example…
    comment by Const-me · 2022-03-27 · in Mach v0.1: Cross-platform Zig graphics
  7. …are they aren't registered anywhere. Speaking about support libraries, I once made my own: https://github.com/Const-me/ComLightInterop/tree/master/ComL... Compare examples from that article with this one:…
    comment by Const-me · 2022-01-30 · in COM+ Revisited
  8. …nicer at that level. I only using the low-level thing when I need to emit new types, like there: https://github.com/Const-me/ComLightInterop/blob/master/ComL...
    comment by Const-me · 2021-10-15 · in The Serde Rust Framework
  9. …combined with runtime code generation is very powerful in C#. Here's moderately complicated example https://github.com/Const-me/ComLightInterop/tree/master/ComL...
    comment by Const-me · 2021-08-28 · in Weird Languages
  10. …For COM APIs i.e. sharing objects around see this library + demos: https://github.com/Const-me/ComLightInterop It’s only really needed on Linux because the desktop version of the framework has COM support already built-in, bu
    comment by Const-me · 2021-03-18 · in Building a shared vision for Async Rust
  11. …is not supported in modern .NET out of the box, but wasn't too hard to implement as a library: https://github.com/Const-me/ComLightInterop
  12. …code is even platform-independent, for no additional overhead. Here’s couple non-trivial examples: https://github.com/Const-me/ComLightInterop/blob/master/ComL... https://github.com/Const-me/ComLightInterop/blob/master/ComL...
  13. …and involved. Yes in general, but you can pick a subset useful enough in practice. Take a look: https://github.com/Const-me/ComLightInterop
  14. …heard of that. Do you have a source? I haven’t noticed much overhead when I measured, take a look: https://github.com/Const-me/ComLightInterop#how-it-works That library compiles and runs with .NET Core 2.1. Update: also there…
    comment by Const-me · 2020-09-22 · in .NET 5.0 – New APIs
  15. …with my C# to C++ interop library, it can easily pass arbitrary complicated types both ways: https://github.com/Const-me/ComLightInterop
    comment by Const-me · 2020-08-19 · in Rust and C++ Interoperability in Chrome
  16. …status codes of exceptions, and so on. At some point I have even made COM interop for Linux: https://github.com/Const-me/ComLightInterop It’s a small project with less than 5k lines of code, because all the heavy lifting was already in the…
  17. …language extensions. You can implement and consume these objects with GCC on ARM Linux just fine: https://github.com/Const-me/ComLightInterop
  18. …code, using Direct3D, media foundation, Eigen, other C and C++ libraries. It works even on Linux https://github.com/Const-me/ComLightInterop I also have these parts, especially about the interop. Libraries like drm, kms, gles, udev, and…
  19. If you can read C#, maybe this will help: https://github.com/Const-me/ComLightInterop Specifically, this class implementing vtable callable from C++: https://github.com/Const-me/ComLightInterop/blob/master/ComL... About multiple…
    comment by Const-me · 2019-10-09 · in Designing a COM Library for Rust
  20. …ported to Linux and implemented .NET core interop. The C++ runtime is just a couple pages of code. https://github.com/Const-me/ComLightInterop