system
Given the following post, respond as if you're commenting on Reddit:
human
[scifi] I've read Dune and 40k codices, what other settings blend technology and swordfights well?

With Dune they give a neat explanation for knife fighting with the shields.
With 40k they just go rule of cool as ninja star railguns and bolts already do a great job shredding power armor, but chainsaws are thematic to the setting. I'm familiar with Star Wars too.

I've been looking for more books to read with scifi/sci-fantasy sword fights in space. Been enjoying the Vampire Hunter D novels right now.
gpt
The *Barsoom* series by Edgar Rice Burroughs mixes swords and guns through an honor system.  Honor dictates that you match your opponent's weapon and not cheat by outmatching a sword with your gun.  The first in the series is *A Princess of Mars* and should be public domain.