- Zilliqa Ecosystem Grant Google Form
- EOS VC Google Form
- EOS VC email
- Protocol labs
- Tezos Google Form
- Figment Capital
- Feng shui Capital
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
/* | |
Test environment: | |
- node.js 10.5.0 | |
- macOS 10.13.5 | |
- MacBook Pro Late 2013 | |
- Ramda 0.25.0 | |
- RxJS 6.2.1 | |
Results (Babel transpiled): |
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
'use strict'; | |
// run: | |
// node --expose-gc reverse-string.js | |
/* | |
node v11.3.0, MacBook Late 2013 | |
Bench results: | |
[Naive reverse string] |
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
export function rotate(inputWidth: i32, inputHeight: i32, rotate: i32): void { | |
const bpp = 4; | |
let offset = inputWidth * inputHeight * bpp; | |
let i = 0; | |
// In the straight-copy case, d1 is x, d2 is y. | |
// x starts at 0 and increases. | |
// y starts at 0 and increases. | |
let d1Start: i32; | |
let d1Limit: i32; |
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
export function rotate(inputWidth: i32, inputHeight: i32, rotate: i32): void { | |
const bpp = 4; | |
let offset = inputWidth * inputHeight * bpp; | |
// In the straight-copy case, d1 is x, d2 is y. | |
// x starts at 0 and increases. | |
// y starts at 0 and increases. | |
let d1Start: i32; | |
let d1Limit: i32; | |
let d1Multiplier: i32; |
Данный FAQ был специально создан для телеграм сообщества https://t.me/WebAssembly_ru.
Он базируется на статье от Andre Weissflog, но так же содержит множество моих дополнений и мыслей, которые могут быть уже не слишком актуальны на момент прочтения. Прошу это учитывать.
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
const isOrdered = arr => !arr.some((v, i) => v == arr[i + 1]); | |
function swap(alphabets, idx1, idx2) { | |
var t = alphabets[idx1]; | |
alphabets[idx1] = alphabets[idx2]; | |
alphabets[idx2] = t; | |
return alphabets; | |
} | |
function permute(alphabets, startIndex = 0, endIndex = alphabets.length - 1) { | |
if (startIndex !== endIndex) { |
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
const fj = [ 1, 0.01123596, 1, 0.19101124, 0.05617978, 0.39325843, 0.01123596, 0.59550562, 0.21348315] | |
const wj = [-0.232961,-0.1212703, -0.29214973,-0.12772172, 0.21085705, 0.6024462, 0.07024019, 0.3625982, -0.53436423] | |
const zj = [-1, -0.01123596, 1, 0.19101124, -0.05617978, -0.39325843, 0.01123596, 0.59550562, -0.21348315] | |
function approxAbs(x) { | |
const B0 = wj[0] / (x + 1 - 1e-15); | |
const B1 = wj[1] / (x - zj[1]); | |
const B2 = wj[2] / (x - 1 + 1e-15); | |
const B3 = wj[3] / (x - zj[3]); | |
const B4 = wj[4] / (x - zj[4]); |
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
// tslint:disable-next-line:no-reference | |
/// <reference path="../node_modules/assemblyscript/index.d.ts" /> | |
@sealed @unmanaged | |
class Ge { | |
x: Int64Array; | |
y: Int64Array; | |
z: Int64Array; | |
t: Int64Array; |