Better HN
topnewbestaskshowjobs
Log inSign up

hamish_todd

66 karma · joined Jul 12, 2017 (9y ago) · 34 submissions

Submissions

comment 5mo ago · link · parent

You are correct and this is another failing of the article. Hestenes has very little relevance to the field today - the Atiyah/Penrose school, via Jon Selig, is much more influential. To be fair the article would have been correct ten years ago, but not now (sorry Alex!)

comment 5mo ago · link · parent

You're certainly correct that it would be the done thing in physics (and I have written a draft for my blog).

But note that Geometric Algebra is significantly a tool for graphics/game developers, who tend to prefer videos (even the older generation I think)

comment 5mo ago · link · parent

Very sorry to hear about the brain fog, that's rough. Best of luck getting through it.

> in some cases

What cases do you have in mind?

> why are these your operators in the first place?

This is a perfectly reasonable question but I want to point out that it's a bit philosophical and not the kind of thing physics undergrads tend to enjoy hearing about. For example Clifford algebras like matrix algebras are associative algebras over commutative fields (real or complex numbers) - why? Why does the universe like that? I can hazard guesses but it's mostly above my paygrade, possibly above anyone's paygrade. But if it's to be asked of GA it should be asked of matrices too, I'm sure you can agree.

There's something that distinguishes Clifford algebras from matrix algebras. They start from the assumption that vectors anticommute when they're orthogonal. That's easy to explain. It says that if A and B are orthogonal vectors then A->B is the opposite (negation) of B->A.

Aside from those the last thing is that you say your basis vectors have a certain "metric" on them. There's deep philosophical questions about why the universe cares so much about metrics, but they're not at all specific to Clifford Algebra.

Personally I find that very intuitive, much more intuitive than any other tensor algebra I'm aware of.

comment 5mo ago · link · parent

Ah! If you do it would probably would need to be a followup rather than addendum

comment 5mo ago · link · parent

If you want to learn physics from a geometric viewpoint, GA is brilliant. Here's a playlist of my stuff, which is aimed at computer graphics folks: https://youtube.com/playlist?list=PL9a8DfUJQcuA9AXqvjxYolq5-...

Leading up to classical mechanics, you have the sibgraphi tutorials: https://youtube.com/playlist?list=PLsSPBzvBkYjxrsTOr0KLDilkZ... (I also recommend the bivector discord if you want a community)

And from there, sudgy's videos are good, and the tome "geometric algebra for physicists" packs in a huge amount of stuff.

comment 5mo ago · link · parent

In physics and especially computer graphics, yes. These are two fields that are culturally very different from algebraic geometry, in that mathematical techniques that appear at all "exotic" are "hard to sell", even if they're useful. Hence having to have a more marketable name for Clifford algebra ("geometric algebra" is just Clifford algebra), and having to have endless screaming from the rooftops for people to learn the slightest thing (like "multiplication is transform composition").

comment 5mo ago · link · parent

The geometric product is transform composition. It plays the same role as matrix multiplication: if a group is represented by a set of matrices or multivectors then the GP will be group composition.

For example Cl(4,2) can represent the spacetime conformal group and Cl(3,0,1) can represent the Euclidean group. If A and B are elements of those groups represented by multivectors then AB will be their composition.

That is an extremely fundamental operation. Almost as, if not more, fundamental than inner and wedge.

I mention this every time this article is posted on hacker news and nobody wants to talk about it :`(

comment 5mo ago · link · parent

He's distressingly wrong about this, the geometric product is transform composition

(Apologies to folks who have seen me repeat this a million times; but it's very important folks be aware of it)

comment 5mo ago · link · parent

Can do either! If your multivectors represent linear transformations then their products will also be linear transformations. If they're affine transformations then their products will be affine transformations. Euclidean, conformal, etc!

comment 5mo ago · link · parent

The geometric product is transform composition.

TRANSFORM COMPOSITION!

(sorry, it's not your fault or even his that you didn't know this - GA textbooks should have it as the first thing they teach but they don't)

comment 5mo ago · link · parent

I'm a GA researcher. I did this livestream of my reaction to the article

https://m.twitch.tv/videos/2282548167

TLDR it is quite a bad article. One of the closest thing he has to a real argument is "I don't like it when geometric objects are identified with operators, I want those to be separate things". But this is both anti-GA and anti-Lie-Theory. As he says, he is critical of mathematics as conventionally practiced. So be warned that if you find yourself disliking GA for anything like the reasons he dislikes GA, there's a lot of other (mainstream/prestigious) fields you dislike too.

12.

AI's Non-Euclidean Geometry(youtube.com ↗)

2 points · by hamish_todd · 1y ago · discuss

comment 1y ago · link · parent

Since Geometric Algebra == Clifford Algebra, Michael Atiyah, Roger Penrose, and Paul Dirac disagree with you.

comment 1y ago · link · parent

You're making the word "some" do a lot of work in this comment. It's true that eg I would represent the inertia tensor with a matrix. But I would calculate it with GA... and I struggle to think of many other physics problems for which I wouldn't use GA (Poisson bracket in GA is particularly elegant). See my other comment on projections I suppose.

On the other hand, from what you've posted you're clearly experienced with computer graphics - it sounds like you have at some point interpolated with dual quaternions?

This hackernews thread may not be sustainable, so perhaps join the bivector discord? https://discord.gg/bBvkuTrM I would be very interested to find out the precise things you care about, on the off chance that there is some not-yet-known-to-you way that GA can help you.

comment 1y ago · link · parent

The geometric product does transform composition. It has all the properties you want for multiplication in an algebra, or indeed a monoid or group.

So it is like matrix multiplication, but for transforms represented as multivectors. Multivectors are nicer than matrices because they are made out of the separate (exterior algebra) objects so you can geometrically interpret them. For example, a rotation-reflection (rotoreflection/improper rotation) will have a grade 1 part and a grade 3 part. One of them is the plane you reflect in, one is the point you rotate around.

comment 1y ago · link · parent

There are ten thousand examples I want to give of why you're wrong. We have to start somewhere so here's a favourite, the "universal projection formula":

(A.B)/B

Projects any A onto any B, in any number of dimensions and with any signature (eg hyperbolic/Euclidean/elliptic). A and B can be lines, planes, points, and with a conformal or anti de Sitter metric a sphere or hyperboloid etc ("blades").

It works because A.B is dimension independently the object "orthogonal to A and containing B or vice versa". And division by B will intersect that orthogonal object with B.

Concise, intuitive, and powerful. What's the linear algebra formula you'd consider to be comparable?

comment 1y ago · link · parent

A quaternion is some amount of identity averaged with some amount of line reflection. You can visualize the line reflection as a pair of planar reflections at 90 degrees to each other. You can visualize the identity as a pair of planar reflections that are the same. Averaging the two of those will give you a pair of planar reflections that are some angle apart.

You're correct that you can construct a quaternion with the exponential map - but the most common way to make a quaternion is with a pair of vectors. Every game engine will have that function. GA will tell you how that function works - the vectors are planar reflections, you compose those to get a rotation by twice the angle, and you add (average with) the identity rotation to get a rotation by the precise angle.

> how to detach the two notions from each other

Can you say why would you want to do that? A plane always defines a planar reflection, a point always defines a point reflection, a line always defines a line reflection (assuming we're in euclidean space, which engineering is). To me this doesn't seem to be "happen to have" territory, this seems fundamental.

comment 1y ago · link · parent

The second paragraph of the conclusion: "Nor should we be trying to make everything look more like complex numbers and quaternions. Those are already weird and confusing; we should be moving away from them!"

It's also implicit in the thing he says throughout: "bivectors and trivectors are good, but there's no reason to add a scalar to a bivector or a trivector to a 1-vector, nor is there a reason to multiply such objects". A quaternion is a scalar and a bivector added together!

comment 1y ago · link · parent

I did two streams where I went through this article and explained the many places it is wrong. The second part of the article has more maths in it, so most of the content is there, you can watch it here: https://www.twitch.tv/videos/2282548167

(it's very long so I plan to edit the two streams into a digestible 10-15m or something. His fault not mine I'd say!)

Probably other commenters have already said, but the biggest giveaway is how he says we should move away from quaternions, and then demonstrates little to no awareness of why quaternions are used in engineering (vital in gamedev for example, your animations will look awful without quaternions). Yes, quaternions are hard if you are completely married to the idea that everything in geometry is ""vectors"". But the games industry put on its big-boy pants and learned to use them - they wouldn't do that if the things weren't useful for something, so it's bit silly to write an article like this if you haven't figured out why that happened.

comment 2y ago · link · parent

Hey folks, here are two lectures by me on GA, at the Game Developer Conference: https://www.youtube.com/watch?v=en2QcehKJd8 https://www.youtube.com/watch?v=dSe7eg8Dj98

They include a visual code editor I worked on - it's very janky (no proper errors) but you can play with it here https://hamishtodd1.github.io/ga/ed - ALT+ENTER to compile

And if you're still with me I'll add that I'm working on a Geometric Algebra-based animation program in VR https://www.youtube.com/watch?v=Tf5RUJP-4oE

21.

Visual Guide to Quaternions and Geometric Algebra for game programmers [video](youtube.com ↗)

2 points · by hamish_todd · 2y ago · 1 comment

comment 2y ago · link · parent

From that page: "When Euler Angles interpolation is used, Unity internally bakes the curves into the Quaternion representation used internally. This is similar to what happens when importing animation into Unity from external programs"

comment 2y ago · link · parent

Where in the docs does it say that? Euler angle lerps, in the general case (eg none of the starts or ends are 0), look like complete shit.

You need the log quat representation. Exp( Tlog(q1/q0) ) q0

comment 2y ago · link · parent

Unity uses quats in its object transforms?

comment 2y ago · link · parent

It's an extremely common misconception that because GPUs have matrix matrix and matrix vector products in the standard, that means GPU companies must be accelerating them.

In fact, because it is SIMD across the shader cores already, you can't necessarily do this. Some GPUs do, some don't

comment 2y ago · link · parent

The mixed elements are the important ones!

A quaternion with w=1, x,y,z=0 is just the identity.

A quaternion with w=0, x=1, or perhaps w=0, x=y=0.7, those would only ever be rotations by 180 degrees.

If you want arbitrary rotations, you need some combination of the two: "a little bit of 180 around this line, and a little bit of 0deg rotation/identity". That's what it means to have scalar and bivector.

If you "being careful" with wedge and inner to avoid mixtures you are doing it wrong. Geometric product is the boss, and makes excellent mixtures!

comment 3y ago · link · parent

>"untyped"

It's amazing because that's the diametric opposite of what I'd consider to be true this is what the non-GA approach does, and which we avoid!

The modern approach to GA, eg https://en.wikipedia.org/wiki/Plane-based_geometric_algebra, distinguishes planes-through-the-origin, points, lines-through-the-origin, and lines-at-infinity. These four different types all get called "vectors" in the ordinary mindset. The cross product is said to take in two "vectors" and give you a "vector", but in reality it's generally taking two planes and giving you a line. This is talked about in the fourth paragraph of the wiki article :)

comment 3y ago · link · parent

Seeing lots of discussion here! People with a game programming background might get something out of the talks I gave at the Game Developer Conference this year. The first one is on quaternions and and the advanced Geometric-Algebra-like use of them by Crytek and Disney to do animation https://gdcvault.com/play/1029233/ and the other is on how you can use that to get intersection, distances, angles, and projection in one line of code https://gdcvault.com/play/1029237/

29.

Pictogrammatic Programming Project(youtube.com ↗)

1 points · by hamish_todd · 4y ago · discuss

30.

Game about bayesian updating; watch murder mysteries together, bet on the ending(murdershebet.com ↗)

2 points · by hamish_todd · 5y ago · discuss

12