<turbo-stream action="append" target="posts_list"><template>    <div class="postbit" id="280819" data-post-id="280819">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="cloudytoday" src="/assets/icons/user-9f439610.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  cloudytoday
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>A couple months ago I tried to make ChatGPT implement a rather simple algorithm in Python:</p>
<ol>
<li>In a data sheet with float numbers, find each row for which col1(i) &gt; col1(i-1) and col1(i) &gt; col1(i+1).</li>
<li>Find each of those for which there is col2(j) &gt; col2(i) and col3(j) &lt; col3(i).<br>
These were explained in human terms that are not available on the Internet, or are extremely hard to find. It managed to do the first task relatively fast, but even after three hours of trying to implement the second task in a hand-holding way, basically explaining what code to write line-by-line it still couldn’t do it. It’s as if it had severe dementia and was forgetting the previous concept straight upon learning the next one. So, I’m quite skeptical about its capabilities outside of what could be solved with regular functions/macros anyways. I also do not think it will see any significant improvement in the future because IMO the low-hanging fruit of expanding the sample sizes for training are already grabbed and what’s in front of these predictive models is abstract thinking - something only available to humans. Maybe the prediction itself could be abstracted away and there is some “learning meta-pattern” behind it? If so, it would be a breakthrough much more interesting than token generation.</li>
</ol> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="280819" data-batch-url="/posts/batch_likers">
                        2
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/get-ai-code-generation-tools-to-create-correct-elixir-code-or-else/53931/52">Post #51</a>
	                </div>
	            </div>
              <div id="likers-container-280819" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="280819"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #51"></div>
  </section>
</div>
    <div class="postbit" id="280821" data-post-id="280821">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="dimitarvp" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/dimitarvp/120/38664_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  dimitarvp
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<aside class="quote no-group" data-username="cloudytoday" data-post="52" data-topic="53931">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/letter_avatar_proxy/v4/letter/c/ecc23a/48.png" class="avatar"> cloudytoday:</div>
<blockquote>
<p>I also do not think it will see any significant improvement in the future because IMO the low-hanging fruit of expanding the sample sizes for training are already grabbed and what’s in front of these predictive models is abstract thinking - something only available to humans.</p>
</blockquote>
</aside>
<p>Well summed, that’s my take as well. People love to anthromorphize technology and introduce mysticism where it absolutely doesn’t belong, ignoring huge problems that have to be solved.</p>
<p>That the low-hanging fruit has been picked doesn’t mean that the high-hanging fruit will be picked in the next 100 years, or ever. That’s a crucial element that people keep missing.</p>
<p>“Imagine where it will be in 5-10 years”. It’ll be in the history books as a failed experiment is my bet. Or in the best case scenario it’ll be described as one the first misguided attempts to achieve a true AI.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="280821" data-batch-url="/posts/batch_likers">
                        3
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/get-ai-code-generation-tools-to-create-correct-elixir-code-or-else/53931/53">Post #52</a>
	                </div>
	            </div>
              <div id="likers-container-280821" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="280821"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #52"></div>
  </section>
</div>
    <div class="postbit" id="280822" data-post-id="280822">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="cloudytoday" src="/assets/icons/user-9f439610.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  cloudytoday
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Agree hard on unnecessary anthropomorphizing <img src="https://forum.elixirforum.com/images/emoji/apple/grinning.png?v=15" title=":grinning:" class="emoji" alt=":grinning:" loading="lazy" width="20" height="20">. My favorite analogy is that if the water in a river makes a rock move, it doesn’t mean the rock has actual locomotion the way animals do. The same way with “AI” and “thinking”.</p>
<p>But I don’t think it will be in the history books as a failed experiment. I think the part of it that could be deservingly called something like “analytical computation” might be of use in some areas. And the Sillicon Valley overhyped marketing side of it – rather not <img src="https://forum.elixirforum.com/images/emoji/apple/grin.png?v=15" title=":grin:" class="emoji" alt=":grin:" loading="lazy" width="20" height="20"> .</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="280822" data-batch-url="/posts/batch_likers">
                        2
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/get-ai-code-generation-tools-to-create-correct-elixir-code-or-else/53931/54">Post #53</a>
	                </div>
	            </div>
              <div id="likers-container-280822" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="280822"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #53"></div>
  </section>
</div>
    <div class="postbit" id="280823" data-post-id="280823">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="dimitarvp" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/dimitarvp/120/38664_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  dimitarvp
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Yeah, it will very likely be filed under “this is how we imagined AI at the time”, agreed.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="280823" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/get-ai-code-generation-tools-to-create-correct-elixir-code-or-else/53931/55">Post #54</a>
	                </div>
	            </div>
              <div id="likers-container-280823" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="280823"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #54"></div>
  </section>
</div>
    <div class="postbit" id="280837" data-post-id="280837">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="D4no0" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/D4no0/120/33624_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  D4no0
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>The sad thing is that these idiots showed that you can collect data from random sources and generate something that can be made money from. If this continues on, a lot of sites (especially the ones hosting news, stories or with a lot of data) will become closed by nature, as you don’t want the article you spent resources to be used by some machine learning spewing some youtube videos (witch by the way already is happening).</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="280837" data-batch-url="/posts/batch_likers">
                        1
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/get-ai-code-generation-tools-to-create-correct-elixir-code-or-else/53931/56">Post #55</a>
	                </div>
	            </div>
              <div id="likers-container-280837" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="280837"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #55"></div>
  </section>
</div>
    <div class="postbit" id="280882" data-post-id="280882">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="BradS2S" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/BradS2S/120/33246_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  BradS2S
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<aside class="quote no-group" data-username="AstonJ" data-post="51" data-topic="53931">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/astonj/48/15_2.png" class="avatar"> AstonJ:</div>
<blockquote>
<p>Tools like CoPilot and ChatGPT are in their infancy, imagine where they’ll be 5 or 10 years from now. At the very least, is it safe to say they will probably be able to replace junior programmers?</p>
</blockquote>
</aside>
<p>What I tell my daughter who has started using ChatGPT to generate outlines and brainstorm writing ideas: it won’t replace us in the sense that car operators didn’t replace horse riders. It isn’t that we will be replaced just that we are raising the bar on what can be accomplished in a certain timeline.</p>
<p>How are we going to get to a Star Trek future unless we get a lot more efficient with education and technology? <img src="https://forum.elixirforum.com/images/emoji/apple/slight_smile.png?v=15" title=":slight_smile:" class="emoji" alt=":slight_smile:" loading="lazy" width="20" height="20"></p>
<p>Call me an eternal optimist but I think it is more about increased efficiency. The real issue is how wealth is distributed as the means of production becomes ever more concentrated and I don’t see that trend reversing any time soon.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="280882" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/get-ai-code-generation-tools-to-create-correct-elixir-code-or-else/53931/57">Post #56</a>
	                </div>
	            </div>
              <div id="likers-container-280882" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="280882"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #56"></div>
  </section>
</div>
    <div class="postbit" id="281006" data-post-id="281006">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="Sebb" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/Sebb/120/21818_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  Sebb
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Copilot can’t create good code, when it does not have good context.<br>
After a while you know, when proposed code has the chance to be useful, when I know that it can only be garbage, I don’t even look at it.</p>
<p>So I normally start to give it some good context. For example I write the moduledoc together with copilot.<br>
Really explaining to it whats going on. Modeling the data-structures used. It is a very good rubber duck. Then I (we) write down an example. Now I see if it understood whats going on. If thats the case, copilot writes at least 80% of the example on its own. It uses the data-structures defined before.</p>
<p>If thats done, I (we) can start coding.<br>
I write the function-header (wording has to be like in the docs). The proposal for the implementation is - most of the time - now useful.</p>
<p>A good and easy way to see how helpful good context is for copilot is refactoring. Take some none-dry code, and see how easy you can DRY it with the help of copilot.</p>
<p>It also helps when you use well-known patterns and data-structures. I currently build sth using libgraph, and it very much helps copilot when I tell it that this and that is a vertex and they connect because of foobar.</p>
<p>Everybody writing this off, or thinking that the same can be done with some snippets is making a mistake imo.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="281006" data-batch-url="/posts/batch_likers">
                        3
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/get-ai-code-generation-tools-to-create-correct-elixir-code-or-else/53931/58">Post #57</a>
	                </div>
	            </div>
              <div id="likers-container-281006" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="281006"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #57"></div>
  </section>
</div>
    <div class="postbit" id="281587" data-post-id="281587">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="dmitriid" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/dmitriid/120/13182_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  dmitriid
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<aside class="quote no-group" data-username="Sebb" data-post="58" data-topic="53931">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/sebb/48/21818_2.png" class="avatar"> Sebb:</div>
<blockquote>
<p>Everybody writing this off, or thinking that the same can be done with some snippets is making a mistake imo.</p>
</blockquote>
</aside>
<p>It can be though. Code generation for common patterns has been a thing since forever. IDEA has had simplify, re-write, find duplicates, extract etc. as a part of it tooling also since forever. Also for popular languages <img src="https://forum.elixirforum.com/images/emoji/apple/smiley.png?v=15" title=":smiley:" class="emoji" alt=":smiley:" loading="lazy" width="20" height="20"></p>
<p>So if Copilot is marginally better than existing tools in some situations, great. But herein lies the main problem:</p>
<blockquote>
<p>After a while you know, when proposed code has the chance to be useful, when I know that it can only be garbage, I don’t even look at it.</p>
</blockquote>
<p>It produces too much garbage to be useful for many people. And even “this code has a chance of being useful” is additional load because you end up reviewing and fixing code instead of writing it (or simply googling it <img src="https://forum.elixirforum.com/images/emoji/apple/slight_smile.png?v=15" title=":slight_smile:" class="emoji" alt=":slight_smile:" loading="lazy" width="20" height="20"> )</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="281587" data-batch-url="/posts/batch_likers">
                        2
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/get-ai-code-generation-tools-to-create-correct-elixir-code-or-else/53931/59">Post #58</a>
	                </div>
	            </div>
              <div id="likers-container-281587" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="281587"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #58"></div>
  </section>
</div>
    <div class="postbit" id="281668" data-post-id="281668">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="Sebb" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/Sebb/120/21818_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  Sebb
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Its not useful for people, that do not invest the time to learn to work with it.<br>
Everybody I know, that invested some time, thinks different.<br>
I’d never want to miss it.<br>
Your loss.</p>
<p>GPT4 just showed, that the potential of transformers is not yet exhausted.</p>
<p>I can now sketch sth on paper and get a good starting point for anything. wow.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="281668" data-batch-url="/posts/batch_likers">
                        1
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/get-ai-code-generation-tools-to-create-correct-elixir-code-or-else/53931/60">Post #59</a>
	                </div>
	            </div>
              <div id="likers-container-281668" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="281668"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #59"></div>
  </section>
</div>
    <div class="postbit" id="281682" data-post-id="281682">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="wanton7" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/wanton7/120/14151_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  wanton7
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Apples and oranges, I don’t think co-pilot is comparable to GPT-x. GPT kind of AI will be very helpful for creating code snippets and other things like possibly checking code for bugs etc. But tool like co-pilot has to be really good at its job to guess what you need so it won’t add more mental load instead for the developer and that is much harder to get right in my opinion.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="281682" data-batch-url="/posts/batch_likers">
                        2
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/get-ai-code-generation-tools-to-create-correct-elixir-code-or-else/53931/61">Post #60</a>
	                </div>
	            </div>
              <div id="likers-container-281682" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="281682"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #60"></div>
  </section>
</div>
</template></turbo-stream><turbo-stream action="replace" target="load-more-container"><template><div id="load-more-container" class="load-more-container">
    <a class="load-more-button" data-turbo-stream="true" href="/topics/53931/load_more?page=7">Load more posts (26 remaining)</a>
</div></template></turbo-stream>