Use Singlish !

Post image

Why use boring programming language like python, typescript, C++, swift etc when you can use Singlish ?

Use Singlish 🇸🇬

Singlish is a culturally authentic, high-performance programming language designed for the vibrant spirit of Singapore. Built as a sophisticated Go-based transpiler, it allows developers to build scalable, production-ready systems using the familiar colloquialisms of the little red dot.

Why Singlish?

🚀 Performance without Compromise: Every Singlish line compiles 1:1 into optimized Go code. You get the speed of Go with the expressiveness of a Kopitiam conversation.

🚥 Concurrency as Nature Intended: Spin up goroutines with chiong and manage communication through lobang (channels). Built-in support for pass and catch semantics makes async logic feel like a breeze.

😤 The “Kena Scold” Error System: Tired of polite, cryptic compilers? Singlish gives it to you straight. If you code like a sotong, our “Insult Engine” will let you know in authentic Singlish diagnostics (e.g., “Wake up your idea”, “Eh bodoh”, “Catch no ball sia”, or “Simi sai is this?”).

📦 Go Interop: Effortlessly use any standard Go library or third-party package. dapao (import) what you need and start coding.

🇸🇬 Localized Semantics: From kampung (packages) to boss (main entry point), the language maps logical programming concepts to clear Singaporean metaphors.

📖 Language Reference

Singlish Keyword Go Equivalent Concept
kampung package Package definition
dapao import Import (Takeaway)
action func Function declaration
boss main Main entry point
got var Variable declaration
confirm const Constant declaration
auto iota Auto-incrementing constant
pattern type Type definition
nasi if If condition
den else Else condition
tikam select Select (Channel Ops)
see_how switch Switch statement
say case Case statement
tompang fallthrough Fallthrough statement
anyhow default Default case
flykite goto Goto statement
loop for For loop
all range Range iteration
cabut break Break loop
go continue Continue loop
balek return Return statement
nanti defer Defer execution
chiong go Spawn Goroutine
lobang chan Channel definition
pass <- Send to channel
catch <- Receive from channel
can true Boolean true
cannot false Boolean false
kosong nil Nil/Null
bolehtak bool Boolean type
nombor int Integer type
banyak int64 64-bit Integer
point float64 Float type
cheem complex128 Complex number
tar string String type
barang struct Struct definition
salah error Error type
gabra panic Panic
ki * Pointer
zhi rune Rune type
heng recover Recover from panic
kaki interface{} Interface
menu map Map definition
buat make Make built-in
upsize append Append built-in
buang delete Delete built-in
count len Length built-in
kwear close Close channel
gong fmt.Println Print to console
somemore && Logical AND
dun ! Logical NOT
or || Logical OR

Note: If your code contains errors, the compiler will provide feedback in the form of authentic Singlish diagnostics (e.g., “Wake up your idea”, “Blur like sotong”, “Eh bodoh”, “Catch no ball sia”, or “Simi sai is this?”).

📂 Examples (First 12)

  1. 01_hello_world.singlish
  2. 02_fizzbuzz.singlish
  3. 03_coffee_shop_queue.singlish
  4. 04_structs_and_interfaces.singlish
  5. 05_error_handling.singlish
  6. 06_arrays_slices.singlish
  7. 07_maps.singlish
  8. 08_defer.singlish
  9. 09_switch_case.singlish
  10. 10_panic_recover.singlish
  11. 11_pointers.singlish
  12. 12_constants.singlish

Explore all 88+ examples here.

This is the best in Singapore and some say JB,

Don’t Play, Play.

https://github.com/rickchow88/singlish/blob/main/README.md