Tuesday, August 18, 2020

Gentle Introduction to C : extern Keyword

Originally Posted on SeedBx


Welcome to the seventh part of the Gentle Introduction to C series. As said before this series aims to provide you a brief introduction to C language.

In this part, we will be talking about the keyword extern.

However before talking about about extern keyword, let us just refresh our mind with the understanding of declaration and definition.

Declaration : Declaration of a variable or a function, as the name suggests, declares the variable or the function. However, during the declaration of a variable or function no memory is allocated for the entities. The sole purpose of declaration is to tell the compiler or the program about the type of variable or number of arguments, type of each argument,return type (in case of functions).

Definition : Definition of a variable or function, as the name suggests, defines the variable or the function. Definition of a variable or function, in addition to what declaration does, allocates memory for the entities. Hence, you can consider definition as a super set of declaration i.e. all definitions are declarations but all declarations are not definitions.

Note : Declaration of a variable or function can occur many times. However, a variable or function can only be defined once. This is due to the fact that a single variable  or function cannot be defined at multiple memory locations.

Now let's talk about extern keyword.

extern Keyword

The sole purpose of extern keyword is to extend the visibility of a variable or function. By visibility here I mean the scope of the variable or the function.

In case of variables, extern keyword can also be used to declare a variable.

Let us try to understand this using an example.

        int a;
In the line above the variable a is defined i.e. memory has been allocated to the variable a.

        extern int a;
In the line above the variable a is declared only i.e. memory has not been allocated to the variable 'a'.

So, if write a code like,
        extern int a;
        int main()
        {
            a=0;
            return 0;
        }
The code above will throw an error, as the variable a is only declared and not defined. So the code above essentially is trying to change the value of a memory location which doesn't exists.

So, we can modify the code as,
        #include "fileContainingDefinitionOfa.h"
        extern int a;
        int main()
        {
            a=0;
            return 0;
        }
Assuming that the file fileContainingDefinitionOfa.h contains the definition of variable a, the above code will compile successfully.

Note : If the variable declared using extern keyword is initialised, then the compiler allocates memory to the variable and hence implicitly defines the variable.

Example :
        extern int a=0;
        int main()
        {
            a=100;
            return 0;
        }
The above code will not throw any errors.

In case of functions, extern keyword is used to extend the visibility of the function. 
Since, the extern extends the visibility of the function to the whole program, the function can be called from any files provided that those files contains the declaration of the function.
With functions, the extern keyword is implicitly assumed whenever a function is declared or defined i.e.
        int foo (int a, int b)
is treated by the compiler as
        extern int foo (int a,int b)


At last, using extern keyword is a great way to define and declare global variables and often useful when certain functionalities and variables are to be shared among several files.


Thanks for reading.

As usual your suggestions and feedback are always welcome.


Also See : PointersFunction, void Pointer

Friday, August 14, 2020

India's Strategies on Space!! Defending the Space!!


Illustrative Image

Space is an amazing place, you can escape the world through it or you can destroy the world by dropping a bomb through it. With defence technologies becoming increasingly deadly, it’s important for any country to develop their own space deterrence technologies to defend themselves from above.

India is one of those countries understanding the importance of this geopolitical development and has been actively investing in space and space related applications. Under the motherhood of ISRO, India has been constantly working on technologies for civilian use but what has caught up most eyes is its involvement in development of next-gen technologies for defence applications.

Illustrative Image

For a country like India which dreams of becoming a superpower in the near future, it's justified why they have been developing their own Space Situational Awareness (SSA) capabilities by building data processing units across the world.

Under ISRO Telemetry, Tracking and Command Network (ISTRAC), ISRO launched a programme named Telemetry, Tracking and Command (TTC), to build a world-wide infrastructure to track and communicate with India's space assets and provide the country with a precise and effective deterrence tool so as to defend against any incoming hypersonic projectile with a potential nuclear warhead. The system provides India to reduce its time lag of activating the nuclear doctrine.

Illustrative Image

Under TTC, India has been able to established tacker systems in Port Louis in Mauritius, Bear Lakes in Russia, Biak in Indonesia, Brunei, Svalbard in Norway, Troll in Antarctica, Vietnam, Gatun Lake in Panama, Sao Tome and Principe in West Africa.

Another project code named Project NETRA or the Network for Space object tracking and Analysis was launched recently to add on to India's Space Situational Awareness Capabilities.

This system guarantees effective deterrence against incoming threat via space by supporting the Prithvi Air Defence system and also the anti-satellite defence system under project Mission Shakti. NETRA efficiently combines with the pre-programmed chip of Shakti defence system for active retaliation against threat to India's space assets in Low Earth Orbit and has future plans to extend the range up to 36000 km.

Illustrative Image

The ongoing expansion of Indian defence in the fifth domain of warfare that is space, only after land, air, sea and cyber can well be linked to the recent events faced by the country. India is trying to go solo and self-reliant in cutting edge technologies to support its key assets without the fear of foreign intervention or effect of international sanctions. With the new education policy announced, it is clear that India is now focusing on making the country future ready with prime focus on cyber world. As the world is moving away from a non-aligned movement and everyone is trying to make their group stronger and capable, both in terms of economy and diplomacy, India needs to be vigilant before making any decision on geopolitical front.

 It is important for the country to not be a part of any block as a result of international pressure. India's space advancement brings the country at par with major players of the world and therefore ensures a safer ecosystem for their economy and a stronger stance in international forums.

Illustrative Image

Communication and intelligence are the base of any war and a country's space assets ensure the relay of those aspects. Destroying the entire communication system of a country means under supply of any external intelligence as well as internal data sharing. So, it's important for a country like India which heavily depends of its military and communication satellites for data communication, to develop deterrence technologies to protect its land and sovereignty.

 

Note : All images used in this post has been taken from Google Images and the copyright of each of the images lies with their copyright holders.


The views expressed above are personal and belong to the author.

This post has been written by Rishav Kumar.


Also See : Is Indian Ocean the Next Battleground?, Bleeding China!! Is this the Beginning of the End?, India's Nuclear Ambitions, India's Future Plans : Exploring Space

Saturday, August 8, 2020

India's Future Plans : Exploring Space


Picture of Telescope

The Earth is the cradle of humanity, but mankind cannot stay in this cradle forever.

Space is the final frontier and future economies need to conquer this frontier to survive. India is a young country with tremendous capabilities to become a global powerhouse, and sure enough the country is taking adequate measures to tap those potential to fulfil India's future endeavours.

Indian Space Research Organization (ISRO) is a major player in the space sector, making strides in the field of technology. ISRO recently announced the development of IN-SPACe programme to allow private players to be a part of the country's future endeavours.

Statistics about Space

Indian National Space Promotion and Authorization Centre (IN-SPACe) will access demands of private players, including educational and research institutions and explore ways to accommodate these requirements in consultation with ISRO. With the offset of new algorithms, Artificial Intelligence (AI), Internet of Things (IOT), and other technologies, it had become increasingly difficult for the organization to keep up with the projects. Since ISRO was the only body responsible for the all-round development of next-gen delivery system, communication and military satellite, foreign orders, tracker system, navigation system, research developments and many more, it was important to release the burden off them to allow ISRO to focus on development of research related operations and allow private players to take up the less important aspects of the industry such as launching, maintaining, mass production works and less research intensive development.

Picture showing Satellites revolving around Earth

According to the new IN-SPACe programme, existing ISRO infrastructure, both ground and space based scientific and technical resources and even data can be made accessible to interested parties to enable them carry out their space related work. IN-SPACe will be the facilitator and regulator and act as an efficient bridge between both the parties.

Development of another arm under the organization was announced in 2019 that would be responsible for supply and demand of space application systems. New Space India Limited (NSIL) is responsible to look for customers for ISRO's products and also interact with them on behalf of the organization for development of technologies required by them. ANTRIX is another arm of the organization similar to NSIL but deals with international clients. These expansionary policies of the government have strengthened the capabilities of ISRO which has allowed it to come up with ambitious plans to push India's space boundaries to next level.

Announcement of India's own space station was a big buzz across the country and world which shows the effectiveness of those policies. The Space Station is going to be a 20 tons modular model with facilities to hold multiple astronauts for 15-20 days at a time.

Gaganyaan

India is not restricted to collaborate with anyone in space sector and definitely could have easily joined the next-gen International Space Station programme but ISRO choose a more dangerous but reliant and self-motivating path to build its own station which will allow the country to have full autonomy over the scientific research done in space.

Statistics about the Number of Orbits

ISRO has already started to work on developing the technologies for the same. With the announcement of Gaganyaan mission, India will have the technology to launch humans in space and perform complex manoeuvres of docking and re-entry. The organization is all set to test its abort systems and is currently developing the life support systems. And the best part of this mega project is that Indian start-ups and companies are actively involved in helping ISRO.

Announcement of IN-SPACe was a historic moment partially because it opened a new sector for private players to explore but mainly because under this programme, the Indian government will be able to inspire young minds to get involved in research. This is also an opportunity to allow private players to understand the changing technology and be future ready to support the backbone of Indian economy.


Note : All images used in this post has been taken from Google Images and the copyright of each of the images lies with their copyright holders.


The views expressed above are personal and belong to the author.

This post has been written by Rishav Kumar.


Also See : Is Indian Ocean the Next Battleground?, Bleeding China!! Is this the Beginning of the End?, India's Nuclear AmbitionsIndia's Strategies on Space!! Defending the Space!!

Friday, July 31, 2020

India's Nuclear Ambitions


Nuclear Chimney

We are a power hungry nation. Eventually we need to rely on indigenous raw material for long-term sustainability of a country which is going to support one-fifth of humanity. With over 22 nuclear reactors presently active, and plans to build reactors worth 20,000 MW of installed capacity by 2030, India is well on its track to fulfill its commitment of meeting 40% energy demand via renewable resources.

However, there are some major challenges India had to face during the initial stages of transition into nuclear energy and was faced with scrutiny from various international organizations and superpowers regarding the fear of nuclear enrichment. Despite the challenges and various sanctions ranging from credit guarantees, to technology transfer and many more, the country was able to develop its own nuclear weapons as well as its own unique IPHWR technology to support its Thorium reactor programs.

Map of location of Nuclear Power Plants in India 

When the western world was busy covering their ambition of creating more warheads under their nuclear reactor program, India's intent regarding its power requirements were clear. The country understood its limitations as a non-permanent member of UN and Nuclear Supplier's Group (NSG), and lack of uranium deposits, India focused on the resources that were available with it.

India is the largest country in terms of thorium deposits and henceforth it was important to develop and master its own technology rather than relying on the west. Today India's thorium factor has put the country in a self-reliant position and to a position where the country is now ready to export its knowledge in exchange of monetary and geopolitical reach.

International Thermo-Nuclear Experimental Reactor (ITER), a group of 7 countries namely China, USA, Russia, South Korea, Japan, EU and India, working together and are in the final stages of developing capabilities required to extract energy via nuclear fusion. A step towards replicating the Sun will ensure a nuclear waste free world and a far more efficient technology that will solve the global energy problem. Just to keep things in perspective and realize the importance of fusion reactor, 50MW of input power can generate 500MW of output power.

Once the technology is complete, India will own 100% right of the know-how along with all other members of ITER which will solve domestic power requirements.

Statistics of Consumption and Production of Electricity in Africa

About 625 million people in Africa have no access to electricity. In order to make things worse, only $45.6 billion have been spent from 1990 to 2013 in the energy sector which is half of what is required to be spent annually. However, this poor spending in the energy sector is justified by the low economic growth and instability in the region. Still, the governments of Africa are eager to bring nuclear energy to their country and are taking steps to ensure that. In 2015, Egypt, Ghana, Kenya, Morocco, Niger, South Africa, South Sudan, Tunisia, and Uganda came together to form the "African Network for Enhancing Nuclear Power". Countries like Algeria, Congo, Egypt, Ghana, Libya, Morocco, Nigeria and South Africa have also set up "Nuclear Research Reactor" to develop majority of the technology themselves. The positive news is that every nation except two have signed non-proliferation treaty and hence the International Committee has confidence in exporting nuclear technology to these nations without the fear of Uranium Enrichment for defence purposes.

However, due to budget constraints, they are unable to acquire the technology from the west. India can be the potential supplier for these technologies at a lower cost. Since India has mastered the procedure of IPHWR, Africa means billion dollar business opportunity.

India had announced $10 billion as credit to Africa in 2015. Another $600 million and another $100 million for India-Africa development fund. Given scholarship to thousands of students to pursue education in India and have till date hoisted 35 African leaders. The friction between the country and Africa is a thing of past. Today India realizes the huge market Africa has to offer, as a result the bilateral trade stood at $69 billion.

The country has already developed significant trade infrastructure in the continent which will ensure safe transfer of nuclear reactor technology which will allow India have a greater role in African diplomacy and politics.

Statistics about Nuclear Power Plants in the World

All in all, advancement in nuclear technology will determine the faith of a country. With prices of natural resources for power generation are touching historic lows and fear of depletion will one day create havoc on earth if humanity fails to find a long-term and sustainable alternative for power. India is well placed in the race but the country also needs to tap the global market to ensure all round growth of the Indian Economy.


The views expressed above are personal and belong to the author.

This post has been written by Rishav Kumar.


Also See : Is Indian Ocean the Next Battleground?, Bleeding China!! Is this the Beginning of the End?, Recession Ahead? Wall Street Catching Gold!!, India's Future Plans: Exploring Space

Saturday, July 25, 2020

Is COVID-19 Vaccine Ready?

Originally Posted on SeedBx


COVID-19 has impacted the world like no other disease has in the past century. This pandemic which is still surging and rather soaring has affected 15.7 million people of which sadly 640K people have succumbed to the disease (as of 25/07/2020).

In this period of sad times, most of our hopes have been pinned on the development of vaccine to eradicate the virus and most importantly make things normal once again.

Here is a list of all major candidate vaccine that may, in the near future, be successfully made and deployed.


Sinovac Developed Vaccine

Sinova Vaccine Image

Sinovac Biotech Ltd. is a biopharmaceutical company based in Beijing, China. The candidate vaccine made by Sinovac is currently in Phase III stage of clinical evaluation. The Phase III human trials, conducted in Brazil, are being sponsored by Instituto Butantan to test efficacy and safety of the inactivated COVID-19 vaccine. The human trials are also being conducted in China. The vaccine has also been approved for trials in Bangladesh. The Phase I/ II trials showed promising results with no serious adverse effects noted in any of the 743 volunteers in the trial.


Oxford COVID Vaccine

University of Oxford, U.K. along with Swedish DrugmakerAstraZeneca Plc, is developing a vaccine for COVID-19. The candidate vaccine made by Oxford-AstraZeneca is currently in Phase III stage of clinical evaluation. The Phase III human trials are being conducted in Brazil and the human trials are completely sponsored by Brazilian entrepreneurs. The vaccine is also currently in clinical trial in U.K. and South Africa. Pune-based Serum Institute of India has also sought permission to begin Phase I/III clinical trials in India. The Phase I/ II trials showed promising results with no serious adverse effects noted in any of the 1,077 participants in the trial.


Sinopharm Developed Vaccine

Sinopharm Group Co. Ltd. is a Chinese pharmaceutical company. Sinopharm’s unit China National Biotec Group is developing two coronavirus vaccines. The vaccines are currently in Phase III stage of clinical evaluation. The Phase III human trials are being conducted in United Arab Emirates. The trials are also being conducted in China. The Phase I/ II trials showed promising results with high generation of antibodies in the participants and no serious adverse effects noted in any of the 1,120 volunteers in the trial.

 

Conclusion

The results of various vaccines have been very impressive till now. The Chinese pharmaceutical companies have even gone to claim that their vaccines may be out by the end of 2020. We can just hope to see these vaccines being deployed successfully so that we can live a normal life once again.

There are still more vaccines being developed which are currently in Phase I/II. For further information visit Draft Landscape of COVID-19 candidate vaccine.

 

References

https://www.who.int/publications/m/item/draft-landscape-of-covid-19-candidate-vaccines

http://www.sinovac.com/?optionid=754&auto_id=907

https://www.thelancet.com/journals/lancet/article/PIIS0140-6736(20)31604-4/fulltext

https://www.globaltimes.cn/content/1192598.shtml