That is EXACTLY what I was thinking when I played half life and saw both of these...
TBH I'm pretty sure Aperture Science must have somehow taken technology from the Combine without them noticing, or the other way around. The both got the energy balls and the turrets...
Infact if you look closely you'll see the turrets in Portal fire pulse ammo like from the AR2 and combine turrets.