1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-29 10:39:10 -05:00
Commit graph

5069 commits

Author SHA1 Message Date
Bert Belder
ed33b0c783
third_party: gitignore depot_tools/.cipd_client temporary files 2018-09-27 16:43:45 -07:00
Ryan Dahl
b1d9014b5b Print 'Compiling' when compiling TS. 2018-09-27 17:34:51 -04:00
Ryan Dahl
d38ccfc6dc
Support zero-copy data in libdeno.send(). (#838)
This is a large API refactor of deno.h which replaces
deno_send() and deno_set_response() with deno_respond().
It also adds a req_id parameter to the deno_recv_cb.

Make writeFile/writeFileSync use it.
2018-09-27 17:33:10 -04:00
Andy Hayden
bf93ca54dd Ensure spawning python server twice raises an exception.
Previously it would dump the traceback but not raise.
It's unclear if serve_forever could crash for some other reason,
but the main reason spawn throws is if the port is already in use.
2018-09-27 15:49:43 -04:00
Ryan Dahl
ef41a1ab2b Add benchmark descriptions. 2018-09-27 05:00:23 -04:00
Kevin (Kun) "Kassimo" Qian
c75b1b6237 Benchmarks: github link and truncate sha1 (#845) 2018-09-27 02:19:42 -04:00
ztplz
c226e1b44e Travis benchmark (#832) 2018-09-26 20:26:34 -04:00
Kevin (Kun) "Kassimo" Qian
1e390e69cd Error pretty print (print stack) 2018-09-26 19:30:43 -04:00
Kevin (Kun) "Kassimo" Qian
32806b1871 Expand binary size benchmark (#830) 2018-09-26 14:16:22 -07:00
Ryan Dahl
df09fbad92 Use the thread pool for blocking I/O 2018-09-26 14:43:26 -04:00
Bert Belder
9e317c61d7
travis: don't cache unnecessary cargo and rustup files 2018-09-26 10:25:59 -07:00
Bert Belder
07d5035dd7
travis: name CARGO_HOME and RUSTUP_HOME env vars correctly
Because this is what rustup and cargo actually use:
https://doc.rust-lang.org/cargo/reference/environment-variables.html
2018-09-26 10:25:58 -07:00
Bert Belder
1fe474ba53
travis: use sccache to cache rust targets 2018-09-26 10:25:58 -07:00
Bert Belder
206d4f5c17
tools/setup: detect sccache presence and use it to cache rustc targets 2018-09-26 10:25:58 -07:00
Bert Belder
47e8242b29
build: add support for rustc_wrapper
Fixes #690.
2018-09-26 10:25:58 -07:00
Bert Belder
f10012facf
build: let rustc pick filenames, remove rust depfile hack
Fixes #787.
2018-09-26 10:25:49 -07:00
Bert Belder
531a427d88
build: do not quote cc_wrapper on windows
This brings behavior inline with the unix toolchain, which also leaves
cc_wrapper unquoted. If necessary, add quotes in the setup phase instead.
2018-09-26 09:52:30 -07:00
Bert Belder
023b4640fc
tools/setup: add gn_string() utility function 2018-09-26 09:52:30 -07:00
Bert Belder
1b9424e9d7
tools: add shell_quote() utility function 2018-09-26 09:52:30 -07:00
Bert Belder
3a6da19eb8 Revert "Expand binary size benchmark (#830)"
This reverts commit 8c7416b3f6.
2018-09-26 08:35:12 -04:00
Kevin (Kun) "Kassimo" Qian
8c7416b3f6 Expand binary size benchmark (#830) 2018-09-25 20:08:09 -04:00
Ryan Dahl
591174a686 Disable test_fetch_sync_string. 2018-09-25 17:02:49 -04:00
Ryan Dahl
b088b58f76 Add SetGlobalTimeout().
To be used for a timers implementation soon.
2018-09-25 17:02:49 -04:00
Ryan Dahl
4fd2b19f64 Make Deno multithreaded.
By using the tokio default runtime.

This patch makes all of the ops thread safe.

Adds libdeno to JS globals to make for easier testing.

Preliminary work for #733.
2018-09-25 17:02:49 -04:00
Ryan Dahl
7c128df4a0 Use lazy_static for HttpsConnector
And rename net.rs to http.rs

Share HTTP connection.
2018-09-25 17:02:49 -04:00
Ryan Dahl
7fb2821937 format 2018-09-25 17:02:49 -04:00
Ryan Dahl
a6f6d0b712 Clean up flags. 2018-09-25 17:02:49 -04:00
Ryan Dahl
1956d6846c Also plot cold start time. 2018-09-25 13:13:09 -04:00
J2P
3c24b9f724 Fix trace test code 2018-09-25 12:47:13 -04:00
Kevin (Kun) "Kassimo" Qian
f156a86024 console.warn goes to stderr (#810) 2018-09-25 01:27:02 -04:00
Mani Maghsoudlou
ad5065e23e Implement deno.readlink() (#797) 2018-09-25 00:20:49 -04:00
Kevin (Kun) "Kassimo" Qian
d957f8ebc2 Add syscall count benchmark for 002_hello.ts (#820)
* Add syscall count tracking for benchmark

* Add fetch_deps thread benchmark

* Switch to `strace -c` for syscall parsing

* Spawn http_server during benchmark (for fetch)

* Rename `benchmarks` to `exec_time_benchmarks`

* Update app_test.js
2018-09-24 23:58:18 -04:00
Ryan Dahl
234d5ea780 libdeno.send(): Use GetContents instead of Externalize
Fixes #744.
2018-09-24 22:16:23 -04:00
Bert Belder
f42849744b
travis: save homebrew/ccache to cache, set ccache size to 1GB 2018-09-24 17:36:14 -07:00
Kevin (Kun) "Kassimo" Qian
1729bdb0d7 Add thread count benchmark (#811) 2018-09-24 18:12:52 -04:00
Bert Belder
d6a97ae4f0
build: always enable clang color output 2018-09-24 13:45:03 -07:00
Bert Belder
af3f62eedf
build: enable rust color output on windows 2018-09-24 13:45:03 -07:00
Bert Belder
2e3a8b495d
tools: make color output work on windows 2018-09-24 13:45:03 -07:00
Kevin (Kun) "Kassimo" Qian
be8f49b332 Add toString for CallSite of eval origin (#809) 2018-09-24 15:42:09 -04:00
Bartek Iwańczuk
3fe4be07ca Add flag --recompile (#801) 2018-09-24 15:33:50 -04:00
Yoshiya Hinosawa
17a7b03d1b Start testing website (#813) 2018-09-24 11:31:14 -04:00
Kevin (Kun) "Kassimo" Qian
c124db4701 [console] Use constructor.name to print out function type (#664) 2018-09-24 10:06:48 -04:00
Yoshiya Hinosawa
9203e983d1 benchmark: track the binary size (#804) 2018-09-23 11:54:07 -04:00
Bert Belder
56acb6fa0e travis: fix the build, attempt 2 2018-09-22 12:27:50 -04:00
ztplz
f3684c28e5 Rename deno.argv, libdeno::DenoC and deno_set_flags (#796) 2018-09-22 08:47:44 -04:00
Ryan Dahl
7a4ad045b1
Update README and Roadmap. (#799) 2018-09-22 08:43:44 -04:00
Bert Belder
6b868ebba4 travis: fix github pages deploy condition 2018-09-22 08:42:59 -04:00
Bert Belder
06c2e084ff
travis: run benchmarks on linux, deploy to github pages 2018-09-22 01:31:54 -07:00
Bert Belder
82ca6538b1
travis: clean up & tweaks 2018-09-22 01:31:49 -07:00
Yoshiya Hinosawa
3747ec57e0
Add benchmark tools (#777) 2018-09-22 01:09:25 -07:00