Skip to content
pannous edited this page Mar 18, 2024 · 7 revisions

notes

the - operator

the - operator is actually one of the most difficult operators: it can act as

  • sign -3
  • sign-flip operation -i == i*-1
  • subtraction a-3
  • range age 12-15, 7000-6000 BC usually for unsigned

Figuring out which is which needs special care! -1-2-‖-3‖-4

abs norm

abs via float is still better than function calls as emitted by gcc -O3 !!

(func $abs (type 2) (param i32) (result i32) (local i32) local.get 0 local.get 0 i32.const 31 i32.shr_s local.tee 1 i32.add local.get 1 i32.xor)

wasm-c-api

/opt/wasm/wasmtime/crates/c-api/wasm-c-api/README.md no passing of structs by-value or post-C99 features in C API.

kotlin-abi

case "object": case "function": return getObjectHashCode(obj); case "number": return numberHashCode(obj); case "boolean": return obj ? 1231 : 1237; // interestingly, this is the same as java.lang.Boolean.hashCode() // https://stackoverflow.com/questions/3912303/boolean-hashcode

Long braces

  <div class="form-group"> Text
        
  div{ class:"form-group" "Text"

  div class:"form-group" { "Text"   	

Home

Philosophy

data & code blocks

features

inventions

evaluation

keywords

iteration

tasks

examples

todo : bad ideas and open questions

⚠️ specification and progress are out of sync

Clone this wiki locally