Skip to content

Instantly share code, notes, and snippets.

View JDevlieghere's full-sized avatar

Jonas Devlieghere JDevlieghere

View GitHub Profile

Languages, Compilers, Debuggers, and Development Infrastructure Engineering Internships at Apple

Apple's Languages, Compilers, Debuggers and Development Infrastructure teams are now looking for interns for 2022!

We are looking for students who are motivated to get hands on experience working on these exciting technologies. We have interesting problems to solve at every level, from low-level assembly to high-level Swift code. No prior language, compiler or debugger experience is required and candidates without such experience are encouraged to apply. Candidates should be comfortable writing code in C++.

These are paid internships. While most internships last 3 months, starting in May or June, the starting dates and the internship length are flexible. Internships are restricted to students. Students must be enrolled in school in the quarter/semester immediately following the internship. We are looking for candidates of all education levels, from Bachelor’s to Ph.D. Applicants from outside the U.S.A. are w

#include "clang/AST/AST.h"
#include "clang/AST/ASTConsumer.h"
#include "clang/AST/RecursiveASTVisitor.h"
#include "clang/CodeGen/ObjectFilePCHContainerOperations.h"
#include "clang/Frontend/ASTConsumers.h"
#include "clang/Frontend/CompilerInstance.h"
#include "clang/Frontend/FrontendActions.h"
#include "clang/Rewrite/Core/Rewriter.h"
#include "clang/Tooling/CommonOptionsParser.h"
#include "clang/Tooling/Tooling.h"
git log --author="Chris Lattner" --date=iso-local | perl -nalE 'if (/^Date:\s+[\d-]{10}\s(\d{2})/) { say $1+0 }' | sort | uniq -c|perl -MList::Util=max -nalE '$h{$F[1]} = $F[0]; }{ $m = max values %h; foreach (0..23) { $h{$_} = 0 if not exists $h{$_} } foreach (sort {$a <=> $b } keys %h) { say sprintf "%
02d - %4d %s", $_, $h{$_}, "*"x ($h{$_} / $m * 50); }'
00 - 40 ***
01 - 5
02 - 6
03 - 6
04 - 8
05 - 2
06 - 9
07 - 61 *****
{
"color_scheme": "Packages/Color Scheme - Default/Mariana.sublime-color-scheme",
"ensure_newline_at_eof_on_save": true,
"font_face": "Source Code Pro",
"font_size": 12,
"ignored_packages":
[
"Vintage"
],
"rulers":

Distributed Builds

Start by installing distcc using homebrew on your local machine and all the machines you want to use for distributed builds.

brew install distcc

The only requirement for the build machines is that they run the same operating

#include <chrono>
#include <iostream>
#include <type_traits>
template <class F, class... Args>
std::chrono::duration<double>
benchmark(F&& f, Args&&... args)
{
using clock = std::conditional<std::chrono::high_resolution_clock::is_steady,
#include <chrono>
#include <iostream>
#include <type_traits>
template <class F, class... Args>
std::chrono::duration<double>
benchmark(F&& f, Args&&... args)
{
using clock = std::conditional<std::chrono::high_resolution_clock::is_steady,
@JDevlieghere
JDevlieghere / italics.sh
Created December 2, 2016 10:34
Add support for italics to xterm-256color
infocmp -1 xterm-256color > xterm-256color.terminfo
echo -e "\tsitm=\\E[3m,\n\tritm=\\E[23m," >> xterm-256color.terminfo
tic xterm-256color.terminfo
#!/bin/bash
confirm() {
echo "Press RETURN to continue, or ^C to cancel.";
read -e ignored
}
GIT='git'
LTS="Ubuntu 10.04"
#include "clang/AST/AST.h"
#include "clang/AST/ASTConsumer.h"
#include "clang/AST/ASTContext.h"
#include "clang/AST/RecursiveASTVisitor.h"
#include "clang/Driver/Options.h"
#include "clang/Frontend/ASTConsumers.h"
#include "clang/Frontend/CompilerInstance.h"
#include "clang/Frontend/FrontendActions.h"
#include "clang/Rewrite/Core/Rewriter.h"
#include "clang/Tooling/CommonOptionsParser.h"