Ensure our operating system is entirely up to date:
sudo apt-get update
sudo apt-get upgrade
;Header and description | |
(define (domain restaurant) | |
;remove requirements that are not needed | |
(:requirements :typing :strips :fluents :durative-actions :timed-initial-literals :typing :conditional-effects :negative-preconditions :duration-inequalities :equality) | |
(:types waiter group table) | |
; un-comment following line if constants are needed |
(define | |
(problem waiter-service) | |
(:domain restaurant) | |
; objects with types | |
(:objects | |
w1 w2 - waiter | |
g1 g2 - group | |
t1 t2 - table | |
) |
(define | |
(problem waiter-service) | |
(:domain restaurant) | |
; objects with types | |
(:objects | |
w1 w2 w3 - waiter | |
g1 g2 g3 g4 g5 g6 g7 g8 - group | |
t1 t2 t3 t4 t5 - table | |
) |
package main | |
import ( | |
"fmt" | |
"reflect" | |
) | |
func echo[T any](v T) { | |
fmt.Printf("%v (%s)\n", v, reflect.TypeOf(v)) | |
} |
package main | |
import "fmt" | |
func bubbleSort[T int32 | float32](input []T) []T { | |
swapped := true | |
for swapped { | |
swapped = false | |
for i := 0; i < len(input)-1; i++ { | |
if input[i] > input[i+1] { |
package main | |
func main() { | |
println("Hello my friend!") | |
} |
<script> | |
loadWasm("pos-tagging-service.sample1.wasm") | |
.then((wasm) => { | |
console.log("main.wasm is loaded 👋"); | |
}) | |
.catch((error) => { | |
console.log("ouch", error); | |
}); | |
</script> |
<div class="center"> | |
<h1>Webassembly tutorial<h1> | |
<h2 id="description"></h2> | |
</div> |