Live data from Hacker News

Does DNA have the equivalent of IF-statements, WHILE loops, or function calls?

biology.stackexchange.com

21–30 of 204 posts

Re: Does DNA have the equivalent of IF-statements, WHILE loops, or function calls?

#21
post #9

> There are no equivalents of function calls. All events happen is the same space and there is always a likelihood of interference. Proof that code with all functions inlined, with only global variables, with bugs and happy accidents all over the place, eventually gains sentience and becomes self aware.

[deleted]

Re: Does DNA have the equivalent of IF-statements, WHILE loops, or function calls?

#22
post #15
post #9

> There are no equivalents of function calls. All events happen is the same space and there is always a likelihood of interference. Proof that code with all functions inlined, with only global variables, with bugs and happy accidents all over the place, eventually gains sentience and becomes self aware.

Evolution is a wonderful algorithm - open ended, and yet in a single run it created all life, including human culture and technology.

What I find fascinating about evolution is that it is entirely un-intentional. There is no-one/nothing directing it yet its outcome presents (and can be discussed as) a design.

Re: Does DNA have the equivalent of IF-statements, WHILE loops, or function calls?

#23
post #22
post #15

Earlier quoted context omitted.

Evolution is a wonderful algorithm - open ended, and yet in a single run it created all life, including human culture and technology.

What I find fascinating about evolution is that it is entirely un-intentional. There is no-one/nothing directing it yet its outcome presents (and can be discussed as) a design.

There is an imperative force internal to evolution - self replication. Information must propagate (replicate) from the past into the future. But this leads to competition for resources, and hence drives evolution.

Re: Does DNA have the equivalent of IF-statements, WHILE loops, or function calls?

#24
All the various logic gates have been observed in (DNA) gene expression studies - both naturally occurring and bioengineered tools. In particular there are tons of bioengineered tools for inducible gene expression that have all manner of gating mechanisms for precise temporal control of expression (triggered by behavior, environment, drug, elapsed time, etc.).

Reading...

https://en.wikipedia.org/wiki/Cre-Lox_recombination?wprov=sf...

https://en.wikipedia.org/wiki/Receptor_activated_solely_by_a...

https://www.ncbi.nlm.nih.gov/pmc/articles/PMC2802553/

https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4772104/

Re: Does DNA have the equivalent of IF-statements, WHILE loops, or function calls?

#25
IF-statements: An IF statement executes the code in a subsequent code block if some specific condition is met.

Cell chemistry can impact production of the protein strings DNA codes for and can impact if they are even functional.

Not a programmer, so maybe that's not a good analogy. But it's what came to mind as an amateur student of "Exactly how do my defective genes make my life a living hell?"

Re: Does DNA have the equivalent of IF-statements, WHILE loops, or function calls?

#26
post #20

Well, DNA might not have programming structures, but it acts like a neural network. See "Gene regulatory network" > Some proteins though serve only to activate other genes, and these are the transcription factors that are the main players in regulatory networks or cascades. By binding to the promoter region at the start of other genes they turn them on, initiating the production of another protein, and so on. Some tr…

Before anyone jumps to esoteric conclusions:

This is more likely a result of neural networks being very general: General in the sense that they are able to approximate/model a lot of dynamic systems that allow operadic composition.

Re: Does DNA have the equivalent of IF-statements, WHILE loops, or function calls?

#27

An interesting question because all of this genetic encoding and expression is probabilistic at its very core (it has to be, otherwise there wouldn't be evolution), whereas it would be very bad if basic operations in a CPU had similar level of error rates. Interesting to me how the top comment has talked about constructing logic gates out of biological circuits. I wonder if anyone has done the opposite, i.e., write a…

> probabilistic programming language whose operations are under the same amount of noise as a cell

The reason for the probabilistic nature is that biological "computations" are eletrochemical reactions and feedback loops, which do not map very well to the concept of "executing code" as in programming languages. I think a closer analogy could be a hardware description language that sythesizes analog circuits for computations (cf. analog computers) which are then subject to noise from electromagnetic radiations in the environment.

So in a certain sense, this has already been done in a very rudimentary way during the pre-digital age of computing.

Re: Does DNA have the equivalent of IF-statements, WHILE loops, or function calls?

#29
post #4

I teach a creativity and innovation course at my uni. There are many examples I share with my students of inventions which started life as observations of nature (e.g. Velcro came about from observing how burrs stick to the fur of the inventor's dog). My bones tell me that there are discoveries about computing waiting to be made from observing how things are done in nature, particularly in the human mind. I imagine t…

A lot of how we conceive of computation today is based on observation of nature. It's the a logical conclusion to the study of logic, which is a line of inquiry that dates back to antiquity when sophistry was becoming a real institution and there was yet no real systematic way of determining if something was true other than whether it sounded true.

Re: Does DNA have the equivalent of IF-statements, WHILE loops, or function calls?

#30
post #4

I teach a creativity and innovation course at my uni. There are many examples I share with my students of inventions which started life as observations of nature (e.g. Velcro came about from observing how burrs stick to the fur of the inventor's dog). My bones tell me that there are discoveries about computing waiting to be made from observing how things are done in nature, particularly in the human mind. I imagine t…

I recommend this book a lot, but 'Cats’ Paws and Catapults: Mechanical Worlds of Nature and People' (https://www.goodreads.com/book/show/223609.Cats_Paws_and_Cat...) is a great look at how biology inspires human design.

One idea that is important (IIRC from this book) is that many examples are really inspiration, and not direct copying of design. Biology works very differently to human machines, with very different constraints, so when engineers and designers try to stick too closely to the biological original, it may not work out very well!

Post reply on HN