1
function add(a, b) {
return a + b;
}
2
function add($a, $b)
1
function add(a, b) {
return a + b;
}
2
function add($a, $b)
declare module "react-native" { | |
import * as React from 'react'; | |
import {ComponentClass, ReactType, ReactNode, ReactElement} from 'react'; | |
export * from 'react'; | |
/** | |
* Represents the completion of an asynchronous operation | |
* @see lib.es6.d.ts |
interface MathOperators { | |
int add(int a, int b); | |
int subtract(int a, int b); | |
} | |
int calculate(MathOperators operators, int a, int b) { | |
return operators.add(a, operators.subtract(a, b)); | |
} | |
class IntegerMath { |
'use strict'; | |
/** | |
* Wraps the passed function to track its calls. | |
* | |
* All calls are stored in an array on a calls property. | |
* Every call is an object with a context and args property. | |
*/ | |
function trackCalls(fn) { | |
const calls = []; |
const Cycle = require('@cycle/core'); | |
const {makeDOMDriver, div, button, p} = require('@cycle/dom'); | |
const {Observable} = require('rx'); | |
function main(sources) { | |
const decrement$ = sources.DOM | |
.select('.decrement').events('click').map(ev => -1); | |
const increment$ = sources.DOM |
/* | |
* Copyright 2013 Palantir Technologies, Inc. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
-----BEGIN CERTIFICATE----- | |
MIIENjCCAx6gAwIBAgIBATANBgkqhkiG9w0BAQUFADBvMQswCQYDVQQGEwJTRTEU | |
MBIGA1UEChMLQWRkVHJ1c3QgQUIxJjAkBgNVBAsTHUFkZFRydXN0IEV4dGVybmFs | |
IFRUUCBOZXR3b3JrMSIwIAYDVQQDExlBZGRUcnVzdCBFeHRlcm5hbCBDQSBSb290 | |
MB4XDTAwMDUzMDEwNDgzOFoXDTIwMDUzMDEwNDgzOFowbzELMAkGA1UEBhMCU0Ux | |
FDASBgNVBAoTC0FkZFRydXN0IEFCMSYwJAYDVQQLEx1BZGRUcnVzdCBFeHRlcm5h | |
bCBUVFAgTmV0d29yazEiMCAGA1UEAxMZQWRkVHJ1c3QgRXh0ZXJuYWwgQ0EgUm9v | |
dDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALf3GjPm8gAELTngTlvt | |
H7xsD821+iO2zt6bETOXpClMfZOfvUq8k+0DGuOPz+VtUFrWlymUWoCwSXrbLpX9 | |
uMq/NzgtHj6RQa1wVsfwTz/oMp50ysiQVOnGXw94nZpAPA6sYapeFI+eh6FqUNzX |
För eduroam i Linux:
Jag använde även Googles DNS servrar, vet inte om det faktiskt behövs eller inte men
I'm working on a compile to JS language and when tinkering with the emitter I found some strange performance difference A tuple type in the language is emitted as an JS array and a tuple type constructor is emitted as a function that returns it arguments as an JS array.
I tried these three outputs and discovered unexpectedly big performance differences. The only differences is how the tuple constructors are emitted, and the time is how long it taks for the compiler to build itself.
(...members) => members
: ~3.6 secondsfunction () {return Array.prototype.slice.call(arguments)}
~4.6 secondsI hereby claim:
To claim this, I am signing this object: