So a string in programming, say "poopypants", is effectively a list of characters (and a character is effectively a positive number). You can go through that list and get p, o, o, p, etc.
UTF-8 is... more complicated. "poopypants" has one byte per character. UTF-8 has a variable-byte length. And it's a pretty goddamn smart system.
If it's a single-byte UTF-8 character, the byte starts with zero, giving us 0xxxxxxx, or 7 bits for the information, allowing characters 0-127.
If we want a two-byte UTF-8 character, we use the first three bits set to 110xxxxx, and then another byte set to 10xxxxxx, and we can stick characters 128-2047 in there.
If we skip ahead to a four-byte UTF-8 character, we get:
11110xxx 10xxxxxx 10xxxxxx 10xxxxxx
Which lets us store characters 65536 to... whatever the fuck that ends up at. Enough characters.
Mojo_JojoWe are only now beginning to understand the full power and ramifications of sexual intercourseRegistered Userregular
The wedding had a rocky start with being super Catholic and a man rambling in heavily accented French for a very long time. Then there was an awkward arrival at the reception and the booze not being served immediately (frankly, somebody should have lost their job and a finger for this).
After that we've had a strong uptick in things. Foie gras candy floss and a good selection of other canapes, a choice of champagnes, a bouncy castle and the choreographed dance routine even worked well
Solid effort
Also I'm not the most confused foreigner here. Some relation is studying in the states and has brought his American lady partner who speaks no French at all
Homogeneous distribution of your varieties of amuse-gueule
I dramatically underestimated how much work comes with schedule writing. The actual day where I write schedules is fine but now I'm getting fifty goddamned requests and complaints a day.
I dramatically underestimated how much work comes with schedule writing. The actual day where I write schedules is fine but now I'm getting fifty goddamned requests and complaints a day.
Poop
It's because you are open to try to be accommodating and reasonable. At a certain point you have to figuratively wave your dick around or it becomes too annoying. Just set the policy as all requests must be made 2 days before schedule is posted, requests must be made in writing. Then stick to it. You kinda gotta be a dick about it. You didn't send a written request.'suck it up.
Someone (maybe a few people) will challenge you the first couple of weeks, and someone will call in sick as a fuck you. If someone calls in sick give them the next week off without pay because you are concerned with them making customers sick.
What I was getting at there is that our fleshy meat-brains think of letters and numbers as single entities, a dollar sign, $, is a single character and 🔥 is a single character. But those "single characters" can only have the values 0-255 that we store in a byte.
So let's test things. A simple loop that prints the hex values of a single UTF-8 character:
str := []byte("$")
fmt.Printf("hex bytes: ")
for i := 0; i < len(str); i++ {
fmt.Printf("%x ", str[i])
}
For the dollar sign, we get:
hex bytes: 24
And for our woke thing:
hex bytes: f0 9f 94 a5
So that emoji is one character, but it's stored in five bytes.
That's problematic for frog ramming when you need to do things like loop through the characters of a string. Is it a classic string with just ASCII codes, one byte per character? Or does it contain UTF-8 spread across a variable number of bytes that will look like hot shit if we loop through them one byte at a time and treat those as ASCII?
For example, here's the flame printed as single-byte ASCII.
I dramatically underestimated how much work comes with schedule writing. The actual day where I write schedules is fine but now I'm getting fifty goddamned requests and complaints a day.
Poop
Set some rules and then enforce them
Use your ban hammer judiciously
+6
Options
syndalisGetting ClassyOn the WallRegistered User, Loves Apple Productsregular
I dramatically underestimated how much work comes with schedule writing. The actual day where I write schedules is fine but now I'm getting fifty goddamned requests and complaints a day.
Poop
Set some rules and then enforce them
Use your ban hammer judiciously
Be as unforgiving as a PA mod showing someone they have opportunities for growth in sing sing
0
Options
JacobkoshGamble a stamp.I can show you how to be a real man!Moderatormod
one time it got cold enough outside for water to freeze (outside) here and i went out to my car one morning and there was this stuff called fog on my window?
and so my defroster wasn't making the fog go away IMMEDIATELY (this happens when it is cold sometimes? idk) I made a poor decision and decided to spray my windshield washer because this is how you make fog go away normally (clearly)
and so the water actually froze to my windshield and made ice (like your freezer does but instead of cubes it was a thin layer of ice on my windshield! I know! Shocking!)
and i had to get out of the car and scrape the ice off with a credit card rip me i froze to death this is my ghost posting the end
i cry ever teim
+7
Options
VanguardBut now the dream is over. And the insect is awake.Registered User, __BANNED USERSregular
Most C-style languages have a data type called "char" that can store a single character. A char is effectively an alias for a byte, ie an integer between 0 and 255.
Go has its own "rune" data type, that is an alias for an integer between 0 and 2^32-1. It's essentially there as a char for Unicode - it's a single logical element, it's just contained in a bunch of bytes.
I dramatically underestimated how much work comes with schedule writing. The actual day where I write schedules is fine but now I'm getting fifty goddamned requests and complaints a day.
Poop
It's because you are open to try to be accommodating and reasonable. At a certain point you have to figuratively wave your dick around or it becomes too annoying. Just set the policy as all requests must be made 2 days before schedule is posted, requests must be made in writing. Then stick to it. You kinda gotta be a dick about it. You didn't send a written request.'suck it up.
Someone (maybe a few people) will challenge you the first couple of weeks, and someone will call in sick as a fuck you. If someone calls in sick give them the next week off without pay because you are concerned with them making customers sick.
Unfortunately, my store manager honors effectively every request from people in school (so a good third of my employees). He is real big on it. So I have to accommodate anything to do with classes or school sports or whatever. And if I don't cover those shifts they'll be nightmares. Qq.
Got my tickets for The Dark Tower movie. Interestingly it airs at 7:19 pm on Thursday. Not 7:20, 7:19. Cute reference, if intentional.
But only one theater in my area was showing it which is kind of weird. None of the more local theaters have it, I have to drive down to boulder. Which is fine, but troubling since I'm hoping this movie does well even if it's not good.
the inclusion of peanuts suggest that they add peanuts to the penuche, but it's not peanut butter
I mean, its peanut butter in the same way jif or peter pan is peanut butter. extra HFCS is added and stuff is done to keep the oil from separating but it is peanut butter.
Reeses pieces are a completely different thing, which is obvious if you bite one in half, and then bite a pb cup in half. One has actual creamy pb stuff, and one is basically a light fudge
SW-4158-3990-6116
Let's play Mario Kart or something...
the inclusion of peanuts suggest that they add peanuts to the penuche, but it's not peanut butter
I mean, its peanut butter in the same way jif or peter pan is peanut butter. extra HFCS is added and stuff is done to keep the oil from separating but it is peanut butter.
Reeses pieces are a completely different thing, which is obvious if you bite one in half, and then bite a pb cup in half. One has actual creamy pb stuff, and one is basically a light fudge
Wholefoods sells some pb cups made by I think Justin's? They are a thousand times better than Reeses.
Posts
oh wow I never realized
thanks Trace
What? I am lit woke af, fam.
Always 👏 Be 👏 Unicoding 👏
reality is an illusion
That would explain a lot about the texture I suppose
I was reading up on UTF-8 to figure out how Go handles it, and it's pretty interesting.
Doubly so because Rob Pike co-created Go and was involved in designing UTF-8.
apparently it's something called penuche, which is a relative of fudge
interestingly, it has no peanuts in it
We're gathered here today...
UTF-8 is... more complicated. "poopypants" has one byte per character. UTF-8 has a variable-byte length. And it's a pretty goddamn smart system.
If it's a single-byte UTF-8 character, the byte starts with zero, giving us 0xxxxxxx, or 7 bits for the information, allowing characters 0-127.
If we want a two-byte UTF-8 character, we use the first three bits set to 110xxxxx, and then another byte set to 10xxxxxx, and we can stick characters 128-2047 in there.
If we skip ahead to a four-byte UTF-8 character, we get:
11110xxx 10xxxxxx 10xxxxxx 10xxxxxx
Which lets us store characters 65536 to... whatever the fuck that ends up at. Enough characters.
After that we've had a strong uptick in things. Foie gras candy floss and a good selection of other canapes, a choice of champagnes, a bouncy castle and the choreographed dance routine even worked well
Solid effort
Also I'm not the most confused foreigner here. Some relation is studying in the states and has brought his American lady partner who speaks no French at all
Poop
Someone (maybe a few people) will challenge you the first couple of weeks, and someone will call in sick as a fuck you. If someone calls in sick give them the next week off without pay because you are concerned with them making customers sick.
What I was getting at there is that our fleshy meat-brains think of letters and numbers as single entities, a dollar sign, $, is a single character and 🔥 is a single character. But those "single characters" can only have the values 0-255 that we store in a byte.
So let's test things. A simple loop that prints the hex values of a single UTF-8 character:
For the dollar sign, we get:
And for our woke thing:
So that emoji is one character, but it's stored in five bytes.
That's problematic for frog ramming when you need to do things like loop through the characters of a string. Is it a classic string with just ASCII codes, one byte per character? Or does it contain UTF-8 spread across a variable number of bytes that will look like hot shit if we loop through them one byte at a time and treat those as ASCII?
For example, here's the flame printed as single-byte ASCII.
I mean you always have the Armond White factor
thanks National Review for putting him back on the cirtics list.
Set some rules and then enforce them
Use your ban hammer judiciously
the cups have peanut butter in them.
the pieces have penuche in them
Let's play Mario Kart or something...
i cry ever teim
nope
ingredients:
the inclusion of peanuts suggest that they add peanuts to the penuche, but it's not peanut butter
Go has its own "rune" data type, that is an alias for an integer between 0 and 2^32-1. It's essentially there as a char for Unicode - it's a single logical element, it's just contained in a bunch of bytes.
I love it
the "no true scotch man" fallacy.
Unfortunately, my store manager honors effectively every request from people in school (so a good third of my employees). He is real big on it. So I have to accommodate anything to do with classes or school sports or whatever. And if I don't cover those shifts they'll be nightmares. Qq.
But only one theater in my area was showing it which is kind of weird. None of the more local theaters have it, I have to drive down to boulder. Which is fine, but troubling since I'm hoping this movie does well even if it's not good.
Another word for it is "panocha."
"Panocha" is also a slang term for "pussy."
Which is the sort of thing you learn when you go to a hispanic-majority middle school in central California.
the "no true scotch man" fallacy.
Choose Your Own Chat 1 Choose Your Own Chat 2 Choose Your Own Chat 3
so at what point do they stop being peanuts and start being peanut butter?
are reese's cups sandwiches?
I mean, its peanut butter in the same way jif or peter pan is peanut butter. extra HFCS is added and stuff is done to keep the oil from separating but it is peanut butter.
Reeses pieces are a completely different thing, which is obvious if you bite one in half, and then bite a pb cup in half. One has actual creamy pb stuff, and one is basically a light fudge
Let's play Mario Kart or something...
basically every word that begins with a p is slang for genitals if you say it right.
president
for example
Wholefoods sells some pb cups made by I think Justin's? They are a thousand times better than Reeses.
Bah, bad language.
he's staring at my keyboard right now, eyes huge, considering whether or not to pounce on my hands
I'd love it if you took a look at my art and my PATREON!
hey babe come over here and grab me by the president :winky: