lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> This way every production code used in Nginx, Cloudflare, every editor plugi$

Actually, I would say, please _don't_ write it in Rust - or, if you do,
make sure you don't buy into Rust's "UTF-8 is the One True Character
Encoding" dogma.  It is hellishly difficult to use Rust for anything
involving strings without hardwiring a mandate that the strings be
UTF-8 strings into the result; you end up having to reimplement
whatever fraction you want of the string support for byte strings.  (I
tried to write a file-manipulation program in Rust and, being unwilling
to make it fall over on filenames that aren't UTF-8, ended up learning
more than I wanted to about this.)

Lua treats strings as octet strings rather than mandating a character
set or encoding - providing, but not imposing, UTF-8 support.  It would
be sad to see such an extension language lose that.

/~\ The ASCII				  Mouse
\ / Ribbon Campaign
 X  Against HTML		mouse@rodents-montreal.org
/ \ Email!	     7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B