This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PROGRAM := llvm-brainfuck | |
OBJECTS := main.o | |
CXX := clang++ | |
CXXFLAGS := $(shell llvm-config --cppflags) -Wall -Werror -pedantic | |
LDFLAGS := $(shell llvm-config --ldflags --libs core) | |
all: $(PROGRAM) $(SHIM) | |
$(PROGRAM): $(OBJECTS) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PROGRAM := llvm-brainfuck | |
OBJECTS := main.o | |
CXX := clang++ | |
CXXFLAGS := $(shell llvm-config --cppflags) -Wall -Werror -pedantic | |
LDFLAGS := $(shell llvm-config --ldflags --libs core) | |
all: $(PROGRAM) $(SHIM) | |
$(PROGRAM): $(OBJECTS) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ openssl s_client -ssl3 -connect mail.csclub.uwaterloo.ca:465 | |
[openssl certificate spew] | |
220 mail.csclub.uwaterloo.ca ESMTP Postfix | |
ehlo jbroman | |
250-mail.csclub.uwaterloo.ca | |
250-PIPELINING | |
250-SIZE 20971520 | |
250-ETRN | |
250-AUTH PLAIN | |
250-AUTH=PLAIN |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Timeline (all times EST): | |
unknown (est. 6:30 PM): mcchong begins running simulations ("java a1b") on taurine using many processes, each using a great deal | |
7:11:48 PM: taurine runs out of memory and swap (8+2 GB), and the OOM killer is invoked for the first time. Following this, the OOM killer is repeatedly invoked at intervals of between 15 and 120 seconds). | |
7:45:?? PM: users begin complaining in #csc that taurine is unresponsive | |
7:47:32 PM: final taurine syslog entry before reboot | |
7:48:?? PM: m4burns, responding to similar complaints in the office, reboots taurine via ILOM | |
7:50:11 PM: syslog resumes after reboot | |
7:50:23 PM: sshd begins listening after reboot | |
7:50:36 PM: syscom regains access to taurine via ssh (user jbroman authenticated) | |
8:09:?? PM: consensus built that mcchong's java processes (which have reappeared since reboot) were responsible for the outage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Thank you for sending me CSC's information for this term. | |
In case you are not already aware, due to your late submission, your budget will not be considered at the budget meeting on Wednesday. The reason for this is because of MathSoc's Policy 6.3.1, which reads: | |
"If a club fails to submit its complete budget package on time, its package shall not be considered at the budget meeting, even if submitted before the meeting, and the club's funding shall be withheld until its budget is approved by Council." | |
If you have any questions or concerns regarding the above, please let me know. | |
Thank you, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if [[ "$(git symbolic-ref HEAD)" = "refs/heads/master" ]]; then | |
echo "Refusing to commit on master." >&2 | |
exit 1 | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace { | |
class V8ParsingBuffer { | |
public: | |
V8ParsingBuffer(std::vector<v8::Local<v8::Value>> values, v8::Isolate* isolate) | |
: values_(values), isolate_(isolate) {} | |
void AddNull() { values_.push_back(v8::Null(isolate)); } | |
std::nullptr_t GetParsedArgumentBuffer() { return nullptr; } | |
void AddParsedArgument(v8::Local<v8::Value> value) { values_->push_back(value); } | |
private: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Local<DictionarySchema> DictionarySchema::New(Isolate* v8_isolate, | |
Local<Value> keys[], | |
int keyCount) { | |
i::Isolate* isolate = reinterpret_cast<i::Isolate*>(v8_isolate); | |
ENTER_V8_NO_SCRIPT_NO_EXCEPTION(isolate); | |
i::Handle<i::DictionarySchema> schema = i::DictionarySchema::New(isolate, keyCount); | |
for (int i = 0; i < keyCount; i++) { | |
Handle<Object> key = Utils::OpenHandle(keys[i]); | |
uint32_t array_index; | |
Utils::ApiCheck(key->IsName() || key->ToArrayIndex(&array_index), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ValueSerializer { | |
class Delegate { | |
/* | |
* Delegate serializes the module content and returns an ID representing it. | |
* Using v8::WasmCompiledModule::GetTransferrableModule is recommended for efficiency, | |
* but a V8 client could do something else (like store the wire bytes, or store | |
* a URL to remote server that hosts wasm modules, or something else). | |
*/ | |
virtual Maybe<uint32_t> GetWasmCompiledModuleId( | |
Isolate* isolate, Local<WasmCompiledModule> wasm_module); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// template definition | |
template <int index, typename... UnionMemberTraits> | |
class IDLUnionImpl { | |
public: | |
bool IsNull() const { return type_ == 0; } | |
protected: | |
int type_ = 0; | |
}; | |
template <int index, typename UnionMemberTraits, typename... Rest> |