logoalt Hacker News

cosmic_cheeseyesterday at 8:51 PM3 repliesview on HN

Nice to see. I wonder how feasible it would be to build a plain C interface… would be nice for building bindings to other languages.


Replies

pjmlpyesterday at 9:57 PM

If you enjoy calling COM vtables, and doing the reference counting by hand, by all means.

usrnmyesterday at 9:51 PM

It will need a flashy name, "WinAPI" or something. Just a suggestion

jimjimjimyesterday at 9:52 PM

Painful. A lot of the Microsoft interfaces these days are asynchronous and are built around the dev experience of c#/c++ with libraries/runtimes that do a lot of the heavy lifting. So you end up calling functions with ridiculously long names and they aren't like good old win32 calls where you pass in some parameters and you get a result back. Instead you create objects to pass function pointers and data around and who knows when you'll get your result values back.