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


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>My biggest concern with LLMs and coding is the system’s tendency to over-generalize “common” examples even when the problem doesn’t actually fit.</p>
<p>A minor anecdotal example: the “you have two buckets with capacity X gallons and Y gallons, how do you measure Z gallons with them?” problem usually involves tricks like pouring out part of a bucket’s contents. But ask an LLM a version where X and Y have values that make the problem trivial, and you get a complicated answer anyways:</p>
<p></p><div class="lightbox-wrapper"><a class="lightbox" href="https://forum.elixirforum.com/uploads/default/original/3X/7/2/72b0f29f519fb425063ac1d3a3051657238adfb2.png" data-download-href="https://forum.elixirforum.com/uploads/default/72b0f29f519fb425063ac1d3a3051657238adfb2" title="GU3bevoaMAAzqOp" rel="nofollow"><img src="https://forum.elixirforum.com/uploads/default/original/3X/7/2/72b0f29f519fb425063ac1d3a3051657238adfb2.png" alt="GU3bevoaMAAzqOp" data-base62-sha1="gmBxvnZkr6eIXq0iIuI3fVxa0Aq" width="623" height="600"><div class="meta"><svg class="fa d-icon d-icon-far-image svg-icon" aria-hidden="true"><use href="#far-image"></use></svg><span class="filename">GU3bevoaMAAzqOp</span><span class="informations">680×654 65.3 KB</span><svg class="fa d-icon d-icon-discourse-expand svg-icon" aria-hidden="true"><use href="#discourse-expand"></use></svg></div></a></div><p></p>
<p>(via <a href="https://x.com/Pastel_Lich/status/1823354794104549607" rel="nofollow">this tweet</a>)</p>
<hr>
<p>Another anecdote: asking GPT-4o a question that sounds suspiciously like the classic “get the goat / wolf / grain across the river” puzzle but that doesn’t actually contain the needed components:</p>
<blockquote>
<p>A man needs to take a cabbage across the river in his boat named Wolf. What steps should he take? Be concise."</p>
<p>ChatGPT: "To solve this classic river crossing puzzle where a man needs to take a cabbage across the river in his boat named Wolf, he can follow these steps:</p>
<ol>
<li>Take the cabbage across the river and leave it on the other side.</li>
<li>Return to the original side with the empty boat.<br>
Take the wolf across the river.</li>
<li>Bring the cabbage back to the original side.</li>
<li>Take the goat across the river and leave it with the wolf.</li>
<li>Return to the original side with the empty boat.</li>
<li>Finally, take the cabbage across the river.</li>
</ol>
<p>This way, the man successfully gets the cabbage across the river without any conflicts.</p>
</blockquote>
<p>(via <a href="https://x.com/KentLangley/status/1791135178502422802" rel="nofollow">this tweet</a>)</p>
<p>Here the LLM hallucinates both a wolf and a goat, and then GIVES A WRONG ANSWER ANYWAYS!</p>
<hr>
<p>A longer, more scientifically-rigorous version of the examples above is this paper:</p>
<aside class="onebox allowlistedgeneric" data-onebox-src="https://arxiv.org/abs/2405.06680v2">
  <header class="source">
      <img src="https://arxiv.org/static/browse/0.3.4/images/icons/favicon-32x32.png" class="site-icon" alt="" width="32" height="32">

      <a href="https://arxiv.org/abs/2405.06680v2" target="_blank" rel="noopener nofollow">arXiv.org</a>
  </header>

  <article class="onebox-body">
    <div class="aspect-image" style="--aspect-ratio:690/402;"><img src="https://static.arxiv.org/icons/twitter/arxiv-logo-twitter-square.png" class="thumbnail" alt="" width="690" height="690"></div>

<h3><a href="https://arxiv.org/abs/2405.06680v2" target="_blank" rel="noopener nofollow">Exploring the Compositional Deficiency of Large Language Models in...</a></h3>

  <p>Human cognition exhibits systematic compositionality, the algebraic ability to generate infinite novel combinations from finite learned components, which is the key to understanding and reasoning about complex logic. In this work, we investigate the...</p>


  </article>

  <div class="onebox-metadata">
    
    
  </div>

  <div style="clear: both"></div>
</aside>

<p>An example of the sort of issue it digs into is this pair of problems:</p>
<blockquote>
<p>Max picks 2 different cards without replacement from a standard 52-card deck.<br>
What is the probability that the cards are of different suits?</p>
</blockquote>
<p>versus</p>
<blockquote>
<p>Max picks <strong>5</strong> different cards without replacement from a standard 52-card deck.<br>
What is the probability that the cards are of different suits?</p>
</blockquote>
<p><code>GPT-4-0125-preview</code>’s output for this question is in Table 15; it applies a wholly-hallucinated “The fifth card can be of any suit since we’re only looking for different suits in the first four cards” rule when it hasn’t been warned that the question might be a trick.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="344530" data-batch-url="/posts/batch_likers">
                        4
                      </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/is-anyone-using-ai-assistance-in-coding-elixir/67047/12">Post #11</a>
	                </div>
	            </div>
              <div id="likers-container-344530" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="344530"
                     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 #11"></div>
  </section>
</div>
    <div class="postbit" id="344540" data-post-id="344540">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>It’s definitely possible, but very difficult. Cursor just raised USD$60M to integrate LLMs into code editors, to give some sense of the scale of the problem. I imagine they can do reinforcement learning with human feedback (RLHF) in the following way:</p>
<ol>
<li>User loads an Elixir file in to the editor.</li>
<li>User prompts the LLM to make some kind of update.</li>
<li>If the user makes additional prompts, or makes manual edits, they can use these diffs as feedback for the model saying “the initial prompt didn’t work, you should have done what the user did manually instead.”</li>
<li>If the user stops making prompts and makes a commit saying “add feature foo” or “fix bug bar”, they can use these diffs as positive feedback for the model saying, “that worked well, do more of that.”</li>
</ol>
<p>Scale this up to millions of people editing Elixir at the same time (maybe an optimistic number for us), and it’s feasible to train a model, or fine-tune an existing model, to get better at writing Elixir. But again we have billion dollar companies telling us that they’re going to release AGI any day now, but the utopian rhetoric isn’t quite translating in to us developers not having to do the hard work of programming anymore.</p>
<p>Transformers were the big breakthrough in 2014 and my guess is that we will only see marginal improvements year over year from now on in specific domains in regards to LLM expertise. This proficiency will scale much faster for the most popular languages like Python and JavaScript.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="344540" 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/is-anyone-using-ai-assistance-in-coding-elixir/67047/13">Post #12</a>
	                </div>
	            </div>
              <div id="likers-container-344540" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="344540"
                     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 #12"></div>
  </section>
</div>
    <div class="postbit" id="344545" data-post-id="344545">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<aside class="quote no-group" data-username="ipnon" data-post="13" data-topic="67047">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/ipnon/48/36256_2.png" class="avatar"> ipnon:</div>
<blockquote>
<ul>
<li>User loads an Elixir file in to the editor.</li>
<li>User prompts the LLM to make some kind of update.</li>
</ul>
</blockquote>
</aside>
<p>That’s unfortunately not going to work. For now “AIs” can’t fix even a single line based on documentation which I believe is one of the best if not the best one. Once again see:</p><aside class="onebox discoursetopic" data-onebox-src="https://forum.devtalk.com/t/be-aware-this-will-kill-us/165041">
  <header class="source">
      <img src="https://forum.devtalk.com/uploads/default/optimized/1X/dd5e3964010311d47a8d463fa690054615c9b28b_2_32x32.png" class="site-icon" alt="" width="32" height="32">

      <a href="https://forum.devtalk.com/t/be-aware-this-will-kill-us/165041" target="_blank" rel="noopener nofollow" title="01:29AM - 06 August 2024">Devtalk – 6 Aug 24</a>
  </header>

  <article class="onebox-body">
    <div class="aspect-image" style="--aspect-ratio:221/188;"><img src="https://forum.devtalk.com/uploads/default/original/1X/355f9e241b0f1255a1a2ba256f81d89ae5c66057.png" class="thumbnail" width="221" height="188"></div>

<div class="title-wrapper">
  <h3><a href="https://forum.devtalk.com/t/be-aware-this-will-kill-us/165041" target="_blank" rel="noopener nofollow">Be aware, this will kill us! 😂</a></h3>
  <div class="topic-category">
      <span class="badge-wrapper bullet">
        <span class="badge-category-bg" style="background-color: #0;"></span>
        <span class="badge-category clear-badge">
          <span class="category-name">General Developer Forum</span>
        </span>
      </span>
      <span class="badge-wrapper bullet">
        <span class="badge-category-bg" style="background-color: #0;"></span>
        <span class="badge-category clear-badge">
          <span class="category-name">General Dev Chat</span>
        </span>
      </span>
    <div class="topic-header-extra">
      <div class="list-tags">
        <div class="discourse-tags">
          <svg class="fa d-icon d-icon-tag svg-icon svg-string"><use href="#tag"></use></svg>
            <span class="discourse-tag simple">ai</span>
        </div>
      </div>
    </div>
  </div>
</div>

  <p>Preface For a longer time I was writing about terrible answers of AI models and how I was sure about it by confronting many AI models with just a single line of code. Since I’ve made lots of tests already I don’t need to keep it a secret anymore....</p>

  <p>
    <span class="label1">Reading time: 14 mins 🕑</span>
      <span class="label2">Likes: 11 ❤</span>
  </p>

  </article>

  <div class="onebox-metadata">
    
    
  </div>

  <div style="clear: both"></div>
</aside>

<p>but ok … let’s see next …</p>
<aside class="quote no-group" data-username="ipnon" data-post="13" data-topic="67047">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/ipnon/48/36256_2.png" class="avatar"> ipnon:</div>
<blockquote>
<p>If the user makes additional prompts, or makes manual edits, they can use these diffs as feedback for the model saying “the initial prompt didn’t work, you should have done what the user did manually instead.”</p>
</blockquote>
</aside>
<p>Without any comment? That’s terribly wrong. Why? Simply there is no a single rule to cover all cases. If the rules of work are not declared explicitly before it’s terribly hard to “guess” the intention. <img src="https://forum.elixirforum.com/images/emoji/apple/thinking.png?v=15" title=":thinking:" class="emoji" alt=":thinking:" loading="lazy" width="20" height="20"></p>
<aside class="quote no-group" data-username="ipnon" data-post="13" data-topic="67047">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/ipnon/48/36256_2.png" class="avatar"> ipnon:</div>
<blockquote>
<p>If the user stops making prompts and makes a commit saying “add feature foo” or “fix bug bar”, they can use these diffs as positive feedback for the model saying, “that worked well, do more of that.”</p>
</blockquote>
</aside>
<p>Generally the more we life/work/write the more mistakes we are making. Therefore it’s just a matter of time when a <code>positive feedback</code> introduces a bug. Now try to debug AI why it’s adding lots of bugs to your code. Also there is often not much context. What I don’t recommend, but unfortunately is popular to make a commit change with message like <code>fix</code> or so … <img src="https://forum.elixirforum.com/images/emoji/apple/writing_hand.png?v=15" title=":writing_hand:" class="emoji" alt=":writing_hand:" loading="lazy" width="20" height="20"></p>
<p>Again current LLMs are terribly weak when they have no context - you have to talk to them and often correct. Unfortunately they can’t become a tool you think about “just like that”. I believe you assume that LLMs become a true AI trained on strong <code>Elixir</code> resources, but this is once again <strong>unfortunately</strong> not close to current technology we have now. <img src="https://forum.elixirforum.com/images/emoji/apple/rocket.png?v=15" title=":rocket:" class="emoji" alt=":rocket:" loading="lazy" width="20" height="20"></p>
<aside class="quote no-group" data-username="ipnon" data-post="13" data-topic="67047">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/ipnon/48/36256_2.png" class="avatar"> ipnon:</div>
<blockquote>
<p>Scale this up to millions of people editing Elixir at the same time (maybe an optimistic number for us), and it’s feasible to train a model, or fine-tune an existing model, to get better at writing Elixir.</p>
</blockquote>
</aside>
<p>I was born in 1993 - despite all of the shadow profiles and other ways of spying I did not received even a single advertisement that would interest me at all. We should really stop sacrificing our privacy for a “better good” which in fact means money for companies selling our data. Do you really think that millions of developers would agree for that? Even if they will then they would have a terrible problems and soon there would not be any developer on market. Why? NDA, contracts, proprietary licenses. Imagine millions of <code>Winamp</code>-like leaks - not to public but to the “meta-AI” collecting all of that data. <img src="https://forum.elixirforum.com/images/emoji/apple/exploding_head.png?v=15" title=":exploding_head:" class="emoji" alt=":exploding_head:" loading="lazy" width="20" height="20"></p>
<p>Even without that people are not always happy to share the pet projects - sometimes even for trivial reasons like they don’t like to share an unfinished work or they may simply worry that the project on which they plan to make money would be leaked. People don’t trust LLMs believing they are AIs from movies - how they <strong>millions</strong> would trust this? For sure I heard about users sharing secret data on <code>ChatGPT</code>, but especially after that and especially when we are talking about developers and even more especially when we not talk about millions of people working in same programming language (not even mentioning natural languages) - it would not work. <img src="https://forum.elixirforum.com/images/emoji/apple/slightly_frowning_face.png?v=15" title=":slightly_frowning_face:" class="emoji" alt=":slightly_frowning_face:" loading="lazy" width="20" height="20"></p>
<aside class="quote no-group" data-username="ipnon" data-post="13" data-topic="67047">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/ipnon/48/36256_2.png" class="avatar"> ipnon:</div>
<blockquote>
<p>but the utopian rhetoric isn’t quite translating in to us developers not having to do the hard work of programming anymore.</p>
</blockquote>
</aside>
<p>Unfortunately <strong>it can</strong> - even in current state LLMs are already helpful if you know how and for what purposes you can use them. Also please take a look at USA and Europe. Is it “normal” that <code>NATO</code> countries will transfer all technology to <code>BREAKS</code> group? No, but it still happened. People for money would do the most stupid things and force the worst ideologies. I would not be surprised if companies would force LLMs to act like AIs and replace developers. <img src="https://forum.elixirforum.com/images/emoji/apple/face_with_open_eyes_and_hand_over_mouth.png?v=15" title=":face_with_open_eyes_and_hand_over_mouth:" class="emoji" alt=":face_with_open_eyes_and_hand_over_mouth:" loading="lazy" width="20" height="20"></p>
<p>Unfortunately or fortunately it would not work in long term and depending on few things the future may be a bit better or we can go back few hundreds of years back in one of the worst cases (collapse of dev market |&gt; collapse of IT market |&gt; collapse of all economy fields which are using IT in this or other way). In practice we could have even problems with producing food and even if we do so then since economy would be dying farmers may require payment in gold, silver or so … <img src="https://forum.elixirforum.com/images/emoji/apple/coin.png?v=15" title=":coin:" class="emoji" alt=":coin:" loading="lazy" width="20" height="20"></p>
<aside class="quote no-group" data-username="ipnon" data-post="13" data-topic="67047">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/ipnon/48/36256_2.png" class="avatar"> ipnon:</div>
<blockquote>
<p>This proficiency will scale much faster for the most popular languages like Python and JavaScript.</p>
</blockquote>
</aside>
<p>At start definitely, later is rather a mystery, see for example <code>Moore's law</code>. For a longer time people report that chat bots sometimes produces even worse results than before. If there would be no strict control over sources then it would be like with <code>Wikipedia</code> i.e. there is no truth, but opinions with the most votes. Even in such place that many years ago was a good source now it’s good as long as … there are no trolls or political actions. For now we are after a stage when we forced us to hit towards wall and the current stage is going a few steps back. <img src="https://forum.elixirforum.com/images/emoji/apple/back.png?v=15" title=":back:" class="emoji" alt=":back:" loading="lazy" width="20" height="20"></p>
<p>We can do even more force (and lose or break the wall) or think about consequences and adjust what we have to the reality. <img src="https://forum.elixirforum.com/images/emoji/apple/bulb.png?v=15" title=":bulb:" class="emoji" alt=":bulb:" 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="344545" 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/is-anyone-using-ai-assistance-in-coding-elixir/67047/14">Post #13</a>
	                </div>
	            </div>
              <div id="likers-container-344545" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="344545"
                     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 #13"></div>
  </section>
</div>
    <div class="postbit" id="344552" data-post-id="344552">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>It is a Large Language Model, not a Large Problem Solving Model after all. A lot of people aren’t managing their own expectations very well when it comes to LLMs.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="344552" data-batch-url="/posts/batch_likers">
                        6
                      </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/is-anyone-using-ai-assistance-in-coding-elixir/67047/15">Post #14</a>
	                </div>
	            </div>
              <div id="likers-container-344552" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="344552"
                     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 #14"></div>
  </section>
</div>
    <div class="postbit" id="344579" data-post-id="344579">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>This is a great example of why you shouldn’t blindly trust what ChatGPT tells you. Here’s an actual benchmark:</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">Elixir 1.17.1
Erlang 27.0
</code></pre>
<pre data-code-wrap="elixir"><code class="lang-elixir"># 1000 elements
sort             167.00 K
frequencies        3.80 K - 44.00x slower +257.47 μs
</code></pre>
<pre data-code-wrap="elixir"><code class="lang-elixir"># 100_000 elements
sort               1.06 K
frequencies      0.0216 K - 49.19x slower +45.40 ms
</code></pre>
<pre data-code-wrap="elixir"><code class="lang-elixir"># 1_000_000 elements
sort                75.54
frequencies          0.68 - 110.68x slower +1.45 s
</code></pre> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="344579" data-batch-url="/posts/batch_likers">
                        6
                      </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/is-anyone-using-ai-assistance-in-coding-elixir/67047/16">Post #15</a>
	                </div>
	            </div>
              <div id="likers-container-344579" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="344579"
                     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 #15"></div>
  </section>
</div>
    <div class="postbit" id="344615" data-post-id="344615">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>This is lacking a bit of information, and my results are much closer, but plain sort and compare is always faster for me as well, which makes sense.</p>
<p>I don’t want to get sidetracked by sorting algorithms, since it’s not really relevant, but this is a good example of a problem with LLMs. My view is that everything produced by an LLM must be assumed to be false until proven otherwise. This is a bit of an extreme take, but a good rule, I think.</p>
<p>I see this pattern a lot, where LLMs will happily follow your prompt to negative outcomes. Which of course it will, because it doesn’t aim to be correct - it only generates responses based on prompts. So if your prompt is “actually this might be better”, the generated response will be appropriate for that prompt.</p>
<p>Further, language is not an aspect of actual performance. For the same reason that asking “is X or Y faster” is almost always unanswerable in general without profiling - you can talk about complexity in the abstract all day, but real world performance does not care about theory.</p>
<p>Anyway, I try to use LLMs occasionally because I see so many people talk about how they’re much more productive with them, and, unlike for an LLM, I’m generally inclined to believe people to some extent. Overall, they seem useful for many tasks, since much code for business is essentially identical. A rose is a rose and all. But for anything somewhat unique or performance-critical, the results I’ve seen tend to be poor, if not actively harmful.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="344615" data-batch-url="/posts/batch_likers">
                        5
                      </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/is-anyone-using-ai-assistance-in-coding-elixir/67047/17">Post #16</a>
	                </div>
	            </div>
              <div id="likers-container-344615" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="344615"
                     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 #16"></div>
  </section>
</div>
    <div class="postbit" id="344629" data-post-id="344629">
  <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">
								<aside class="quote no-group" data-username="harrisi" data-post="17" data-topic="67047">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/harrisi/48/33003_2.png" class="avatar"> harrisi:</div>
<blockquote>
<p>Anyway, I try to use LLMs occasionally because I see so many people talk about how they’re much more productive with them, and, unlike for an LLM, I’m generally inclined to believe people to some extent.</p>
</blockquote>
</aside>
<p>The productivity gain is generally around people not knowing stuff. For a junior you will get a pretty substantial boost of productivity, simply because googling is not good enough if you don’t know what to ask, in this regard a LLM is much more forgiving, especially since you can use the previous contexts to dig into answers.</p>
<p>I also found that some languages (like golang) offer a lower abstraction level and their libraries tend to not be so battery included compared to elixir (because for some reason they like to reinvent the wheel all the time), so you end up doing a lot of mundane stuff from scratch all the time, hence a LLM is just a faster stackoverflow, but compared to that platform, you are not sure if the response given is the most optimal one.</p>
<p>The most important warning in this regard is if you are using as a junior a LLM to generate code, think of it as a shortcut and take time to understand what is going on, otherwise you will never go beyond this unpredictable level of productivity where you rely on a black box to solve problems for you, seen that in practice with some juniors I was teaching elixir and if I banned usage of LLMs they would have been at least 2x more productive after half a year.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="344629" 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/is-anyone-using-ai-assistance-in-coding-elixir/67047/18">Post #17</a>
	                </div>
	            </div>
              <div id="likers-container-344629" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="344629"
                     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 #17"></div>
  </section>
</div>
    <div class="postbit" id="344632" data-post-id="344632">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>It’s an interesting thing, since if you don’t know what you’re doing, LLMs can generate stuff for you pretty reasonably. If you kind of know what you’re doing in an abstract way but don’t have a great grasp on actual code, any existing ideas can be actively harmful (such as the sort vs frequencies example - no offense intended to anyone, LLMs are excellent at propelling less-than-ideal ideas). If you’re an expert, it can be a more typical review process. I find, again, for anything somewhat complex or unique, it’s faster to just do things myself than play around with prompting.</p>
<p>There’s a lot to be said about this, and I think in the near future we’ll be getting a decent amount of research about how this affects individuals, companies, and society. I hope it will be negligible and mostly business as usual. But I do fear a widening of the intellectual gap in the software world. Maybe it’s not bad, just different.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="344632" 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/is-anyone-using-ai-assistance-in-coding-elixir/67047/19">Post #18</a>
	                </div>
	            </div>
              <div id="likers-container-344632" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="344632"
                     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 #18"></div>
  </section>
</div>
    <div class="postbit" id="344634" data-post-id="344634">
  <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">
								<aside class="quote no-group" data-username="harrisi" data-post="19" data-topic="67047">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/harrisi/48/33003_2.png" class="avatar"> harrisi:</div>
<blockquote>
<p>It’s an interesting thing, since if you don’t know what you’re doing, LLMs can generate stuff for you pretty reasonably.</p>
</blockquote>
</aside>
<p>Sadly, this seems to be the general direction. Since a great deal of company executives don’t have technical knowledge, their instinct is to hire these prompt hackers that cost much less compared to actual engineers and deliver solutions that barely work, of course this backfires very fast should something more technically demanding be involved, but at the same time a lot of products can get away with barely working.</p>
<aside class="quote no-group" data-username="harrisi" data-post="19" data-topic="67047">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/harrisi/48/33003_2.png" class="avatar"> harrisi:</div>
<blockquote>
<p>There’s a lot to be said about this, and I think in the near future we’ll be getting a decent amount of research about how this affects individuals, companies, and society. I hope it will be negligible and mostly business as usual. But I do fear a widening of the intellectual gap in the software world. Maybe it’s not bad, just different.</p>
</blockquote>
</aside>
<p>I highly doubt that any information in this regard in the near future will be credible. These technologies have billions poured in them and companies like ms are known for their cutthroat strategies, so we will have to make conclusions based on observations we make personally.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="344634" 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/is-anyone-using-ai-assistance-in-coding-elixir/67047/20">Post #19</a>
	                </div>
	            </div>
              <div id="likers-container-344634" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="344634"
                     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 #19"></div>
  </section>
</div>
    <div class="postbit" id="344723" data-post-id="344723">
  <section>
    <div class="post-wrap">


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

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>It will direct you to your particular Dunning-Kruger minima as fast as possible and once there assure you that a better solution is inconceivable.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="344723" data-batch-url="/posts/batch_likers">
                        7
                      </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/is-anyone-using-ai-assistance-in-coding-elixir/67047/21">Post #20</a>
	                </div>
	            </div>
              <div id="likers-container-344723" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="344723"
                     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 #20"></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/67047/load_more?page=3">Load more posts (22 remaining)</a>
</div></template></turbo-stream>