-
Notifications
You must be signed in to change notification settings - Fork 90
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
add abstract Floating trait. todo: impl Floating for Float #1204
Open
bobzhang
wants to merge
3
commits into
main
Choose a base branch
from
hongbo/trigonomic
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+85
−26
Open
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
// Copyright 2024 International Digital Economy Academy | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
trait Floating { | ||
asin(Self) -> Self | ||
// ideas: `as` | ||
// or use @math.Floating::asin(x) | ||
// how about | ||
// pub fn asin(x : Self) -> Self | ||
acos(Self) -> Self | ||
} | ||
|
||
pub fn asin[T : Floating](x : T) -> T { | ||
x.asin() | ||
} | ||
|
||
pub fn acos[T : Floating](x : T) -> T { | ||
x.acos() | ||
} | ||
|
||
pub impl Floating for Double with asin(x) { | ||
if Double::is_inf(x) || Double::is_nan(x) || x == 0.0 { | ||
x | ||
} else { | ||
let x_ = x.abs() | ||
if x_ > 1.0 { | ||
@double.not_a_number | ||
} else { | ||
let temp = (1.0 - x_ * x_).sqrt() | ||
(if x > 0.7 { PI / 2.0 - satan(temp / x_) } else { satan(x_ / temp) }) * | ||
x.signum() | ||
} | ||
} | ||
} | ||
|
||
pub impl Floating for Double with acos(x) { | ||
if Double::is_inf(x) || Double::is_nan(x) { | ||
x | ||
} else { | ||
PI / 2.0 - asin(x) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
[ | ||
{"pid":0, "name":"/Users/hongbozhang/.moon/bin/moon generate-test-driver --source-dir /Users/hongbozhang/git/core --target-dir /Users/hongbozhang/git/core/target --package moonbitlang/core/double --target wasm-gc --driver-kind blackbox", "ts":7345, "tid": 3, "ph":"X", "dur":18391} | ||
,{"pid":0, "name":"/Users/hongbozhang/.moon/bin/moon generate-test-driver --source-dir /Users/hongbozhang/git/core --target-dir /Users/hongbozhang/git/core/target --package moonbitlang/core/double/internal/ryu --target wasm-gc --driver-kind blackbox", "ts":7428, "tid": 5, "ph":"X", "dur":18499} | ||
,{"pid":0, "name":"/Users/hongbozhang/.moon/bin/moon generate-test-driver --source-dir /Users/hongbozhang/git/core --target-dir /Users/hongbozhang/git/core/target --package moonbitlang/core/double --target wasm-gc --driver-kind internal", "ts":7325, "tid": 2, "ph":"X", "dur":18879} | ||
,{"pid":0, "name":"/Users/hongbozhang/.moon/bin/moon generate-test-driver --source-dir /Users/hongbozhang/git/core --target-dir /Users/hongbozhang/git/core/target --package moonbitlang/core/double/internal/ryu --target wasm-gc --driver-kind internal", "ts":7423, "tid": 4, "ph":"X", "dur":19269} | ||
,{"pid":0, "name":"moonc build-package -error-format json /Users/hongbozhang/git/core/builtin/iter.mbt /Users/hongbozhang/git/core/builtin/unit.mbt /Users/hongbozhang/git/core/builtin/uint64.mbt /Users/hongbozhang/git/core/builtin/tuple_to_json.mbt /Users/hongbozhang/git/core/builtin/uninitialized_array.mbt /Users/hongbozhang/git/core/builtin/result.mbt /Users/hongbozhang/git/core/builtin/bigint_deprecated.mbt /Users/hongbozhang/git/core/builtin/tuple_compare.mbt /Users/hongbozhang/git/core/builtin/array.mbt /Users/hongbozhang/git/core/builtin/option.mbt /Users/hongbozhang/git/core/builtin/fixedarray.mbt /Users/hongbozhang/git/core/builtin/iter2.mbt /Users/hongbozhang/git/core/builtin/traits.mbt /Users/hongbozhang/git/core/builtin/show.mbt /Users/hongbozhang/git/core/builtin/array_block.mbt /Users/hongbozhang/git/core/builtin/intrinsics.mbt /Users/hongbozhang/git/core/builtin/json.mbt /Users/hongbozhang/git/core/builtin/bigint_nonjs.mbt /Users/hongbozhang/git/core/builtin/linked_hash_set.mbt /Users/hongbozhang/git/core/builtin/int64_nonjs.mbt /Users/hongbozhang/git/core/builtin/fixedarray_block.mbt /Users/hongbozhang/git/core/builtin/arraycore_nonjs.mbt /Users/hongbozhang/git/core/builtin/hasher.mbt /Users/hongbozhang/git/core/builtin/arrayview.mbt /Users/hongbozhang/git/core/builtin/deprecated.mbt /Users/hongbozhang/git/core/builtin/linked_hash_map.mbt /Users/hongbozhang/git/core/builtin/tuple_hash.mbt /Users/hongbozhang/git/core/builtin/stringbuilder_buffer.mbt /Users/hongbozhang/git/core/builtin/iter_upto.mbt /Users/hongbozhang/git/core/builtin/failure.mbt /Users/hongbozhang/git/core/builtin/string.mbt /Users/hongbozhang/git/core/builtin/autoloc.mbt /Users/hongbozhang/git/core/builtin/tuple_show.mbt /Users/hongbozhang/git/core/builtin/buffer.mbt /Users/hongbozhang/git/core/builtin/tuple_eq.mbt /Users/hongbozhang/git/core/builtin/stringbuilder.mbt /Users/hongbozhang/git/core/builtin/bytes.mbt /Users/hongbozhang/git/core/builtin/console.mbt /Users/hongbozhang/git/core/builtin/assert.mbt /Users/hongbozhang/git/core/builtin/bytes_block.mbt /Users/hongbozhang/git/core/builtin/byte.mbt -o /Users/hongbozhang/git/core/target/wasm-gc/debug/test/builtin/builtin.core -pkg moonbitlang/core/builtin -pkg-sources moonbitlang/core/builtin:/Users/hongbozhang/git/core/builtin -target wasm-gc -g", "ts":7294, "tid": 1, "ph":"X", "dur":62703} | ||
,{"pid":0, "name":"moonc build-package -error-format json /Users/hongbozhang/git/core/coverage/coverage.mbt -o /Users/hongbozhang/git/core/target/wasm-gc/debug/test/coverage/coverage.core -pkg moonbitlang/core/coverage -i /Users/hongbozhang/git/core/target/wasm-gc/debug/test/builtin/builtin.mi:builtin -pkg-sources moonbitlang/core/coverage:/Users/hongbozhang/git/core/coverage -target wasm-gc -g", "ts":70193, "tid": 1, "ph":"X", "dur":9998} | ||
,{"pid":0, "name":"moonc build-package -error-format json /Users/hongbozhang/git/core/bool/bool.mbt -o /Users/hongbozhang/git/core/target/wasm-gc/debug/test/bool/bool.core -pkg moonbitlang/core/bool -i /Users/hongbozhang/git/core/target/wasm-gc/debug/test/builtin/builtin.mi:builtin -i /Users/hongbozhang/git/core/target/wasm-gc/debug/test/coverage/coverage.mi:coverage -pkg-sources moonbitlang/core/bool:/Users/hongbozhang/git/core/bool -target wasm-gc -g", "ts":80414, "tid": 3, "ph":"X", "dur":8613} | ||
,{"pid":0, "name":"moonc build-package -error-format json /Users/hongbozhang/git/core/uint/uint.mbt -o /Users/hongbozhang/git/core/target/wasm-gc/debug/test/uint/uint.core -pkg moonbitlang/core/uint -i /Users/hongbozhang/git/core/target/wasm-gc/debug/test/builtin/builtin.mi:builtin -i /Users/hongbozhang/git/core/target/wasm-gc/debug/test/coverage/coverage.mi:coverage -pkg-sources moonbitlang/core/uint:/Users/hongbozhang/git/core/uint -target wasm-gc -g", "ts":80334, "tid": 1, "ph":"X", "dur":8696} | ||
,{"pid":0, "name":"moonc build-package -error-format json /Users/hongbozhang/git/core/bytes/xxhash.mbt /Users/hongbozhang/git/core/bytes/bytes.mbt -o /Users/hongbozhang/git/core/target/wasm-gc/debug/test/bytes/bytes.core -pkg moonbitlang/core/bytes -i /Users/hongbozhang/git/core/target/wasm-gc/debug/test/builtin/builtin.mi:builtin -i /Users/hongbozhang/git/core/target/wasm-gc/debug/test/coverage/coverage.mi:coverage -pkg-sources moonbitlang/core/bytes:/Users/hongbozhang/git/core/bytes -target wasm-gc -g", "ts":80376, "tid": 2, "ph":"X", "dur":9399} | ||
,{"pid":0, "name":"moonc build-package -error-format json /Users/hongbozhang/git/core/int64/int64.mbt /Users/hongbozhang/git/core/int64/xxhash.mbt -o /Users/hongbozhang/git/core/target/wasm-gc/debug/test/int64/int64.core -pkg moonbitlang/core/int64 -i /Users/hongbozhang/git/core/target/wasm-gc/debug/test/builtin/builtin.mi:builtin -i /Users/hongbozhang/git/core/target/wasm-gc/debug/test/coverage/coverage.mi:coverage -i /Users/hongbozhang/git/core/target/wasm-gc/debug/test/bytes/bytes.mi:bytes -i /Users/hongbozhang/git/core/target/wasm-gc/debug/test/uint/uint.mi:uint -pkg-sources moonbitlang/core/int64:/Users/hongbozhang/git/core/int64 -target wasm-gc -g", "ts":89862, "tid": 1, "ph":"X", "dur":8745} | ||
,{"pid":0, "name":"moonc build-package -error-format json /Users/hongbozhang/git/core/double/internal/ryu/ryu.mbt /Users/hongbozhang/git/core/double/internal/ryu/common.mbt -o /Users/hongbozhang/git/core/target/wasm-gc/debug/test/double/internal/ryu/ryu.core -pkg moonbitlang/core/double/internal/ryu -i /Users/hongbozhang/git/core/target/wasm-gc/debug/test/builtin/builtin.mi:builtin -i /Users/hongbozhang/git/core/target/wasm-gc/debug/test/bool/bool.mi:bool -i /Users/hongbozhang/git/core/target/wasm-gc/debug/test/coverage/coverage.mi:coverage -pkg-sources moonbitlang/core/double/internal/ryu:/Users/hongbozhang/git/core/double/internal/ryu -target wasm-gc -g", "ts":89121, "tid": 4, "ph":"X", "dur":11383} | ||
,{"pid":0, "name":"moonc build-package -error-format json /Users/hongbozhang/git/core/double/internal/ryu/ryu.mbt /Users/hongbozhang/git/core/double/internal/ryu/common.mbt /Users/hongbozhang/git/core/target/wasm-gc/debug/test/double/internal/ryu/__generated_driver_for_internal_test.mbt -o /Users/hongbozhang/git/core/target/wasm-gc/debug/test/double/internal/ryu/ryu.internal_test.core -pkg moonbitlang/core/double/internal/ryu -is-main -i /Users/hongbozhang/git/core/target/wasm-gc/debug/test/builtin/builtin.mi:builtin -i /Users/hongbozhang/git/core/target/wasm-gc/debug/test/bool/bool.mi:bool -i /Users/hongbozhang/git/core/target/wasm-gc/debug/test/coverage/coverage.mi:coverage -pkg-sources moonbitlang/core/double/internal/ryu:/Users/hongbozhang/git/core/double/internal/ryu -target wasm-gc -g", "ts":89111, "tid": 3, "ph":"X", "dur":12638} | ||
,{"pid":0, "name":"moonc build-package -error-format json /Users/hongbozhang/git/core/double/internal/ryu/ryu_test.mbt /Users/hongbozhang/git/core/target/wasm-gc/debug/test/double/internal/ryu/__generated_driver_for_blackbox_test.mbt -o /Users/hongbozhang/git/core/target/wasm-gc/debug/test/double/internal/ryu/ryu.blackbox_test.core -pkg moonbitlang/core/double/internal/ryu_blackbox_test -is-main -i /Users/hongbozhang/git/core/target/wasm-gc/debug/test/double/internal/ryu/ryu.mi:ryu -i /Users/hongbozhang/git/core/target/wasm-gc/debug/test/builtin/builtin.mi:builtin -i /Users/hongbozhang/git/core/target/wasm-gc/debug/test/bool/bool.mi:bool -i /Users/hongbozhang/git/core/target/wasm-gc/debug/test/coverage/coverage.mi:coverage -pkg-sources moonbitlang/core/double/internal/ryu_blackbox_test:/Users/hongbozhang/git/core/double/internal/ryu -target wasm-gc -g -blackbox-test", "ts":100585, "tid": 1, "ph":"X", "dur":10842} | ||
,{"pid":0, "name":"moonc build-package -error-format json /Users/hongbozhang/git/core/double/double.mbt /Users/hongbozhang/git/core/double/log.mbt /Users/hongbozhang/git/core/double/exp_nonjs.mbt -o /Users/hongbozhang/git/core/target/wasm-gc/debug/test/double/double.core -pkg moonbitlang/core/double -i /Users/hongbozhang/git/core/target/wasm-gc/debug/test/builtin/builtin.mi:builtin -i /Users/hongbozhang/git/core/target/wasm-gc/debug/test/int64/int64.mi:int64 -i /Users/hongbozhang/git/core/target/wasm-gc/debug/test/coverage/coverage.mi:coverage -i /Users/hongbozhang/git/core/target/wasm-gc/debug/test/double/internal/ryu/ryu.mi:ryu -pkg-sources moonbitlang/core/double:/Users/hongbozhang/git/core/double -target wasm-gc -g", "ts":100595, "tid": 2, "ph":"X", "dur":11018} | ||
,{"pid":0, "name":"moonc build-package -error-format json /Users/hongbozhang/git/core/double/double.mbt /Users/hongbozhang/git/core/double/log.mbt /Users/hongbozhang/git/core/double/exp_nonjs.mbt /Users/hongbozhang/git/core/target/wasm-gc/debug/test/double/__generated_driver_for_internal_test.mbt -o /Users/hongbozhang/git/core/target/wasm-gc/debug/test/double/double.internal_test.core -pkg moonbitlang/core/double -is-main -i /Users/hongbozhang/git/core/target/wasm-gc/debug/test/builtin/builtin.mi:builtin -i /Users/hongbozhang/git/core/target/wasm-gc/debug/test/int64/int64.mi:int64 -i /Users/hongbozhang/git/core/target/wasm-gc/debug/test/coverage/coverage.mi:coverage -i /Users/hongbozhang/git/core/target/wasm-gc/debug/test/double/internal/ryu/ryu.mi:ryu -pkg-sources moonbitlang/core/double:/Users/hongbozhang/git/core/double -target wasm-gc -g", "ts":100602, "tid": 4, "ph":"X", "dur":11948} | ||
,{"pid":0, "name":"moonc build-package -error-format json /Users/hongbozhang/git/core/double/exp_test.mbt /Users/hongbozhang/git/core/double/double_test.mbt /Users/hongbozhang/git/core/target/wasm-gc/debug/test/double/__generated_driver_for_blackbox_test.mbt -o /Users/hongbozhang/git/core/target/wasm-gc/debug/test/double/double.blackbox_test.core -pkg moonbitlang/core/double_blackbox_test -is-main -i /Users/hongbozhang/git/core/target/wasm-gc/debug/test/double/double.mi:double -i /Users/hongbozhang/git/core/target/wasm-gc/debug/test/builtin/builtin.mi:builtin -i /Users/hongbozhang/git/core/target/wasm-gc/debug/test/int64/int64.mi:int64 -i /Users/hongbozhang/git/core/target/wasm-gc/debug/test/coverage/coverage.mi:coverage -i /Users/hongbozhang/git/core/target/wasm-gc/debug/test/double/internal/ryu/ryu.mi:ryu -pkg-sources moonbitlang/core/double_blackbox_test:/Users/hongbozhang/git/core/double -target wasm-gc -g -blackbox-test", "ts":111662, "tid": 2, "ph":"X", "dur":9602} | ||
,{"pid":0, "name":"moonc link-core /Users/hongbozhang/git/core/target/wasm-gc/debug/test/builtin/builtin.core /Users/hongbozhang/git/core/target/wasm-gc/debug/test/coverage/coverage.core /Users/hongbozhang/git/core/target/wasm-gc/debug/test/bool/bool.core /Users/hongbozhang/git/core/target/wasm-gc/debug/test/double/internal/ryu/ryu.internal_test.core -main moonbitlang/core/double/internal/ryu -o /Users/hongbozhang/git/core/target/wasm-gc/debug/test/double/internal/ryu/ryu.internal_test.wasm -test-mode -pkg-config-path /Users/hongbozhang/git/core/double/internal/ryu/moon.pkg.json -pkg-sources moonbitlang/core/builtin:/Users/hongbozhang/git/core/builtin -pkg-sources moonbitlang/core/coverage:/Users/hongbozhang/git/core/coverage -pkg-sources moonbitlang/core/bool:/Users/hongbozhang/git/core/bool -pkg-sources moonbitlang/core/double/internal/ryu:/Users/hongbozhang/git/core/double/internal/ryu -exported_functions moonbit_test_driver_internal_execute,moonbit_test_driver_finish -target wasm-gc -g", "ts":101804, "tid": 3, "ph":"X", "dur":19677} | ||
,{"pid":0, "name":"moonc link-core /Users/hongbozhang/git/core/target/wasm-gc/debug/test/builtin/builtin.core /Users/hongbozhang/git/core/target/wasm-gc/debug/test/coverage/coverage.core /Users/hongbozhang/git/core/target/wasm-gc/debug/test/bytes/bytes.core /Users/hongbozhang/git/core/target/wasm-gc/debug/test/uint/uint.core /Users/hongbozhang/git/core/target/wasm-gc/debug/test/int64/int64.core /Users/hongbozhang/git/core/target/wasm-gc/debug/test/bool/bool.core /Users/hongbozhang/git/core/target/wasm-gc/debug/test/double/internal/ryu/ryu.core /Users/hongbozhang/git/core/target/wasm-gc/debug/test/double/double.internal_test.core -main moonbitlang/core/double -o /Users/hongbozhang/git/core/target/wasm-gc/debug/test/double/double.internal_test.wasm -test-mode -pkg-config-path /Users/hongbozhang/git/core/double/moon.pkg.json -pkg-sources moonbitlang/core/builtin:/Users/hongbozhang/git/core/builtin -pkg-sources moonbitlang/core/coverage:/Users/hongbozhang/git/core/coverage -pkg-sources moonbitlang/core/bytes:/Users/hongbozhang/git/core/bytes -pkg-sources moonbitlang/core/uint:/Users/hongbozhang/git/core/uint -pkg-sources moonbitlang/core/int64:/Users/hongbozhang/git/core/int64 -pkg-sources moonbitlang/core/bool:/Users/hongbozhang/git/core/bool -pkg-sources moonbitlang/core/double/internal/ryu:/Users/hongbozhang/git/core/double/internal/ryu -pkg-sources moonbitlang/core/double:/Users/hongbozhang/git/core/double -exported_functions moonbit_test_driver_internal_execute,moonbit_test_driver_finish -target wasm-gc -g", "ts":112600, "tid": 4, "ph":"X", "dur":35537} | ||
,{"pid":0, "name":"moonc link-core /Users/hongbozhang/git/core/target/wasm-gc/debug/test/builtin/builtin.core /Users/hongbozhang/git/core/target/wasm-gc/debug/test/coverage/coverage.core /Users/hongbozhang/git/core/target/wasm-gc/debug/test/bool/bool.core /Users/hongbozhang/git/core/target/wasm-gc/debug/test/double/internal/ryu/ryu.core /Users/hongbozhang/git/core/target/wasm-gc/debug/test/double/internal/ryu/ryu.blackbox_test.core -main moonbitlang/core/double/internal/ryu_blackbox_test -o /Users/hongbozhang/git/core/target/wasm-gc/debug/test/double/internal/ryu/ryu.blackbox_test.wasm -test-mode -pkg-config-path /Users/hongbozhang/git/core/double/internal/ryu/moon.pkg.json -pkg-sources moonbitlang/core/builtin:/Users/hongbozhang/git/core/builtin -pkg-sources moonbitlang/core/coverage:/Users/hongbozhang/git/core/coverage -pkg-sources moonbitlang/core/bool:/Users/hongbozhang/git/core/bool -pkg-sources moonbitlang/core/double/internal/ryu:/Users/hongbozhang/git/core/double/internal/ryu -pkg-sources moonbitlang/core/double/internal/ryu_blackbox_test:/Users/hongbozhang/git/core/double/internal/ryu -exported_functions moonbit_test_driver_internal_execute,moonbit_test_driver_finish -target wasm-gc -g", "ts":111511, "tid": 1, "ph":"X", "dur":38380} | ||
,{"pid":0, "name":"moonc link-core /Users/hongbozhang/git/core/target/wasm-gc/debug/test/builtin/builtin.core /Users/hongbozhang/git/core/target/wasm-gc/debug/test/coverage/coverage.core /Users/hongbozhang/git/core/target/wasm-gc/debug/test/bytes/bytes.core /Users/hongbozhang/git/core/target/wasm-gc/debug/test/uint/uint.core /Users/hongbozhang/git/core/target/wasm-gc/debug/test/int64/int64.core /Users/hongbozhang/git/core/target/wasm-gc/debug/test/bool/bool.core /Users/hongbozhang/git/core/target/wasm-gc/debug/test/double/internal/ryu/ryu.core /Users/hongbozhang/git/core/target/wasm-gc/debug/test/double/double.core /Users/hongbozhang/git/core/target/wasm-gc/debug/test/double/double.blackbox_test.core -main moonbitlang/core/double_blackbox_test -o /Users/hongbozhang/git/core/target/wasm-gc/debug/test/double/double.blackbox_test.wasm -test-mode -pkg-config-path /Users/hongbozhang/git/core/double/moon.pkg.json -pkg-sources moonbitlang/core/builtin:/Users/hongbozhang/git/core/builtin -pkg-sources moonbitlang/core/coverage:/Users/hongbozhang/git/core/coverage -pkg-sources moonbitlang/core/bytes:/Users/hongbozhang/git/core/bytes -pkg-sources moonbitlang/core/uint:/Users/hongbozhang/git/core/uint -pkg-sources moonbitlang/core/int64:/Users/hongbozhang/git/core/int64 -pkg-sources moonbitlang/core/bool:/Users/hongbozhang/git/core/bool -pkg-sources moonbitlang/core/double/internal/ryu:/Users/hongbozhang/git/core/double/internal/ryu -pkg-sources moonbitlang/core/double:/Users/hongbozhang/git/core/double -pkg-sources moonbitlang/core/double_blackbox_test:/Users/hongbozhang/git/core/double -exported_functions moonbit_test_driver_internal_execute,moonbit_test_driver_finish -target wasm-gc -g", "ts":121341, "tid": 2, "ph":"X", "dur":35746} | ||
,{"pid":0, "name":"work.run", "ts":7088, "tid": 0, "ph":"X", "dur":150048} | ||
,{"pid":0, "name":"test", "ts":157579, "tid": 0, "ph":"X", "dur":5818} | ||
,{"pid":0, "name":"test", "ts":157581, "tid": 0, "ph":"X", "dur":6217} | ||
,{"pid":0, "name":"test", "ts":157569, "tid": 0, "ph":"X", "dur":6281} | ||
,{"pid":0, "name":"test", "ts":157583, "tid": 0, "ph":"X", "dur":6895} | ||
,{"pid":0, "name":"main", "ts":0, "tid": 0, "ph":"X", "dur":164836} | ||
] |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note we may introduce a sugar like this: