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 std::env; | |
fn main() { | |
let name = env::var("name").unwrap_or("world".to_string()); | |
println!("Hello, {name}!"); | |
} |
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
#[no_mangle] | |
pub fn add(left: u64, right: u64) -> u64 { | |
left + right | |
} | |
#[no_mangle] | |
pub fn four() { | |
let value = add(2, 2); | |
println!("2 + 2 = {value}"); | |
} |
- Project site
- Quick introduction
- High-level goals
- Initial announcement
- Tutorial: explaining how to compile C/Rust code into WASI
- WASIの話
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
type modA = typeof import('./module-a'); | |
function call(mod: modA) { | |
const src = 'hello'; | |
const result = mod.id(src); | |
console.log(`${src} -> ${result}`); | |
} | |
async function start() { | |
console.log('start'); |
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 withIndex(list){ | |
for(let i = 0; i < list.length; i++){ | |
if(i % 5 !== 0){ | |
list[i].value = list[i].value * 2; | |
} | |
} | |
} | |
function withForEach(list){ | |
list.forEach((item, index) => { |
We are JavaScripters!は「安心して発信できる」環境を大切にしています。マサカリを禁止しているのは、この環境を保つためです。2周年目を迎えるにあたり、より安心して発信できる会であり続けるため、アンチハラスメントポリシーを定めました。
以下に挙げる行為は、代表的なハラスメント行為です。会場内だけでなく、SNSやブログなどでWe are JavaScripters!について発信される際にも、ハラスメント行為がないようにご留意ください。なお、ハラスメント行為はこれに止まるものではありません。
- ジェンダー、性自認やジェンダー表現、性的指向、障碍、容貌、体型、人種、民族、年齢、宗教あるいは無宗教についての攻撃的なコメントをすること
- 公共のスペースで性的な画像を掲示すること。
- 脅迫、ストーキング、付きまとい。または、それらを計画すること
- 不適切な身体的接触
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
#[wasm_bindgen] | |
pub fn count(max: i32) -> i32 { | |
let mut res = 0; | |
for _i in 0..max { | |
res = res + 1; | |
} | |
res | |
} |
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 example = ["+", 1, 2, 3]; | |
const builtin = { | |
"+": (a, b) => a + b, | |
}; | |
const resolve = symbol => builtin[symbol]; | |
const isUndefined = value => value == null; | |
const car = list => list[0]; |
Recent years, we are building large scaled apps with Web technlogies. They consist of more millions lines of JavaScript code and various kind of assets to be managed by JS programs. This trend has continued since re-discovery of AJAX and Web APIs' evolution accelerate it.
In this context, we need the technologies which allows us to build and run such large scaled Web apps efficiently.
NewerOlder