profile
viewpoint

push eventmtharrison/deno-playground

Matt Harrison

commit sha 87ecae1043b493d940f19f7196f2a4fa7c8051ea

Rebuild FE

view details

push time in 14 days

push eventmtharrison/deno-playground

Matt Harrison

commit sha 7116dfe4ae04e65323c7abfacd02563a7ca70d7f

css tweaks

view details

push time in 14 days

push eventmtharrison/deno-playground

Matt Harrison

commit sha 5452bf05ffd8bcbfa501f909cd8c64cb3085d360

Limit data written to stdout/stderr

view details

push time in 14 days

push eventmtharrison/deno-playground

Matt Harrison

commit sha 68ed29bbf639e5e1a5beaf70aeb6c248c9b01572

Fix security alerts by removing typings package:

view details

push time in 15 days

push eventmtharrison/deno-playground

Matt Harrison

commit sha a3ece80e2ed1f09a805fce95e46c3ab184330608

Update Deno

view details

Matt Harrison

commit sha c6cc3d17e75f607a3931bd8169b96a8b212ae821

Merge branch 'master' of github.com:mtharrison/deno-playground * 'master' of github.com:mtharrison/deno-playground: Fix typo in twitter url

view details

push time in 15 days

issue commentdenoland/deno

support chome devtools

The vscode debugger is just another frontend (like devtools), we need to write the integration with Deno and the backend V8. Once that's done, you should be able to use vscode debugger too.

ry

comment created time in 19 days

startedhsharsha/v8inspector

started time in 21 days

startedSoylentGraham/V8InspectorMinimal

started time in 22 days

issue commentdenoland/deno

question: why doesn't Javascript have optional static typing ?

You've asked the same question in a bunch of other places too. Along with lots of other spammy issues.

Screenshot 2019-06-23 at 11 04 19

Screenshot 2019-06-23 at 11 07 20

This isn't really a productive way to take part in open-source, you're just wasting other people's time.

catastrop

comment created time in 23 days

delete branch mtharrison/deno

delete branch : patch-1

delete time in 25 days

startedGeal/nom

started time in 25 days

PR opened denoland/deno

Change cargo deps sync tool path in comment

<!-- Before submitting a PR read https://deno.land/manual.html#contributing -->

+1 -1

0 comment

1 changed file

pr created time in 25 days

push eventmtharrison/deno

Matt Harrison

commit sha 5e383b97e459f6942a012db23baa221e6f5dacd4

Change cargo deps sync tool path in comment

view details

push time in 25 days

startednats-io/nats.go

started time in a month

issue openedChromeDevTools/devtools-frontend

Allow serving inspector websocket and HTTP on different endpoints

Current the HTTP server which responds to /json and /json/version has to be on the same host/port endpoint as the Websocket server which receives subsequent protocol messages. In some HTTP server libraries this is more difficult if they don't have a good upgrade API.

created time in a month

issue commentdenoland/registry

HTML source code shouldn't have blue background

@ry is this just for registry or should it be a general update to style.css?

ry

comment created time in a month

delete branch mtharrison/registry

delete branch : pretty-html

delete time in a month

pull request commentdenoland/registry

Render code as pretty html instead of redirecting

I wonder if you could make so that it doesn't redirect, even if it's not a real browser, but serves the code with "application/typescript" content type?

I could definitely look at that, should be straightforward, but just wondering what the benefit is? I guess it will increase your lambda costs if we're proxying all the code vs redirecting.

mtharrison

comment created time in a month

pull request commentdenoland/registry

Render code as pretty html instead of redirecting

I wonder if you could make so that it doesn't redirect, even if it's not a real browser, but serves the code with "application/typescript" content type?

I could definitely look at that, should be straightforward, but just wondering what the benefit is? I guess it will increase your lambda costs if we're proxying all the code vs redirecting.

mtharrison

comment created time in a month

pull request commentdenoland/registry

Render code as pretty html instead of redirecting

I wonder if you could make so that it doesn't redirect, even if it's not a real browser, but serves the code with "application/typescript" content type?

I could definitely look at that, should be straightforward, but just wondering what the benefit is? I guess it will increase your lambda costs if we're proxying all the code vs redirecting.

mtharrison

comment created time in a month

push eventmtharrison/registry

Matt Harrison

commit sha 2ab9dbc7178913e273561cc3d8c0db4c129a257d

Use fetchRemote

view details

push time in a month

pull request commentdenoland/registry

Render code as pretty html instead of redirecting

Hey @ry sure, that looks better with that. Screenshot 2019-06-18 at 07 47 56

mtharrison

comment created time in a month

push eventmtharrison/registry

Matt Harrison

commit sha 5566cccda8d00462d5b2cfb257b56338cd17facf

Escape url and use deno stylesheet

view details

push time in a month

issue commentdenoland/deno

Major features necessary for 1.0

@acconrad I have a WIP PR open for that https://github.com/denoland/registry/pull/95

ry

comment created time in a month

startedneon-bindings/neon

started time in a month

startedneon-bindings/examples

started time in a month

push eventmtharrison/registry

Matt Harrison

commit sha d7dc512e62d1551611e32c742486208551de37ac

Escape HTML in code to mitigate XSS risk

view details

push time in a month

pull request commentdenoland/registry

Render code as pretty html instead of redirecting

This has an XSS risk, which I should address first.

mtharrison

comment created time in a month

PR opened denoland/registry

Render code as pretty html instead of redirecting

Here's a first pass at improving the experience of visiting scripts in the browser. This was part of the features wanted for 1.0 here: https://github.com/denoland/deno/issues/2473

Screenshot 2019-06-13 at 11 40 10

I had trouble setting up the stack for developing on this so I made a little mock server instead (https://gist.github.com/mtharrison/8ee409e56dc174d94b9d415d09c6a6b0) so this will need to be tested on lambda to make sure it works first.

+69 -0

0 comment

1 changed file

pr created time in a month

create barnchmtharrison/registry

branch : pretty-html

created branch time in a month

issue commentdenoland/registry

Rather than redirect, fetch and serve.

Does this look ok for the pretty browser preview? If so I can make a PR.

Screenshot 2019-06-12 at 23 24 58

ry

comment created time in a month

issue commentdenoland/deno

Deno.run supports piped output only up to 65536 bytes

Here's an analogous example in Node, the buffer though is 24kb for Node before no completion events happen without reading some from the pipe:

const ChildProcess = require('child_process');

const child = ChildProcess.spawn('python', ['-c', `import sys; sys.stdout.write("*" * 24577)`], {
	stdio: 'pipe'
});

child.on('exit', (code) => console.log(code));    // won't be called

I'm curious that you think it's a bug though.

szhu

comment created time in a month

issue commentdenoland/deno

Deno.run supports piped output only up to 65536 bytes

I think what's happening is the output is being buffered up to a max of 65536 and then blocking until some of it is read so the process does not exit. I notice it succeeds if you read some/all output before awaiting the status.

Reading all

async function main() {

  let p = Deno.run({
    args: ["python", "-c", 'import sys; sys.stdout.write("*" * 65537)'],
    stdout: "piped",
  });

  const rawOutput = await p.output();
  console.log(rawOutput.length);

  await p.status();
  console.log("Done");
}

main();

// 65537
// Done

Reading some (and making some space in buffer)

async function main() {

  let p = Deno.run({
    args: ["python", "-c", 'import sys; sys.stdout.write("*" * 65537)'],
    stdout: "piped",
  });

  const buff = new Uint8Array(10);
  await p.stdout.read(buff);
  console.log(new TextDecoder().decode(buff));

  await p.status();
  console.log("Done");
}

main();

// **********
// Done

You will see the same in Rust (playground) if you try to wait for the status without reading some of the output

#![allow(unused)]

use std::process::{Command, Stdio};

fn main() {
    
    let mut child = Command::new("python");
    
    child.args(&["-c", "import sys; sys.stdout.write(\"*\" * 65537)"]);
    child.stdout(Stdio::piped());
        
    println!("Child status was {}", child.status().unwrap());
}

szhu

comment created time in a month

delete branch mtharrison/deno

delete branch : seed-flag

delete time in a month

startedliona24/wasm-tetris

started time in a month

push eventmtharrison/deno

Matt Harrison

commit sha de9015182dc92226c8935f35bec6d34a638bc2ee

Update manual

view details

push time in a month

push eventmtharrison/deno

Matt Harrison

commit sha b4706fd658c2231cf37eef54e41201970388e831

Enable seeding of crypto.getRandomValues()

view details

push time in a month

push eventmtharrison/matt-harrison.com2

Matt Harrison

commit sha 55d77b486fed60b34ff9b57af119029b3fc43615

new docs

view details

push time in a month

push eventmtharrison/matt-harrison.com2

Matt Harrison

commit sha 62776c2a8748356cf70155e026c7c8db0c790378

Tidy up Deno post

view details

push time in a month

push eventmtharrison/matt-harrison.com2

Matt Harrison

commit sha ff62279cbd4332a1c8473a30efea03cf62779124

Fix raytracing link

view details

push time in a month

push eventmtharrison/matt-harrison.com2

Matt Harrison

commit sha 327b1c27175d45dfdc45cf3d2c9ce116cca34fc0

Fix raytracing link

view details

push time in a month

push eventmtharrison/matt-harrison.com2

Matt Harrison

commit sha f03939745ab7aa085d424c12a25eed51f5b1f8e6

Mark as a draft

view details

push time in a month

push eventmtharrison/deno

Matt Harrison

commit sha 841565e11079c45d83ad5e1db2e7486308180f0f

format code

view details

push time in a month

Pull request review commentdenoland/deno

Implement "--seed NUMBER" flag to seed Math.random()'s RNG

 To get help on the another subcommands (run in this case):         .help("Load compiler configuration file")         .takes_value(true)         .global(true),+    ).arg(+      Arg::with_name("seed")+        .long("seed")+        .value_name("NUMBER")+        .help("Seed Math.random()")+        .takes_value(true)+        .validator(|val: String| {+          match val.parse::<i64>() {+            Ok(_) => Ok(()),+            Err(_) => Err("value should be a number".to_string())

Thanks for the comments, I've addressed them so far.

mtharrison

comment created time in a month

push eventmtharrison/deno

Matt Harrison

commit sha 9262a5c40ee83226d765577eac218ca616424397

Add test case including v8 flags

view details

push time in a month

push eventmtharrison/deno

Matt Harrison

commit sha c6b79fb02e6eb895573ad64f4bbe45f523ab4b0e

s/value/Seed/

view details

push time in a month

push eventmtharrison/deno

Matt Harrison

commit sha 281e4f0605d38fec2d8900c75808cfea32531846

Use --random-seed instead of --random_seed

view details

push time in a month

pull request commentdenoland/deno

Implement "--seed NUMBER" flag to seed Math.random()'s RNG

@ry this PR doesn't currently affect the values generated by Crypto.getRandomValues(), only the values generated by V8 (which I believe the only interface to is Math.random()). Would we like to support seeding the Rust RNG too?

mtharrison

comment created time in a month

push eventmtharrison/deno

Bartek Iwańczuk

commit sha a115340288d974f141cceb16faac71914402c445

feat: Import maps (#2360)

view details

Matt Harrison

commit sha 28c46114d16f80c5b42b638d088a5904081cbf01

Implement --seed NUMBER flag to seed Math.random()'s RNG

view details

push time in a month

PR opened denoland/deno

Implement "--seed NUMBER" flag to seed Math.random()'s RNG

Fixes #2322

+57 -0

0 comment

5 changed files

pr created time in a month

push eventmtharrison/deno

Matt Harrison

commit sha 50b8beb39132fbc687dafdb5706f225bbb36f248

Implement --seed NUMBER flag to seed Math.random()'s RNG

view details

push time in a month

create barnchmtharrison/deno

branch : seed-flag

created branch time in a month

fork mtharrison/deno

A secure JavaScript/TypeScript runtime built with V8, Rust, and Tokio

https://deno.land/

fork in a month

issue commentdenoland/deno

Add --seed for setting Math.random's RNG seed

Sounds good to me! I'll put together a PR.

ry

comment created time in a month

issue commentdenoland/deno

Add --seed for setting Math.random's RNG seed

Thanks for the pointer. I noticed that it's actually possible to set the seed already by passing a v8 flag:

$ deno --v8-flags="--random_seed=100" eval "for(let i=0;i<10;++i){console.log(Math.random())}"
0.858562739044346
0.8973397944553141
0.15335012655691727
0.36867387434349963
0.3591039342838782
0.7044499748617652
0.7461423057751548
0.3824611207183364
0.5950178237266042
0.22440633214343908

$ deno --v8-flags="--random_seed=100" eval "for(let i=0;i<10;++i){console.log(Math.random())}"
0.858562739044346
0.8973397944553141
0.15335012655691727
0.36867387434349963
0.3591039342838782
0.7044499748617652
0.7461423057751548
0.3824611207183364
0.5950178237266042
0.22440633214343908

Were you aware of this and wanted a direct flag in Deno?

ry

comment created time in a month

issue commentdenoland/deno

Add --seed for setting Math.random's RNG seed

Seems like a reasonable way to do this is to call v8::V8::SetEntropySource(EntropySource);. Does this sound like a good approach?

ry

comment created time in a month

push eventmtharrison/matt-harrison.com2

Matt Harrison

commit sha 3bcbafe85adb3599f3af56fc3a6e5f68e1750bcf

build

view details

push time in a month

push eventmtharrison/matt-harrison.com2

Matt Harrison

commit sha 831921ba751c8450e9e95b41183b485620958cce

more writing

view details

push time in a month

push eventmtharrison/matt-harrison.com2

Matt Harrison

commit sha ad40c7a8068113287607f6e97055db4be77a4125

write more

view details

push time in a month

issue commentdenoland/deno

Add --seed for setting Math.random's RNG seed

I'd like to have a go at this, unless someone is already working on it? 🙂

ry

comment created time in a month

push eventmtharrison/matt-harrison.com2

Matt Harrison

commit sha 4b76b3294ddbe54109c7dbd256a1a87fd7d6aef1

Add more content

view details

push time in a month

startedmicrosoft/lsif-node

started time in a month

startedzloirock/core-js

started time in a month

created tagmtharrison/redit

tagv1.1.0

No-faff editing of rethinkdb documents in your $EDITOR of choice

created time in a month

push eventmtharrison/redit

Matt Harrison

commit sha 902c58f89ac5e1fed406895324544c5f3a88baf8

Improve error handling

view details

Matt Harrison

commit sha 27d32d815480fd443194300f4448412260cc06d5

Add dir support

view details

Matt Harrison

commit sha 9819bfdbc994df2baaf8fc43b8e81085dbd3b56d

1.1.0

view details

push time in a month

push eventmtharrison/redit

Matt Harrison

commit sha 237bd4d828d478bdf3d5d45877094c65eae865f7

rename package

view details

push time in a month

create barnchmtharrison/redit

branch : master

created branch time in a month

created repositorymtharrison/redit

No-faff editing of rethinkdb documents in your $EDITOR of choice

created time in a month

push eventmtharrison/matt-harrison.com2

Matt Harrison

commit sha 484393ee9db288c51fc171b4f583f83333103453

Fix url

view details

Matt Harrison

commit sha f398c24b115b7128aa9fa69e9b856f7ff9be7a9d

Write some more content on Deno post

view details

Matt Harrison

commit sha ea78ac6b6f0069bc03fe8642357291d57d44ee7f

Merge branch 'master' of github.com:mtharrison/matt-harrison.com2 * 'master' of github.com:mtharrison/matt-harrison.com2: Create CNAME

view details

push time in a month

issue openedmtharrison/vscode-lab

Try to mitigate risk of shell injection

The plugin works by inserting the test name into a command sent to the terminal, this gives an opportunity for shell injection.

created time in a month

startedLevel/levelup

started time in 2 months

push eventmtharrison/vscode-lab

Matt Harrison

commit sha 5e99694b373365b1d1ce806eda3ae42c42174c01

Update README.md

view details

push time in 2 months

issue closedmtharrison/vscode-lab

Terminal won't reopen once closed

Because a single terminal object is created for the extension, closing it means the extension no longer works.

closed time in 2 months

mtharrison

issue commentmtharrison/vscode-lab

Terminal won't reopen once closed

Fixed

mtharrison

comment created time in 2 months

push eventmtharrison/vscode-lab

Matt Harrison

commit sha 9a96aa68e0a15114cde64783781ea4d8d52fd98a

1.0.0

view details

push time in 2 months

created tagmtharrison/vscode-lab

tagv1.0.0

Run lab tests in vscode

created time in 2 months

push eventmtharrison/vscode-lab

Matt Harrison

commit sha 46787866c5bbb06bd531c63b991a081d3d79f18f

smaller gif

view details

push time in 2 months

push eventmtharrison/vscode-lab

Matt Harrison

commit sha 290b3b1edcb904c3e9d2861c2d233d6660b48468

Update terminal handling and add gif

view details

push time in 2 months

push eventmtharrison/vscode-lab

Matt Harrison

commit sha 996a6fbde325ac865ce1ff23670777cb221b13d3

Use output channel instead

view details

Matt Harrison

commit sha 6eb4a58127ead48dd82f7ee53c74c3b0595a6473

Update terminal handling and add gif

view details

push time in 2 months

push eventmtharrison/vscode-lab

Matt Harrison

commit sha c54f829a353b32f9176206eae498937cf4010eac

Escape regex chars in test name. Fixes #1

view details

push time in 2 months

issue openedmtharrison/vscode-lab

Terminal won't reopen once closed

Because a single terminal object is created for the extension, closing it means the extension no longer works.

created time in 2 months

issue openedmtharrison/vscode-lab

Tolerate parens in test name

created time in 2 months

create barnchmtharrison/vscode-lab

branch : master

created branch time in 2 months

created repositorymtharrison/vscode-lab

Run lab tests in vscode

created time in 2 months

push eventmtharrison/deno-playground

Mikhail Garbuzov

commit sha 302fbe2d28bd531d277605c0ca287add733b9295

Fix typo in twitter url

view details

Matt Harrison

commit sha d5a51534d0df4a026f3021a3c66804ac8086fb1f

Merge pull request #3 from madmxg/patch-1 Fix typo in twitter url

view details

push time in 2 months

pull request commentmtharrison/deno-playground

Fix typo in twitter url

Thanks so much 🙏 appreciate you taking the time to fix this

madmxg

comment created time in 2 months

fork mtharrison/vscode-codelens-example

This is an example VS Code extension showing off how you can implement custom CodeLenses.

fork in 2 months

fork mtharrison/vscode-go

An extension for VS Code which provides support for the Go language.

https://marketplace.visualstudio.com/items/lukehoban.Go

fork in 2 months

issue openedmtharrison/deno-playground

Support loading std modules

created time in 2 months

push eventmtharrison/deno-playground

Matt Harrison

commit sha b13b5d9664bb58fea1267092c7dbb5e904090247

update frontend deps

view details

push time in 2 months

push eventmtharrison/deno-playground

Matt Harrison

commit sha 7e2b0a93a60c9e725a0a2a51a261981d9daf8b1f

change example

view details

Matt Harrison

commit sha b3be8e1464b41c6bc8d8238f5624e81dadba5406

add readme

view details

push time in 2 months

push eventmtharrison/deno-playground

Matt Harrison

commit sha e3d7a46fefd6c25f7a3a4d4ad2d06b2b1a352195

save

view details

Matt Harrison

commit sha 48a8a6769b99303c7be8f996de4b37ad470f2122

Add permissions

view details

push time in 2 months

push eventmtharrison/deno-playground

Matt Harrison

commit sha 5ca702dd6dab966eab4fda4e4346428fa3d64fec

remove backend-rs

view details

Matt Harrison

commit sha 5cc7601c52cf34c844628430004bb2c5f07801b5

Allow execute of edited code

view details

Matt Harrison

commit sha 302f86a0085ff11fc7c24e7a9681db6f23aff3ca

cmd+enter

view details

push time in 2 months

push eventmtharrison/matt-harrison.com2

Matt Harrison

commit sha d225446978c2797d5dcc0e5c2fb82abcfc4597dc

Create CNAME

view details

push time in 2 months

push eventmtharrison/matt-harrison.com2

Matt Harrison

commit sha 898c785ea4265ba0ea9462e0df0410b95ed0d36f

Prepare for GH pages

view details

push time in 2 months

more