GithubHelp home page GithubHelp logo

website's People

Contributors

amilajack avatar arthrarnld avatar burmecia avatar dependabot[bot] avatar dherman avatar drojf avatar gusgold avatar imor avatar joepie91 avatar jooohhn avatar kjvalencik avatar mgrinder avatar mmatyas avatar mohitk05 avatar philz avatar postpersonality avatar renovate-bot avatar richienb avatar sjamesexamsoft avatar stoneg avatar the-emerald avatar thejian avatar usagi avatar vikr01 avatar xxczaki avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

website's Issues

add example of scheduling callback in class method

// --snip--
method poll(mut cx) {
  let cb = cx.argument::<JsFunction>(0)?;
  let this = cx.this();
  let events = cx.borrow(&this, |emitter| Arc::clone(&emitter.events));
  let emitter = EventEmitterTask(events);

  emitter.schedule(cb);

  Ok(JsUndefined::new().upcast())
}
// --snip--

Taken from neon-bindings/neon#386

Additonal API's to Document

  • Modules
    • Exporting values, objects, functions, and classes
  • Errors
    • Throwing TypeErrors, RangeErrors, and Errors
    • Catching Errors
  • Classes
    • Creating subclasses
  • Global Object
    • Accessing the global object
  • Advanced
    • cx.borrorw_mut cx.exceute_scoped

Add docs for config

Document configs for the following files

  • .gitignore: should ignore target
  • .editorconfig: 4 spaces for toml and rs extensions
  • .travis.yml
  • appveyor.yml

"This recording has been archived"

When looking on the main site, the link to the demo shows this:

screen shot 2019-02-11 at 12 31 23 am

And when clicking the link, it shows a page that reads "All unclaimed recordings (the ones not linked to any user account) are automatically archived 7 days after upload."

Incorrect page title: "JSON"

The documentation at https://neon-bindings.com/docs/json has "JSON" as its title, but the contents of the page don't actually have anything to do with JSON (which is a separate language from JS entirely); rather, they're about serializing/deserializing JS data structures.

I'd suggest that "Data structures" is probably a better title for this page.

I'd create a PR, but unfortunately it seems that simply renaming json.md and its metadata will result in the original https://neon-bindings.com/docs/json URL breaking, and I'm not sure how redirects are handled in this setup.

JS + Neon Side By Side Comparison Docs

These kinds of examples will make it easier for JS programmers to see JS concepts map to Rust and Neon concepts

// JS
function foo() {
  let t = true;
  this.modified = t
  return undefined
}
// neon equivalent
pub fn require_object_this(mut cx: FunctionContext) -> JsResult<JsUndefined> {
    let this = cx.this();
    // Downcast `this` so .set can be called on it
    let this = this.downcast::<JsObject>().or_throw(&mut cx)?;
    let t = cx.boolean(true);
    // Equivalent to  `this.modified = true` in JS
    this.set(&mut cx, "modified", t)?;
    Ok(cx.undefined())
}

API Documentation

  • Why Neon
    • rust infra simplicity vs c/c++ complexity
  • Basics
    • Primitives
    • Array
    • Object
    • Classes
    • Functions
    • Arguments
    • JSON
    • Async
    • Parallelism
    • Macros
  • Types
    • Upcasting
    • Downcasting
    • Type Checking with .is_a()
  • Guides
    • Word Counting
    • SDL2 Bindings
  • Context
    • FunctionContext
    • MethodContext
  • vm::*
  • Advanced
  • Misc
    • Example Projects
    • Community Content

Missing documentation: Handles and Memory guide

On this page, there's a link to a supposed "Handles and Memory guide" at https://neon-bindings.com/handles-and-memory/, but that link doesn't work.

I've not read the documentation exhaustively yet, but at a glance I couldn't identify any existing pages that include this topic. Was this guide removed, or did it simply never exist? It seems like a pretty crucial topic to me :)

Add FAQ

  • When to use Neon over WASM

Add docs for buffers and their performance benefits

The docs are not detailed enough and are very 'example-based'. The need to discuss the details of Neon more. They should be modeled after Rust's docs

I'm a bit confused by the example that lets you call a JS function within Rust. Having a heck of a time comprehending the Calling JS functions section located at https://neon-bindings.com/docs/functions. Keep in mind I'm early in my Rust learnings (so bear with me).

See neon-bindings/neon#382 (comment)

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.