This file contains hidden or 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
clang-32-opt: | |
file - avg - min | |
---- - --- - --- | |
testdata/apache_builds.json - 0.302 ms - 0.293 ms | |
testdata/github_events.json - 0.156 ms - 0.148 ms | |
testdata/instruments.json - 0.570 ms - 0.554 ms | |
testdata/mesh.json - 3.180 ms - 3.091 ms | |
testdata/mesh.pretty.json - 4.802 ms - 4.628 ms | |
testdata/nested.json - 0.154 ms - 0.151 ms | |
testdata/svg_menu.json - 0.004 ms - 0.003 ms |
This file contains hidden or 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
import Foundation | |
enum Enum: Int { | |
case one = 1 | |
case two = 2 | |
} | |
func enumFromAny<T>(_ ctor: (Int) -> T?, _ v: Any) -> T? { | |
if let n = v as? NSNumber { | |
return ctor(n.intValue) |
This file contains hidden or 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
var count: Int = 1234 | |
class C { | |
init() { | |
myThing = count | |
count += 1 | |
Swift.print("🇺🇸 Entry") | |
} | |
deinit { |
This file contains hidden or 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
import dict | |
trait PD { | |
pd: self => () | |
} | |
impl PD String { | |
pd = print | |
} |
This file contains hidden or 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
data AnyObservable t = forall o. (ObservableData o, DataType o ~ t) => AnyObservable o |
This file contains hidden or 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
trait T1 {} | |
trait T2 {} | |
impl T1 Number {} | |
impl T2 Number {} | |
fun a<T: T1>(_: {...: T}) { | |
} | |
fun b<T: T2>(_: {...: T}) { |
This file contains hidden or 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
{-# LANGUAGE TypeFamilies, FlexibleContexts, ExistentialQuantification, ScopedTypeVariables #-} | |
type Token = String | |
class Observable ob where | |
type EventType ob | |
addObserver :: ob -> (EventType ob -> IO ()) -> IO Token | |
removeObserver :: ob -> Token -> IO () | |
class Observable ob => ObservableData ob where |
This file contains hidden or 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
protocol P { | |
func go() | |
} | |
extension String: P { | |
func go() { | |
print("String") | |
} | |
} | |
extension Int: P { |
This file contains hidden or 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
// | |
// main.swift | |
// memsafe | |
// | |
// Created by Chad Austin on 8/10/16. | |
// Copyright © 2016 Chad Austin. All rights reserved. | |
// | |
import Foundation |
This file contains hidden or 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
function main() { | |
var $0; | |
if (((void 0)===(void 0))) { | |
{ | |
} | |
$0 = 1; | |
} | |
else { | |
} | |
{ |