* Posts by Chris Gray 1

335 publicly visible posts • joined 8 Jul 2009

Page:

Ubuntu 21.10: Plan to do yourself an Indri? Here's what's inside... including a bit of GNOME schooling

Chris Gray 1
Stop

Sounds bad

What is an "Activity View"? I'm thinking its not something I want. I've never used multiple workspaces, so hopefully all that stuff for them will just vanish 100% from the screen.

I've been an Ubuntu user for many years. I spend much of my day sitting here, programming, testing, debugging. My screen is a 1920 x 1080 monitor rotated to portrait mode. I have two permanent xterm windows - one on the left where I run stuff, do email with Alpine, etc. The one on the right runs mouseless Gnu Emacs. There I do my editing, compiling, etc. That leaves a bit of space on the right where I have Mate's panel. It has icons for a few status indicators, common program launchers (e.g. Firefox), and my active programs.

I have an incredibly poor memory, so don't even try to remember key combos or mouse waves. I have no interest in the system scanning my stuff, so turn off the thing that nightly scans drives and builds an index. I start programs from menus or commands, not from some goofy "search" thing.

Tried KUbuntu for a while a few years back. Hated the "Peanut" thing I couldn't get rid of - never even understood what it was for. Couldn't understand their complicated settings filters, etc. Settled on Ubuntu Mate - comes with customizable menus which remind me what the weird names of needed-but-not-commonly-used programs are. So, will there be something usable for me, or am I doomed to continual frustration and annoyance?

Computer scientists at University of Edinburgh contemplate courses without 'Alice' and 'Bob'

Chris Gray 1
Childcatcher

Totally American

For testing purposes, I've used the same set of names for a *long* time, and am unlikely to change:

Fred Flintstone

Wilma Flintstone

Pebbles Flintstone

Dino

Barney Rubble

Betty Rubble

Bam-Bam Rubble

Often without the family names.

Facebook, WhatsApp, Instagram deplatform themselves: Services down globally

Chris Gray 1
Meh

Re: Scuttlebutt in the tech community on twitter is that it's a BGP issue.

If so, the problem has spread somewhat. Here in Western Canada on Shaw cable, there were temporary issues for a few minutes - couldn't get to the government weather site, Slashdot or El Reg. I actually had to do some work!

Hmm. I'd report my lunch too, but since I've never used Facebook, other than when I could follow links to pics, I guess that would be wrong.

Calculating the big picture: Future HPC efforts will soon see off its von Neumann past

Chris Gray 1

Re: A but no I

No, I don't mean a generalist AI. With current approaches that would be quite ambitious, since likely you would have to merge *many* different AI datasets, likely running several different ways (number of layers, specific details of processing, etc.) Either that or figure out how to classify situations to feed questions into, and get answer from, those many independent sub-AI's. But, those problems can be solved by a couple more AI's, right?

Because these number-based AI systems cannot guarantee that their answer is correct, they are, to my mind, not as good as programmed solutions which *can* guarantee correctness within their domain. I want those guarantees for something which is to replace human brains at tasks of critical importance. What good is an answer that is perhaps even more wrong, but in a way that a human supervisor might not even recognize?

I had forgotten about AlphaGo, but note that it also is a relatively small domain. It is also a domain which *can* be done completely accurately with straight computation. As in the example of three-body problems, the numeric approach can be used as a pointer to a possible solution, but I would want that solution validated using the actual rules (whether they be the game rules of Go or the rules of gravitation, inertia, etc.)

I agree with your thought about this stuff yielding a more "alien" intelligence if it is pushed far enough. But, do you want critical decisions about your life made by such an intelligence, with no human oversight?

Chris Gray 1
FAIL

A but no I

As AC mentioned, the current "AI" is Artificial to be sure, but is not Intelligent. It's statistical pattern matching. It can produce good results in some areas. But, answers it produces cannot be guaranteed to be correct. We've all read of examples of "AI" producing ridiculous answers because of unnoticed problems in training data.

An example of something with computers that actually has a kind of understanding is Terry Winograd's blocks world, from decades ago. But, that kind of understanding requires lots of work to create, and is infeasable for more than a limited domain. Current "AI" is usually only valid in a limited domain as well, and with it, you usually can't find out *why* it makes a "decision". There has been a bit of work on that recently.

Now, it is true that we don't really know how the human brain (which we grant the label "intelligent") reaches its decisions either. And it can be just as fooled/deluded by false or misleading input. So, how is the current "AI" any worse? For one, the human brain typically has a far far wider set of inputs ("experience"), and so has better "understanding", whatever that is.

I don't know about the rest of you, but I have no confidence in turning over anything important to an "AI" system that might be almost as good as a human brain. If I'm to turn over something important to computers, I want them to be much *better* than humans at whatever that task is. I am sceptical that current "AI" can ever achieve that. Note that areas where computers are already better than humans, e.g. chess playing, are very limited domains, and don't rely on statistical pattern matching.

The Register speaks to one of the designers behind the latest Lego Ideas marvel: A clockwork solar system

Chris Gray 1
Thumb Up

Supported

I just went and supported this. I don't buy many Lego sets anymore, but this one is a must.

I see comments here that range from "Lego will make more specialty pieces" to "It's not accurate enough" (paraphrased). Well, given that the pair built an actual version, clearly it can be done with the current range of Lego pieces.

I would guess that to do this properly, Lego would have to produce the balls for the planets and the sun with painted-on detailing. You can't do that with decals. If they have to do that anyway, they *might* introduce a new ball size, but that would involve creating a new mold, and they likely wouldn't do that unless other upcoming sets could make use of similar pieces.

I wonder what the gear count is - looks pretty high, from the video.

US Air Force puts Godzilla in charge of autonomous warfare effort with Project Kaiju

Chris Gray 1
Facepalm

Names Matter!

Hey, my copy of "Gamera vs Barugon" spells it with a "U", not an "A". Damn military can't get anything right!

100 minues, copyright 1965, "the second entry in the Dajei Studios' monster series"

I suppose its possible that whoever designed the disk cover is the one who got it worng.

....

Oooooh. Checking Wikipedia ... Baragon "Not to be confused with Barragon or Gamera vs. Barugon." Sigh.

Compromise reached as Linux kernel community protests about treating compiler warnings as errors

Chris Gray 1

Not so simple

Some points and examples from an active compiler writer...

Take a look at the system include files on Linux. Huge amounts of conditional compilation, special-use macros, etc. Even finding where a given struct is defined can be quite hard, and some of them will have multiple definitions, depending on CPU, SysV versus ATT, Linux versus BSD versus HPUX versus AIX, etc. etc. I bow to the folks who maintain that stuff - its not something most programmers are capable of. Doing it all without inducing warnings in any circumstance has to be exceedingly difficult.

Distinguishing between development build and production build makes sense to me. Most of my source files are not dependent on stdio, so I don't include stdio.h or stdlib.h - just my own headers, and maybe string.h, typically. But, when chasing some kinds of problems, I need to have debug output, and that is simplest using printf. So, I can get reams of warnings from the compiler about those uses. I'm used to them. When I've found the problem and am checking in sources, all of those printfs will have been deleted.

I've put some warnings into my compiler that many don't have, e.g. dealing with uses of constant expressions having no effect. But, I want to be consistent in my usage. So, for some data sizes and the higher warning levels, I get warnings. So, I've added the ability to temporarily lower the warning level around a bit of code, then restore it after that code. Comments mandatory there, of course. I imagine similar things can happen with other compilers and languages.

So, I don't have -Werror, but I do have -Wall. And note that, annoyingly, -Wall with gcc does not enable *all* warnings. I haven't looked at them for a while, but mine are currently:

-Wall -Wpointer-arith -Wstrict-prototypes -Winline \

-Wundef -fno-exceptions -MMD -funsigned-char -fno-strict-aliasing \

-Wstrict-aliasing -fshort-enums -Wno-char-subscripts

Apple is about to start scanning iPhone users' devices for banned content, professor warns

Chris Gray 1
Stop

Bandwidth!

I don't own any Apple devices (surprisingly, I'm OK with the walled garden, but can't afford them and since I run Linux, which has poor support for getting images out...), and it now looks like I never will.

My current cell-phone is an 8-year old Samsung S4, and my data plan is tiny by most standards. Any attempt by Google to do this sort of thing will result in me going back to a "feature phone", for purely financial reasons.

What to do with our leftover Saturn V Lego? Why, build another rocket, of course

Chris Gray 1
FAIL

Re: A typewriter ? Really ?

Out of interest, I went to see what new parts the set has (parts that appear only in the typewriter set, possibly only in that set in a specific colour). Look for the "NEW" here:

https://www.bricklink.com/catalogItemInv.asp?S=21327-1

The sticker sheet is new. Big surprise. All of the keycaps are new. That would be the biggest expense in producing that set. No other part is unique to that set, but the curvy pieces used on the top front are new in the "sand green" colour. A couple of others first appeared in the set in a particular colour, but are also used elsewhere.

For example, the 1x1 brick with axle hole is new in its colours, but it is in no way a special piece. The Technic folks will like it - it will fit in places where the 1x2 brick with axle hole won't, and it aligns the axle on a stud boundary instead of a half-stud boundary.

Chris Gray 1

Re: A typewriter ? Really ?

A friend of mine is a Bricklink seller. His comment is that he will likely get a few copies of the typewriter set for the parts to sell in his store. True Lego builders can find strange uses for virtually any part, quite different from its use in any Lego set.

I bought the set myself. The final product looks good, and has some quite interesting Technic mechanisms within it. The build is a tricky one - I don't recommend it for beginners.

And no, it is not a working typewriter, but the carriage moves when you press a key, and a ratchet mechanism is used to load the springs that move the carriage. And you can load paper into the roller mechanism.

Giant Tesla battery providing explosion in renewable energy – not as intended

Chris Gray 1
Facepalm

Re: It's not online yet

I hope everyone understands that the above is a humorous reply, and not to be taken seriously. Follow the link instead.

11-year-old graduate announces plans to achieve immortality by 'replacing body parts with mechanical parts'

Chris Gray 1

That would be a handfull.

Dell SupportAssist contained RCE flaw allowing miscreants to remotely reflash your BIOS with code of their creation

Chris Gray 1
Meh

Optional

Hmm. My Dell 2000 from 2013 seems to be too old to be vulnerable. F2 brings up something quite different from what the info on the Dell site says. Oh well, due to paranoia, I never have networking on while it is booting. At least, the cable isn't plugged in, and I very rarely use it with Wifi (it's a foot from the router), so that's turned off at the Ubuntu Mate level. It still has Windows 8.1 on it, which I haven't deliberately booted for a couple of years, and which I never let onto the internet. Paranoid? Me? Dang Windows rewrites the boot order stuff on every boot, whereas Linux only does it on an install, so I have to be quick with the F-key that changes boot order...

BadAlloc: Microsoft looked at memory allocation code in tons of devices and found this one common security flaw

Chris Gray 1
Unhappy

Re: Need trapping

The description in volume 3 of the AMD64 architecture programmer's manual:

Using this instruction in 64-bit mode generates an invalid-opcode exception.

So, no go. They also removed the range-check instruction. Sigh.

Chris Gray 1
Facepalm

Need trapping

The CPU vendors really, really need to have variants of things like integral add, sub, multiply that trap on overflow/underflow. Of course they need non-trapping versions too. If a language designer wants to detect trapping, they have to do multiple instructions to do it. Typically, the overflow *is* detected by the hardware, and sets the overflow condition code bit. Even a "trap on overflow" would be sooo useful. Some have them, I believe, so good on them.

There seems to be a rush to Rust for programming. Does it have trapping arithmetic operations?

Lego's Space Shuttle Discovery: No trouble with Hubble, but the stickers will drive a grown man to insanity

Chris Gray 1
Thumb Up

Re: Lego Technic 8480

Yes, it is very nice. I haven't put mine together for some time - perhaps it is getting time to do so again. It's another of the wonderful sets with an electric motor and a transmission with a "gearshift" to control what is getting powered. Plus the lever that raises and lowers all of the landing gear together. And, it uses one of the fairly rare "micro motors" to allow opening/closing of the solar panels on the satellite, as it is attached to the Canadarm. Others may prefer the pulsing light coming from the exhausts, courtesy of some optical tubing and a powered distributor.

There *are* some available on Bricklink, if you care to spend the money:

https://www.bricklink.com/v2/catalog/catalogitem.page?S=8480-1#T=S&O={%22iconly%22:0}

Sitting comfortably? Then it's probably time to patch, as critical flaw uncovered in npm's netmask package

Chris Gray 1
Facepalm

ancient history

I believe the leading-zero-for-octal convention came from early DEC assemblers. Since the first C compiler was for DEC machines, and it generated assembler output, having C use the same convention was the obvious choice.

In my programming languages (weird hobby), I've used 0b => binary, 0o => octal, 0x => hexadecimal, with no leading zero defaulting to decimal. And sometimes 0t => decimal. I like things explicit.

Some early assemblers/languages also used tags at the *end* of numbers to indicate the base. So, you could have 13ah. I'm guessing that that was done rather than a leading "h" so that numbers and identifiers were easily distinguished. See early Fortran, I believe.

Smart doorbells on business premises make your property more attractive to burglars, warns researcher

Chris Gray 1
Devil

Geeks too!

Well, the home might not contain a lot of stuff that is of normal value to burglars, but instead contain a bunch of geek gadgets. A friend of mine likes this type of thing (can't remember if he actually bought electronic locks or not), and has bought lots of tools and gizmos. I don't think his place has much in the way of normal expensive stuff like fancy stereos, jewelry, keys to fancy cars, etc. Actually I don't think it has *ANY* of that sort of thing....

And yes, I do realize he is in a small minority of buyers for this sort of thing.

Excel-lent: Microsoft debuts low-code Power Fx language... but it is not really new

Chris Gray 1
Meh

Poor Code!

Note the "if <condition> = true". Sigh.

Chrome 89 beta: Google presses on with 'advanced hardware interactions' that Mozilla, Apple see as harmful

Chris Gray 1
Thumb Up

Good on 'em

I for one will continue to support Mozilla and Firefox in this.

The web, as Google sees it, is intended to be unsafe (from the user's point of view) and to provide Google with the maximum access to user information and the user's hardware. That's how they make most of their money, after all.

Uncle Sam passes comms act that sets aside $750m for the development of OpenRAN

Chris Gray 1
WTF?

description, please

I know El Reg had at least one article about openRAN before, but this is an entire article about it that provides no definition of what it is. Not even what the acronymic name is short for.

It took me a couple minutes on Wikipedia to learn that "RAN" is Radio Access Network.

And then:

OpenRAN — enabling open ecosystem of GPP-based RAN solutions, chaired by Andrew Dunkin (Vodafone) and Adnan Boustany (Intel).

GPP: well, 3GPP is 3rd Generation Partnership Program - relating to LTE.......

New lawsuit: Why do Android phones mysteriously exchange 260MB a month with Google via cellular data when they're not even in use?

Chris Gray 1

Re: Yikes!

Well, without the "Google" one, I can't do voice input for texts, and likely anything. Turned that back on for now.

Chris Gray 1
Unhappy

Yikes!

My limit (before I pay extra) is 300 MB/month. The amount consumed by the Google stuff has skyrocketed in the last few months. My total usage is now getting disturbingly close to the limit. I have disabled network access to many apps, but the biggies so far this month are Google Play services, Google and Google Play Store, in that order. Android OS is down a bit later. Hmm. Why has "Setup Wizard" used 2.26KB? My phone is 7+ years old! I likely *can't* disable access to those top 3. ... Well, it did let me restrict all 3 to WiFi only, so maybe I'm safe! But..., I'll have to see if I still get notified of incoming gmails and emails.

We bought a knockoff Lego launchpad kit from China for our Saturn V rocket so you don't have to

Chris Gray 1

Re: I have been a LEGO fan since I was born

I've only been a Lego fan since 2000. Hasn't stopped me filling my living room, however.

Pascal, try looking at different sets. E.g. the long running "Modular buildings" sets. They are loaded with regular parts that are easy to re-use, but are more interesting than plain bricks. E.g. bricks with mortar patterns, different colours, different kinds of connectors and decorations.

Sure, I've accumulated some specialty pieces I don't want - some of those eventually do get used, or I can trade them with other local Lego AFOLs (Adult Fan Of Lego). E.g. white partial cylinders I've used for a group of 4 white tanker train cars.

Another group of sets worthy of collection (at least by me) is the "Winter Village" sets, which are Christmas themed. This year's is the "Elf Clubhouse". These sets also have lots of useful pieces, although they do tend to like to use the little light bricks.

Some of our local fans *prefer* the stranger pieces for their own constructions. We have several who are huge Star Wars fans gobble up many that Lego produces. One of them has been slowing increasing in size his custom spaceship - made harder by him choosing to do it in yellow!

We won't leave you hanging any longer: Tool strips freeze-inducing bugs from Java bytecode while in production

Chris Gray 1
Meh

IDE's

What they should now spend a bunch of effort on is putting their detection technology into as many IDE's as possible. That way, the possible problems are reported to developers, who can then implement a *proper* fix. Heck, I expect you can put it into compilers. Add it to "javac", "gcc", "lcc", etc. as a warning.

Warning: in some situations, loop will never exit.

After ten years, the Google vs Oracle API copyright mega-battle finally hit the Supreme Court – and we listened in

Chris Gray 1
Unhappy

Re: Good analysis

Yes, good analysis, but I do wish to freak out about the possibility of Oracle winning. The reason for that is that I program by myself, with no umbrella organization over me. If Oracle wins, it may well become illegal for me to release my software! Given that I've been working on it off and on for nearly 2 decades, its a big deal for me. I do not and will never have the resources to find out if my ideas were already considered by some large corporation and then filed in a drawer.

Take things back a while - could Linux exist in a universe in which Oracle won before Linus started his project?

Could we end up in a situation where large corporations force project repositories out of GitHub/GitLab, much like is done for videos on YouTube, etc.?

Google Chrome calculates your autoplay settings so you don't have to - others disagree

Chris Gray 1
FAIL

Not a chance

Ok, that makes it not a chance that I will use Chrome anywhere - desktop or mobile. Especially mobile. The data limit on my mobile plan is very small (300 MB) - I don't want *any* video playing, ever, unless I'm on WiFi. And, I don't have WiFi on unless I'm safely at home and can connect to my home router.

I make an exception for El Reg's blocky bouncing vulture - that's been cached for ages.

Here comes an AI that can predict hurricane strength. Don't worry, NASA made it so it probably actually works

Chris Gray 1
Devil

in the news

Combining recent articles....

I wanna know what happens if you drop Tsar Bomba in the middle of a big hurricane. We demand proper research!

TCL's latest e-ink tech looks good on paper, but Chinese giant will have to back up extraordinary claims

Chris Gray 1
Go

Would love It

I have one of the original Kindle "Keyboards". Its one of the ones where Amazon provided old low-bandwidth internet access for free. (That might still be active - haven't tried for a while - I just use WiFi to get books.) The device still works as well now as it did when it was new - I've seen no fragility, all the buttons still work fine, battery charge lasts weeks, etc. I use it mostly indoors, but it was fine in direct tropic sun.

I would love a good colour E-Ink device - it would make the book cover images much nicer! Many of the newer E-Ink devices include one or more LED lights that you can turn on to illuminate the screen, so you can read in darkness.

When Irish screens are borking: Ticketing trip-up for Dublin-based Windows 10 IoT terminal, but at least it's not XP

Chris Gray 1
Devil

96???

Why do all the numbers up top end in 96? Seems unlikely to be a coincidence.

To my eye, they flip back and forth between that and "%". Seems a poor font choice.

Is it a bird? Is it a plane? No, it's a 56-year-old satellite burning up in the sky spotted by sharp school kids

Chris Gray 1

YouTube URL

If, like me, Facebook is something you never allow to execute Javascript in your browser, the following YouTube URL is nice:

https://www.youtube.com/watch?v=gA0vrXAMtMI

Crack this mystery: Something rotated the ice shell around Jupiter's Europa millions of years ago, fracturing it

Chris Gray 1
Alien

Careful

Well, that's what you get when you do sudden manoevering turns with the main body. Take it easy, or you'll break something, and then *they* will catch up quicker.

Named arguments squeak into PHP 8.0, 7 years after first RFC

Chris Gray 1

Possibilities...

Another way for boolean parameters is to define an enumeration type for each parameter. Lots of typing once, but nice for the calls. If you define the enumeration tags nicely, then it is all perfectly clear. I didn't do that in any of my languages, however, because of scope issues with the tags, etc.

Having parameters with default values is likely OK, so long as you don't allow the function to change the defaults. If the defaults are always, e.g., 0, 0.0, false, "", then I expect readability is OK. As a bonus, you can add parameters and most calls don't require changes.

Overload: A one-way ticket to a madman's situation

Chris Gray 1

Re: phoning and testing

I wondered that myself a while after my post. My recollection is that it wasn't just making the system page itself to death - there was something special about using MVCL (can't recall if CLCL would have worked as well). Hmm. I wonder if the pages were all ready to go, so no page faults, but the instruction then somehow locks them all during execution?

Chris Gray 1
Go

phoning and testing

Back in the heyday of mainframes, the university had installed its new Amdahl box (IBM 370-like). They opened it up for stress testing. One bright soul noted that the "MVCL" instruction would take registers containing source address/length and destination address/length. So, that one instruction could access 32 Megabytes of virtual memory. And one could arrange that the memory was not yet created in the OS. Unless they did something illegal, instructions would run to completion before anything like a task switch could happen. Run a few copies of that program and the mainframe was on its knees. The offer of wide-open testing was soon withdrawn, but I think I heard that the systems folks were good sports.

Later, in a job with a computer company, several folks were working from a site in California (head office in Alberta, Canada). They would often have a phone connection to the systems at home to allow access to sources, etc. One late night that connection was forgotten. When the phone bill showed up it had just asterisks for the cost (Fortran and other languages tended to print asterisks for "number too large to fit in output field"). I believe in this case, the phone company was eventually convinced that this wasn't possible and that it must be some kind of error in their systems. All was well.

In all honesty, I have to admit that neither of these miscreants was me. Sigh.

Japan to test self-destructing satellite to shrink space junk with string and an inanimate carbon blob

Chris Gray 1
Facepalm

tethers?

How long are those ElectroDynamic Tethers? Does the presence of those make it significantly *more* likely that collisions will occur?

Had a bad weekend? Probably, if you're a Sectigo customer, after root cert expires and online chaos ensues

Chris Gray 1
Meh

Ipify.org via curl

Ah, that's the root cause. I run my toy domain over a dynamic IP address from my provider. There are scripts that determine my actual IP address by querying "ipify.org" using Linux program "curl" (fetches from a single URL). That broke because of a certifcate problem. The logged error told me how to disable the security in "curl", but since my IP address is pretty stable, I chose to sit and wait for a bit. After a couple of days I semi-automatically got an updated certificate bundle from Ubuntu and lo, the problem fixed itself.

Even though I run a couple of services here, I am constitutionally unable to be a proper sysadmin, so its mostly a lot of fingers crossed that nothing breaks! Why am I unable? Poor memory - sysadmin requires a good memory of obscure commands, and of how all sorts of stuff actually works. And yes, I do have a router acting as a firewall, thanks.

Hooray! It's IT Day! Let's hear it for the lukewarm mugs of dirty water that everyone seems to like so much

Chris Gray 1
Happy

It's cheap and easy!

I was fed tea (mostly milk of course) as a young 'un, and have stuck with it. I find coffee too bitter, though I imagine I could get used to it. Tea gives me the caffeine boost that I'm now used to. All you need is a kettle (which will last for years) and a teapot (which will last for decades). Far simpler than some coffee rigs. And, I believe it is a lot cheaper than coffee.

The one downside for me is stained teeth (not nearly as bad as smokers, and I imagine coffee does it too). And perhaps a few more bathroom breaks...

Prepare to have your shonky password hygiene shamed by Firefox 76

Chris Gray 1

Re: Firefox has sought to arrest its slide in the rankings

I'll keep my comment there, but, well, it isn't consistent for me. The fat thing comes back if I'm on an empty page (e.g. just started up). The useless ">>" is always there. Gah.

Chris Gray 1
Meh

Re: Firefox has sought to arrest its slide in the rankings

In the search preferences, you can't turn off the "helpful" stuff, but you can tell it to put a separate search bar up there. Then, go back to "customize" and remove it. My URL bar went back to not being the fat thing. Now, how do I get rid of the >> saying I have more bookmarks, when they are actually all shown.....

Keen to go _ExtInt? LLVM Clang compiler adds support for custom width integers

Chris Gray 1

Re: Ugh!

Bob, I'm quite aware of using structs to overlay hardware resources - done lots of that. But, I recall comp.arch discussions of a few (several?) years ago saying essentially that using bitfields in C structs and expecting to produce correct portable code is not going to work well. The biggest issue was endianess, I believe. C doesn't say enough about how bitfields are layed out to make them safely usable across architectures.

In my latest programming language, I've split the concepts apart - structs and "bits" types. In the latter, the endianess is, I hope, well enough defined to be usable. It's clearly usable for space-saving, but I've had no opportunity to try it on hardware interfacing.

Chris Gray 1
FAIL

Ugh!

For many years I've had the very strange hobby of creating programming languages and writing compilers for them. My first readily-available one ran on 8-bitters under CP/M. It had the ability to define and use integers with user-specified bitwidths. Thought it would be useful on the memory-constrained machines of the day. Tryed using them in one major-ish project I did. Bad idea. Never tried to use them again.

For programming FPGA's having various-sized fields is pretty basic. But why does that have to reflect itself back into something like the C programming language, which is intended for general-purpose programming? My gut tells me that they will be patching weird issues for years, and that any actual benefit will not be worth the overall cost.

Watching you, with a Vue to a Kill: Wikimedia developers dismiss React for JavaScript makeover despite complaints

Chris Gray 1

Re: Wikimedia uses JavaScript?

Elledan, if you find out, let us know.

I opened a tab to Wikipedia just now and NoScript reported blocking 5 whatevers, but showed that only wikipedia.org was needed. I didn't try allowing it to see what changed - I thought you should have that joy. :-)

Hong Kong makes wearable trackers mandatory for new arrivals, checks in with ‘surprise calls’ too

Chris Gray 1
Big Brother

Exercise?

Hmm. Guidance I've seen indicates that one should continue to get exercise, and going out for walks is a good thing, and to be allowed (just like going for groceries). By common sense you don't hug and kiss any friends you happen to meet. Sounds like the rules in Hong Kong are definitely different, if you are not allowed out of your space for any reason. What happens if you are an antisocial computer geek, and don't have anyone to go get groceries for you? If your income is gone (or you were relying on retirement funds which are now worth a whole lot less than they were), you may not be able to afford to pay to have all of your food delivered to your door.

The Wristwatch of the Long Now: When your MTBF is two centuries

Chris Gray 1

Electronics die...

Don't electronic things decay and stop working over time? The smaller the transistors, the shorter the lifetime. That's why an old electronic whatsit based on individual transistors can last for 100+ years, but very high density IC's are unlikely to last more than 20. Or has this issue been resolved?

Anatomy of OpenBSD's OpenSMTPD hijack hole: How a malicious sender address can lead to remote pwnage

Chris Gray 1
Mushroom

With great power...

(By chance, just watched Into the Spiderverse last night...)

The "Unix model" includes lots of very powerful tools, such as being able to use a shell from within programs. In cases like this, the tool is *too* powerful. Using a full programmable shell for process invocations not much more complex than using vfork()/exec() is overkill, and dangerous, as others have mentioned.

It shouldn't be hard to write a *much* simpler mini-shell, which is intended for such situations. It would take time to wean programmers off of using "bash", etc. but if you give it a few "modes" for the kinds of shell-like things it will do, it shouldn't be hard to handle most cases, and would be far safer. Yes, its slightly more total code to be maintained, but worth it.

What is WebAssembly? And can you really compile C/C++ to it? And it'll run in browsers? Allow us to explain in this gentle introduction

Chris Gray 1
WTF?

Also want more security info

Amused to see a LISP-like syntax for the WebAssembly "source". Well, it is pretty much the simplest form of "source" anyone has come up with. Better than a Forth-like syntax!

I see it supports pointer creation, casting and dereferencing. The created X86 code includes no checking of values. I want to know much much much more about what is going on. Otherwise this is the equivalent of letting J Random Hacker run any C code he wants on my machine without me having any choice. Sure, I do that with the OS and all the other native stuff that's part of the distribution I run, but that isn't coming from a random web page, which, if I don't block JavaScript, can force run stuff in my browser. BBAADD!!

LG announces bold new plan for financial salvation: Trying to actually make phones people want to buy

Chris Gray 1
Thumb Up

{AOL}

(Me too!)

Wade, add a decent camera (13+ Megapixels) on the back, and I'll take one - you hit my list almost dead on. (Currently on Galaxy S4, still going strong on 3rd battery.)

What if everyone just said 'Nah' to tracking?

Chris Gray 1
Meh

{AOL}

(Me too! :-) )

I'm on Firefox with NoScript here, similar to many. Since I'm not web-dependent it works fine for me.

Over the holidays I was using my sister's Windows 10 computer with Chrome, and it was shocking. Since she doesn't have users set up, I was seeing ads targeted at her, and they made sense in that context. But sheesh!!!

Page: