I think the biggest reason it's good is that it is minimalistic.
Just like a good musician can play wonderfully with a basic guitar, or a good photographer can take a well composed photograph with even a simple point and shoot instant camera, good programmers don't let themselves be distracted by new shiny features or architecture astronomy when delivering good software.
The default Go compiler keeps the full paths of the sources in the binary. This aids in debugging. However, sometimes it is desireable to have these removed from the final output, and sometimes you only really want a relative path to be in there.
There's no official support to let us do that at the moment, maybe I'll file a feature request (or patch) to Go if there are enough people wanting the capability.
It's relatively simple to achieve this, for example to remove the directory names, but keeping the filenames:
in pclntab(), replace
setuint32(ctxt, ftab, start + s->value*4,
setuint32(ctxt, ftab, start + s->value*4,
in writelines(), replace
strlen(files[i]->name) + 4);
strlen(basename(files[i]->name)) + 4);
The debug section of the executable also contains some paths. To tell Go not to compile with debug symbols and strip the binary, use `go build -ldflags "-w -s"`.
I've tested this with my program and it's been running ok. Not sure if any problems may be triggered by doing this (Go authors should know). But this is just a quick hint for others who might want to do something similar.
The debate of whether or not it’s good to train on an empty stomach also represents the divide between what science can tell us about fitness and what tradition accepts as being ‘true’.
To answer the question of whether it’s possible to train on an empty stomach we need to understand that every time our muscles are asked to exercise a number of complex, overlapping systems kick in. These systems intertwine which only adds to the confusion. To simplify and untangle them and get to a definitive answer we will look at this from the perspective of three simple elements that are involved in the process of muscle activation, every time:
- Fuel (in the form of Adenosine Triphosphate or ATP)
Every time that our muscles work these three elements combine to power several different chemical processes the efficiency of which is determined by a person’s cardiovascular and aerobic fitness, diet, body fat composition and the quality of the muscles they carry.
Without oxygen of course, nothing happens, yet sufficient oxygen for things to happen is not always readily available within the body which is why there is an anaerobic response.
Ask your body to run away from a zombie horde, lift heavy weights or jump over a collapsing bridge and your muscles kick into high gear and respond. This instant response is made possible because there is glycogen stored in the muscles that can be broken down through a process called glycolysis to produce pyruvate which is then converted into Adenosine Triphosphate (ATP), carbon dioxide and water. ATP is what powers the muscles.
Unless you have been hyperventilating beforehand, at that point there is insufficient oxygen in the bloodstream to power the process so the Cori cycle, also known as the lactic acid cycle, kicks in and the body works anaerobically (i.e without the need for oxygen). Lactic acid is produced during this process and it enables the muscles to continue to work past the stage where their ATP supply is exhausted. The muscle fibers that are activated to do all this are Type IIB, they are extremely fast in action, can produce great force but can operate only in short bursts before they get fatigued.
These are muscles that are great at helping you get away from the brain-eating zombies and taking action that helps you survive in an emergency but they cannot continue to power your workout past the first few minutes.
As you continue to work out your body’s temperature goes up due to the thermic effect of muscle activity. You take deeper, ragged breaths, your lungs expand and more oxygen from each breath is delivered into the bloodstream which the heart then pumps to the muscle groups in the body that need it most.
The moment oxygen arrives on the scene the Krebs cycle, also known as the citric acid cycle, kicks in. The Krebs cycle takes carbohydrates, fats and proteins and converts them into glycogen which can then be broken down into pyruvate through glycolysis to produce the now familiar ATP, water and carbon dioxide. One of the byproducts of this cycle is lactate which is then used by the body to transport glucose out of the liver, where it is stored, and into the muscles.
The muscle fibers that make this possible are Type I. These are slow twitch fibers that have a slow response rate, do not produce tremendous force but are highly resistant to fatigue. If you were busy running away from the zombie horde, by the time these muscles kicked in you’d have put some distance between it and you, rounded the corner and slowed down a little, gulping in air as you’re out of breath and your muscles are now burning aerobically.
The presence of oxygen in the bloodstream means that the body is now beginning to use fuel stored in the liver (glycogen) which is essentially carbohydrates. Should you continue to run a little longer and that fuel source runs out the body would then go to the stored fat reserves and use them as its next available fuel source.
More Anaerobic Activity
Suppose that having escaped the clutches of the zombie horde you decide that your best bet is to just get out of town so you just keep on running. At that point your breathing changes. The rate at which you ingest oxygen becomes less rugged and your breathing gets more even. Your breaths continue to be deep but now are measured. Runners and martial artists call this “second wind”. At this point the body continues to ingest large quantities of oxygen but the muscles are working mostly anaerobically.
The muscle fibers employed now are Type IIA. These are moderately resistant to fatigue, can work anaerobically for a long time and can produce a high level of force which is why you can suddenly speed up again when you’re running, after having slowed down to catch your breath a little. At this stage both the Cori and the Krebs cycle are in effect.
The body is looking for larger sources of fuel and these are the fat deposits that are converted into glycogen that can be turned into ATP, lactate, lactic acid, water and carbon dioxide. If your running away from the zombie horde entails running a marathon and your fat deposits are not enough then your body will look to protein to convert into glycogen to fuel its run.
This is a case of last resort. Protein (i.e. muscle) is not a great fuel source for the body as it takes between 20% and 30% of its energy value just to break it down plus by doing so the body cannibalizes its own muscle which makes its long term survival less likely. The body is only likely to look to protein as a source of fuel if the starvation response kicks in. Seeing how this also slows down the metabolic rate which makes vigorous exercise virtually impossible, it is unlikely that you will experience it in the gym or running away from a zombie horde.
Can You Train on Empty Or Not?
This is the question we set out to answer and seeing the processes that go into powering the muscles the answer is a definitive yes. Studies show that you can run for 2 hours at marathon pace before your body runs out of glycogen and a 2010 study published in the Journal of Science and Medicine in Sport showed that cyclists who completed exercise early in the morning without eating breakfast (fasted state) improved muscle glycogen stores by as much as 50% over the group that ate breakfast before their exercise.
There is additional research that shows that training on empty sensitizes the body to the insulin response allowing it to utilize glycogen in the bloodstream better. Plus, for athletes, there is the added benefit that on an empty stomach there is no diversion of the blood supply to anything but the muscles that need it.
So, why all the confusion? Well, there is a little more.
Timing is important
A study, published September 2008 in the Journal of Physiology and Pharmacology found that those who trained on an empty stomach and then went to bed, without eating, exhibited slowed muscle repair and growth, even though they consumed enough calories after they woke up. This is because human growth hormone (HGH) an anabolic, which is elevated during sleep is adversely affected by catabolic hormones like cortisol, glucagon and adrenaline that flood the system when training on empty. The same study also showed that people who are new to exercise, as a whole, should not exercise on an empty stomach because they experience lightheadedness, dizziness and even nausea as a result of low blood sugar which is usually the result of inefficiency in fat and glycogen breakdown in their bodies.
Showing just how important timing is, the most recent study from Northumbria University, in the UK, showed that you can lose as much as 20% more body fat by exercising in the morning before breakfast.
The 'Bulk and Cut' Question
What about the large body of empirical evidence that shows bodybuilders lose some muscle during their 'bulk and cut' phase? Well, let's look at some of the studies on this front. A 1996 study on bulk and cut without exercise found that the diet itself caused hormonal changes to take place in the body which helped in creating more muscle even as they also added to the fat content of the body. There is a complex process of hormonal changes that take place as a result of diet that directly impact upon the muscles' ability to work thermogenically. In other words during the cut phase of their training bodybuilders do not train at the same level of intensity. The body, being an adaptive machine optimizes itself so that it does not have to carry muscle it does not need, plus it now has the added impetus of fewer calories coming in. For bodybuilding which is all about building muscle for show a bulk and cut phase is a delicate balancing act between dropping body fat (which does happen) and losing some muscle, which also occurs.
So, absolute beginners who are looking to jump-start their fitness by training on empty, shouldn’t. Body builders who need to build muscle, also shouldn't train on empty. Trained athletes who train on empty and then go to bed without having eaten are not gaining much in their performance. For everyone else, training on empty in the morning, before breakfast or a little later in the day, and then having something to eat, is fine and it is likely to deliver faster results in reducing body fat and increasing muscle mass.
1. Javier T. Gonzalez, Rachel C. Veasey, Penny L. S. Rumbold, Emma J. Stevenson. Breakfast and exercise contingently affect postprandial metabolism and energy balance in physically active males. British Journal of Nutrition, 2013; 1 DOI: 10.1017/S0007114512005582
2. Barr SB and Wright JC.Postprandial energy expenditure in whole-food and processed-food meals: implications for daily energy expenditure. Food Nutr Res. 2010 Jul 2;54. doi: 10.3402/fnr.v54i0.5144.
3. Berg, J. M., Tymoczko, J. L., & Stryer, L. Biochemistry. New York: W.H. Freeman and Company. 2007.
4. Robergs, R. A., Ghiasvand, F., & Parker, D. Biochemistry of exercise-induced metabolic acidosis. American Journal of Physiology. 2004
5. Chatham JC, Gao Z-P, Forder JR. American Journal of Physiology. 1999;277:E342–351.
6. Drake AJ, Haines JR, Noble IM. Cardiovascular Research. 1980;14:65–72.
7. Gertz EW, Wisneski JA, Stanley WC, Neese RA. Journal of Clinical Investigation. 1988;82:2017–2025
8. Costill, D.L., Miller, J.M. Nutrition for endurance sport: Carbohydrate and fluid balance. Int. J. Sports. Med. 1980;1:2-14.
9. Coyle, E.F., and Coyle, E.L Carbohydrates that speed recovery from training. Phys. Sportsmed., 1993;21:111.
10. Esbjornsson-Liljedahl, M. Sundberg, C.J., Norman , B., and Jansson, E. Metabolic response in type I and type II muscle fibers during a 30-s cycle sprint in men and women. J Appl Physiol 1999;87:1326-1332.
11. Felig, P. and Wahren, J.: Fuel homeostasis in exercise. N Engl. J Med. 1995;293:1078.
12. Gaitanos, G.C., Williams, C., Boobis, L.H., and Brooks, S. Human muscle metabolism during intermittent maximal exercise. J Appl Physiol 1993;75:712-719.
13. GSSI. Are you eating enough carbohydrate? Sport Science Exchange 2000;13(4)
14. Guezennec, C. Oxidation rates, complex carbohydrates and exercise. Sports Med 1995;19:365-372.
By DAREBEE Team
The S6 Edge here feels absolutely awful in my hand. Putting aside the obtuse bulk that prevents me from holding it properly, the retractable cord is so strong as to keep pulling the device back to its stand. All I want to do is put this phone down.
This horrible experience can't be helping sales right?
- Doe-AndersonSenior Developer, presentI make websites.
golang: My introduction to the Go programming language - Supermighty - W...
Walled City is a world for you to engage in political intrigues, discussions, form alliances, broker treaties and fight for power with your
Why "mobile first" isn’t enough - Developing a better user experience
"Mobile first," is a concept that serves us well as a design tool, putting constraints on our messaging, layout, etc. But to use "mobile fir