the reduced velocity will be offset somewhat by the reduced weight of the gun.
Not necessarily."If we have two 25oz guns, one with a two inch barrel, the other with a 6 inch barrel."
New weightless barrel material?
That IS the whole issue.
Unless you can extend a barrel with zero additional weight, the longer barreled gun weighs more.
Remember also that handgun recoil is as much rotational (e.g. muzzle rise) as it is linear, and shortening the barrel reduces the moment of rotational inertia much more than it reduces the overall mass of the gun, hence much more muzzle flip with the shorter barrel.
Remember also that handgun recoil is as much rotational (e.g. muzzle rise) as it is linear