<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Adwaith Jayasankar</title>
    <description>The latest articles on DEV Community by Adwaith Jayasankar (@kichuman28).</description>
    <link>https://dev.to/kichuman28</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1124596%2F777af359-36fc-431b-9926-6267cf6e1f8e.jpeg</url>
      <title>DEV Community: Adwaith Jayasankar</title>
      <link>https://dev.to/kichuman28</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kichuman28"/>
    <language>en</language>
    <item>
      <title>A Universe of Triangles.</title>
      <dc:creator>Adwaith Jayasankar</dc:creator>
      <pubDate>Sun, 16 Nov 2025 07:09:28 +0000</pubDate>
      <link>https://dev.to/kichuman28/a-universe-of-triangles-3f9n</link>
      <guid>https://dev.to/kichuman28/a-universe-of-triangles-3f9n</guid>
      <description>&lt;p&gt;I love video games... even though it's not that apparent. Recently I've been looking into the making of the Godfather of all first-person shooters, the original &lt;strong&gt;DOOM (1993)&lt;/strong&gt;. I'll be honest the creator of DOOM, &lt;strong&gt;John Carmack&lt;/strong&gt; is one name I wasn't familiar with but after I looked into his works? It's kind of weird how he's not a household name yet. I'm pretty sure he is in the world of programmers though. The actual reason I'm looking into all this is because I wanted to learn how video games work, mostly the image rendering aspect. The more I looked into it, I realized how much I'm lacking in basics and what better way to learn the basics than go through &lt;strong&gt;Computerphile's Graphic Series with John Chapman&lt;/strong&gt;?&lt;/p&gt;

&lt;p&gt;So, this article is going to be the first of a 5 part series where I break down each video of the playlist, my iteration of trying to break it down simply as John Chapman did for me. &lt;/p&gt;

&lt;h2&gt;
  
  
  You're saying the matrix stuff I learned in high school is important?
&lt;/h2&gt;

&lt;p&gt;Just a heads up, for the people who already know about matrixes and dread it (like me) I promise you I'm going to make this interesting. For those who don't, prepare to get your mind blown :)&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;First question, how do we take a 3D object and represent it in the computer?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fj4zyah6vlgdrh45t72i4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fj4zyah6vlgdrh45t72i4.png" alt=" "&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We use something known as a &lt;strong&gt;Coordinate System (Specifically Cartesian Coordinate System)&lt;/strong&gt;. It involves an x-axis and a y-axis, where you can plot points with respect to the origin. The points are separated by a unit of size. So &lt;strong&gt;two dimensionally&lt;/strong&gt;, you can use this system to represent the location of points as shown in the image above.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fq18gu8cnv3aqdse0c5cj.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fq18gu8cnv3aqdse0c5cj.png" alt=" "&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;What about &lt;strong&gt;three dimensions&lt;/strong&gt;? Well one more axis comes into the play, called the z-axis. If you have the power to visualize, the above image is how plotting points three dimensionally might look like. &lt;/p&gt;

&lt;p&gt;Yay! Now you know how a Coordinate System works. Now let's jump into binary space partitioning (BSP) which is a method for space partitioning which recursively subdivides a Euclidean space into two convex sets by using hyperplanes as partitions.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Just kidding&lt;/strong&gt;, don't stop reading yet. Let's now try to represent a simple 3D object, let's say a pyramid (pretty confident you all know what that is) in a coordinate system.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbwkwmjj7mkg4d2wsjgwb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbwkwmjj7mkg4d2wsjgwb.png" alt=" "&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;As shown in the image, a pyramid has 5 vertices. However, all we're doing right now is specifying the corners and our representation tells us nothing about the faces of the pyramid.&lt;/p&gt;

&lt;h2&gt;
  
  
  So how do we represent the faces?
&lt;/h2&gt;

&lt;p&gt;Well one way to go about it is have three vertices per face of the pyramid. Since a pyramid has five faces (including the bottom) that's 5 times 3 equals 15 vertices overall. But... don't you think that's a lot of duplication for the vertices? &lt;/p&gt;

&lt;p&gt;For a pyramid it's not a big deal. I get it. What about a 3D object that has &lt;strong&gt;hundreds and thousands of points&lt;/strong&gt;? The duplication depending on the shape can be insanely huge which none of us wants. Bleh.&lt;/p&gt;

&lt;p&gt;If you look at the pyramid in the image, we have named each and every point with an alphabet. Using that, I can say one of the faces has points ABC. Where each alphabet represents that point. Similarly, another face can have ADC, AEB and so on and so forth. Congrats, we successfully represented the faces of a pyramid without using 15 individual points!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1ezr4mebwbq6wg0uvvke.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1ezr4mebwbq6wg0uvvke.png" alt=" "&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Wait!&lt;/strong&gt; We're not done yet. What about the bottom face? The bottom face of a pyramid is a square. So according to the image we can represent it as a square and make it have 4 vertices. In this case it'll be EDCB. So, problem solved? Umm...well yes, but no. &lt;/p&gt;

&lt;h2&gt;
  
  
  What do you mean by 'yes, but no?'
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fahsri9ydz426wyfxmpyp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fahsri9ydz426wyfxmpyp.png" alt=" "&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A better approach is to divide the rectangular base into two triangles, as shown in the image. Why triangles? This can get a little trippy so bear with me XD&lt;/p&gt;

&lt;p&gt;The best option for situations like these is to always divide these objects into triangles. In the words of John Chapman, &lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"&lt;strong&gt;Any 3D surface in the universe is able to be approximated by fitting together triangles.&lt;/strong&gt;"&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h2&gt;
  
  
  But why though? Why triangles?
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;It's the simplest polygon. There are only 3 vertices. No brainer.&lt;/li&gt;
&lt;li&gt;Triangles are easy and fast for GPUs to process. They are more or less the native language of GPUs.&lt;/li&gt;
&lt;li&gt;Most importantly, any arrangement of the three vertices in a 3D space will always be &lt;strong&gt;coplanar&lt;/strong&gt;. Don't worry, I'll explain.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  What does coplanar even mean?
&lt;/h2&gt;

&lt;p&gt;Imagine a triangular piece of rigid cardboard. &lt;strong&gt;Hold two corners down and try to lift it from the third one&lt;/strong&gt;. Does the triangle bend? I don't think so. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxfuwhigaaucpumgf8z7i.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxfuwhigaaucpumgf8z7i.gif" alt=" "&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now try the same with a rectangular piece of cardboard. &lt;strong&gt;Hold down 3 points, try lifting from the fourth one&lt;/strong&gt;. I don't know about you, but I'm pretty sure you can't do that without bending the cardboard. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fd3ikh4j3hd3ot2maq421.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fd3ikh4j3hd3ot2maq421.gif" alt=" "&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;That's all what coplanar means. In the case of a triangle, all three points &lt;strong&gt;must&lt;/strong&gt; lie on one plane. It can rotate or tilt, but it must never bend.&lt;/p&gt;

&lt;p&gt;What's crazy is that &lt;strong&gt;every shape can be divided into triangles!&lt;/strong&gt; Have a look at the example given below on how a cylinder is divided into triangles.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkh06uveri545l5cv04ou.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkh06uveri545l5cv04ou.gif" alt=" "&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The more triangles we use, the &lt;em&gt;&lt;strong&gt;smoother&lt;/strong&gt;&lt;/em&gt; the edges become. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvzwwtkjpj6bxjj4hnki0.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvzwwtkjpj6bxjj4hnki0.gif" alt=" "&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Before I 'wind' (no pun intended) up this article, there's one more problem we need to address. How do we recognize the faces of an object? Heads up: the names we gave to each vertex comes into play here. Recognizing the faces of an object is a very important concept that comes into play for advanced concepts such as lighting and shadows on 3D objects. We normally call this process as '&lt;strong&gt;winding&lt;/strong&gt;'.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwq2446xennjnvn87hm45.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwq2446xennjnvn87hm45.gif" alt=" "&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This was pretty fun. I almost forgot what it was like researching topics on your own and writing articles from scratch. Hopefully my motivation lasts for the next 4 articles in this series.&lt;/p&gt;

&lt;p&gt;Thank you so much for reading guys! Have a look at the video I was talking about below:&lt;/p&gt;

&lt;p&gt;

  &lt;iframe src="https://www.youtube.com/embed/KdyvizaygyY"&gt;
  &lt;/iframe&gt;


&lt;/p&gt;

</description>
      <category>cpp</category>
      <category>matrix</category>
      <category>imagerendering</category>
      <category>videogames</category>
    </item>
    <item>
      <title>Unstoppable Reddit Research Agent! – Real-Time Insights with n8n + Bright Data</title>
      <dc:creator>Adwaith Jayasankar</dc:creator>
      <pubDate>Sat, 30 Aug 2025 10:11:33 +0000</pubDate>
      <link>https://dev.to/kichuman28/unstoppable-reddit-research-agent-real-time-insights-with-n8n-bright-data-34g0</link>
      <guid>https://dev.to/kichuman28/unstoppable-reddit-research-agent-real-time-insights-with-n8n-bright-data-34g0</guid>
      <description>&lt;h2&gt;
  
  
  &lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/brightdata-n8n-2025-08-13"&gt;AI Agents Challenge powered by n8n and Bright Data&lt;/a&gt;&lt;/em&gt;
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flzg0rfhmnaapus7vxphc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flzg0rfhmnaapus7vxphc.png" alt="Comic Strip"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Built
&lt;/h2&gt;

&lt;p&gt;Online communities like &lt;strong&gt;Reddit&lt;/strong&gt; are a treasure trove of user concerns, struggles, and honest feedback. Every day, people share their unfiltered experiences—whether it’s about skincare routines, tech products, mental health, or niche hobbies. For businesses, researchers, or even curious individuals, this raw conversation is a window into what people actually think, feel, and need.&lt;/p&gt;

&lt;p&gt;But the problem? These discussions are often &lt;strong&gt;chaotic, unstructured, and scattered&lt;/strong&gt; across countless comments—making it overwhelming to extract actionable insights.&lt;/p&gt;

&lt;p&gt;That’s where my project comes in.&lt;br&gt;
I built an &lt;strong&gt;AI-powered workflow&lt;/strong&gt; that:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Analyzes Reddit posts and comments in real time&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Extracts the underlying concerns, themes, and trends&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Automatically generates clear, structured reports inside Notion&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;In short, it transforms messy threads into digestible knowledge bases—perfect for:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Marketers&lt;/strong&gt; → tracking sentiment, product pain points, emerging trends&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Researchers&lt;/strong&gt; → organizing authentic, large-scale community insights&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Everyday users&lt;/strong&gt; → turning Reddit rabbit holes into useful, structured knowledge&lt;/p&gt;

&lt;p&gt;This workflow bridges the gap between community chatter and real understanding, making online discussions finally usable as living, actionable data.&lt;/p&gt;


&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;

&lt;p&gt;  &lt;iframe src="https://www.youtube.com/embed/Ax9oxG9d9JI"&gt;
  &lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fa77ktrj6fppszcl07t20.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fa77ktrj6fppszcl07t20.png" alt="Content from SkincareAddiction subreddit"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fof5efwmiq7t9rpen8qg2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fof5efwmiq7t9rpen8qg2.png" alt="Actual subreddit"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  n8n Workflow
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://gist.github.com/kichuman28/5f0dc6c3b5eaf2377442964faa096630" rel="noopener noreferrer"&gt;Github Gist Link&lt;/a&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  Technical Implementation
&lt;/h2&gt;

&lt;p&gt;This project leverages n8n’s modular workflow engine, Bright Data’s Verified Node, and Google Gemini to build a real-time Reddit insights agent that scrapes posts + comments, processes them, and delivers structured marketing insights into Notion.&lt;/p&gt;

&lt;p&gt;Here’s a breakdown of the key nodes and how they fit into the workflow:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Schedule Trigger&lt;/strong&gt;: Runs the workflow on a timed basis, ensuring continuous monitoring of subreddit activity.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Set Subreddit&lt;/strong&gt;: Defines which subreddit to analyze (hardcoded or user-input).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;RSS Read&lt;/strong&gt;: Pulls the most recent posts from the chosen subreddit’s RSS feed.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Extract URLs&lt;/strong&gt; → Aggregate URLs: Cleans and batches the post URLs to prepare them for Bright Data’s scraper.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Bright Data Nodes&lt;/strong&gt;: (see next section for full detail) Used to initiate, monitor, and download data-rich snapshots (post details, comments, upvotes).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Loop Over Items &amp;amp; Control Flow&lt;/strong&gt;: Ensures that batch extractions are retried until Bright Data reports readiness.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Data Preparation (Set &amp;amp; Aggregate)&lt;/strong&gt;: Extracts essential fields (title, description, comments, upvotes, etc.) and reduces them into a single object for LLM input.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;AI Agent Node&lt;/strong&gt;: Uses Google Gemini as the underlying model, with system prompts tailored to generate actionable marketing insights in structured JSON format.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Notion Integration&lt;/strong&gt;:&lt;/p&gt;

&lt;p&gt;Create a page → initializes a new Notion page for each insights report.&lt;/p&gt;

&lt;p&gt;Md to Notion Blocks → converts AI output (Markdown) into Notion-compatible blocks.&lt;/p&gt;

&lt;p&gt;Add blocks as Children → appends the AI-generated insights into the Notion workspace.&lt;/p&gt;

&lt;p&gt;This combination allows the workflow to run end-to-end autonomously: from subreddit scraping → to AI-driven summarization → to real-time reporting in Notion.&lt;/p&gt;




&lt;h2&gt;
  
  
  Bright Data Verified Node
&lt;/h2&gt;

&lt;p&gt;Bright Data’s Verified Node was the data backbone of this project. Here’s how it was used step-by-step:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Initiate Batch Extraction from URL&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Operation: triggerCollectionByUrl&lt;/p&gt;

&lt;p&gt;Input: A batched list of subreddit post URLs.&lt;/p&gt;

&lt;p&gt;Output: A snapshot_id representing the batch extraction job.&lt;/p&gt;

&lt;p&gt;Purpose: Kickstarts Bright Data’s web scraper to collect post metadata and comments.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Check the Status of Batch Extraction&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Operation: monitorProgressSnapshot&lt;/p&gt;

&lt;p&gt;Input: snapshot_id&lt;/p&gt;

&lt;p&gt;Output: Status values (running, ready, etc.).&lt;/p&gt;

&lt;p&gt;Purpose: Polls Bright Data until the dataset is marked as ready.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Control Flow: Loop &amp;amp; Condition&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Loop Over Items + Wait 30 Seconds: Creates a polling mechanism.&lt;/p&gt;

&lt;p&gt;If Check → Batch Ready: Ensures data is only downloaded when Bright Data confirms completion.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Download the Snapshot Content&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Operation: downloadSnapshot&lt;/p&gt;

&lt;p&gt;Input: snapshot_id&lt;/p&gt;

&lt;p&gt;Output: Full structured dataset (title, description, comments, replies, votes, etc.).&lt;/p&gt;

&lt;p&gt;Purpose: Provides the rich Reddit dataset that powers the AI analysis.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Post-processing (Extract Essential Data)&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Fields captured: title, description, comments, upvotes, num_comments, url.&lt;/p&gt;

&lt;p&gt;Structured into a clean JSON object for downstream AI consumption.&lt;/p&gt;

&lt;p&gt;The Bright Data integration ensures that the AI isn’t relying on static or partial information—it has access to real-time, community-level conversations with full context, making the insights both fresh and actionable.&lt;/p&gt;




&lt;h2&gt;
  
  
  Journey
&lt;/h2&gt;

&lt;p&gt;The biggest challenge I faced was &lt;strong&gt;converting the AI Agent Node’s output into properly formatted Notion documents&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;I had to dive deep into the &lt;strong&gt;Notion API&lt;/strong&gt; — learning about blocks, page IDs, and content structure — before I could get everything working smoothly.&lt;/p&gt;

&lt;p&gt;This process gave me valuable hands-on experience connecting &lt;strong&gt;AI outputs with real productivity tools&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;For the future, I plan to build a &lt;strong&gt;more detailed workflow and documentation&lt;/strong&gt; so others can easily replicate and extend it.&lt;/p&gt;




&lt;h2&gt;
  
  
  Future Improvements
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Multi-Subreddit Monitoring&lt;/strong&gt; – Track discussions across multiple subreddits to uncover community-wide trends.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Notion Database Integration&lt;/strong&gt; – Push insights directly into databases for better querying, filtering, and reporting (beyond just static pages).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Advanced Filtering&lt;/strong&gt; – Add layers for sentiment analysis, product mentions, and brand signal detection to deliver sharper insights.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cross-Platform Export&lt;/strong&gt; – Support sending reports not only to Notion but also to Google Docs, Slack, Email, or other productivity tools.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Setup Guide for the Community&lt;/strong&gt; – Publish a detailed tutorial and documentation so anyone can replicate or customize the workflow.&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Towards a SaaS Product&lt;/strong&gt; – Transform this into a user-facing platform where:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Users can securely input their Bright Data key and Notion credentials.&lt;/li&gt;
&lt;li&gt;Select multiple subreddits (or future sources like Twitter/X, Discord, or forums).&lt;/li&gt;
&lt;li&gt;Choose preferred output channels (Notion, Google Docs, Slack, Email, etc.).&lt;/li&gt;
&lt;li&gt;View insights directly on the web app or integrate with their existing stack.&lt;/li&gt;
&lt;/ul&gt;


&lt;/li&gt;

&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Vision Statement:&lt;/strong&gt;&lt;br&gt;
My long-term vision is to build a SaaS platform that democratizes community insights — so anyone, from solo creators to product teams, can tap into real-time online conversations and instantly turn them into structured, actionable knowledge without needing technical setup.&lt;/p&gt;




&lt;p&gt;With n8n + Bright Data + AI, I’ve shown how to turn chaotic online conversations into &lt;strong&gt;structured, actionable intelligence&lt;/strong&gt; — directly inside Notion 🔥.&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>n8nbrightdatachallenge</category>
      <category>ai</category>
      <category>webdev</category>
    </item>
    <item>
      <title>Understanding evolution, through coding !</title>
      <dc:creator>Adwaith Jayasankar</dc:creator>
      <pubDate>Fri, 01 Sep 2023 13:17:31 +0000</pubDate>
      <link>https://dev.to/kichuman28/understanding-evolution-through-coding--1pa0</link>
      <guid>https://dev.to/kichuman28/understanding-evolution-through-coding--1pa0</guid>
      <description>&lt;p&gt;Recently I came through this &lt;strong&gt;crazy video&lt;/strong&gt; showcasing how &lt;strong&gt;&lt;em&gt;evolution&lt;/em&gt;&lt;/strong&gt; works through the theory of &lt;strong&gt;&lt;em&gt;natural selection&lt;/em&gt;&lt;/strong&gt;. The video was made by David Miller, you can check out the full video through this link: &lt;strong&gt;&lt;em&gt;&lt;a href="https://youtu.be/N3tRFayqVtk?si=9DHAYaoSnmo6Z3Ed" rel="noopener noreferrer"&gt;https://youtu.be/N3tRFayqVtk?si=9DHAYaoSnmo6Z3Ed&lt;/a&gt;&lt;/em&gt;&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;If you just want the revised version of the video, hope on!&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;What is evolution and natural selection?&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;Evolution is the &lt;strong&gt;&lt;em&gt;gradual change in living organisms&lt;/em&gt;&lt;/strong&gt; over time. It is based on natural selection which is nature's way of &lt;strong&gt;&lt;em&gt;favoring traits that help organisms survive and have babies&lt;/em&gt;&lt;/strong&gt;, making species better suited to their environment over time.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F759ighcgr6t1pf7zwzdd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F759ighcgr6t1pf7zwzdd.png" alt=" " width="630" height="326"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;What is this video about?&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;So what David Miller did is that he created a &lt;strong&gt;&lt;em&gt;2 dimensional world where little creatures live that have brains&lt;/em&gt;&lt;/strong&gt; (made up of neural networks) and have genes which the creatures are capable of passing onto the next generation.&lt;/p&gt;

&lt;p&gt;He then set up the &lt;strong&gt;&lt;em&gt;conditions necessary for evolution&lt;/em&gt;&lt;/strong&gt; and wanted to see how the creatures would adapt to it.&lt;/p&gt;

&lt;p&gt;The simulations which he showed were some of the most fascinating concepts I've seen in a long time and it honestly blew my mind away!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbigme7o8d80d80cadr8k.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbigme7o8d80d80cadr8k.png" alt=" " width="800" height="404"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;What are the conditions necessary for evolution?&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;1) &lt;strong&gt;Self - replication&lt;/strong&gt; : This refers to just &lt;strong&gt;&lt;em&gt;reproduction&lt;/em&gt;&lt;/strong&gt;, as evolution cannot occur without it.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkdx4xwy82s9ryijepw0x.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkdx4xwy82s9ryijepw0x.png" alt=" " width="800" height="380"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How does it work?&lt;/strong&gt;&lt;br&gt;
Each creature is simply a &lt;strong&gt;&lt;em&gt;data structure&lt;/em&gt;&lt;/strong&gt; that contains tiny bits of information such as:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;em&gt;Coord&lt;/em&gt;&lt;/strong&gt;: Information regarding where it lives in the world.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;em&gt;Genome&lt;/em&gt;&lt;/strong&gt;: Contains the information necessary to pass onto it's kids.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;em&gt;Neural Net&lt;/em&gt;&lt;/strong&gt;: The brain of the creature.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Now if you just copy this data structure and memory, voila! You achieved self - replication.&lt;/p&gt;

&lt;p&gt;2) &lt;strong&gt;Blueprint&lt;/strong&gt;: In nature, every creature that is born, has to be made from some sort of a blueprint. This &lt;strong&gt;&lt;em&gt;blueprint is referred to as genes&lt;/em&gt;&lt;/strong&gt;, which consists of the information that is passed onto the next generation.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffgo7s8njxss3co6g5h8r.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffgo7s8njxss3co6g5h8r.jpg" alt=" " width="800" height="525"&gt;&lt;/a&gt;&lt;br&gt;
3) &lt;strong&gt;Inherit Blueprint&lt;/strong&gt;: This blueprint that is used to make an individual, has to be inherited. Just like how &lt;strong&gt;&lt;em&gt;babies inherit characteristics from their parents&lt;/em&gt;&lt;/strong&gt;. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fuqe69pfds07zwwsjbmrx.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fuqe69pfds07zwwsjbmrx.jpg" alt=" " width="800" height="475"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;4) &lt;strong&gt;Mutation&lt;/strong&gt;: Usually when we inherit genes from our parents, the information is copied a 100% accurately &lt;strong&gt;MOST&lt;/strong&gt; of the times, but once in a while, &lt;strong&gt;&lt;em&gt;we'll get a gene that has a slightly different information&lt;/em&gt;&lt;/strong&gt;, leading to mutations. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzdhf853npo5222vp13aj.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzdhf853npo5222vp13aj.jpg" alt=" " width="715" height="403"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;5) &lt;strong&gt;Selection&lt;/strong&gt;: For evolution to occur, there must be some sort of selection procedure on &lt;strong&gt;&lt;em&gt;who gets to reproduce and who doesn't&lt;/em&gt;&lt;/strong&gt;. &lt;br&gt;
For humans, it involves escaping from predators, finding mates to reproduce, stay healthy and not catch any diseases etc. but for this simulation, our selection criteria is wayy simple!&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;SIMULATION 1 : HOW IT WORKS&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F24prmgtpd8r37ekdkl07.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F24prmgtpd8r37ekdkl07.png" alt=" " width="800" height="394"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Couple of points to note to understand the above simulation.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;&lt;em&gt;The world size is 128x128 pixels.&lt;/em&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;em&gt;Generation Zero or Gen 0 has a population of 1000 creatures.&lt;/em&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;em&gt;The tiny different colored dots are the creatures. The different colors showcases the variety in genes.&lt;/em&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;em&gt;Steps/Gen refer to the amount of time the simulation will run, in this case about 10 seconds.&lt;/em&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;em&gt;Genome length refers to the number of genes each creature has, which in this case is 4. Each genome is a bunch of hexadecimal letters that contain the instructions for how to make the connections in their little neural network brain, which is pictured below.&lt;/em&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8o104j5yzc2es9f4y2rg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8o104j5yzc2es9f4y2rg.png" alt=" " width="800" height="327"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;em&gt;&lt;strong&gt;The selection criteria in this case is that the creatures that are present in the right side of the world gets to live, others do not.&lt;/strong&gt;&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Now let's see the simulation!&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Gen 1
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fq603ilqxr8vlx7nggoxt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fq603ilqxr8vlx7nggoxt.png" alt=" " width="800" height="412"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Gen 20
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9pa35iltgmgppoaq3xsa.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9pa35iltgmgppoaq3xsa.png" alt=" " width="800" height="397"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Gen 50
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmz7j90408reedbk0ziny.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmz7j90408reedbk0ziny.png" alt=" " width="800" height="399"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Gen 1200
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fox58tzxtn6dl78er03pt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fox58tzxtn6dl78er03pt.png" alt=" " width="800" height="405"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;So what can you understand from the above pictures? &lt;strong&gt;&lt;em&gt;How were the creatures able to move on their own towards East&lt;/em&gt;&lt;/strong&gt;, i.e the safe side? Let's discuss.&lt;/p&gt;

&lt;p&gt;So the &lt;strong&gt;&lt;em&gt;creatures that were already on the safe side by luck, got the chance to live and reproduce&lt;/em&gt;&lt;/strong&gt;. But not all the creatures that survived are from the safe side.&lt;/p&gt;

&lt;p&gt;See, &lt;strong&gt;&lt;em&gt;all the creatures have their brain wired to move in a certain direction, say East, South, West and North&lt;/em&gt;&lt;/strong&gt;. Some of the creature's brains were &lt;strong&gt;&lt;em&gt;wired to move towards East&lt;/em&gt;&lt;/strong&gt;, which resulted in them surviving. Now this &lt;strong&gt;&lt;em&gt;gene of always moving East was handed down generation to generation&lt;/em&gt;&lt;/strong&gt;, which lead to more creatures moving East and then surviving.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;THE CRAZY FACT ABOUT ALL OF THIS IS THAT THESE CREATURES WERE NOT EXPLICITLY PROGRAMMED TO EVOLVE!&lt;/strong&gt; They did it all on their own.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;SIMULATION 2: ARE MUTATIONS NECESSARY FOR EVOLUTION TO TAKE PLACE?&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fd0xmbum0xjfzvkfivvz4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fd0xmbum0xjfzvkfivvz4.png" alt=" " width="800" height="397"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Couple of points to note to understand the above simulation.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;em&gt;The parameters are all same as simulation 1, with a couple of changes&lt;/em&gt;&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;em&gt;The genome length is now 24, which means there are 24 genes leading to a smarter creature.&lt;/em&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;em&gt;The mutation rate is 0.001, which allows the creatures to get a mutation at a random period of time.&lt;/em&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;&lt;strong&gt;Here the selection criteria is that the creatures that are able to get to the left and right sides of the world as pictured above gets to survive.&lt;/strong&gt;&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Now let's see the simulation!&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Gen 0
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fa6bku4qvpcyab6yrh8n5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fa6bku4qvpcyab6yrh8n5.png" alt=" " width="800" height="414"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Gen 25
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fedvhcnczp8g1fwcb4bfa.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fedvhcnczp8g1fwcb4bfa.png" alt=" " width="800" height="402"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Gen 100
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzhb0zazn8ifa02h76t35.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzhb0zazn8ifa02h76t35.png" alt=" " width="800" height="383"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Gen 700
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;NOTE:&lt;/strong&gt; From &lt;strong&gt;&lt;em&gt;Gen 700 onwards, some of the creatures get a mutation to move towards left&lt;/em&gt;&lt;/strong&gt;, leading to a higher percentage of survival.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3b50khfnu5vd5xhtjo0j.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3b50khfnu5vd5xhtjo0j.png" alt=" " width="800" height="410"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Gen 1000
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fa6ms0ryc4a59n8zmtb2w.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fa6ms0ryc4a59n8zmtb2w.png" alt=" " width="800" height="408"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Gen 8300
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fuz9e45iakv4ragdohiy1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fuz9e45iakv4ragdohiy1.png" alt=" " width="800" height="407"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Now what happens when we put a couple of barriers? Let's see!&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Gen 8301
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Faceay9jku69gzjthw4jk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Faceay9jku69gzjthw4jk.png" alt=" " width="800" height="407"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Gen 9000
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fryi8lqbsjkulssunom9j.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fryi8lqbsjkulssunom9j.png" alt=" " width="800" height="396"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Gen 177,000
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3sqsb584h3dt2ja0n8te.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3sqsb584h3dt2ja0n8te.png" alt=" " width="800" height="401"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;What do we understand from the above simulations?&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Because of mutation the creatures were able to adapt to their environment, which lead to a better chance of survival. When the barriers were put up, &lt;em&gt;&lt;strong&gt;they mutated to be able to move all the directions&lt;/strong&gt;&lt;/em&gt; so that they could reach the safe zone.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;What happens when there's no mutation? Let's see.&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Gen 0
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fv5bqd8z254cqqe41w3v0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fv5bqd8z254cqqe41w3v0.png" alt=" " width="800" height="395"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Gen 100
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxwe95qg1f421c5geg8dy.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxwe95qg1f421c5geg8dy.png" alt=" " width="800" height="399"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Gen 8000
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffmdd3n1874028yajxqvc.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ffmdd3n1874028yajxqvc.png" alt=" " width="800" height="410"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Till now all seems good and normal right? What happens when we put up a couple of barriers?&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Gen 8001
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F52joxvmdlasshejsgxzt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F52joxvmdlasshejsgxzt.png" alt=" " width="800" height="405"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Gen 20,000
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fx9nyjd1pfcbfplm8xm8z.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fx9nyjd1pfcbfplm8xm8z.png" alt=" " width="800" height="415"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Gen 500,000
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjem935hxuv7oikv3xnbu.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjem935hxuv7oikv3xnbu.png" alt=" " width="800" height="396"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Gen 1,000,000
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F648cnk6zw4myg58n3tlh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F648cnk6zw4myg58n3tlh.png" alt=" " width="800" height="414"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Since the mutation rate is 0, the creatures were not able to adapt and change their behavior according to their surroundings which lead to their survival percentage remaining constant.&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;This shows us that as a species how &lt;strong&gt;&lt;em&gt;mutations are so important&lt;/em&gt;&lt;/strong&gt;. Without mutations our species would not live long enough in the future to survive and eventually reach the stars.&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;SIMULATION 3: BRAIN SIZES&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;Do &lt;strong&gt;&lt;em&gt;brain sizes affect evolution&lt;/em&gt;&lt;/strong&gt;? How large does your brain has to be to ensure continuous survival of your species? Let's take some examples for comparison.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsqjcaau6r2ykvy2xtf39.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fsqjcaau6r2ykvy2xtf39.png" alt=" " width="800" height="670"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The average &lt;strong&gt;&lt;em&gt;human being&lt;/em&gt;&lt;/strong&gt; brain has &lt;strong&gt;&lt;em&gt;80 billion neurons and more than a 100 trillion connections&lt;/em&gt;&lt;/strong&gt; between them.&lt;/li&gt;
&lt;li&gt;The average &lt;strong&gt;&lt;em&gt;cat&lt;/em&gt;&lt;/strong&gt; brain has &lt;strong&gt;&lt;em&gt;7000 million neurons and 10 trillion connections&lt;/em&gt;&lt;/strong&gt; between them.&lt;/li&gt;
&lt;li&gt;The average &lt;strong&gt;&lt;em&gt;housefly&lt;/em&gt;&lt;/strong&gt; brain has about &lt;strong&gt;&lt;em&gt;250 thousand neurons and 10 million connections&lt;/em&gt;&lt;/strong&gt; between them.&lt;/li&gt;
&lt;li&gt;The &lt;strong&gt;&lt;em&gt;brain of a nematode worm&lt;/em&gt;&lt;/strong&gt; consists of &lt;strong&gt;&lt;em&gt;302 neurons and about 7000 connections&lt;/em&gt;&lt;/strong&gt; between them. &lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The &lt;strong&gt;&lt;em&gt;creatures&lt;/em&gt;&lt;/strong&gt; in our simulation has about &lt;strong&gt;&lt;em&gt;20 neurons and 200 connections&lt;/em&gt;&lt;/strong&gt; between them. Take that for comparison!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6ymq9xho82xlubszob64.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6ymq9xho82xlubszob64.png" alt=" " width="800" height="418"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Some factors to note to understand the above simulation.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;&lt;em&gt;We will keep on changing the genome length, which increases or decreases the size of the brain accordingly.&lt;/em&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;&lt;strong&gt;The selection criteria in this simulation is that the creatures that are able to move towards the corners of the world get to live and reproduce.&lt;/strong&gt;&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Let's start the simulation!&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Genome length: 2, Neurons: 1
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F219pide6oa4udkg2oxim.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F219pide6oa4udkg2oxim.png" alt=" " width="800" height="425"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Genome length: 8, Neurons: 2
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0flii0w8698ih7rrgyla.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0flii0w8698ih7rrgyla.png" alt=" " width="800" height="415"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Genome length: 32, Neurons: 5
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Foqu0kbeya0vp40t6ljer.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Foqu0kbeya0vp40t6ljer.png" alt=" " width="800" height="406"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Genome length: 1000, Neurons: 127
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fx2owmymmpkjdcvfhptwz.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fx2owmymmpkjdcvfhptwz.png" alt=" " width="800" height="409"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Let's compare the brain sizes of the creatures&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Genome length: 2, Neurons: 1
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqsyve3wv0gdkhh7gwrs7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqsyve3wv0gdkhh7gwrs7.png" alt=" " width="467" height="414"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Genome length: 8, Neurons: 2
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqmywmawpb9s9u3rgwlct.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqmywmawpb9s9u3rgwlct.png" alt=" " width="703" height="737"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Genome length: 32, Neurons: 5
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnttp8yjj0wbjpxg3oz0r.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnttp8yjj0wbjpxg3oz0r.png" alt=" " width="734" height="752"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Genome length: 1000, Neurons: 127
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3y6zo7jamhem4ugn2exj.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3y6zo7jamhem4ugn2exj.png" alt=" " width="800" height="656"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You can see here that, as &lt;strong&gt;&lt;em&gt;the number of neurons and the connections increases&lt;/em&gt;&lt;/strong&gt; the &lt;strong&gt;&lt;em&gt;survival rate also increases&lt;/em&gt;&lt;/strong&gt; exponentially.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0n83w1kfppm0gmto4dpi.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0n83w1kfppm0gmto4dpi.png" alt=" " width="800" height="491"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;SIMULATION 4: THE 'KILL' NEURON&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;So all this while, &lt;strong&gt;&lt;em&gt;David Miller disabled the kill neuron&lt;/em&gt;&lt;/strong&gt;. What it does is that it &lt;strong&gt;&lt;em&gt;enables the creature to kill the neurons that are blocking it's path&lt;/em&gt;&lt;/strong&gt;. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fd75t229kw9vfwbxdeyi6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fd75t229kw9vfwbxdeyi6.png" alt=" " width="744" height="754"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Here the &lt;strong&gt;&lt;em&gt;orange creature 'kills' the violet creature&lt;/em&gt;&lt;/strong&gt; because it is &lt;strong&gt;&lt;em&gt;blocking it's path&lt;/em&gt;&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;What happens when we &lt;strong&gt;&lt;em&gt;enable this 'kill' neuron?&lt;/em&gt;&lt;/strong&gt; Let's see!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnr9af4foxzk6btlt4vxf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnr9af4foxzk6btlt4vxf.png" alt=" " width="800" height="398"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Some factors to consider for the above simulation.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;em&gt;&lt;strong&gt;The selection criteria is that the creatures that are able to move towards the circle in the center get to live and reproduce.&lt;/strong&gt;&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;em&gt;There are about a 1000 creatures in this simulation.&lt;/em&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Gen 0
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgdo9sqc7sf7gmyucfud9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgdo9sqc7sf7gmyucfud9.png" alt=" " width="800" height="418"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Gen 200
&lt;/h2&gt;

&lt;p&gt;Around this time, the &lt;strong&gt;&lt;em&gt;creatures evolved and found a way to survive by keeping the kill count to a minimum&lt;/em&gt;&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fssnia77mzgvusldlkxrq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fssnia77mzgvusldlkxrq.png" alt=" " width="800" height="417"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Around &lt;strong&gt;&lt;em&gt;Gen 700, a mutation occurred&lt;/em&gt;&lt;/strong&gt;. A creature that killed other creatures got into the safe zone and &lt;strong&gt;&lt;em&gt;started spreading it's 'killer' genes towards the next generation&lt;/em&gt;&lt;/strong&gt;, which caused the generations after Gen 700 to be full of killers.&lt;/p&gt;

&lt;h2&gt;
  
  
  Gen 900
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fewzq73mezb28wdwvnzn2.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fewzq73mezb28wdwvnzn2.png" alt=" " width="800" height="427"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Gen 3400
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fu4sb3np9ouzyajk2hj12.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fu4sb3np9ouzyajk2hj12.png" alt=" " width="800" height="428"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now what happens when we keep the &lt;strong&gt;&lt;em&gt;number of creatures to a minimum, say 100?&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkz85h0j49hce77r42kca.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkz85h0j49hce77r42kca.png" alt=" " width="800" height="429"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We can see that there are &lt;strong&gt;zero&lt;/strong&gt; kills. Since there was enough &lt;strong&gt;&lt;em&gt;space for all the creatures to move around&lt;/em&gt;&lt;/strong&gt;, killing the creatures suddenly dropped as an option!&lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;CONCLUSION&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;This video created by David Miller was a fascinating insight into the world of programming and biology. It further cemented my love for science and it's capabilities. &lt;strong&gt;&lt;em&gt;I'm currently trying to learn Machine Learning and AI&lt;/em&gt;&lt;/strong&gt;, so if these are some of the things which we are capable of doing, the possibilities to create lifechanging discoveries are endless!&lt;/p&gt;

&lt;p&gt;This article is not sponsored by David Miller, but please do &lt;strong&gt;&lt;em&gt;consider watching his video and be a subscriber to his channel&lt;/em&gt;&lt;/strong&gt;. Content like this must be supported at all costs!&lt;/p&gt;

&lt;p&gt;Link to his video: &lt;strong&gt;&lt;em&gt;&lt;a href="https://youtu.be/N3tRFayqVtk?si=9DHAYaoSnmo6Z3Ed" rel="noopener noreferrer"&gt;https://youtu.be/N3tRFayqVtk?si=9DHAYaoSnmo6Z3Ed&lt;/a&gt;&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;If you've managed to read till here, I thank you from the bottom of my heart for the support. Makes me happy knowing my effort in writing this article contributed to someone learning something new :)&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>evolution</category>
      <category>cpp</category>
      <category>ai</category>
      <category>machinelearning</category>
    </item>
    <item>
      <title>A library of infinite possibilities : The Library of Babel</title>
      <dc:creator>Adwaith Jayasankar</dc:creator>
      <pubDate>Sat, 22 Jul 2023 21:24:52 +0000</pubDate>
      <link>https://dev.to/kichuman28/a-library-of-infinite-possibilities-the-library-of-babel-5hc4</link>
      <guid>https://dev.to/kichuman28/a-library-of-infinite-possibilities-the-library-of-babel-5hc4</guid>
      <description>&lt;h2&gt;
  
  
  &lt;strong&gt;What is The Library of Babel?&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;The Library of Babel website is an online project inspired by Jorge Luis Borges' fictional concept. It was created by Jonathan Basile and launched in 2015. The website attempts to simulate the experience of the Library of Babel as described in Borges' story. You can access the website at libraryofbabel.info.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F70m9qqiqf5rnbewxv5hl.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F70m9qqiqf5rnbewxv5hl.png" alt=" " width="537" height="747"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4rnnrtm2v9t57v5j10ib.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F4rnnrtm2v9t57v5j10ib.png" alt=" " width="800" height="404"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This website contains lots of imaginary "books" made up of random letters and symbols. Each "book" has a unique address like a house with a room number. &lt;strong&gt;&lt;em&gt;This website contains every possible combination of 1,312,000 characters, including lower case letters, space, comma, and period. Thus, it would contain every book that ever has been written, and every book that ever could be - including every play, every song, every scientific paper, every legal decision, every constitution, every piece of scripture, and so on.&lt;/em&gt;&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fuag1pgvr8tlak4xn9caj.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fuag1pgvr8tlak4xn9caj.png" alt=" " width="744" height="786"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;At present it contains all possible pages of 3200 characters, about 10 to the power 5000 books. For comparison, it &lt;strong&gt;is estimated that there may be 10 to the power 80 atoms in the known universe.&lt;/strong&gt;_&lt;/p&gt;

&lt;p&gt;You can use a search function on the website to look for specific texts or sentences. If you search for something, the website will try to find a "book" that matches your search. &lt;/p&gt;

&lt;h2&gt;
  
  
  &lt;strong&gt;What's so special about it?&lt;/strong&gt;
&lt;/h2&gt;

&lt;p&gt;Think of this website as a virtual library that represents all possible knowledge. It's like looking for a specific piece of information in a huge pile of random texts. The website is a fun way to explore the concept of a library with infinite possibilities. &lt;strong&gt;_I mean it would be crazy to think that one of the combination could contain the cure to cancer, or how the world turns out in the future and many more.&lt;br&gt;
_&lt;/strong&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7lffhgiwpg0w4hwsnnfg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7lffhgiwpg0w4hwsnnfg.png" alt=" " width="735" height="635"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8l7imp2iwgpo0093394q.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8l7imp2iwgpo0093394q.png" alt=" " width="800" height="565"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1jnsaiqvq7sfhd9i9guw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1jnsaiqvq7sfhd9i9guw.png" alt=" " width="800" height="544"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Just one of the many wonderful things on the internet!&lt;/p&gt;

</description>
      <category>algorithms</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
