aapoalas / denonomicon Goto Github PK
View Code? Open in Web Editor NEWThe Dark Arts of Deno Foreign Function Interface Programming
License: MIT License
The Dark Arts of Deno Foreign Function Interface Programming
License: MIT License
For the https://github.com/aapoalas/denonomicon/blob/main/static/contents/types.md page, it should also show the corresponding type for javascript. for example:
FFI | Javascript |
---|---|
bool | boolean |
the thing is, as a web developer I'm extremely confused whether the i64
is a number, or it must be provided as a BigInt
.
I believe based on the limits of JS' Number
(MAX_SIZE, MAX_INT_SIZE) etc, one should be able to figure out if an int64
is assignable to a JS Number
or if it requires a BigInt
.
Add an ## Examples
to each of the three callback articles with Rust + Deno TS examples of how the callbacks are used and utilised.
Nice project! They nicely demonstrate to use all of the various types, except C arrays.
Page changes never start at the top of a page for me.
I use an older Windows10 laptop with Chrome browser.
When I select from the sidebar or other page change UI, It never loads the new page at the top? Not a big thing.
Nice work by the way! Well written and easy to consume!
Both extern
functions to show normal C API usage in C++, but also binding to C++ functions with name mangling and C++ APIs, like returning class instances that have nontrivial copy constructors.
Any ArrayBuffer or TypedArray (Uint8Array etc.) created in JavaScript can be passed as a pointer parameter to an FFI symbol. It is also possible to get the pointer integer value from a buffer using the Deno.UnsafePointer.of()
On Deno 1.25.0 I'm getting
Argument of type 'ArrayBuffer' is not assignable to parameter of type 'UnsafeCallback<UnsafeCallbackDefinition<readonly NativeType[], NativeResultType>> | TypedArray'.
Passing it directly doesn't work either
Type 'ArrayBuffer' is not assignable to type 'PointerValue'
deno.land now sets SameOrigin for their CSS sources, leading to Denonomicon missing styles and breaking formatting.
Need to copy over styles from denoland/dotland repository.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.