Giter Club home page Giter Club logo

deno_ast's Issues

update `swc_ecma_transforms_proposal` to `v0.167.15`

This version fixes swc-project/swc#8020, which currently causes incorrect ReferenceErrors in Deno:

// foo.ts

using foo = null

const bar = 1

console.log(baz()) // should log `1`

function baz() {
  return bar
}
$ deno run foo.ts
error: Uncaught ReferenceError: bar is not defined
  return bar
  ^
    at baz (file://.../foo.ts:8:3)
    at file://.../foo.ts:5:13

deno_graph tests fail with swc 0.99.9

---- ast::tests::test_analyze_dependencies_import_assertions stdout ----
thread 'ast::tests::test_analyze_dependencies_import_assertions' panicked at 'assertion failed: `(left == right)`
  left: `None`,
 right: `Some("json")`', src\ast.rs:395:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

---- tests::test_create_graph_import_assertions stdout ----
thread 'tests::test_create_graph_import_assertions' panicked at 'assertion failed: `(left == right)`

Diff < left / right > :
 Object({
     "roots": Array([
         String(
             "file:///a/test01.ts",
         ),
     ]),
     "modules": Array([
         Object({
             "size": Number(
                 9,
             ),
             "mediaType": String(
                 "Json",
             ),
             "specifier": String(
                 "file:///a/a.json",
             ),
         }),
         Object({
             "size": Number(
                 7,
             ),
             "mediaType": String(
                 "Json",
             ),
             "specifier": String(
                 "file:///a/b.json",
             ),
         }),
         Object({
             "size": Number(
                 9,
             ),
             "mediaType": String(
                 "Json",
             ),
             "specifier": String(
                 "file:///a/c.json",
             ),
         }),
         Object({
             "size": Number(
                 7,
             ),
             "mediaType": String(
                 "Json",
             ),
             "specifier": String(
                 "file:///a/d.json",
             ),
         }),
         Object({
             "dependencies": Array([
                 Object({
                     "specifier": String(
                         "./a.json",
                     ),
                     "code": Object({
                         "specifier": String(
                             "file:///a/a.json",
                         ),
                         "span": Object({
                             "start": Object({
                                 "line": Number(
                                     1,
                                 ),
                                 "character": Number(
                                     26,
                                 ),
                             }),
                             "end": Object({
                                 "line": Number(
                                     1,
                                 ),
                                 "character": Number(
                                     36,
                                 ),
                             }),
                         }),
                     }),
                     "assertionType": String(
                         "json",
                     ),
                 }),
                 Object({
                     "specifier": String(
                         "./b.json",
                     ),
                     "code": Object({
                         "specifier": String(
                             "file:///a/b.json",
                         ),
                         "span": Object({
                             "start": Object({
                                 "line": Number(
                                     2,
                                 ),
                                 "character": Number(
                                     35,
                                 ),
                             }),
                             "end": Object({
                                 "line": Number(
                                     2,
                                 ),
                                 "character": Number(
                                     45,
                                 ),
                             }),
                         }),
                     }),
                     "isDynamic": Bool(
                         true,
                     ),
>                    "assertionType": String(
>                        "json",
>                    ),
                 }),
                 Object({
                     "specifier": String(
                         "./c.json",
                     ),
                     "code": Object({
                         "specifier": String(
                             "file:///a/c.json",
                         ),
                         "span": Object({
                             "start": Object({
                                 "line": Number(
                                     3,
                                 ),
                                 "character": Number(
                                     31,
                                 ),
                             }),
                             "end": Object({
                                 "line": Number(
                                     3,
                                 ),
                                 "character": Number(
                                     41,
                                 ),
                             }),
                         }),
                     }),
                     "assertionType": String(
                         "json",
                     ),
                 }),
                 Object({
                     "specifier": String(
                         "./d.json",
                     ),
                     "code": Object({
                         "specifier": String(
                             "file:///a/d.json",
                         ),
                         "span": Object({
                             "start": Object({
                                 "line": Number(
                                     5,
                                 ),
                                 "character": Number(
                                     35,
                                 ),
                             }),
                             "end": Object({
                                 "line": Number(
                                     5,
                                 ),
                                 "character": Number(
                                     45,
                                 ),
                             }),
                         }),
                     }),
                     "isDynamic": Bool(
                         true,
                     ),
                 }),
             ]),
             "mediaType": String(
                 "TypeScript",
             ),
             "size": Number(
                 329,
             ),
             "specifier": String(
                 "file:///a/test01.ts",
             ),
         }),
     ]),
     "redirects": Object({}),
 })

', src\lib.rs:1491:5

---- tests::test_parse_module_import_assertions stdout ----
thread 'tests::test_parse_module_import_assertions' panicked at 'assertion failed: `(left == right)`

Diff < left / right > :
 Object({
     "dependencies": Array([
         Object({
             "specifier": String(
                 "./a.json",
             ),
             "code": Object({
                 "specifier": String(
                     "file:///a/a.json",
                 ),
                 "span": Object({
                     "start": Object({
                         "line": Number(
                             1,
                         ),
                         "character": Number(
                             18,
                         ),
                     }),
                     "end": Object({
                         "line": Number(
                             1,
                         ),
                         "character": Number(
                             28,
                         ),
                     }),
                 }),
             }),
             "assertionType": String(
                 "json",
             ),
         }),
         Object({
             "specifier": String(
                 "./b.json",
             ),
             "code": Object({
                 "specifier": String(
                     "file:///a/b.json",
                 ),
                 "span": Object({
                     "start": Object({
                         "line": Number(
                             2,
                         ),
                         "character": Number(
                             17,
                         ),
                     }),
                     "end": Object({
                         "line": Number(
                             2,
                         ),
                         "character": Number(
                             27,
                         ),
                     }),
                 }),
             }),
             "isDynamic": Bool(
                 true,
             ),
>            "assertionType": String(
>                "json",
>            ),
         }),
     ]),
     "mediaType": String(
         "TypeScript",
     ),
     "size": Number(
         119,
     ),
     "specifier": String(
         "file:///a/test01.ts",
     ),
 })

', src\lib.rs:1896:5


failures:
    ast::tests::test_analyze_dependencies_import_assertions
    tests::test_create_graph_import_assertions
    tests::test_parse_module_import_assertions

Add upgrading swc instructions

Make sure to highlight how all swc option structs should be analyzed for changes (because swc doesn't allow using a struct expr for some options--also SyntaxError codes should be updated because it uses non_exhaustive)

Enable JSX Namespace by default

I'm raising this here, as I've just discovered that this repo is where this issue could be fixed: denoland/deno#20345

throw_if_namespace: None,

I believe throw_if_namespace could just be set to Some(false) to solve this?

Unless you want to provide it as an option, but I don't think that's necessary. TypeScript doesn't make this restriction, so I don't know why swc should.

Using deno_ast in a project that contains swc_common -F concurrent breaks the build

I am trying to use deno_ast in my project which also uses swc_common.

I am using it via swc_common = { version = "=0.33.18", features = ["concurrent"] }

With the concurrent feature enabled, the compiler throws:

error[E0277]: `Rc<RefCell<Vec<swc_common::errors::Diagnostic>>>` cannot be sent between threads safely
   --> /home/dalsh/.local/rust/cargo/registry/src/index.crates.io-6f17d22bba15001f/deno_ast-0.34.2/src/transpiling/mod.rs:280:46
    |
280 | impl crate::swc::common::errors::Emitter for DiagnosticCollector {
    |                                              ^^^^^^^^^^^^^^^^^^^ `Rc<RefCell<Vec<swc_common::errors::Diagnostic>>>` cannot be sent between threads safely
    |
    = help: within `DiagnosticCollector`, the trait `Send` is not implemented for `Rc<RefCell<Vec<swc_common::errors::Diagnostic>>>`
note: required because it appears within the type `DiagnosticCollector`
   --> /home/dalsh/.local/rust/cargo/registry/src/index.crates.io-6f17d22bba15001f/deno_ast-0.34.2/src/transpiling/mod.rs:266:8
    |
266 | struct DiagnosticCollector {
    |        ^^^^^^^^^^^^^^^^^^^
note: required by a bound in `swc_common::errors::Emitter`
   --> /home/dalsh/.local/rust/cargo/registry/src/index.crates.io-6f17d22bba15001f/swc_common-0.33.18/src/errors/emitter.rs:39:20
    |
39  | pub trait Emitter: crate::sync::Send {
    |                    ^^^^^^^^^^^^^^^^^ required by this bound in `Emitter` 

Is there any way around this?

CommonJS analysis gets confused for a bundled file

Reported in: denoland/deno#23265 (reply in thread)

Our CJS analysis gets confused by code like this:

/***/ "uuid":
/*!***********************!*\
  !*** external "uuid" ***!
  \***********************/
/***/ ((module) => {

module.exports = require("uuid");

/***/ }),

/***/ "stream":
/*!*************************!*\
  !*** external "stream" ***!
  \*************************/
/***/ ((module) => {

module.exports = require("stream");

/***/ }),

/***/ "zlib":
/*!***********************!*\
  !*** external "zlib" ***!
  \***********************/
/***/ ((module) => {

module.exports = require("zlib");

/***/ })

The CJS analysis in this case tells that zlib is a reexport (but not "uuid" or "stream"). I think this is completely wrong as it's not a reexport of the actual file, because it's inside a closure that provides module variable.

Complete file: https://gist.github.com/bartlomieju/a00a74d32947eef6a0811483d8619a0e

Reproduction in Deno:

import * as dicomStream from "@exini/dicom-streams-js";
$ deno run script.js

We can no longer start files with `BytePos(0)`

After swc-project/swc#4616 we can no longer start files at BytePos(0) and therefore now have to offset all our node byte positions. This is a very unfortunate change because byte positions of nodes no longer align with byte positions in the text.

I think we should deprecate using swc's BytePos and instead start using an opaque type that you can perform operations on, but need to provide a parsed source to get the index in the file.

deno-ast 0.15 does not compile

My guess is there are some swc feature flags that deno-ast is depending on implicitly, but I have not debugged yet.

$ rustc --version    
rustc 1.61.0 (fe5b13d68 2022-05-18)

I created a new cargo project and added the following dependency:

deno_ast = "0.15.0"

The body of the code is:

use deno_ast::parse_module;
use deno_ast::MediaType;
use deno_ast::ParseParams;
use deno_ast::SourceTextInfo;
use std::sync::Arc;

fn main() {
    let source_text = Arc::new("class MyClass {}");
    let text_info = SourceTextInfo::new(source_text);
    let parsed_source = parse_module(ParseParams {
      specifier: "file:///my_file.ts".to_string(),
      media_type: MediaType::TypeScript,
      text_info,
      capture_tokens: true,
      maybe_syntax: None,
      scope_analysis: false,
    }).expect("should parse");
    
    // returns the comments
    parsed_source.comments();
    // returns the tokens if captured
    parsed_source.tokens();
    // returns the module (AST)
    parsed_source.module();
    // returns the `SourceTextInfo`
    parsed_source.source();
}

Compiling:

   Compiling swc_ecma_parser v0.104.2
error[E0599]: no method named `span_lo` found for struct `Box<swc_ecma_ast::Expr>` in the current scope
   --> /home/carllerche/.cargo/registry/src/github.com-1ecc6299db9ec823/swc_ecma_parser-0.104.2/src/parser/class_and_fn.rs:323:36
    |
323 |             span: span!(self, expr.span_lo()),
    |                                    ^^^^^^^ method not found in `Box<swc_ecma_ast::Expr>`

error[E0599]: no method named `span_lo` found for struct `Box<swc_ecma_ast::Expr>` in the current scope
  --> /home/carllerche/.cargo/registry/src/github.com-1ecc6299db9ec823/swc_ecma_parser-0.104.2/src/parser/expr/ops.rs:96:30
   |
96 |             let start = left.span_lo();
   |                              ^^^^^^^ method not found in `Box<swc_ecma_ast::Expr>`

error[E0599]: no method named `span_lo` found for struct `Box<swc_ecma_ast::Expr>` in the current scope
   --> /home/carllerche/.cargo/registry/src/github.com-1ecc6299db9ec823/swc_ecma_parser-0.104.2/src/parser/expr/ops.rs:215:34
    |
215 |             span: Span::new(left.span_lo(), right.span_hi(), Default::default()),
    |                                  ^^^^^^^ method not found in `Box<swc_ecma_ast::Expr>`

error[E0599]: no method named `span_hi` found for struct `Box<swc_ecma_ast::Expr>` in the current scope
   --> /home/carllerche/.cargo/registry/src/github.com-1ecc6299db9ec823/swc_ecma_parser-0.104.2/src/parser/expr/ops.rs:215:51
    |
215 |             span: Span::new(left.span_lo(), right.span_hi(), Default::default()),
    |                                                   ^^^^^^^ method not found in `Box<swc_ecma_ast::Expr>`

error[E0599]: no method named `span_hi` found for struct `Box<swc_ecma_ast::Expr>` in the current scope
   --> /home/carllerche/.cargo/registry/src/github.com-1ecc6299db9ec823/swc_ecma_parser-0.104.2/src/parser/expr/ops.rs:256:45
    |
256 |             let span = Span::new(start, arg.span_hi(), Default::default());
    |                                             ^^^^^^^ method not found in `Box<swc_ecma_ast::Expr>`

error[E0599]: no method named `span_hi` found for struct `Box<swc_ecma_ast::Expr>` in the current scope
   --> /home/carllerche/.cargo/registry/src/github.com-1ecc6299db9ec823/swc_ecma_parser-0.104.2/src/parser/expr/ops.rs:314:44
    |
314 |                 span: Span::new(start, arg.span_hi(), Default::default()),
    |                                            ^^^^^^^ method not found in `Box<swc_ecma_ast::Expr>`

error[E0599]: no method named `span_lo` found for struct `Box<swc_ecma_ast::Expr>` in the current scope
   --> /home/carllerche/.cargo/registry/src/github.com-1ecc6299db9ec823/swc_ecma_parser-0.104.2/src/parser/expr/ops.rs:347:40
    |
347 |                 span: span!(self, expr.span_lo()),
    |                                        ^^^^^^^ method not found in `Box<swc_ecma_ast::Expr>`

error[E0599]: no method named `span_lo` found for struct `Box<swc_ecma_ast::Expr>` in the current scope
  --> /home/carllerche/.cargo/registry/src/github.com-1ecc6299db9ec823/swc_ecma_parser-0.104.2/src/parser/expr.rs:22:26
   |
22 |         let start = expr.span_lo();
   |                          ^^^^^^^ method not found in `Box<swc_ecma_ast::Expr>`

error[E0599]: no method named `span_hi` found for struct `Box<swc_ecma_ast::Expr>` in the current scope
   --> /home/carllerche/.cargo/registry/src/github.com-1ecc6299db9ec823/swc_ecma_parser-0.104.2/src/parser/expr.rs:220:45
    |
220 |             let span = Span::new(start, alt.span_hi(), Default::default());
    |                                             ^^^^^^^ method not found in `Box<swc_ecma_ast::Expr>`

error[E0599]: no method named `span_lo` found for reference `&Box<swc_ecma_ast::Expr>` in the current scope
   --> /home/carllerche/.cargo/registry/src/github.com-1ecc6299db9ec823/swc_ecma_parser-0.104.2/src/parser/expr.rs:918:44
    |
918 |                     exprs.first().unwrap().span_lo(),
    |                                            ^^^^^^^ method not found in `&Box<swc_ecma_ast::Expr>`

error[E0599]: no method named `span_hi` found for reference `&Box<swc_ecma_ast::Expr>` in the current scope
   --> /home/carllerche/.cargo/registry/src/github.com-1ecc6299db9ec823/swc_ecma_parser-0.104.2/src/parser/expr.rs:919:43
    |
919 |                     exprs.last().unwrap().span_hi(),
    |                                           ^^^^^^^ method not found in `&Box<swc_ecma_ast::Expr>`

error[E0599]: no method named `span_lo` found for struct `Box<swc_ecma_ast::Expr>` in the current scope
   --> /home/carllerche/.cargo/registry/src/github.com-1ecc6299db9ec823/swc_ecma_parser-0.104.2/src/parser/expr.rs:960:36
    |
960 |         let tagged_tpl_start = tag.span_lo();
    |                                    ^^^^^^^ method not found in `Box<swc_ecma_ast::Expr>`

error[E0599]: no method named `span_lo` found for enum `swc_ecma_ast::Callee` in the current scope
    --> /home/carllerche/.cargo/registry/src/github.com-1ecc6299db9ec823/swc_ecma_parser-0.104.2/src/parser/expr.rs:1171:38
     |
1171 |             let span = Span::new(obj.span_lo(), self.input.last_pos(), Default::default());
     |                                      ^^^^^^^ method not found in `swc_ecma_ast::Callee`

error[E0599]: no method named `span_lo` found for enum `swc_ecma_ast::Callee` in the current scope
    --> /home/carllerche/.cargo/registry/src/github.com-1ecc6299db9ec823/swc_ecma_parser-0.104.2/src/parser/expr.rs:1172:34
     |
1172 |             debug_assert_eq!(obj.span_lo(), span.lo());
     |                                  ^^^^^^^ method not found in `swc_ecma_ast::Callee`

error[E0599]: no method named `span_lo` found for enum `swc_ecma_ast::Callee` in the current scope
    --> /home/carllerche/.cargo/registry/src/github.com-1ecc6299db9ec823/swc_ecma_parser-0.104.2/src/parser/expr.rs:1293:40
     |
1293 |             let span = span!(self, obj.span_lo());
     |                                        ^^^^^^^ method not found in `swc_ecma_ast::Callee`

error[E0599]: no method named `span_lo` found for enum `swc_ecma_ast::Callee` in the current scope
    --> /home/carllerche/.cargo/registry/src/github.com-1ecc6299db9ec823/swc_ecma_parser-0.104.2/src/parser/expr.rs:1294:34
     |
1294 |             debug_assert_eq!(obj.span_lo(), span.lo());
     |                                  ^^^^^^^ method not found in `swc_ecma_ast::Callee`

error[E0599]: no method named `span_hi` found for enum `swc_ecma_ast::MemberProp` in the current scope
    --> /home/carllerche/.cargo/registry/src/github.com-1ecc6299db9ec823/swc_ecma_parser-0.104.2/src/parser/expr.rs:1295:35
     |
1295 |             debug_assert_eq!(prop.span_hi(), span.hi());
     |                                   ^^^^^^^ method not found in `swc_ecma_ast::MemberProp`

error[E0599]: no method named `span_hi` found for struct `Box<swc_ecma_ast::Expr>` in the current scope
    --> /home/carllerche/.cargo/registry/src/github.com-1ecc6299db9ec823/swc_ecma_parser-0.104.2/src/parser/expr.rs:1634:60
     |
1634 | ...                   span: Span::new(start, alt.span_hi(), Default::default()),
     |                                                  ^^^^^^^ method not found in `Box<swc_ecma_ast::Expr>`

error[E0599]: no method named `span_lo` found for reference `&swc_ecma_ast::Expr` in the current scope
    --> /home/carllerche/.cargo/registry/src/github.com-1ecc6299db9ec823/swc_ecma_parser-0.104.2/src/parser/expr.rs:1841:58
     |
1841 |         Ok(self.state.potential_arrow_start == Some(expr.span_lo())
     |                                                          ^^^^^^^ method not found in `&swc_ecma_ast::Expr`

error[E0599]: no method named `span_lo` found for struct `Box<swc_ecma_ast::TsType>` in the current scope
    --> /home/carllerche/.cargo/registry/src/github.com-1ecc6299db9ec823/swc_ecma_parser-0.104.2/src/parser/typescript.rs:2152:42
     |
2152 |                     span: span!(self, ty.span_lo()),
     |                                          ^^^^^^^ method not found in `Box<swc_ecma_ast::TsType>`

error[E0599]: no method named `span_lo` found for struct `Box<swc_ecma_ast::TsType>` in the current scope
    --> /home/carllerche/.cargo/registry/src/github.com-1ecc6299db9ec823/swc_ecma_parser-0.104.2/src/parser/typescript.rs:2159:42
     |
2159 |                     span: span!(self, ty.span_lo()),
     |                                          ^^^^^^^ method not found in `Box<swc_ecma_ast::TsType>`

error[E0599]: no method named `span_lo` found for struct `swc_ecma_ast::Ident` in the current scope
    --> /home/carllerche/.cargo/registry/src/github.com-1ecc6299db9ec823/swc_ecma_parser-0.104.2/src/parser/typescript.rs:2262:26
     |
2262 |         let start = expr.span_lo();
     |                          ^^^^^^^ method not found in `swc_ecma_ast::Ident`

For more information about this error, try `rustc --explain E0599`.
error: could not compile `swc_ecma_parser` due to 22 previous errors

Suggestion: Move transpiling and bundling to deno_ast?

I think it would be beneficial to:

  1. Move all transpiling and bundling out of the CLI and to deno_ast. It would be in a feature flag. Obviously this would be bundling without deno_graph so there would be some adapter that deno_graph would be plugged into.
  2. Add a ton of bundling and transpiling tests in here.
  3. Pin all swc deps to a specific patch version so everything upstream gets tested on the same swc deps (might be good to do this anyway)

I think this would allow us to:

  1. Ensure everything is in a good state before we upgrade all the upstream crates. (We don't find something is wrong after integrating into the cli).
  2. Help us refactor out Deno.emit to a Wasm module that could connect this with deno_graph.

@kitsonk thoughts? I think this would be quick to do. I could start soon if you agree.

Map file extension to content type

denoland/deno#17172 adds --ext to deno, eg.

deno run --ext js mod

--ext needs to map file extensions to mime types

The mapping function in deno is incomplete and temporary.

deno_ast's MediaType already maps module specifiers and mime types to MediaType. I think this is a good place to map

  • file extensions to MediaType
  • MediaType to mime types

Develop script to update all repos locally and run tests

It is very painful to find an swc regression in the CLI after releasing all the crates. It would be good to mitigate this occurrence and automate crate updating. This would be a deno script similar to the release scripts.

Here's my current thoughts...

Assumptions

  • All repos exist as sibling directories of each other.

Phase 1 - Setup

  1. Ensure all repos are on main or switch to it if no local changes. Error if there are local changes.
  2. Update the local main to the latest upstream remote main.
  3. Bump swc versions to the latest version in both dprint-swc-ecma-ast-view and deno_ast.
  4. Update all repos to refer to local versions of each other.

Phase 2 - Cargo Build

  1. Run cargo build in each repo.

At this point, any breaking changes between repos can be resolved.

Phase 3 - Testing

  1. Prompt to run cargo test in each repo (based on dependency tree) until a confirmation is given.
  2. Once a confirmation is given run cargo test in the remainding repos.

At this point, any testing issues can be manually resolved.

Phase 4 - Accepting Changes—Open PRs

  1. A prompt will be given asking to bump each repo's major, minor, or patch.
  2. Reverts all the local path changes.
  3. Updates all the versions in every repo, creates a branch, commits, and pushes a branch for every repo.

At this point, the developer would have to manually open PRs for each branch one after the other based on dependency order, which is still somewhat painful, but not as bad.

Example does not compile

While trying to run the example:

use deno_ast::parse_module;
use deno_ast::MediaType;
use deno_ast::ParseParams;
use deno_ast::SourceTextInfo;
use std::sync::Arc;

let source_text = Arc::new("class MyClass {}");
let text_info = SourceTextInfo::new(source_text);
let parsed_source = parse_module(ParseParams {
  specifier: "file:///my_file.ts".to_string(),
  media_type: MediaType::TypeScript,
  text_info,
  capture_tokens: true,
  maybe_syntax: None,
  scope_analysis: false,
}).expect("should parse");

// returns the comments
parsed_source.comments();
// returns the tokens if captured
parsed_source.tokens();
// returns the module (AST)
parsed_source.module();
// returns the `SourceTextInfo`
parsed_source.source();

I get an error saying:

error[E0308]: mismatched types
  --> src/parsers/javascript/parser.rs:32:45
   |
32 |         let text_info = SourceTextInfo::new(source_text);
   |                                             ^^^^^^^^^^^ expected `str`, found `&str`
   |

I've tried casting the string, but I can only ever get it to be a &str. Any help is appreciated, I'm not sure what I'm going wrong.

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.