* Posts by Chris Gray 1

434 publicly visible posts • joined 8 Jul 2009

Page:

SpaceX and Musk called on to rescue China's Shenzhou-20 crew

Chris Gray 1

Try it on earth.

Surely it wouldn't be hard for the Chinese to ship one of their docking adaptors (without space station attached!) over to SpaceX, so that SpaceX could hack up a variant of what they use that will properly mate with the Chinese one?

Famed software engineer DJB tries Fil-C… and likes what he sees

Chris Gray 1

Re: Type checking and compatibility

I've read on stuff for formatting comments here. I don't have a badge, so I can't use < pre >. Gonna try anyway:

Nope, nor does blockquote or code (I don't know that one)

Any other suggestions I can try?

As a programmer, posting little code snippets is a natural thing for me.

Chris Gray 1

Re: Type checking and compatibility

Conceptually makes sense. The big issue, at least in my case, is that the conversion factors are continually changing. So, they could not be compiled into a "program". Even if you only ran the "program" right after updating it, you'd want the updating to be automatic, so you would need your "compiler" able to go fetch them from whatever authority maintains them. (Is there such a single authority? I'm a bytes guy, not a money guy.)

Chris Gray 1

Re: Valgrind

Thanks to both of you for bringing up Valgrind. Caused me to read a bit more on Wikipedia, answering my question about whether it worked on C sources or on binary files. The fact it uses the latter is good, since it should work on binaries produced by my Zed compiler.

A friend ran valgrind (Memcheck I think) on my earlier Zed stuff and found one uninitialized variable, easily fixed. It also reported a problem that I was not able to track down - the badness seems to have been going through my bytecode engine's memory.... That *should* have been OK, but it would have required some "interesting" hacks to try to chase it further.

Now that I have "zedc" the standalone compiler, I should be able to valgrind it (biggest program I have used it on so far is 2K lines of Zed). Valgrind the compilation, then Valgrind the test program - whee!

Chris Gray 1

Re: Type checking and compatibility

Ok, I was wondering if that type of size change was what you had in mind. You need to also pay attention to the signed/unsigned attribute. If the starting value is signed, then the sign bit will be extended as needed. If the starting value is unsigned, padding 0 bits are inserted. You *do* need to be fully aware of when you are expanding numerics, but most code never has to worry about it. Whether or not you check for loss of value on a size reduction will depend on the "level" of your programming language, and then on what it's rules are for specific situations. I've avoided that issue in Zed by only having low-level sized types. 'uint' and 'sint' are only ever 64 bits.

Chris Gray 1

Re: Type checking and compatibility

Disagree, at least as far as strongly typed compiled languages are concerned. Type 'bool' is true/false. If you want more, then feel free to add such a type to your programming language, but the historic use of the simple 'bool' is very strong.

In my AmigaMUD programming language, type "status" had values "success", "failure", "continue" to deal with attempts to do things in the game world. What you need/want depends on what you are doing and the context. Leave 'bool' alone.

Chris Gray 1

Re: Type checking and compatibility

Fun! How much do you use it? I put a full "Measures and Units" facility into my Zed language. My thought is that could help folks doing scientific, etc. programming. I've never used it myself. :/) The only run-time aspect is that of finding a good scale factor for output. Took a bit, but found my fun example: (Sorry, don't know how to format stuff for El Reg comments!)

proc

BttF(bool useLightning)void:

var ampVec := getCurrentCurrents(), totalCurrent := 0.(A);

for i from 0 upto getBound(ampVec) - 1 do

totalCurrent := totalCurrent + ampVec[i];

od;

float(V) voltage := if useLightning then 1_000_000.(V) else 12.(V) fi;

/* *How* many jigga-watts?!!?! */

con power := totalCurrent * voltage;

Fmt("Power = ", power, " [", power :: gUs, "] {", power :: gUsn, "}");

corp;

Output:

Power = +0.121006e+010(A*V) [1.21(GW)] {1.21(gigawatt)}

Chris Gray 1

Re: Type checking and compatibility

Compiled language don't do the kind of type conversions that run-time-typed languages do (can't say about Python - its years since I did a few experiments with it). I've actually used both Algol-W and Pascal (long long ago), and neither does that sort of thing.

The problem with not declaring a type for variables is that the variables can then be used in expressions, and then you don't really know what is going on without finding the variable's declaration and carefully evaluating the type resulting from the expression assigned to it.

By declaring the type of a variable you reduce the effort needed to understand the code - you only need to look at the declaration to know - not any later uses. Taking the type from the initialization expression can be difficult for a human reading unfamiliar code.

One of the minor quandries I have when programming in my Zed language (new, compiled, strongly typed, to native binary) is which form to use for simple declarations. "bool flag := <bool expression>" and "var flag := <bool expression>" both do the same thing. But, with "var" (more often "con" when it is something that won't change later in the code) you can setup multiple simple variables of differing types on the same line. With "bool" starting the declaration you can only setup "bool" variables. Most languages I know have these niggles.

((Liam: progress is slow - currently I use "gcc" to link the compiler, and in my latest experiments it crashes something call "bfd" which seems to be part of "ld". My old route of creating several .a's and linking with those still works fine.))

ESA tests bacterial powder to feed Moon and Mars crews

Chris Gray 1

Re: See that carboard box

On a long enough mission 'nauts might get used to tubes of flavoured mush. Then, coming back to Earth and trying to eat all this stuff with weird shape and *textures* might actually be a problem. Recognizeable hunks of animals and plants - Ughh!

(At a Christmas dinner years ago, a family friend would eat slices of turkey breast, but wouldn't touch wings or drumsticks. Turns out he was OK with stuff as long as it wasn't physically recognizeable.)

Developer puts Windows 7 on a crash diet, drops it to down to 69 MB

Chris Gray 1
Angel

That's Big!

Wow, that's a lot of memory for one user. See:

https://en.wikipedia.org/wiki/MP/M

Now that's a small operating system.

(Cynics said CP/M was just a "program loader", but that was enough for quite a few situations.)

EY exposes 4TB+ SQL database to open internet for who knows how long

Chris Gray 1
FAIL

Ernst & Young

I had to read 1/3 of the way into the linked report to find out what the f**k EY is. Come on El Reg, not everyone has the same knowlege set and interests in detail as you do. EY = Ernst & Young, a big accounting firm.

You have one week to opt out or become fodder for LinkedIn AI training

Chris Gray 1
Meh

Re: Settings to disable (UK)

I got it different too (Canada).

Thanks to El Reg for pointing this out. I turned off nearly everything. Signing in was weird - it didn't work at all, but then I tried a direct URL for my "account", and that worked, on the second try. They *really* don't want you to go away - I've never used LinkedIn to look for a job - it was just an online group for ex-employees of the second-last company I worked for long ago. Wheeeee!

"App"? Wot's that? :-)

SpaceX Dragon gives International Space Station a kick up the orbit

Chris Gray 1
Alien

Watch for it

When the time comes for the ISS to meet is makers, you should be watching. There is a bit of a competition among various alien races as to which of them can nab it to use it as spare parts. Or a museum piece...

AMD Ryzen CPUs fry twice in the face of heavy math load, GMP says

Chris Gray 1

Goes back a ways

A friend of mine has run a lot of multi-precision integer arithmetic loads. I don't know if he has ever used GMP - he wrote his own library in assembler (and yes, we glued it into Zed). His computers only last a couple of years - he runs them *hard*. Sorry, I have no more details.

Commodore Amiga turns 40, headlines UK exhibition

Chris Gray 1
Megaphone

Re: Amiga 4-Ever

Been working on Draco's successor for quite some time. Getting there. I now have a compiler written in itself that generates X86-64 code on Linux. The language is huge, but quite Draco-like. I took some time a couple years back to try porting Amiga Empire to it. One or two routines in the world generator compiled without change. Stalled on trying to have a single server handle all the clients directly - will need to do something like "inetd" on my Linux box, or maybe use "vfork". A very out of date version of the language is here:

http://www.graysage.com/Zed/New/

Note the "http" - I haven't gone to the effort to support "https" yet.

Chris Gray 1
Happy

Amiga 4-Ever

I just checked and there are no Amigas in my closets here. I did pass some on to a friend who was going to put them in one of his storage lockers. Don't know what he has left - his life has become *very* busy.

A1000 - first off the official monitor wasn't available, so the store loaned me a green-screen one. Very slow BASIC Mandelbrot in shades of green. Long live the keyboard garage! The SOTS (Slap On The Side) hard drives never worked, so the store and I agreed to an upgrade:

A2000 - eventually got the 68020 board turning it into an A2500.

A3000 - workhorse - eventually bought a second as backup, but never needed it, but see below.

A4000T - bought this *after* I heard that they were going under - I was in the middle of a lot of programming and did not want to switch machines at that point.

At times in there I would be running Amiga Empire or AmigaMUD with two modems. Another period I ran the Amiga UUCP package and was a forwarder for news/email.

I got an ethernet card at one point - that would have been for an A3000 I think. Work let me put it on the network in their machine room, so it was running Empire or AmigaMUD (both??) right on the internet for a while.

It's been quite a while since I had UAE running - I don't think ever on this current Linux box. Probably good - saves lots of time! :-)

Real estate agents use the power of AI to command plumbing, layout to disappear

Chris Gray 1
Meh

Re: Pictures disappeared?

Yeah, I went and looked just to see them. Sigh, looks like reality is back. :-)

Doesn't look too bad really, but that neighbouring business is a bit close. No matter, the house is on the wrong continent anyway...

Gadget geeks aghast at guru's geriatric GPU

Chris Gray 1
Thumb Up

Re: Kernel 6.16 and ancient AMD processors

Mine is an FX 8150, and I have no graphics card. The only games I play are things like Minesweeper and Solitaire. I can view YouTube videos just fine. Old-style software developers don't need fancy graphics - its just overkill.

Rampant emoji use suggests crypto-stealing NPM package was written by AI

Chris Gray 1
Angel

Hey!

Hey! *I* write good comments. Usually. And no emojis - emacs doesn't support them, as far as I know. My phone has a billion of them, and most I have no clue what they are supposed to mean.

Sh!t happens, so Microsoft is paying biz to flush its carbon sins underground

Chris Gray 1
Thumb Down

Huh?

Why would any reasonable government (and I know this doesn't currently include the USA) *allow* someone to bury biomass? Most, if not all, biomass can be turned into plant growth. Plants take raw CO2 out of the atmosphere, add moisture to the atmosphere, reduce the albedo of the land - causing cooling, can provide food, and some even provide much-desired shade. And then to allow this ridiculous practice to serve as a carbon credit???

In lots of places, you should just mix it with the ubiquitous sand, then throw some seeds into it.

If you're forced to use Windows 11, here's how to steal some of your time back

Chris Gray 1

Re: File Explorer is now a productivity sink

Yeah, but the Delete option is now in "more options". It's pretty much the only one I ever want - I've never been a Trashcan user, even back in my Amiga days.

Also, what on earth does "Copy by path" (or whatever it is - I'm safely back on my Linux box) do?

Chris Gray 1
Thumb Up

Great!

Thanks for this! I've sent the URL to some friends/family.

I had to get a Win11 laptop to access my local government healthcare pages to see test results, etc. (WSA also runs my new programming language compiler just fine, so it's a good test, too!). The number of "F*** O**" shouts was quite high on first use, but after I went through everything in settings, it was reduced a lot. I had gotten about half of what you suggest. I've never used a local Search capability, so that didn't show up (maybe I removed it from the bar thingy). I can readily find *my* stuff - on Linux its programs with weird names that I can't find (very poor memory for fact-like things), so I rely on menus to help there.

Vintage computing boffin releases expansive Intel 286 test suite

Chris Gray 1

Another world

Fascinating that there are folks doing this. I was an Amiga-oid back then and was impressed by the demo scene stuff I saw - I'm guesssing there are folks keeping that stuff available as well.

Boffins detail new algorithms to losslessly boost AI perf by up to 2.8x

Chris Gray 1
Joke

Recurse!

If the drafter is just a smaller model, could they have an even smaller drafter for the main drafter?

It's turtles all the way down...

A software-defined radio can derail a US train by slamming the brakes on remotely

Chris Gray 1
Facepalm

FRED only

What the article said is that the communication is only between the controlling locomotive and the FRED. The FRED is only on the last car of the train. So, only that one radio link needs to be updated. What I don't know is how the FRED actually controls all of the freight cars ahead of it. My guess is that its the same way as the brakeman in the caboose/brake-van did - open the valve on the air line, letting all the air spew out. With no air pressure, all the brakes in the train will activate - eventually.

My understanding of this comes from being a model railroad fan, and so watching lots of YouTube videos. At least here in North America big trucks are the same setup - let the air out and the brakes all activate. You have to connect the air hoses before the brakes on a trailer will release.

The days of manual brake wheels on top of boxcars, etc. are long gone.

Junior developer's code worked in tests, destroyed data in production

Chris Gray 1
Headmaster

Types!

The programming language geek in me says that if the SQL query language was strongly typed, that bad command would be invalid. The WHERE clause should be Boolean. "value - 1" is not Boolean.

Cold without the compressor: Boffins build better ice box

Chris Gray 1

Re: Every dichotomy is a false dichotomy

My parents had a small holiday trailer (caravan) when I were a young 'un. Boggled my mind that burning propane made the inside of the little fridge cold!

Chris Gray 1
Happy

Excellent!

Good progress. Even better would be more progress.

Also, I've thought for years that direct thermal power generation would be a godsend. It already exists, but not for practical use. The article here mentions that the "CHESS" stuff works for it too. Here's hoping that that aspect can be made practical.

China successfully tests hypersonic aircraft, maybe at Mach 12

Chris Gray 1
FAIL

Fake

I'm very far from an expert here and have somewhat poor vision to boot, but...

Looks like a cardboard model against a simple backdrop. Look at the fastening of the fins at the bottom.

China’s trying to slim down, which will fatten the smartwatch market

Chris Gray 1
Devil

Psychological?

I like the step counter and the heart-rate monitor. But you can get step counters right on your phone, I think. So, I'd say it is mostly psychological - having a thing on your wrist that you know is tracking stuff could be a subconscious prod to *do* something.

Also, you might be a weirdo who likes to change the watch-face every day.... :-)

I've stuck with the main face on my current watch, since it has the most info right there, plus a tap to bring up the phone call stuff, and one to bring up heart-rate monitoring right away. Darn thing often gets the outdoor temperature wrong though - that's the fault of the app on the phone, however. Oh yes, they all have different control apps. :-(

Chris Gray 1
Go

Go with the cheap ones

The things are cheap enough on Amazon that you can afford to do just that. You'll have to fiddle with your phone settings to switch to a different watch, however. Just go with some generic Chinese brand - you can get smartwatch's for as little as $15, and the quality seems to be pretty good. Just think about your requirements - for example, do you require it to be able to answer/make phone calls through your smartphone? The $15 one doesn't have mic/speaker so can't. Slightly higher priced ones can. All do heart-rate tracking, step counting, blood oxygen level. All of the ones I've encountered have far more exercise/fitness stuff than anyone needs. The $15 one tries to do blood pressure monitoring, but I think it was reading high for me.

Xlibre fork lights a fire under long-dormant X.org development

Chris Gray 1
Thumb Up

Re: X11 over network connection

Ah yes. Long, long ago I took a somewhat-longer-than-usual Christmas vacation with my parents. They of course had a windows computer, not a proper Linux computer. My email then was on my own domain on my home computer (gee, just like now!), and I didn't attempt to allow email access remotely (POP/IMAP). So, I exported my usual session over X. I put a Linux distribution on a USB stick and booted the parent's machine from that. Slow, sure, but access to the X-session at home was all I needed it for. Made my stay much pleasanter. And yes, I only did it a couple of hours a day.

Chris Gray 1
Thumb Up

Upvote!

Where do I upvote the article? :-)

A bit off-topic, but triggered by Liam's discussion of menus, etc.

Gnome has no title-bars? Yikes! No wonder I expunged it long ago.

I'm a person with a horrible memory for raw facts. The main reason I like menus (of any kind) is that they LIST OPTIONS. That can readily remind me what the names of the tools I need are. I'm afraid this is especially useful on Linux where geek programmers invent weird and hard-to-remember names for their programs/tools.

I spend the vast majority of non-browser computer time with a shell window and an emacs window. The "search tools" that various systems have are often useless to me since I don't remember the name of the tool I recall using - and I also might not recall the proper search terms to find the tool by function.

Firefox is dead to me – and I'm not the only one who is fed up

Chris Gray 1
Thumb Up

Fine for me

I've used Firefox for a long time. Something different back in my Amiga days, but I think that's about it. I'm not a heavy browser user, although it is open for a good percent of the day. The one significant plugin I use is "NoScript". I block things like tags.google.com, and anything from a social media site. Google searching works fine, as does YouTube - I even have a little-used channel there. I normally have only one tab open (two now - one for the comments, one for main El Reg) - speed has never been a problem for me.

I hit the website incompatibility issue with the government's healthcare portal which I needed to use. That caused me to buy a Win-11 laptop so I could access it. Also need the dam Teams viewer tool occasionally.

As RHEL clones hit version 10, Rocky and Alma chart diverging paths

Chris Gray 1

I'm too old!

Thanks for the link to your older article, Liam. I saw the amd-64-v3 and had no idea what it meant. A google search was not enlightening. The cpuinfo command on my old system includes

CPU family: 21

Model: 1

Model name: AMD FX(tm)-8150 Eight-Core Processor

Stepping: 2

none of which is a "version". I did push harder on Google search and it popped up an AI reply that said the V3 comes from the Ryzen 3rd generation cores. So, my perfectly good computer is not new enough to run these Linux versions - FX family is too old.

AROS turns any PC into an Amiga with USB-bootable distro

Chris Gray 1

Re: Incredible

I'm with you on that! I was in the middle of software development when they went under - working on an A3000. I thought about it a bit and then went and bought an A4000T. Worked with that for several years before getting a PC and Red Hat Linux - I *really* didn't want to have to change at that point, and I was employed, so could sort of afford it.

Chris Gray 1

Mouse?

I am NOT going to get sidetracked trying this. At least not this year. But,

does it support a USB mouse? Trackpads and me don't get along.

Datacenter biz wants to turn heat and carbon waste into biomass for sale

Chris Gray 1
Go

Milkshakes!

Add a bit of flavour to the produced goop, chill it, and you've got lime flavoured milkshakes for McDonalds! I'd go for one.

Torvalds' typing taste test touches tactile tragedy

Chris Gray 1
FAIL

Re: will try it...

Gahhh! The keyboard natively has a round plug with lots of pins. Comes with an adapter to USB. The pair is mangled. Dead keyboard. Sigh. Back to my old Logitech.

Chris Gray 1
Go

will try it...

OK, you've prodded me enough.

They keyboard I'm using now says "Logitech K200" and it has worked fine for me for several years. The main problem is that some of the legend paint has worn off. I'm a touch typist (staring at the screen now), but sometimes the XCV bunch gets me.

I bought a mechanical keyboard a few years back at a local computer-ish place. MSI CK S??? (argh - the label is badly damaged). It was 5% off since it was opened, but looks fine. Says it has Cherry red keys. I'll try it later today. If it fries my computer its your fault!

CISA mutes own website, shifts routine cyber alerts to Musk’s X, RSS, email

Chris Gray 1
FAIL

I wish this was a joke...

Posting important information mainly on a social media site is lunatic, pure and simple.

If they want to reach ludites like me, they would need to post it here on El Reg - El Reg *IS* my social media!

Commodore OS 3 is the loudest Linux yet

Chris Gray 1
Thumb Up

Perfect!!!!!

This would be perfect for me if I didn't have real work to do! Before Linux I was heavily into Amigas (1000, 2000/2500, 3000, 4000T) for both games (not seriously - I'm terrible at all of them) and development. I settled on Mate after Gnome went bonkers because I want just one tool, etc. bar that I can put on the right side of my portrait orientation monitor. And, it has everything via menus, so I don't have to attempt to remember function keys, swipes, etc. A release or two back on my current system I had UAE up and running so that I could re-play my AmigaMUD and Explore/Amelon games. Pathetic, I know.

Microsoft tries to knife passwords once and for all – at least for consumers

Chris Gray 1

Re: Windows is no longer an option.

I wish!

I've been a Linux user since way back to the original Red Hat. The local government has medical information online now, and I wanted to be able to access it. After going back and forth with their tech support, it was determined that their site does not support browsing from Linux. I could probably find out how (if its still possible) to make my browser fake the identification string. Instead, I bought a fairly cheap laptop with Windows 11 (I can't count how many times I yelled at it for popping up stuff that wanted me to spend more money! Or just didn't seem to want to work reasonably (by my standards)). Also I hate the chicklet keyboard. The only good thing about it is that after I put WSL2 on it, I have another test bed for my compiler. :-)

Chris Gray 1
Thumb Down

Re: Maintaining passkeys

Pay? Whatever happened to FREE software. (Yes, I know, they have the pay for their server and data connection.)

I run Firefox with the NoScript plugin. How many sites which I refuse to allow (googletagmanager) does that stuff need?

Booby-trapped Alpine Quest Android app geolocates Russian soldiers

Chris Gray 1

Re: re: concern

Er, I believe the reference was not to Putin wanting to expand, but for Trump wanting to expand. The N is Canada. The NE would be Greenland and/or Iceland.

This all seems like the boardgame Risk!

The LittleGP-30: A tiny recreation of a very big deal from the 1950s

Chris Gray 1
Thumb Up

Memories

Way kewl! Brings back memories of playing with old Teletype machines, etc.

That Flexowriter is much smaller than the big desk teletype we got from a seller (government surplus??). That one came on its own steel desk that you could park a car on. The solenoid for the paper tape punch could probably have punched a hole through your hand if you could get it in the wrong place! The reader was a whole separate unit that you could slide out.

My friend spent hours tracing the circuits in the beast.

The mechanicals in those old Baudot (sp?) machines was magical to watch.

The most important experimental distro you've never heard of gets new project lead

Chris Gray 1
Go

Love it!

I for one quite like the concept.

The current stuff is way too complex for me - with my poor memory for pure facts, I have a hard time finding things not my own, or knowing how to do stuff that folks like Liam can instantly access. For example, when an update to Apache comes along that changes the config files, I refer to a piece of paper beside my monitor that says "systemctl stop apache2" to stop the server so I can then go undo any config file changes I don't like (I run an absolutely minimum configuration). Similar for the mail server.

Having fewer directories, with meaningful names, could make things a lot easier. Do they also do it for things like the maze of C header files? As a programmer, I curse every time I have to actually find an active definition for something in, say, the "bits" universe. I sort-of understand how the arrangement came to be, but I certainly don't like it.

I first hit UNIX systems on a PDP-11, then SunOS, so I do know the basic structure, but I'm waaay out of date, and always will be.

Bill Gates unearths Microsoft's ancient code like a proud nerd dad

Chris Gray 1
Go

Lotsa lookups

Looks like pretty good code to me. I have familiarity with 8080 code from decades ago, and that helps. Figuring out the meaning of stuff in the assembler, and twisting my brain to octal (been a hex guy for decades) takes some effort. Lots of comments in the code, which is good - way too many "programmers" nowadays either don't comment, or have terrible comments. I haven't spent more than a few minutes, but it looks like the whole thing uses lots of lookups in tables. Uses CPU status flags as character classification - nice!

Dash to Panel lives on, thanks to Zorin sponsorship

Chris Gray 1
Meh

Re: Gnome, a reference model for enshittification

As a computer *user*, I'd say that desktops, GUI's etc. *should* be boring. They are tools that should help me get my work done. One of the big things there is that they should be predictable, and not depend on precise muscle memory for easy use.

That is of course the complete opposite of modern Windows and Google-branded Android (haven't played with a Samsung Android, but I do recall that the older versions were quite usable).

Museum digs up Digital Equipment Corporation's dusty digital equipment

Chris Gray 1
Go

memories

This article does indeed bring back some memories!

I don't think any of the UofA lab PDP's had floppy drives. That top unit is a fancier version of what I had on my first/second home machines - dual 8-inch floppies. Clunk! Whirrr! Clunk!

I *think* the only DEC machines I used were a PDP-11/45, a PDP-11/60, a PDP-9 and a fairly large VAX setup.

The predecessor of Draco was developed on the 11/60, until I found that the beast wouldn't execute some instructions properly (it did not like to be treated as a stack machine!), so I was let onto the 11/45.

Page: