@gregeganSF@mathstodon.xyz
@gregeganSF@mathstodon.xyz avatar

gregeganSF

@gregeganSF@mathstodon.xyz

I am a science fiction writer and computer programmer.
Latest novel: MORPHOTROPHIC.
Latest collection: SLEEP AND THE SOUL.
Web site: gregegan.net

This profile is from a federated server and may be incomplete. Browse more on the original instance.

gregeganSF, to random
@gregeganSF@mathstodon.xyz avatar

It makes sense that MacOS has a few words in its spellchecking dictionary that aren’t in the Oxford Dictionary used by the Dictionary app. “Genevieve” is one example.

But it makes no sense to me that some words the Dictionary app knows are redlined by the spellchecker.

gregeganSF,
@gregeganSF@mathstodon.xyz avatar

@caity @davepolaschek

I previously had no idea he wrote whimsical but educational children’s songs like this; I’d only heard his comedic/satirical stuff. I kept expecting this clip to turn dark or acerbic somehow!

gregeganSF, to random
@gregeganSF@mathstodon.xyz avatar

Two Chinese editions arrived in the mail today. PERMUTATION CITY is the first of my novels to be published in Chinese; the previous books have all been short story collections (like the other one here, OCEANIC).

gregeganSF, to random
@gregeganSF@mathstodon.xyz avatar

“exeme” sounds like some new-fangled technical term from the cutting edge of genetics or information theory ... but actually it’s just an archaic Scottish word meaning to release or exempt.

https://en.wiktionary.org/wiki/exeme

gregeganSF,
@gregeganSF@mathstodon.xyz avatar

@johncarlosbaez No! I actually stumbled on this word playing a puzzle game; it was not the answer to the puzzle, but it was accepted as a valid guess, which was amusing, because I had no idea what it meant and I was just trying it out because it fit the constraints and sounded like it might be a word.

gregeganSF,
@gregeganSF@mathstodon.xyz avatar

@HighlandLawyer

May we all be exeemed from the hair-powder tax.

gregeganSF, to random
@gregeganSF@mathstodon.xyz avatar

After more than three decades of development, you’d hope Mathematica could at least get the basics right … but no, here are three strings that sort into a different order if you append an identical suffix to all of them.

gregeganSF,
@gregeganSF@mathstodon.xyz avatar

@ngons This is ominous:

https://reference.wolfram.com/language/ref/Sort.html

“Sort orders strings as in a dictionary, with uppercase versions of letters coming after lowercase ones. Sort places ordinary letters first, followed in order by script, Gothic, double‐struck, Greek, and Hebrew. Mathematical operators appear in order of decreasing precedence.”

That last sentence really makes my skin crawl. Mathematical operators in strings are sorted by precedence? (I actually stumbled on this example because I found some file names that contained hyphens were appearing in a bizarre order.)

gregeganSF,
@gregeganSF@mathstodon.xyz avatar

@jamesh

Sorting the combined list gives:

{"-01", "019", "019a", "-01a", "020", "020a"}

gregeganSF,
@gregeganSF@mathstodon.xyz avatar

Full marks for honesty to Wolfram Technical Support:

“The documentation for Sort with strings (Sort orders strings as in a dictionary...) makes it unclear exactly how the strings should be sorted.”

So even if this is intended behaviour, maybe they’ll make the docs clearer.

gregeganSF, to random
@gregeganSF@mathstodon.xyz avatar

Breaking: OpenAI reaches deal with the estate of Douglas Rain.

luigithirty, to random
@luigithirty@xantronix.social avatar

the file transfer program that comes with TriSoft CP/M-68K is so old it calls XMODEM the Ward Christensen protocol

gregeganSF,
@gregeganSF@mathstodon.xyz avatar

@luigithirty

I wrote an implementation of the Christensen protocol for a PDP-11 in the early 1980s, to let the handful of colleagues who had personal computers upload and download files from the work computer! My program was called CPROT. Pretty sure we got details of the protocol from an electronics hobbyist magazine.

lana, to random
@lana@mstdn.science avatar

Since you're not supposed to eat grapefruit while taking meds as it enhances the effects of some meds to dangerous levels, why aren't those meds sold in smaller amounts premixed with grapefruit?

gregeganSF,
@gregeganSF@mathstodon.xyz avatar

@lana

From this description it sounds like the pharmacokinetics would become even more variable between individuals that way, so getting the dosage right for a particular person would be even harder than it is already.

https://www.fda.gov/consumers/consumer-updates/grapefruit-juice-and-some-drugs-dont-mix

“Many drugs are broken down (metabolized) with the help of a vital enzyme called CYP3A4 in the small intestine. Grapefruit juice can block the action of intestinal CYP3A4, so instead of being metabolized, more of the drug enters the blood and stays in the body longer. The result: too much drug in your body.

The amount of the CYP3A4 enzyme in the intestine varies from person to person. Some people have a lot of this enzyme and others just a little. So grapefruit juice may affect people differently even when they take the same drug.”

gregeganSF, to random
@gregeganSF@mathstodon.xyz avatar

Both popular science articles and many textbooks describe the Casimir effect — an attractive force between two closely spaced neutral conductors — as being due to the exclusion of some of the zero-point modes of the electromagnetic field, whose wavelengths are greater than the separation between the plates. In this account, the vacuum between the plates has less energy than ordinary vacuum.

A formula based on this model seems to agree reasonably well with the measured result. This has encouraged people to proclaim that “vacuum energy is real” and (sometimes) to suppose that this model can be pushed much further to predict larger regions of greater negative energy.

But in fact this force can be modelled as arising between the plates in a far more conventional way, related to van der Waals forces, which makes no reference at all to “vacuum energy”, and the formula based on zero-point modes can be seen as merely approximating a more accurate formula based on the material properties of the plates.

H/T Philip Ball on Twitter.

https://arxiv.org/abs/hep-th/0503158

gregeganSF, to random
@gregeganSF@mathstodon.xyz avatar

I guess the best way to get spectacular improvements in the performance of your code is to do something spectacularly inefficient in the first version.

I’ve been working on a project that needs to perform computations on a quantity X along with several dozen of its derivatives wrt a parameter t, i.e. X'(t), X''(t), ... This is a form of “automatic differentiation”, but with a large number of derivatives.

There are simple rules for performing basic arithmetic on these vectors of derivatives; addition is trivial, and multiplication only grows linearly with the order of the derivative in the number of terms in each formula.

But the derivatives of 1/X and √X, written as sums of products of powers of derivatives of X, scale horrendously: the number of terms for the nth derivative is equal to the number of integer partitions of n:

1, 2, 3, 5, 7, 11, 15, 22, 30, 42, 56, 77, 101, 135, 176, 231, 297, 385, 490, 627 ...

And for a while, I thought, well, that’s just the way it is, I’ll have to live with it.

But luckily that turned out to be very naive! In fact, you can just write down the formula for the derivatives of a product, X(t)Y(t) = 1, and then solve that system by back-substitution to get all the derivatives of Y from those of X. Similarly for the square root, from Y^2(t) = X(t).

So the payoff for being dumb in the first place was the glorious feeling of seeing my code now running exponentially faster than before!

gregeganSF,
@gregeganSF@mathstodon.xyz avatar

@rjurga It’s a geometrical thing I’m doing for fun / self-education. There’ll be an animation eventually, if I can get all the other details to work.

johncarlosbaez, to random
@johncarlosbaez@mathstodon.xyz avatar

Chemistry is like physics where the particles have personalities - and chemists love talking about the really nasty ones. It makes for fun reading, like Derek Lowe's column "Things I Won't Work With". For example, bromine compounds:

"Most any working chemist will immediately recognize bromine because we don't commonly encounter too many opaque red liquids with a fog of corrosive orange fumes above them in the container. Which is good."

And that's just plain bromine. Then we get compounds like bromine fluorine dioxide.

"You have now prepared the colorless solid bromine fluorine dioxide. What to do with it? Well, what you don't do is let it warm up too far past +10C, because it's almost certainly going to explode. Keep that phrase in mind, it's going to come in handy in this sort of work. Prof. Seppelt, as the first person with a reliable supply of the pure stuff, set forth to react it with a whole list of things and has produced a whole string of weird compounds with brow-furrowing crystal structures. I don't even know what to call these beasts."

https://www.science.org/content/blog-post/higher-states-bromine

gregeganSF,
@gregeganSF@mathstodon.xyz avatar

@johncarlosbaez

“You can have various mixed-halogen things, all of which are reactive and toxic and are distinguished by their various degrees of vileness.”

gregeganSF, to random
@gregeganSF@mathstodon.xyz avatar

Wow, Thomas Hales and Koundinya Vajjha have proved Mahler’s First Conjecture! (That’s Kurt Mahler, not Gustave.)

https://arxiv.org/abs/2405.04331

Mahler’s First Conjecture says that the centrally symmetric convex shape with the worst possible packing ratio is made up of straight lines and arcs of hyperbolas, like the smoothed octagons shown in the animation below (demonstrating a 1-parameter family of slightly different packings all with the same density).

Whether these smoothed octagons are, as Karl Reinhardt conjectured, the actual worst case is still an open problem.

A bit more detail on Reinhardt’s conjecture in this article by @johncarlosbaez :

https://blogs.ams.org/visualinsight/2014/11/01/packing-smoothed-octagons/

and this thread by Koundinya Vajjha on Twitter:

https://twitter.com/KodyVajjha/status/1790211313618362848

A 1-parameter family of packings of smoothed octagons.

11011110, to random
@11011110@mathstodon.xyz avatar

After seeing several recent student presentations on quantum algorithms, it occurs to me (as I'm sure it has occurred to others) that we desperately need some way of communicating these concepts at a higher and more intuitive level than slide after slide of tensor algebra equations. If we tried to describe classical algorithms but our language was limited to circuit diagrams, how far would we get?

gregeganSF,
@gregeganSF@mathstodon.xyz avatar

@11011110 I haven’t looked closely at this, but it might be a move in the direction you’re looking for:

https://diagrams-2024.diagrams-conference.org/workshops/the-diagrammatic-turn-in-quantum-physics/

gregeganSF, to random
@gregeganSF@mathstodon.xyz avatar

Feeling a strange compulsion to watch this again:

https://en.wikipedia.org/wiki/BrainDead

gregeganSF,
@gregeganSF@mathstodon.xyz avatar

@slowbiex Someone should follow him around on the hustings playing “You Might Think” by The Cars.

gregeganSF, to random
@gregeganSF@mathstodon.xyz avatar

I enjoyed “Manhunt”, since I knew almost nothing about the history of the period, or Edwin Stanton. The mixture of 19th century and modern language didn’t bother me, but I did laugh when Patton Oswalt used air quotes

gregeganSF, to random
@gregeganSF@mathstodon.xyz avatar

TIL that I cannot include a double quote or an asterisk in anything I write to the Australian Taxation Office in their secure messaging system, but backticks are OK.

I’m sure there are Reasons.

Valid characters are: A-Za-z0-9 - .? / ' ! $ % & _= \ : ; ( ) { }[ ] @ # ` | , space

gregeganSF,
@gregeganSF@mathstodon.xyz avatar

@TruthSandwich

Anything’s possible — and who knows what weirdly bad software that cannot be changed this portal has to interface with — but in most languages it would be far less work ruling out SQL injections than screening out specific characters from the input.

https://www.php.net/manual/en/mysqli.quickstart.prepared-statements.php

gregeganSF, to random
@gregeganSF@mathstodon.xyz avatar

“Dream Scenario” fell flat for me on every level: comedy, metaphysics, metaphor, social satire — there wasn’t a trace of energy or inventiveness in the whole 90 minutes. I would have had a thousand times more fun rewatching “Nightmare on Elm Street” or “Being John Malkovich.”

gregeganSF,
@gregeganSF@mathstodon.xyz avatar

@spoltier “Malkovich” was enormous fun.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • rosin
  • Durango
  • cisconetworking
  • mdbf
  • InstantRegret
  • DreamBathrooms
  • ngwrru68w68
  • magazineikmin
  • osvaldo12
  • Youngstown
  • ethstaker
  • slotface
  • kavyap
  • JUstTest
  • thenastyranch
  • normalnudes
  • modclub
  • khanakhh
  • everett
  • tacticalgear
  • cubers
  • GTA5RPClips
  • anitta
  • Leos
  • tester
  • provamag3
  • lostlight
  • All magazines