You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Instantly share code, notes, and snippets.
toni dy
tonidy
Just a tech tinkerer ⚡ | FOSS enthusiast | Backend dev on @dotnet → now playing with @golang 🧑💻 | follow @toni_d_y
*ID: tukang bikin kode
Create a playful, gamified landing page for an Indonesian food business selling "Ayam Rempah" (spiced chicken).
Concept: A short interactive riddle/quiz game where users guess the spices used in the chicken. The game is simple, fun, and can be completed in under 30 seconds.
Style:
Playful, humorous, and appetizing
Warm colors (orange, red, brown)
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
{"front": "What is the command to create a new Go module?", "back": "go mod init <module-name>"}
{"front": "How do you declare a variable with explicit type in Go?", "back": "var name string = \"value\" or var name string"}
{"front": "What is the short variable declaration syntax in Go?", "back": "name := \"value\" (type is inferred, only works inside functions)"}
{"front": "How do you define a function in Go?", "back": "func functionName(param type) returnType { ... }"}
{"front": "What are the basic data types in Go?", "back": "bool, string, int, int8, int16, int32, int64, uint, uint8, uint16, uint32, uint64, byte, rune, float32, float64, complex64, complex128"}
{"front": "How do you create a slice in Go?", "back": "Using make: s := make([]int, length, capacity) or literal: s := []int{1, 2, 3}"}
{"front": "What is the difference between array and slice in Go?", "back": "Arrays have fixed size [5]int, slices are dynamic []int. Slices are references to underlying arrays."}
Sebelum membahas format file, penulisan singkat WebAssembly yang benar itu Wasm bukan WASM, ini berdasarkan website resmi https://webassembly.org. Sayangnya orang-orang udah terlanjur pada pake WASM.
Seperti yang dibahas pada post [1], Wasm menggunakan format binary, disimpan dengan file extension .wasm, sedangkan WAT format teks dengan file extension .wat. Analoginya kayak gini, kalau .docx itu binary file, sedangkan .txt itu text file maka, text file bisa dengan mudah kita buka dengan aplikasi text editor (contoh: notepad di Windows/text edit di MacOS/KWrite di Linux).
Binary file wasm ini ngga bisa dibaca langsung dengan text editor, makanya dibutuhkan format lain, disitu hadirlah WAT.
Mungkin masih bingung yak? Wajar dong, karena baru pertama kali kenalan dengan wasm maupun wat. Biar kamu ngga bingung coba pegang tiang listrik, ehh lihat gambar di bawah ya.
TL;DR:
WebAssembly lahir untuk solve performa JavaScript di browser. Tapi dengan WASI, sekarang jadi teknologi portable & secure yang bisa jalan dimana aja. Think of it as "universal binary format" untuk era cloud native.
Ketika JavaScript Mulai Kewalahan: Kisah Lahirnya WebAssembly
Apakah kamu inget pertama kali main game 3D di browser? Atau pas buka Google Maps versi web di tahun 2015? Mungkin kamu mikir "wah keren nih, lancar banget di browser". Tapi di balik layar, para developer yang bikin aplikasi itu lagi "perang" sama keterbatasan JavaScript.
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
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
"summary": "Prolific inventor and businessman known for developing many devices that greatly influenced life around the world, including the phonograph, the motion picture camera, and the electric light bulb.",
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
"summary": "Prolific inventor and businessman known for developing many devices that greatly influenced life around the world, including the phonograph, the motion picture camera, and the electric light bulb.",
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
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
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