Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libdeno and DenoCore to Deno.core #1998

Merged
merged 3 commits into from
Mar 26, 2019
Merged

libdeno and DenoCore to Deno.core #1998

merged 3 commits into from
Mar 26, 2019

Conversation

kitsonk
Copy link
Contributor

@kitsonk kitsonk commented Mar 25, 2019

Resolves #1956

This PR migrates the libdeno namespace and the DenoCore namepsace to Deno.core. Also all the properties of Deno.core are prefaced with _ and not included in the runtime type library, as they are not intended for end user use and internal to Deno only.

This also converts the /core/*.js files to .ts and builds them.

@kitsonk
Copy link
Contributor Author

kitsonk commented Mar 25, 2019

@ry @piscisaureus it seems that at the stage the build tries to compile core on Windows the GN_OUT_DIR is not set: https://ci.appveyor.com/project/deno/deno/builds/23324075#L1060

I am not familiar enough with it to understand what is going wrong here. Any thoughts?

@kitsonk kitsonk force-pushed the deno-core-ns branch 2 times, most recently from 51ce47d to b98418f Compare March 25, 2019 06:10
@ry
Copy link
Member

ry commented Mar 25, 2019

@kitsonk Nice!

It seems there's also a failure in the travis cargo build, with the same GN_OUT_DIR error. This suggests to me (tho I'm not sure) that it's because the build.rs file isn't being applied to the core crate.

Copy link
Member

@ry ry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we can break this up into a couple of parts to get chunks of it landed already? E.G. I think the libdeno parts are land-able.

@kitsonk
Copy link
Contributor Author

kitsonk commented Mar 25, 2019

Why don't we do the renaming of stuff but hold off on the .js to .ts for the shared array? I will remove that from this PR.

@ry
Copy link
Member

ry commented Mar 25, 2019

@kitsonk Sounds good. I think I'm going to reorganize the tree here in a bit so the "core" is the main crate and "cli" is the child crate. I think that will take care of the GN_OUT_DIR problem - but it will take me a bit before I can get there.

@kitsonk
Copy link
Contributor Author

kitsonk commented Mar 26, 2019

Ok, it is removed.

Strangely the GN_OUT_DIR is working on OSX both on my local machine and remotely. I will raise a seperate PR for that though after this lands.

@kitsonk
Copy link
Contributor Author

kitsonk commented Mar 26, 2019

@ry I think the Appveyor failure is not related to this PR and something transitory. It is passing everywhere else. 🤷‍♂️

Copy link
Member

@ry ry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - nice to get rid of the libdeno namespace : )

@ry ry merged commit c43cfed into denoland:master Mar 26, 2019
@@ -614,15 +614,15 @@ mod tests {
}

#[test]
fn test_dispatch() {
fn testdispatch() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was this itended?

// TODO(ry) This test is quite slow due to memcpy-ing 100MB into JS. We
// should optimize this.
let mut isolate = TestBehavior::setup(TestBehaviorMode::OverflowResAsync);
js_check(isolate.execute(
"overflow_res_multiple_dispatch_async.js",
"overflow_res_multipledispatch_async.js",
r#"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change too

@kitsonk kitsonk deleted the deno-core-ns branch August 2, 2022 04:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants