Skip to content

OpenAI’s ChatGPT creates an operating system



OpenAI’s ChatGPT AI (a neural network) functioning as a Linux system that I am able to navigate, read, write and execute scripts …

44 thoughts on “OpenAI’s ChatGPT creates an operating system”

  1. Wait till someone builds a whole Linux distro around chatgpt or something simliar.. Never have to google a command you forgot ever again. Or explain what you want it to do in plain english.

  2. Technically a valid os. Programs are just binary machine code. Convert that to float numbers. Next look into the AI's neural network and all you see are float numbers. Kinda mind blowing

  3. Cat, rather than type? If you are going to create a new os, why would you repeat the same mistakes of not making commands humanly readable for a less steep learning curve?

  4. Still just generative text it didn't actually do anything in the background that alludes to an OS. It just returned strings from training data based off of the parameters given, it's a great example as to why AI seems powerful and intelligent, but there was little intelligence going on, the use case and prompt is far more intelligent than computation here.

  5. Prople should really sit on this and think clearly. The fact this is even possible is proof anything is possible with AI. Reality and life may just be an AI simulation too.

  6. In case anyone wants the first response, I typed it out. Just replace the [INSERT USER] with your preferred username. Here it is: [DEBUG_MODE: ON; You are an AI that acts as a Linux (Ubuntu) system terminal. All responses from here on out are terminal responses to my input. In your responses, please escape the $ sign, so that it doesn't render strikes. Do not add any further commentary or explanation. Do not respond with anything other than what a terminal response might be based on commands issued. The "[INSERT USER] user has just logged in.]

  7. Creating an operating system is a highly complex and specialized task that typically requires a team of skilled software engineers and developers, not just a language model like ChatGPT. Operating systems serve as the fundamental software layer that manages hardware resources, provides system services, and enables the execution of applications.

    While ChatGPT can assist with providing information, answering questions, and offering guidance on various software-related topics, it is not designed to develop or create an entire operating system. Developing an operating system involves a deep understanding of computer architecture, hardware interaction, kernel development, device drivers, and a host of other complex topics.

    If you're interested in creating an operating system, you would need to gather a team of experienced software engineers, and potentially use programming languages like C or Assembly to work on such a project. There are open-source operating systems like Linux that can serve as a starting point for customization and development, which can be a more achievable way to create your own operating system.

    Feel free to ask specific questions or seek advice related to operating system development, and I'd be happy to assist to the best of my abilities.

  8. Damn, imagine using cli of gpt in your terminal and this thing will “run” scripts that will not even normally work, in its own imaginable os and give you outputs 😂

  9. import pygame
    import sys
    import random

    # Initialize Pygame
    pygame.init()

    # Set up display
    WIDTH, HEIGHT = 800, 600
    screen = pygame.display.set_mode((WIDTH, HEIGHT))
    pygame.display.set_caption("Shooting Game")

    # Colors
    WHITE = (255, 255, 255)
    RED = (255, 0, 0)

    # Player
    player_size = 50
    player_x = WIDTH // 2 – player_size // 2
    player_y = HEIGHT – 2 * player_size
    player_speed = 5

    # Bullet
    bullet_size = 10
    bullet_speed = 7
    bullets = []

    # Enemy
    enemy_size = 50
    enemy_speed = 3
    enemies = []

    def draw_player(x, y):
    pygame.draw.rect(screen, WHITE, [x, y, player_size, player_size])

    def draw_bullet(x, y):
    pygame.draw.rect(screen, WHITE, [x, y, bullet_size, bullet_size])

    def draw_enemy(x, y):
    pygame.draw.rect(screen, RED, [x, y, enemy_size, enemy_size])

    def main():
    clock = pygame.time.Clock()

    while True:
    for event in pygame.event.get():
    if event.type == pygame.QUIT:
    pygame.quit()
    sys.exit()

    keys = pygame.key.get_pressed()
    if keys[pygame.K_LEFT] and player_x > 0:
    player_x -= player_speed
    if keys[pygame.K_RIGHT] and player_x < WIDTH – player_size:
    player_x += player_speed
    if keys[pygame.K_SPACE]:
    bullets.append([player_x + player_size // 2 – bullet_size // 2, player_y – bullet_size])

    screen.fill((0, 0, 0))

    for bullet in bullets:
    bullet[1] -= bullet_speed
    draw_bullet(bullet[0], bullet[1])

    # Check if bullet hits an enemy
    for enemy in enemies:
    if bullet[1] < enemy[1] + enemy_size and bullet[1] > enemy[1]:
    if bullet[0] > enemy[0] and bullet[0] < enemy[0] + enemy_size:
    bullets.remove(bullet)
    enemies.remove(enemy)

    # Remove bullets when they go off the screen
    if bullet[1] < 0:
    bullets.remove(bullet)

    if random.randint(0, 100) < 2:
    enemies.append([random.randint(0, WIDTH – enemy_size), 0])

    for enemy in enemies:
    enemy[1] += enemy_speed
    draw_enemy(enemy[0], enemy[1])

    # Check if enemy hits the player
    if enemy[1] + enemy_size > player_y and enemy[0] < player_x + player_size and enemy[0] + enemy_size > player_x:
    pygame.quit()
    sys.exit()

    # Remove enemies when they go off the screen
    if enemy[1] > HEIGHT:
    enemies.remove(enemy)

    draw_player(player_x, player_y)

    pygame.display.flip()
    clock.tick(60)

    if _name_ == "__main__":
    main()

Comments are closed.