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
20082026
-
…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 -
…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 -
…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 -
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…
comment by Const-me · 2023-07-18 · in Swig – Connect C/C++ programs with high-level programming languages -
…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…
comment by Const-me · 2022-05-22 · in C# 11 Preview Updates – Raw string literals, UTF-8 and more -
…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 -
…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 -
…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 -
…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 -
…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 -
…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
comment by Const-me · 2021-03-14 · in Experimental Nintendo Switch Emulator written in C# -
…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...
comment by Const-me · 2021-03-04 · in Accidentally quadratic: When Python is faster than C++ -
…and involved. Yes in general, but you can pick a subset useful enough in practice. Take a look: https://github.com/Const-me/ComLightInterop
comment by Const-me · 2020-10-01 · in Energy Efficiency across Programming Languages [pdf] -
…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 -
…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 -
…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…
comment by Const-me · 2020-07-22 · in Rust – How do I create a global, mutable singleton? (2015) -
…language extensions. You can implement and consume these objects with GCC on ARM Linux just fine: https://github.com/Const-me/ComLightInterop
comment by Const-me · 2020-03-11 · in Windows has a new wormable vulnerability, with no patch -
…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…
comment by Const-me · 2019-10-15 · in .NET Core 3.0 Concludes the .NET Framework API Porting Project -
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 -
…ported to Linux and implemented .NET core interop. The C++ runtime is just a couple pages of code. https://github.com/Const-me/ComLightInterop
comment by Const-me · 2019-08-29 · in Rust is the future, C is the new Assembly: Josh Triplett (Intel)