I've come across these quotes by German philosopher Friedrich Nietzsche (1844 – 1900) and about Chinese daoist philosopher Zhuangzi (4th century BC).
from Nietzsche's The Birth of Tragedy from the Spirit of Music:
But now science, incited by its powerful delusion, speeds on inexorably right to its limits, at which point the optimism hidden in the essence of logic breaks down. For the circumference of the circle of science has an infinity of points, and while it is still impossible to see how that circumference could ever be completely measured, nevertheless the noble, talented man, before the middle of his life, inevitably comes up against such a border point on that circumference, where he stares out into something which cannot be illuminated.
from the Wikipedia article about Zhuangzi:
In general, Zhuangzi's philosophy is skeptical, arguing that life is limited and knowledge to be gained is unlimited. To use the limited to pursue the unlimited, he said, was foolish.
from Nietzsche's The Birth of Tragedy from the Spirit of Music:
Dionysian art thus wishes to convince us of the eternal delight in existence: only we are to seek this delight, not in appearances, but behind them; we are to recognize how everything which comes into being must be ready for painful destruction; we are forced to gaze directly into the terror of individual existence—and nonetheless are not to become paralyzed: a metaphysical consolation tears us momentarily out of the hustle and bustle of changing forms. For a short time we really are the primordial essence itself and feel its unbridled lust for and joy in existence; the struggle, the torment, the destruction of appearances now seem to us necessary, on account of the excess of innumerable forms of existence pressing and punching themselves into life and of the exuberant fecundity of the world will.
from the Encyclopædia Britannica article on Zhuangzhi (the book):
The text presents a process-oriented view of the cosmos, which is the product of the ceaseless fluctuations and transformations of the Dao (Way) The dao perpetually generates and transforms the “ten thousand things” — of which the human race is one — that constitute the world.
These excerpts make Zhuangzhi's ancient and Nietzsche's more contemporary (early) philosophy sound very similar e.g. in their pessimism as to what human knowledge can achieve.
My question is this: have the similarities and possible relations between the two philosophies been studied and if so, what are the main conclusions drawn? (BTW, I'm not asking for some homework exercise but would like to delve further into relevant sources after noticing these matches.)