|
Post by anixx on May 11, 2023 15:38:52 GMT -8
Let's talk about AI. Will it be possible in a few years to tell the AI to write an operating systel looking like and compatible with Windows from scratch? What do you think?
|
|
|
Post by R.O.B. on May 11, 2023 19:18:24 GMT -8
I think we're still several years off from an AI writing a fully functional OS from scratch, however I do believe it could assist in the process even now. I can especially see it being useful in the process of decompilation, and I wouldn't be surprised if projects like ReactOS start seriously using it (if they haven't already). We just started using ChatGPT at work, and I'm still getting used to how efficiently it can automate a lot of what we used to have to do manually. Now granted I don't do programming, but it's kind of amazing just how good it is at things like writing. Not perfect, but still pretty darn good. This may sound obvious, but AI is really going to change the way we do things. Whether for better or worse, I can't say. But it's definitely going to have a huge impact on our lives.
|
|
|
Post by leet on May 12, 2023 2:50:34 GMT -8
Asking AI to write a file explorer as of 12/05/2023: Bing AI: While I can write code, writing a full file manager program for Windows is a complex task that requires a deep understanding of the Windows operating system and its APIs. It also requires a significant amount of time and effort to develop, test and debug. As a chatbot, my capabilities are limited to providing information and generating short code snippets. I’m not able to write or execute complex programs like a full file manager for Windows. ChatGPT: As an AI language model, I don't have the ability to directly write software programs. However, I can guide you through the steps you would need to take to create a basic file manager for Windows with copy and paste features. *stupid explanation I already know*
|
|
|
Post by anixx on May 12, 2023 22:52:07 GMT -8
ChatGPT can write programs, it is lying. But of course, there will be a lot of mistakes in the code. Bing (GPT-4) should write better.
|
|
|
Post by anixx on May 12, 2023 23:00:20 GMT -8
This is answer by GPT-4 (phind.com):
Then gave me these variants for the bullet points:
void treeView1_NodeMouseClick(object sender, TreeNodeMouseClickEventArgs e) { TreeNode newSelected = e.Node; listView1.Items.Clear(); DirectoryInfo nodeDirInfo = (DirectoryInfo)newSelected.Tag; ListViewItem.ListViewSubItem[] subItems; ListViewItem item = null; foreach (DirectoryInfo dir in nodeDirInfo.GetDirectories()) { item = new ListViewItem(dir.Name, 0); subItems = new ListViewItem.ListViewSubItem[] {new ListViewItem.ListViewSubItem(item, "Directory"), new ListViewItem.ListViewSubItem(item, dir.LastAccessTime.ToShortDateString())}; item.SubItems.AddRange(subItems); listView1.Items.Add(item); } foreach (FileInfo file in nodeDirInfo.GetFiles()) { item = new ListViewItem(file.Name, 1); subItems = new ListViewItem.ListViewSubItem[] { new ListViewItem.ListViewSubItem(item, "File"), new ListViewItem.ListViewSubItem(item, file.LastAccessTime.ToShortDateString())}; item.SubItems.AddRange(subItems); listView1.Items.Add(item); } listView1.AutoResizeColumns(ColumnHeaderAutoResizeStyle.HeaderSize); }
and
private void PopulateTreeView() { TreeNode rootNode; DirectoryInfo info = new DirectoryInfo(@"../.."); if (info.Exists) { rootNode = new TreeNode(info.Name); rootNode.Tag = info; GetDirectories(info.GetDirectories(), rootNode); treeView1.Nodes.Add(rootNode); } } private void GetDirectories(DirectoryInfo[] subDirs, TreeNode nodeToAddTo) { TreeNode aNode; DirectoryInfo[] subSubDirs; foreach (DirectoryInfo subDir in subDirs) { aNode = new TreeNode(subDir.Name, 0, 0); aNode.Tag = subDir; aNode.ImageKey = "folder"; subSubDirs = subDir.GetDirectories(); if (subSubDirs.Length != 0) { GetDirectories(subSubDirs, aNode); } nodeToAddTo.Nodes.Add(aNode); } }
|
|
|
Post by leet on May 13, 2023 4:07:37 GMT -8
I know it can do it. It seeems chat AI's can do only code snippets, probably because they're restricted. But I still do not see GPT4 as being capable of writing a full file explorer on its own, let alone a system shell.
|
|
|
Post by OrthodoxWin32 on Mar 10, 2024 5:19:57 GMT -8
anixx As artificial intelligence seems to work well for translating from one language to another, I figured it could be used to translate one graphics library to another. This could be useful to migrate applications written with Windows libraries of the "ModernUI" type (WinUI, Fluent XAML, Metro XAML...) to libraries compatible with the classic theme (directly managed by the language if C/C++, WinForm if C#/VisualBasic.NET...). I'm not sure it works, but it might be good to try. Afterwards, it can only work partially, and then complete it manually.
|
|
|
Post by leet on Mar 28, 2024 11:19:02 GMT -8
anixx As artificial intelligence seems to work well for translating from one language to another, I figured it could be used to translate one graphics library to another. This could be useful to migrate applications written with Windows libraries of the "ModernUI" type (WinUI, Fluent XAML, Metro XAML...) to libraries compatible with the classic theme (directly managed by the language if C/C++, WinForm if C#/VisualBasic.NET...). I'm not sure it works, but it might be good to try. Afterwards, it can only work partially, and then complete it manually. I've converted code between languages and frameworks with ChatGPT 3.5 so many times and it does it nearly perfectly. The only thing to look out for is how ChatGPT writes its response. It will always pretend it did everything perfectly, so you'll be easily tempted to just copy and paste. It is always needed to check the code for issues or if it actually understood your question correctly. But as an interactive tool (i.e. you guide chatgpt through it) it works really well for writing code, especially when using frameworks you don't know anything about.
|
|
|
Post by anixx on Mar 28, 2024 14:27:44 GMT -8
anixx As artificial intelligence seems to work well for translating from one language to another, I figured it could be used to translate one graphics library to another. This could be useful to migrate applications written with Windows libraries of the "ModernUI" type (WinUI, Fluent XAML, Metro XAML...) to libraries compatible with the classic theme (directly managed by the language if C/C++, WinForm if C#/VisualBasic.NET...). I'm not sure it works, but it might be good to try. Afterwards, it can only work partially, and then complete it manually. I've converted code between languages and frameworks with ChatGPT 3.5 so many times and it does it nearly perfectly. The only thing to look out for is how ChatGPT writes its response. It will always pretend it did everything perfectly, so you'll be easily tempted to just copy and paste. It is always needed to check the code for issues or if it actually understood your question correctly. But as an interactive tool (i.e. you guide chatgpt through it) it works really well for writing code, especially when using frameworks you don't know anything about. GPT-4-Turbo is much stronger than GPT-3.5, and Claude Opus is really the best at coding. You can simply tell it to write a computer game of your liking and it will do it.
|
|