dmv.community is one of the many independent Mastodon servers you can use to participate in the fediverse.
A small regional Mastodon instance for those in the DC, Maryland, and Virginia areas. Local news, commentary, and conversation.

Administered by:

Server stats:

172
active users

#hare

3 posts3 participants0 posts today

Mother's Day UK - Sunday 30 March
Give original art this year - I have lots of affordable small drawings in a variety of nature subjects that will make thoughtful and unique Mother's Day gifts.
etsy.com/shop/TheWeeOwlArt

#FediGiftShop #ScottishArtist #MastoArt #CreativeToots
#AnimalArt #badger #Hare #Cat #Fawn #Moth #Butterfly #OriginalArt #Drawing #PenAndInk #ColourPencil #MixedMedia #Artwork #TraditionalArtist #ShopIndy #GiftIdeas #ArtShop #MothersDay #MothersDayGifts

"I see somebody now!" she exclaimed at last. "But he’s coming very slowly - and what curious attitudes he goes into!" ...

"Not at all," said the King. "He’s an Anglo-Saxon messenger - and those are Anglo-Saxon attitudes. He only does them when he’s happy. His name is Haigha." (He pronounced it so as to rhyme with "mayor.")

- Lewis Carroll, "Through the Looking Glass"
🎨 John Tenniel

Okay, I'll be honest, my biggest problem with #Hare so far is down to string handling: how the hell do I get a character by its index?

I _can_ pluck the u8 from the raw bytes and use that, but I want something utf8-friendly. A string should be returned that may be more than just one byte. This is not available in the standard library as far as I know.

That said, maybe I am thinking about strings in a far too GC-focused way? These are not just arrays and utf8 strings are not directly mappable to individual bytes. Perhaps in order to try to get character `n` I need to iterate through the string counting utf8-valid characters? Then return the next one at the position I want? It _seems_ like extra work, but maybe that is because languages like JS have hidden that complexity from me for so long.

I would love to be able to say `mystr[42]`, but there is a lot going on there 😅