polypush135

polypush135

Who is using ChatGPT to drive development and what have you made with elixir so far?

I’m losing my mind by just how much everything is going to change.

I’ve never really written rust or done anything in wasm and yet in less than 24 hours I’ve made both of these sites.

https://rusty-image-resizer.github.io/

https://rusty-image-color-analyzer.github.io/

I’m getting really excited as much as terrified.

Any how I’ve yet to turn my attention to elixir with it mostly because I want to see how far I could go doing something I’ve no experience doing in rust first.

All I know is this is changing everything.

Also I wonder if GPT favors strong typed langs given the level of inference needed otherwise.

Most Liked

Nicd

Nicd

I took a look at this in Finnish, and I have quite a bit of feedback. I’m not sure how strongly it should be given since you mentioned that this is not beta yet, so take from this what you will. I looked from the viewpoint of stumbling upon these guides when searching online. I’m writing this with the assumption that you plan on using ChatGPT for the content generation. There are several issues:

  • Falsehoods in the code examples and text. All the Gleam examples are wrong (since there’s not much Gleam for ChatGPT to know about), and not in a way that it’s just old – the examples are syntax that has to my knowledge never existed in Gleam. Several examples in Elixir are also wrong, e.g. claiming that strings in Elixir are objects (and thus you can call "FOO".downcase), and that strings can be concatenated with + but it’s slow, and that’s why Elixir uses <>. In the introduction it said that “other languages using the Erlang VM are Ruby on Rails and Phoenix Framework”. The page about date parsing teaches how to use a nonexistent function. For a popular language such as JavaScript the code examples seemed to be quite accurate.
  • Bad translations. When I think about it from a technological point of view, I’m actually surprised how well it works. But when I think about it as if I was a reader of a programming tutorial, it’s not good enough. Constantly having the wrong inflections makes it more difficult to understand the text, and sometimes it changes the meaning of the sentences. Several different words are used for the same concept such as “string” (which only has one acceptable translation). As an example, the name of the Elixir guide for upcasing a string is Merkitsevä nauha, which actually means “meaningful ribbon”. One page states “People who place bets may wonder what HTML analyzing means”. I don’t think the tech for automated translation is there yet; this would need a thorough review by human volunteers which might take the same amount of time as a translation in the first place.
  • Disconnect between body text / footer links and code examples. For example in a C++ example, the footer linked to chrono, but the code example stored a date as three separate int variables and didn’t use the library at all. All in all the code example was quite useless. (The code also imported ctime but didn’t use it.)
  • Hallucinated docs links. E.g. this page has all the links lead to 404 or not the content you’re looking for. Elixir doc links pointed to 1.12 in some places that I saw.
  • Fluff. Every guide seems to have an introduction and a “deep dive” that are mostly worthless. Every one of them says something like “X is very important to learn” or “Historically X has been part of the computer science since the 1960s”, which reads very odd and is just unnecessary when it’s something like “HTML analyzing has been an integral part of creating and analyzing websites since the beginning.” (It then continues: “Before the invention of JavaScript, JavaScript could only be used to analyze static data.”) I think these introductions and conclusions should be dropped because they don’t offer anything of value.

Since you said this is nearly beta, I hope there is some way to address the above concerns, especially just the amount of misinformation. At the least I think each page should be manually reviewed before publishing.

The site itself looks nice and easy to navigate.

And this is my experience with the current LLMs. The output looks correct from further away. It’s very wordy and knows how to be convincing and confident. But when you get into the details like you need to do when you’re learning from a guide, it starts to fall down and needs manual attention.

Now on the other hand, I see you’ve both quickly made websites that work using LLMs. So there’s plenty of promise there.

slouchpie

slouchpie

I love using ChatGPT and Copilot. A year ago I would find myself getting weary writing the boilerplate for something I had done hundreds of times before. Now ChatGPT or Copilot (I am using Copilot with Emacs) can generate a really great starting point for me in seconds.

The generated code always looks right and it almost always has subtle problems.

I am not worried about becoming obsolete. I am just faster. The way I think of it is like building the pyramids. We used to throw human bodies at the problem until it was done. ML-driven tools are like bulldozers/cranes/diggers in this analogy. They can do more work in a day than I can do in a year but they are still useless without human influence.

dominicletz

dominicletz

Creator of Elixir Desktop

I’ve been experimenting with Elixir code generation using ChatGPTs API (GPT4) a bit and put my results, scripts and benchmarks against advent of code problems here: GitHub - dominicletz/advent_of_chatgpt: Prototype for test based code generation with ChatGPT · GitHub

Also did a talk on that here in Berlin. Here are the slides: chatgpt_berlin_meetup - Google Präsentationen

I think ChatGPT5 is going to be really interesting, so far it seems mostly be useful for small error corrections, auto-completion and toy problems.

Where Next?

Popular in Discussions Top

mikl
I wanted to capitalize a string, and tried using String.capitalize(). That generally works well, until you try to capitalize a word like...
New
Rustixir
Hi everyone, im working on find best language/framework/system for high concurrency, high performance and stable performance after wor...
New
owaisqayum
I have a sample string sentence = "Hello, world ... 123 *** ^%&amp;*())^% %%:&gt;" From this string, I want to only keep the integers, ...
New
arpan
Hello everyone :wave: Today I am very excited to announce a project that I have been working on for almost 3 months now. The project is...
New
rower687
Hi all, I’ve been reading a lot about the “let it crash” term and how supervising processes and the whole messaging passing make an elixi...
New
und0ck3d
Hello everyone! A few days ago I’ve created a topic here about how people were creating CMSs with Elixir and Phoenix. I’ve been studying...
New
100phlecs
Are there any downsides, like perf issues, to putting all functional components in CoreComponents as long as you prefix it with the conte...
New
joeerl
I’m playing with Elixir - It’s fun. I think @rvirding does give Elixir courses these days. Re: files and database - when I given Erlang ...
New
kostonstyle
Hi all How can I compare haskell with elixir, included tools, webservices, ect. Thanks
New
AstonJ
It’s been a while since we’ve had a thread like this, so what better way to kick off the year with :003: What does being an Elixir user ...
New

Other popular topics Top

AstonJ
Posting this to see if we can make things easier for people to get into Neovim. If you use Neovim and have a favourite distro please let ...
New
greenz1
I have a phoenix application from which a user can download multiple(5-6) files of size 1MB. I couldn’t find anything related to sending ...
New
ovidiubadita
Hey all, I discovered Elixir and I love it. I always wanted to learn a functional programming and I intended to go for Haskell, but afte...
New
Lily
In templates/appointment/index.html.eex: &lt;%= for appointment &lt;- @appointments do %&gt; &lt;tr&gt; &lt;td&gt;&lt;%= appoi...
New
RisingFromAshes
I’ve read in another post that it may be possible with a router helper - but I couldn’t find an appropriate one, and tbh, I’m still just ...
New
nobody
Hi! In PHP: $_SERVER[‘SERVER_ADDR’] - in Elixir? Searched the docs for ip address and the web, no good results. Thanks!
New
ashish173
I am using Ecto timestamps with postgres, I can see the timestamps() use the :naive_dateime but for my use case I wanted to store the ti...
New
dblack
I’ve got an issue with an app and I’ve no idea of how to troubleshoot it. I’m hoping someone here might have seen something similar. I p...
New
Brian
What is the proper way to load a module from a file in to IEX? In the python world, doing something like this pretty standard: from ....
New
sergio
Kind of like when jquery came out, it was super necessary. Existing drag and drop libraries have a bunch of baggage to support old browse...
New

We're in Beta

About us Mission Statement