15 in Macbook Retina Pro or Dell XPS 15in or HP Envy 15in

I was wondering which one I should buy:

Windows is my primary OS with some programs being Windows only. If I get the Macbook Pro I would use Bootcamp and Parallels. But I heard the battery life isn't as great with Bootcamp and Parallels.

15 inch Retina Macbook Pro (2013) : 512gb, 16gig RAM

15 inch Dell XPS: XPS 15 Touch Screen Laptop with the same options as above.

Link: http://www.dell.com/us/p/xps-15-9530/pd

OR

15 inch HP Envy upgraded to a quad core with 16gigs RAM

Link: http://www.shopping.hp.com/en_US/home-office/-/products/Laptops/HP-ENVY/E2E34AV?HP-ENVY-15t-j100-Quad-Edition-Notebook-PC-ENERGY-STAR-

I would prefer something on the lighter side like the Dell or the Macbook Pro and cost isnt a concern here I just want something that will last a good 3-4 years. A quad core is a must and 8gb or 16gb isn't a big deal. If I go with the Macbook Pro I wo

My main use will be for grad school where I program a lot, use MATLAB, image analysis, 3Ds MAX, PovRay and other computational programs.

What do you think I should get and if anyone has better options that these three please let me know.