Coder Social home page Coder Social logo

denonomicon's People

Contributors

aapoalas avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

denonomicon's Issues

Add corresponding types for JS-FFI

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.

Small nit

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!

Add C++ FFI example

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.

Logo

denonomicon
simple (1)

new version :)

  • avoid Reimu style

Deno.UnsafePointer.of Type mismatch

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'

Website formatting is broken

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.