social.linux.pizza is one of the many independent Mastodon servers you can use to participate in the fediverse.
A instance dedicated - but not limited - to people with an interest in the GNU+Linux ecosystem and/or general tech. Sysadmins to enthusiasts, creators to movielovers - Welcome!

Administered by:

Server stats:

1.3K
active users

Ludovic Archivist Lagouardette

Little dev sanity check, reboosts appreciated

Say I have a UTF-8 string, I parse the codepoints, split it where I find spaces, and then make new UTF-8 strings from those and print them. I will provide the string below.

How many runtime checks (equivalent to Rust "unwrap") do you expect happen?

The string is "In the xoshiro paper, it is recommended to initialize the state of the generators using a generator which is radically different from the initialized generators, as well as one which will never give the \"all-zero\" state; for shift-register generators, this state is impossible to escape from."

EDIT: we are in an environment where allocations CAN fail and MUST be checked