Ts-polyglot
Call C/C++ or Rust functions directly from TypeScript
About Ts-polyglot
Import functions from C, C++ and Rust source files straight into TypeScript, with real types.
Before you try it
Checked against linked sources. Prices and requirements may change; unknown means not verified. Filters include checks from the last 180 days.
- Main use
- Not verified
- Pricing
- Not verified
- Open source
- Not verified
- Platforms
- Not verified
- Login
- Not verified
In the maker’s words
Hi HN, Experimenting with new Content Mappers feature in TypeScript 7.1 beta, and come up with one usefull idea: Why don't we try to import C, C++, Rust files directly into TypeScript and call native functions without manually writing all the bindings? Super simple and stupid implementation, but let's see how it goes. Technically, something similar was already possible with Volar.js, but TypeScript 7.1 makes the integration much more straightforward.
Where people found it
- Hacker NewsShow HN: Ts-polyglot – Call C/C++ or Rust functions directly from TypeScript4 points2 comments1 day ago
More sites like Ts-polyglot
- free-my-tvA fast, ad-free home screen for Google TV, LG webOS and Samsung Tizen. One button to undo.
- Corgi, a helpful {agent, terminal} multiplexercorgi.computer
- glm-5.3-abliteratedGLM 5.3 abliterated or uncensored API access with RouterHub. Browse 35 jailbreak prompt links, compare GLM models, and find SDK examples, coding-tool setup, pricing, and evaluation guides.
- hatchzipHatchZip is a free, open-source archive extractor for Windows, macOS and Linux that extracts ZIP, 7z, RAR, tar and split archives in place, so it needs free space for the extracted files only. Desktop app and CLI.
- Uberblokan interactive museum of ZFS internals
- Impossible Machinesdeclaratively program the physical world