* Posts by Charlie Clark

12190 publicly visible posts • joined 16 Apr 2007

First Python feature release under new governance model is here, complete with walrus operator (:=)

Charlie Clark Silver badge

This means they are a common optimisation method, and anything which makes them even faster is generally a good thing.

Premature optimisation is the root of all evil and a great way to waste time. I always advise people to write clear code and profile if they need more speed. Comprehensions don't necessarily loop much faster, not that Python's loops are that slow, but they do allocate less memory. That said, running nested loops through a JIT like PyPY or Cython will generally lead to C-style speeds.

Charlie Clark Silver badge

I'm not sure that the syntax change will stop people writing code to avoid nested if statements.

DSLs are probably the way to go for the small group of people (relatively) who need this.

Python has a history of introducing syntactic changes only to reverse them later (backticks, print >>, map, reduce, etc.). Some stuff stays because it is genuinely useful but this can take years of refinement before it becomes standard. My initial reaction to this change is that it is, unfortunately, yet more special use syntax forced on the rest of us. It certainly won't aid readability and the improvements are marginal. But let's see what the take up is in the next few years.

Charlie Clark Silver badge

Re: Yes, and...

The sort algorithm, which has since become a reference model, would suggest you don't know what you're talking about.

Charlie Clark Silver badge

In previous discussions that were similar Guido tended to follow the argument that to do nothing would cause the least problem. This is exactly the kind of the syntax that, because it's occasionally useful, it gets used all over the place where not only it isn't useful but in fact downright confusing, aka dangerous.

Seeing as it's backwards incompatible

Talk about a calculated RISC: If you think you can do a better job than Arm at designing CPUs, now's your chance

Charlie Clark Silver badge

Re: commercial lockout

What is good for RISC-V is Trump's attempts to freeze China out of the technology market. This would turn China into the centre of development for RISC-V and could quickly lead to Intel and ARM becoming also rans.

GNU means GNU's Not U: Stallman insists he's still Chief GNUisance while 18 maintainers want him out as leader

Charlie Clark Silver badge

Re: "The only way to do serious computing - servers, supercomputers, science?"

The BSD license counts as free software.

Not to the GPL purists it doesn't-

MacOS wakes to a bright Catalina sunrise – and broken Adobe apps

Charlie Clark Silver badge

Re: I'd love to know the rationale...

Less to maintain is the main reason. Means fixing fewer bugs twice. But also, with the move to turn the Mac into a glorified I-Pad, easier for cross-compiling.

Apple knows it can force people to migrate over time, even if they hold out a for year or two. Last year SWMBO's MacBook Pro went out of mainstream support.

MacOS 'Catalina' 10.15 comes packed with exclusive security fixes – gee, thanks, Apple

Charlie Clark Silver badge

Re: That's not very typical, I'd like to make that point.

Seems like par for the course to me. Apple has routinely only offered fixes in new versions, though this has usually been bug fixes and not security exploits. Catalina breaks a lot (if you're not 64-bit you're not coming in) and doesn't offer much for anyone who doesn't use IOS. I normally wait until January but am planning to skip this one entirely.

PostgreSQL puts the pedal to the metal with some smart indexing tweaks in version 12

Charlie Clark Silver badge

Doesn't "enterprise grade" mean licence fees so exorbitant that no one is going to admit to it being a mistake? I'm sure several Oracle DBAs just smile when they see someone talking up SQL Server, even though it is a fine database.

Charlie Clark Silver badge

Re: Can you configure a database as case insensitive now???

Searching and sorting are not the same so I'm not quite sure what the issue. In general, for columns you should normalise your data for whatever processing you're going to do. Case-sensitive sorts are almost always going to be fastest and you can define pro-table or pro-column collations and you can even do this pro query. See the docs for more information. The docs aren't perfect but that was the first page that popped up when I searched for collation, though as long as you don't use the LOCALE_C you shouldn't have too much trouble.

For searching, there are worlds of difference between using the builtin LIKE or REGEX and the text search extensions. If you do have data that is case sensitive but want to do case insensitive search (you have "JOBS", "jobs" and "job" in your data), then you really should normalise your data and/or query, or at least use a relevant index.

For full-text searches case sensitivity is the least of your worries!

Charlie Clark Silver badge

If I see something like query speed compared then I generally think, someone hasn't thought enough about their indices, or tried to use the analyzer. Now, while there is definitely scope for the Postgres analyzer tools to improve so that you know what to look for, that doesn't mean the database is slow. If something is "mission critical", be prepared to spend some money on external support to get the design right.

What do machine learning and "AI" have to do with a relational database? Please take your buzzwords with you and close the door on the way out.

Charlie Clark Silver badge

It sounds to me like you're describing MySQL. Postgres has always had excellent transactional and parallel features.

Charlie Clark Silver badge

You probably don't mean to say it, but your post implies that writing extensions for Postgres isn't easy. This is, of course, far from the truth.

Charlie Clark Silver badge

I'm struggling to think of features that SQL Server has that Postgres doesn't come with or have extensions for. Maybe management functions? In other areas Postgres seems to be leading the pack.

For really high-end deployments, EnterpriseDB's version comes with support for Oracle's backend which makes migration of some large installs feasible.

Charlie Clark Silver badge

The text search engine is awesome.

Cosmo Communicator: More phone than the Gemini, more pocket computer than phone

Charlie Clark Silver badge

Re: why not bt keyboard

The advantage of the keyboard is that it puts the screen at a usable angle and keeps it close enough for you to use your fingers.

With a separate keyboard you need a stand for the phone and a dedicated battery for the keyboard which adds to the size and weight.

Charlie Clark Silver badge
Happy

Re: I'd love one

Let me guess, your house is already filled with similar gadgets that you didn't need but still wanted? Join the club!

Charlie Clark Silver badge

The whole Debian on the Gemini was a huge distraction for Planet for a few vocal users. Because the device uses a Mediatek SoC getting proper support on Linux was always going to be difficult. For those who want to go that route, Sailfish is the better option. But personally, I think Android with a good SSH client is sufficient for most sys admin work that I'm likely to want to do on the move.

Charlie Clark Silver badge

Re: Software

I might indeed switch to Sailfish at some point, but it's still not a ringing endorsement of Planet's approach. They could have gone with AOSP from the start, except that this doesn't get them the Gapps that many people consider essential.

Charlie Clark Silver badge

Re: Software

Unfortunately, the software is the Achilles heel of Planet's offerings. The hardware Gremlins have been resolved but firmware updates are few and far between and long-standing bugs just haven't been fixed. The device itself is immensely practical. You really need a table to use it properly but it does then let you do a lot of stuff: I was able to demonstrate PyDroid on it recently, albeit without using the native HDMI out, which for some reason refused to work. USB-C on one side is charging only, on the other output only. Sound is tinny but bearable. I only got a replacement Germay keyboard after Andrew Orlowski intervened. This is all okay for a device that you can always takes with you and works.

But the software side is poor:

  • Android 8.1.0 from Decemeber 2018
  • if WLAN is dropped, it will not reconnect but drain the battery in a couple of hours
  • keyboard will randomly go into CAPS
  • quite a few apps (IPlayer Radio) just crash
  • the custom version of K9 is quite frankly awful

Basically, looks like Gemini users have been frozen out so that the Cosmo can happen. I knew what I was getting into when I signed up, but still disappointing to see the after-sales service fail so badly.

EU's top court says tracking cookies require actual consent before scarfing down user data

Charlie Clark Silver badge

Re: Well that ruling has a timespan of about 30 days in the UK

The Benn act says otherwise.

Charlie Clark Silver badge

Re: Well that ruling has a timespan of about 30 days in the UK

There won't be a confidence vote until Corbyn agrees that someone else should be caretaker Prime Minister. His minders won't let him pull another December stunt.

Trying to repeal the Benn Act on any grounds would almost certainly be quashed by an injunction. The Supreme Court has asserted the primacy of Parliament and it's difficult to see even the High Court trying go against that judgement.

Bojo could resign but the fixed term act doesn't mean this will lead to a new election. Cf. resignations of Cameron and May. May eroded an already slim majority through bloody-minded attrition but Bojo just threw it away in a fit of entitled pique.

PMQs this afternoon with a decidedly C-team: Raab and Abbot

Charlie Clark Silver badge

Re: Well that ruling has a timespan of about 30 days in the UK

Parliament also has the nuclear button of revoking Article 50.

Charlie Clark Silver badge

Re: Well that ruling has a timespan of about 30 days in the UK

Who hasn't done what?

I think the government might be planning to break and subsequently challenge the law in which case, given the Supreme Court's recent judgement, it's likely to find itself subject to an injunction and likely to be held in contempt. And then there are still plans to prorogue for a Queen's speech…

The B-team has already demonstrated it doesn't have the best legal team and Bojo's declaiming that he won't comply won't help him in court either.

Pity the fools who have put their trust in these idiots.

Charlie Clark Silver badge

Re: That was nice

Well, we now have a ruling for the lower courts to follow. A couple of summary judgements should be sufficient to get most people to start to comply

Charlie Clark Silver badge

Re: Well that ruling has a timespan of about 30 days in the UK

As things stand Parliament has passed a law that the UK will not leave on October 31st without an agreement including the continued observation of GDPR.

Charlie Clark Silver badge

Re: That was nice

Parameters are particularly susceptible to interception which is why this kind of session handling has been frowned upon for years.

Charlie Clark Silver badge

Re: That was nice

How's this supposed to work with a stateless protocol like http? The cookie is required to map browser requests to the server session.

Charlie Clark Silver badge

Re: That was nice

The ruling is quite clear: consent must be explicitly given so such messages are invalid. This shouldn't really surprise any once as it has consistently been the position of the courts.

However, GDPR is currently being revised and it wouldn't surprise me if some cookies become legitimate without consent as long as there is a list of them with their purpose and lifespan. It's not as if this hard to do, though I've seen multiple, ahem, "developers" fail to provide a correct list and explantion of a website's cookies. Note, that failure to do this correctly could go beyond GDPR and enter the realms of fraud.

BBC said it'll pull radio streams from TuneIn to slurp more of your data but nobody noticed till Amazon put its foot in it

Charlie Clark Silver badge

It hasn't been the same since Brian Redhead retired. Confrontational journalism usually serves the politicians who learn to get their sound bites said.

Charlie Clark Silver badge

The notice that somehow the BBC News homepage is better when you're logged in is, indeed, pretty Orwellian. The Charter almost explicitly mandates against this because the desire is to provide a universal service.

Charlie Clark Silver badge

All hail our VPN-wielding overlords

I've found the TuneIn streams to be generally more reliable. I quite like the I-Player Radio app, but it does struggle with cache invalidation and loves to switch to my mobile data for some reason. But BBC Sounds could have, and probably did come, from Nathan Barley and the Suga Rape crew. Programming matters, even when we're mainly time-shifting.

The mod firing squad: Stack Exchange embroiled in 'he said, she said, they said' row

Charlie Clark Silver badge

Code of conducts and so on are preferred.

Because they confer power on the groups that lobby for them. The US tendency to litigate does the rest.

Charlie Clark Silver badge

Re: Why is it even an issue on SE?

I am a moderator but I don't have time for it, which tells us all we need to know about crowd-sourced moderation. My time is devoted to answering questions on my software.

I like SE. I have found lots of usual information on it and I hope I've helped others and I think that the software gets a lot of things right that other forums have failed and the credit system isn't completely flawed.

But that doesn't mean that there isn't a lot of crap there.

Charlie Clark Silver badge

Re: Is this just an English thing ?

If you think our social constructions (girls wear pink, boys wear blue, for example) are biological

I don't, which is why I didn't say it.: those are roles. FWIW pink used to be considered the male colour.

As someone else has pointed out, it can be helpful to use "sex" for biology and "gender" for grammar, but I did point out that the two should not to be considered the same, though they are generally correlated for animals in many languages.

But I don't agree that gender can be self-assigned and I'm not at all a fan of the attempt to normalise sex-change medicine. I won't necessarily go out of my way to point this out.

But by and large, I find these CoCs are little more than a conscience-salving by an IT industry that has allowed itself to be cowed by some well-organised lobbying and American tort law. And it's always easier to sign up to a CoC than actually do anything significantly different.

Charlie Clark Silver badge

Re: Is this just an English thing ?

They to refer to unspecified individuals has been used for hundreds of years. Gender is a fact of biology that will survive any linguistic fashions. It's not the same as sexual orientation and distinct from any grammatical representation. The rules for any particular language are arrived at by consensus of the speakers, which means that changes by diktat are rarely successful for anything other than spelling, because the speakers have an innate sense of what is right or wrong for the language.

NASA Administrator upends the scorn bucket on Elon Musk's Starship spurtings

Charlie Clark Silver badge

Re: The NASA guy is right

I see you bought the t-shirt. He's not selling used cars, but he is selling a dream. He probably achieved more in his life by the time he was thirty than I will in my entire life. I'm glad he's doing something different from the rest of Silicon Valley and sometimes even putting in his own money. That should, however, not exempt him from criticism and there is, and probably has to be, a lot of smoke and mirrors in all his projects.

Charlie Clark Silver badge

The NASA guy is right

Musk is a salesman, which is why he's busy pimping tomorrow's project to keep investors interested and happy, because getting the big thing into space is going to be very expensive. This is a trick when you know you're going to miss a deadline: point to something even bigger on the horizon.

Note, I'm not knocking Space X, which has done some impressive things and introduced at least some competition into the satellite launch market.

Percona packages PostgreSQL alongside existing MySQL and MongoDB products

Charlie Clark Silver badge

Based on recent discussions with other developers, I'd largely agree with Percona's take. Postgres is becoming the default OS database for applications and SQLite is starting to colonise the MySQL space where speed and simplicity are sought over some of the more advanced RDBMS. It's nice to see several companies providing professional Postgres support and contributing actively to its development.

Worth noting, that though I'm no fan of Oracle, they have definitly improved the quality of MySQL since they bought it.

Ever own a Galaxy S4? Congrats, you're $10 richer as Samsung agrees payout over dodgy speed tests

Charlie Clark Silver badge

Re: ok so i'm out $10

Have to say that the S10e I got the other month is really good and that's before I discovered it had DeX. Before that I had (and still have two second-hand S5s), which are still great, not least because of the IR-blaster.

The biggest improvement is probably onboard RAM – 128 GB – which means I currently have an SD-Card slot free for a second SIM. The second biggest improvement for me, because I use the phone to navigate when cycling, is that the screen is far less sensitive to water. With the S5 rain could be a real problem because the screen thought it was fingers. No problem at all with the S10, though I don't know if this is the screen or the factory-installed screen protector. More oomph and a bigger battery means that the phone lasts longer while navigating. But seeing as I always have a 5000 mAh powerpack with me, that's not so much of a problem. The screen is also more readable in bright sunshine, and I quite like the single punch hole for the camera. But, basically cumulative improvements that the S11 will have more of.

Biggest bugbear is that it will be a struggle to put LOS on it once Samsung inevitably decides that it doesn't need to provide updates. It took me a while to deactivate most of the crap that the phone comes with and get a naked, dark theme.

Charlie Clark Silver badge
Stop

False equivalents

Which is in stark contrast to what happened with Volkswagen when it was caught doing a very similar thing with emissions tests

There is a huge difference between defrauding an official emissions test and tweaking an unofficial benchmark test and it is fatuous to suggest otherwise. Yes, Samsung's work was a little egregious but gaming benchmarks (OLAP, OLTP, Spec) is standard throughout the industry.

Careful now, UK court ruling says email signature blocks can sign binding contracts

Charlie Clark Silver badge

Re: Email?

I'm not disagreeing with you as I use PGP (very occasionally) myself and I'm used to sharing keys. But, as you note, given the current lack of requirement to do so (most spooks would go apeshit if PGP were to be generally used), we don't all have the necessary infrastructure for this to be reliable.

And the herds continue to migrate to the proprietary silos…

Charlie Clark Silver badge

Re: Email?

In general, you're absolutely right: state-issued identities are really useful in many situations as they largely solve the problem of trust.

But, I think the problem is that some of the implementations are leaky, because they are supposed to be used for things other than simply signing documents electronically. Unfortunately, I think we have to assume that if there is opportunity to collect metadata (party A signs an agreement with party B) then the opportunity will be used and the data at some point will be exploited.

In the UK, of course, this would never be open to government abuse as the service would be awarded to the biggest donor cheapest contractor most reliable contractor (oxymoron when it comes to IT outsourcing).

Charlie Clark Silver badge

Re: Email?

S/MIME is not considered to be that good, which is why in many goverment sanctioned situations, it's not acceptable.

PGP is a better approach but suffers from the problem of all decentralised systems: who do you trust? Though, it's not as if CAs haven't been compromised in the past.

Charlie Clark Silver badge

Re: Email?

In this case I would expect examination of the headers to be important than a signature. Most UK companies should be using TLS in which provenance can be established.

The wording of the e-mail makes fairly unequivocal reference to agreement and does not look like an invitation to treat or to solicit an enhanced offer.

SPARCs fly as Oracle recharges Arm server processor designer Ampere with $40m

Charlie Clark Silver badge

Re: Nice work if you can get it

This is hardly unusual in the industry, though it does depend a bit on whether they're executive or non-executive board members.

Hey, it's Google's birthday! Remember when they were the good guys?

Charlie Clark Silver badge

I remember the time. Google came on the seen just as Altavista was switching to pay to display, which almost overnight guaranteed that Google produced more relevant results and, with the VC backing, was able to turn that ability to produce relevant results into something it could sell. This success engendered the Silicon Valley VC model that sees network effects and monopolies above anything else.

I've always seen Google as just another US technology company. However, so far, I don't think it has yet reached the heights of abuse that in their time, AT&T, IBM and Microsoft have, and that Oracle and SAP currently enjoy. I expect it to bend, and occasionally even break, the rules. But I'm also repeatedly surprised at their long term to commitment to some ideas (YouTube was one big and expensive bet) and engagement in standards work even beyond their own narrow agenda.

Overall, I think we're lucky that Page and Brin maintained so much control of the company. I shudder to think what Google would have become if the VCs had gained control: some kind of Frankenstein mix of Uber and Facebook, no doubt.

Charlie Clark Silver badge
Facepalm

Re: Remember when they were the good guys?

Yes, because given the choice betweem commercial exigencies and conspiracy theory, you'll choose conspirancy wins every time.

I am, of course, paid by our lizard lords and the illuminati to sow discord among the faithless.

We're all doooooomed: Gloomy Brit workforce really isn't coping well with impending Brexit

Charlie Clark Silver badge

Re: "Well the OAPs who voted for it to keep Johnny Foreigner out are doing fine with Brexit. "

While I agree with the general stochastic analysis, it fails to take into consideration that as people get older their voting patterns tend to move towards long-term ones. So, some while some of the young people who too busy partying in 2016 to vote, would probably do so now, some of their parents who voted to remain then, might well vote to leave now.

Turn out would be key as would indeed be a positive campaign to stay. So the sooner Jezza retires to his allotment the better. Though I am slightly worried that he will be succeeded by Len McCluskey.

Charlie Clark Silver badge

Re: "while working on Rupert Murdoch's organ."

He was sacked for working at The Times when he could no longer cover up the shit he was making up. Of course, it's exactly the same kind of shit that The Telegraph laps up, which is why, even as Prime Minister, who might be considered to have more important things to do, he continues to be paid to write opinion pieces.