Skip to content

Instantly share code, notes, and snippets.

View gsnedders's full-sized avatar

Sam Sneddon gsnedders

View GitHub Profile
Only in tools-merge-post: check_stability.ini
diff '--color=never' -u -r tools-merge-pre/check_stability.py tools-merge-post/check_stability.py
--- tools-merge-pre/check_stability.py 2017-04-19 15:39:38.292667625 +0100
+++ tools-merge-post/check_stability.py 2017-04-19 15:40:27.660606721 +0100
@@ -1,6 +1,7 @@
from __future__ import print_function
import argparse
+from ConfigParser import SafeConfigParser
import logging
@gsnedders
gsnedders / JSrust.md
Last active May 23, 2017 06:52
A Vague Plan for a JS VM in Rust

Many years ago, myself and @farre discussed a number of things we would like to do differently in a new JS VM, back when both of us were working on Carakan (myself, admittedly, mostly getting fed up of doing whitebox testing and starting to play around with stuff; I can't claim to have implemented much!).

While the gains of a new VM in Rust are inherently limited if there's some form of JIT (as Rust's memory safety inherently will not cover any generated code), it does nevertheless provide some new impetus to try and write such a VM.

From my personal point-of-view, the VM should:

  • have a memory-safe interpreter for cold code;
  • operate almost entirely on IRs, with:
    • a high-level IR mapping closely to JS constructs designed for interpreter performance (i.e., coarse-grained register based bytecode),
  • a mid-level IR mapping closely to VM internals designed for compilation (i.e., a fine-grained bytecode which almost all optimizations can be expressed in terms of; this can be used for multiple tiers
--- Ahem3.ttx 2017-09-18 23:45:16.000000000 +0900
+++ Ahem.ttx 2017-09-18 23:43:26.000000000 +0900
@@ -260,25 +260,46 @@
<GlyphID id="254" name="uni3000"/>
<GlyphID id="255" name="afii61664"/>
<GlyphID id="256" name="afii301"/>
+ <GlyphID id="257" name="uni4E00"/>
+ <GlyphID id="258" name="uni4E8C"/>
+ <GlyphID id="259" name="uni4E09"/>
+ <GlyphID id="260" name="uni56DB"/>
selection: 1
console: 1
annotation-protocol: 1
audio-output: 1
css-align-3: 1
screen-orientation: 1
css-ruby-1: 1
service-workers: 1
gyroscope: 1
quirks-mode: 1
import time
from github3 import GitHub
rename = {
"compositing-1": "compositing",
'css-align-3': 'css-align',
'css-animations-1': 'css-animations',
'css-backgrounds-3': 'css-backgrounds',
'css-break-3': 'css-break',
options = webdriver.chrome.options.Options()
prefs = {
"webkit.webprefs.fonts.fixed.Zyyy": "Ahem",
"webkit.webprefs.fonts.sansserif.Zyyy": "Ahem",
"webkit.webprefs.fonts.serif.Zyyy": "Ahem",
"webkit.webprefs.fonts.standard.Zyyy": "Ahem"
}
options.add_experimental_option("prefs", prefs)
options.add_argument('headless')
options.binary_location = '/usr/bin/google-chrome-unstable'
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
import io
import os
import csv
import hashlib
import socket
import base64
diff --git a/css/css-backgrounds/border-radius-001-ref.xht b/css/css-backgrounds/border-radius-001-ref.html
similarity index 39%
rename from css/css-backgrounds/border-radius-001-ref.xht
rename to css/css-backgrounds/border-radius-001-ref.html
index 9c7bc4bd5f..b3f0f45264 100644
--- a/css/css-backgrounds/border-radius-001-ref.xht
+++ b/css/css-backgrounds/border-radius-001-ref.html
@@ -1,23 +1,19 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml">
py27 installed: asn1crypto==0.24.0,attrs==17.4.0,blessings==1.6.1,certifi==2018.1.18,cffi==1.11.4,coverage==4.5,cryptography==2.1.4,enum34==1.1.6,funcsigs==1.0.2,html5lib==1.0.1,hypothesis==3.44.25,idna==2.6,ipaddress==1.0.19,marionette-driver==2.5.0,mozcrash==1.0,mozdebug==0.1,mozdevice==0.52,mozfile==1.2,mozinfo==0.10,mozleak==0.1,mozlog==3.7,moznetwork==0.27,mozprocess==0.26,mozprofile==0.29,mozrunner==6.14,mozterm==0.1.0,mozversion==1.5,pluggy==0.6.0,py==1.5.2,pycparser==2.18,pyOpenSSL==17.5.0,pytest==3.4.0,pytest-cov==2.5.1,selenium==3.8.1,six==1.11.0,urllib3==1.22,webencodings==0.5.1
py27 runtests: PYTHONHASHSEED='3294782886'
py27 runtests: commands[0] | pytest --cov -vv --no-cov
============================= test session starts ==============================
platform darwin -- Python 2.7.14, pytest-3.4.0, py-1.5.2, pluggy-0.6.0 -- /Users/gsnedders/Documents/other-projects/wpt/web-platform-tests/tools/wpt/.tox/py27/bin/python2.7
cachedir: ../.pytest_cache
rootdir: /Users/gsnedders/Documents/other-projec
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
import os
import csv
import socket
import sys
import threading
import time