Xah Talk Show 2023-10-11 Why C Sucks, Hexadecimal and Color Syntax, Longest English Word, Complex Chinese Character

xts 2023-10-11 NzFS
xts 2023-10-11 NzFS

most complex Chinese character

xts 2023-10-11 longest word
xts 2023-10-11 longest word
xts 2023-10-11 chinese simplified char F2MF
xts 2023-10-11 chinese simplified char F2MF
xts 2023-10-11 chinese simplified char
xts 2023-10-11 chinese simplified char
xts 2023-10-11 chinese dragon
xts 2023-10-11 chinese dragon
xts 2023-10-11 chinese 3thunder
xts 2023-10-11 chinese 3thunder

why C sucks, number bases, and industrial hexadecimal sucks

;; emacs lisp

;; literal expression for hexadecimal
(eq #x80 128)

;; literal expression for hexadecimal. general syntax
(eq #16r80 128)
// JavaScript

// literal expression for hexadecimal number
console.log(0x80 === 128);

// convert hexadecimal to decimal
console.log(parseInt("80", 16) === 128);

// convert decimal to hexadecimal
console.log((128).toString(16) === "80");
(* WolframLang *)

(* literal expression for hexadecimal *)
16^^80 === 128

(* literal expression for base 17 *)
17^^g === 16

(* literal expression for base 2 *)
2^^1111 === 15

(* show a number in specific base *)
BaseForm[ 128, 16 ]
xts 2023-10-11 hexadecimal KPTB
xts 2023-10-11 hexadecimal KPTB
xts 2023-10-11 WolframLang number base
xts 2023-10-11 WolframLang number base
xts 2023-10-11 WolframLang color syntax jD5c
xts 2023-10-11 WolframLang color syntax jD5c
xts 2023-10-11 lisp hexadecimal
xts 2023-10-11 lisp hexadecimal