Skip to content

Instantly share code, notes, and snippets.

diff --git a/erts/emulator/beam/bif.c b/erts/emulator/beam/bif.c
index 41ba66062f..255bbc92b1 100644
--- a/erts/emulator/beam/bif.c
+++ b/erts/emulator/beam/bif.c
@@ -2404,7 +2473,7 @@ do_send(Process *p, Eterm to, Eterm msg, Eterm return_term, Eterm *refp,
}
}
-BIF_RETTYPE send_3(BIF_ALIST_3)
+BIF_RETTYPE erts_internal_send_3(BIF_ALIST_3)

as of november 2021

  • add MOZ_USE_XINPUT2=1 to /etc/environnment
  • turn down mousewheel.default.delta_multiplier_y (I like 50)
  • set apz.fling_min_velocity_threshold to some absurdly high number to disable "flinging"
@devsnek
devsnek / index.html
Last active September 24, 2021 04:28
<!DOCTYPE html>
<html>
<script src="index.js"></script>
</html>
use rp2040_hal as hal;
fn tight_loop_contents() {
unsafe { asm!("nop") }
}
struct FIFO<'p> {
sio: &'p mut hal::pac::SIO,
}
spec.html:791: 1. [id="step-sdo-invocation-example-2"] Perform SyntaxDirectedOperation of _someParseNode_.
spec.html:792: 1. [id="step-sdo-invocation-example-3"] Perform SyntaxDirectedOperation of _someParseNode_ passing *"value"* as the argument.
spec.html:9166: 1. Perform _environment_.InitializeBinding(_name_, _value_).
spec.html:9815: 1. Perform _envRec_.CreateMutableBinding(_N_, *true*).
spec.html:9816: 1. Perform _envRec_.InitializeBinding(_N_, _V_).
spec.html:11272: 1. Perform CreateIntrinsics(_realmRec_).
spec.html:11292: 1. Perform AddRestrictedFunctionProperties(_intrinsics_.[[%Function.prototype%]], _realmRec_).
spec.html:11561: <li>Perform any host-defined preparation steps.</li>
spec.html:11563: <li>Perform any host-defined cleanup steps, after which the execution context stack must be empty.</li>
spec.html:11730: 1. Perform SetRealmGlobalObject(_realm_, _global_, _thisValue_).
import { setTimeout } from 'timers/promises';
import http from 'http';
async function expensiveFunction() {
await setTimeout(1000);
return 'Here is the important data!';
}
http.createServer((req, res) => {
if (req.url !== '/') {
'use strict';
const http = require('http');
const http2 = require('http2');
const req = http.get('http://nghttp2.org/httpbin/get', {
headers: {
'Connection': 'Upgrade, HTTP2-Settings',
'Upgrade': 'h2c',
'HTTP2-Settings': http2.getPackedSettings().toString('base64'),
import Yoga from 'yoga-layout-prebuilt';
import { useEffect, useRef } from 'react';
import { useStdin, useStdout, useApp } from 'ink';
import { Program } from 'blessed';
// TODO: yogaNode.getComputedLayout() returns all 0s except
// for the width and height, which means we have to manually
// track the positions of elements in the code below. I'm
// not sure why this is, but it probably needs some sort of
// upstream fix in Ink.
#include <stdint.h>
#include <stdlib.h>
#include <signal.h>
int main() {
return 0;
}
void handler(int sig) {}
diff --git a/src/abstract-ops/object-operations.mjs b/src/abstract-ops/object-operations.mjs
index fa5b789..ee740d2 100644
--- a/src/abstract-ops/object-operations.mjs
+++ b/src/abstract-ops/object-operations.mjs
@@ -320,6 +320,13 @@ export function OrdinaryHasInstance(C, O) {
if (Type(O) !== 'Object') {
return Value.false;
}
+ if ('Objects' in O) {
+ for (const SubO of O.Objects) {