Wow I think I chanelled Chatbot to creat a new NeXT Web Browser !

NeXT Computer, Inc. -> NEXTSTEP / OPENSTEP Software

Title: Wow I think I chanelled Chatbot to creat a new NeXT Web Browser !
Post by: Rob Blessin Black Hole on February 14, 2023, 09:52:56 PM
Winner Winner Chicken Dinner lol Mic drop.

 Would you be able to provide an example of  C or objective C code for gnustep operating system platform  to create a lite webbrowser  and instructions on how to port it to nextstep 3.3 or openstep 4.2

Certainly, here is an example of Objective-C code for a simple web browser that uses the WebView class provided by GNUstep on a Linux operating system:

objective

#import <AppKit/AppKit.h>
#import <WebKit/WebKit.h>

int main(int argc, char *argv[]) {
  NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
  [NSApplication sharedApplication];
  [NSApp setActivationPolicy:NSApplicationActivationPolicyRegular];

  NSWindow* window = [[NSWindow alloc] initWithContentRect:NSMakeRect(0, 0, 1024, 768)
                                                  styleMask:NSWindowStyleMaskTitled | NSWindowStyleMaskClosable | NSWindowStyleMaskMiniaturizable
                                                    backing:NSBackingStoreBuffered defer:NO];
  [window setTitle:@"Web Browser"];
  WebView* webView = [[WebView alloc] initWithFrame:[window.contentView bounds]];
  [window.contentView addSubview:webView];
  [webView.mainFrame loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"https://www.example.com"]]];
 
  [NSApp activateIgnoringOtherApps:YES];
  [window makeKeyAndOrderFront:nil];
  [NSApp run];
  [pool drain];
  return 0;
}

This code uses the GNUstep libraries to create a window and a WebView to display web content. It loads the URI "https://www.example.com" by default.

To port this code to NeXTSTEP 3.3 or Openstep 4.2, you would need to adapt it to use the appropriate libraries and toolkits for those operating systems, such as the NeXTSTEP Application Kit or the OpenStep API. You may also need to modify the code to support the limited resources and older technology available on those systems.

Overall, creating a lightweight web browser for NeXTSTEP 3.3 or Openstep 4.2 would require a significant amount of expertise in software development and an understanding of the limitations of those older systems.
Title: Re: Wow I think I chanelled Chatbot to creat a new NeXT Web Browser !
Post by: verdraith on February 14, 2023, 11:17:13 PM
Quote from: Rob Blessin Black Hole on February 14, 2023, 09:52:56 PMTo port this code to NeXTSTEP 3.3 or Openstep 4.2, you would need to adapt it to use the appropriate libraries and toolkits for those operating systems

Translation: Yeah, here's some GNUstep example code... now you just need to port WebKit. GO!
meta-translation: I know nothing about anything older than GNUstep, so, uh, here's a GNUstep example.

Everything else assumes you're not a programmer :D
Title: Re: Wow I think I chanelled Chatbot to creat a new NeXT Web Browser !
Post by: Rob Blessin Black Hole on February 15, 2023, 03:41:59 AM
Quote from: verdraith on February 14, 2023, 11:17:13 PMTranslation: Yeah, here's some GNUstep example code... now you just need to port WebKit. GO!
meta-translation: I know nothing about anything older than GNUstep, so, uh, here's a GNUstep example.

Everything else assumes you're not a programmer :D

At the rate this chatbot thing is learning , there is no doubt in my mind it will probably get "bored" and revisit all of the questions I've fed it and the masses; somewhere down the road and just create it. My guess is with he help of being hand fed the tools by programmers and the correct prompting;  with all the developer tools in its library this Chatbot thing will and or probably already has the capability to take the ball and run with it  and it is only in BETA . 

Go Hammer on it V and see what she will do lol ....  their has to be a way to create a developer tool front end like a GUI juke box for AI assist in creating mission critical custom apps. (If one doesn't exist there will be one soon) heck once it reads developing NeXT applications and we can feed it the NeXT Iso's , Proof create a hello world app in basic

Sure! Here's a "Hello, World!" program in BASIC:

sql

10 PRINT "Hello, World!"
20 END

To run the program, simply enter the code into a BASIC interpreter or editor and run it. The program will print "Hello, World!" to the console or screen.

Note that the line numbers are not strictly necessary, but they are a convention in BASIC to make it easier to edit and modify the code. The END statement is used to tell the interpreter to stop executing the program.
Title: Re: Wow I think I chanelled Chatbot to creat a new NeXT Web Browser !
Post by: itomato on April 08, 2023, 06:12:41 PM
What I do when it returns one of these statements is to paste it right back in as the requirement in the prompt.

I'm curious how far it would go with a git client now...

Go to top  Forum index