Forgot your password?
typodupeerror

Comment Re:I don't currently use Rust (Score 1) 139

The way a language runtime stores unicode strings in memory is a different thing from the way the language interacts with byte data in the world. Python's approach is to treat unicode strings as essentially arrays of unicode code points. Slicing is all done based on the array position of the unicode code points. The way they are stored in memory is irrelevant to the programmer and abstracted away, except that the programmer still has to be aware of unicode's many warts such as pairs..

Under the hood Python stores them in memory as UCS-32, UCS-16, or ASCII depending on the string's contents. None of that matters. What does matter is that when you want to send unicode to the world, you encode it to bytes using whatever scheme you require. The default if not specified is UTF-8. While reading data in, you must decode the data, telling the .decode() method what scheme to use if it's not UTF-8.

Python strings are also immutable, so they are fundamentally different than the way other languages handle strings.

Comment Re:I don't currently use Rust (Score 1) 139

Nonsense. Modern C++-isms often result in extremely fast, optimized code. For some good examples, see this presentation about using C++17 to generate fast 6502 code: https://www.youtube.com/watch?... Of course this presentation is also a good one to show you why you'd rather not use C++17 at all. But for reasons other than efficient and fast binary code.

Comment Re:More pointless space junk (Score 4, Informative) 126

All true, but there is a measurable increase in pollution in the upper atmosphere now, some from launches, and most from all the satellite constellations burning up all the time. It's not as if these satellites just burn up to nothing. They leave behind all sorts of metals in the upper atmosphere, especially aluminum and magnesium compounds. It's a bit reckless. From what I read some of these particles might act as cooling agents, so hey it's all good. Nevermind the kerosene soot that lingers for years in the upper atmosphere after every spaceX launch. And other compounds damage ozone. We really have no idea how these effects will play out.

Comment Re: Say what you will re: free trade or protectio (Score 3, Insightful) 126

China's labor costs have been rising fast in recent years. I don't think you can say any longer that China produces cheap goods because their labor is cheap. Especially for the kind of technology goods that so many of us buy. Phones, laptops, gadgets, etc. Rather China has invested in advanced manufacturing technologies. And they make all their own tooling. They now have more experience building and operating electric vehicles and charging stations that we do.

I participated for a while in a small company that was trying to mass produce (domestically) a product for a specialized market. I learned all about saving pennies and removing as many parts as possible until it just barely functioned. The Chinese learned to make goods as cheaply as possible from us!

Comment Re:Not As Bad As It Sounds (Score 2) 71

No, this is not targeted at industrial control! This is for consumers programming arduino microcontrollers, or setting up drone autopilots, over USB serial cables. Web Serial definitely provides access to that. In fact there's a web-based Arduino IDE that requires no software download, thanks to Web Serial.

Comment Re:This Is Great News (Score 2, Informative) 71

Yes I'm happy to see this as well. It's funny to read the comments here on slashdot. It's readily apparent those who know what this API is for and those that don't! Indeed the Web Serial API makes it fast and easy for beginners to get into Arduino using the web-based Arduino cloud IDE, or even just to install Circuit Python or MicroPython to a microcontroller. Also good for interacting with and setting up IOT devices.

Comment Re:Possibly the only good thing... (Score 3, Interesting) 143

That is a lot of solar panels. Using the sheer number of panels theoretically required as an excuse to not do solar is silly. I have half a megawatt of solar on my land. It's placed on a just a few of acres of marginal, otherwise-unused land. Grass grows great still underneath them. Gotta start somewhere.

Most buildings should have solar of some kind on their roofs. In some parts of the world, solar water heaters have been mandated on roofs for decades. Data centers should have their roofs entirely covered in solar panels and a certain amount of battery storage should be included in the development plan. Vertical bifacial panels have a place too. As for carbon cost of manufacturing and installing solar, yes it is definitely there. So the choice is emitting some carbon once every thirty years to build solar, or continuously emitting orders of magnitude of carbon dioxide just burning the stuff (once and done)---the answer seems pretty clear to me!

Comment Re:GMT (Score 1) 141

Yes and China does that right now. All of China is one time zone, which happens to be the timezone that Beijing is in. The problem is that although they've eliminated timezones, they haven't eliminated the problems that came with timezones. Across China schedules are different to accommodate, you know, the sun. Someone in the east of china who wants to call someone in the west of china still has to be cognizant of the fact that in the west they go to work a couple of hours later than those in the east. Solves nothing, but it serves to remind people where the power of the CCP lies (in Beijing). Also to make the thing work, a lot of regions do their own non-official time that's more lined up with the sun.

Comment Re:Just do it. (Score 1) 141

I agree changing twice a year is stupid, but standard time is what most people want. The referendum in Alberta made that clear (which Smith completely ignores). They voted against full-time DST, but would have been completely in favor of full-time standard time.

If Smith gets her way there won't be a Canada to follow suit in the next couple of years. All because, as trump says, we're being treated so unfairly.

Comment Re:Think of the school children (Score 1) 141

Why do you think time zones have anything to do with electric banking transactions?

But yes you're right about infrastructure such as alarms. But we've already changed the DST start and end dates several times and every thing seems to have worked out. So dropping DST entirely, or sticking with DST entirely would be work fine I think.

I agree about uniformity across the nation being important.

Slashdot Top Deals

"And do you think (fop that I am) that I could be the Scarlet Pumpernickel?" -- Looney Tunes, The Scarlet Pumpernickel (1950, Chuck Jones)

Working...