Anders Kaseorg

Results 389 comments of Anders Kaseorg

The necessary communication could be handled by a shared memory [`multiprocessing.Array`](https://docs.python.org/3/library/multiprocessing.html#multiprocessing.Array) mapping subsuite indexes to pids. We already wrap `run_subsuite`, which receives the subsuite index as the second tuple element....

Tim just discovered that we need to do something about `html2markdown`/`html2text`. https://github.com/zulip/zulip/blob/05fdbd52243d0abbd47776f38afda0f96e9d1387/zerver/lib/email_notifications.py#L582-L596 #12870

You should consider the cold and warm cache cases separately, since Babel compilation accounts for a significant amount of time; the old runner caches Babel compilations in `node_modules/.cache/@babel/register/.babel.7.6.0.development.json`, while Jest...

I may have fixed almost the entire performance problem just by moving the `bugdown_assert.js` import from `zjsunit/index.js` to the one test that uses it, thereby saving a ~350 ms `require('jsdom')`...

I think I found another big performance sink that should be fairly simple for the Jest developers to fix: facebook/jest#9554.

Precedent: CommonMark [supports](https://spec.commonmark.org/0.29/#autolinks) autolinking to arbitrary protocols with angle brackets: ``. GFM [extends](https://github.github.com/gfm/#autolinks-extension-) this such that the angle brackets can be elided for URLs beginning with `www.`, `http://`, `https://`, or...

In addition to `javascript:`, we should block * `vbscript:`—WTF, IE; * `data:`, perhaps with a whitelist for `data:image/{gif,jpeg,png,webp}` or so (edit: crap, [**not** `svg+xml`](https://www.owasp.org/index.php/XSS_Filter_Evasion_Cheat_Sheet#You_can_EMBED_SVG_which_can_contain_your_XSS_vector)!)—apparently arbitrary `data:` URLs can be an...

Our upstream markdown libraries accept `_` or `*` for emphasis, and we have a bunch of kludgy overrides to accept only `*`. Instead of editing the overrides to also accept...

@aero31aero They’re not custom anymore. Python-Markdown already disallows `* Hello *` as emphasis. Marked 0.3.x accepts it, but that was fixed in 0.4.0.