Skip to content

cs4215-go-project/gocurrent-frontend

Repository files navigation

GoCurrent Frontend

This project is the Next.js frontend for the CS4215 AY23/24 Sem 2 project on concurrency. It is a web-based implementation of a sublanguage of Go which supports sequential Go constructs, memory management, and most importantly Go's concurrent programming features.

Getting Started

  1. Clone the go-current-frontend repository with the following command:
git clone https://github.com/cs4215-go-project/gocurrent-frontend.git
  1. Launch a terminal and navigate to the gocurrent-frontend directory.

  2. Build the project with the following command:

npm install
  1. Run the GoCurrent development server:
npm run dev
# or
yarn dev
# or
pnpm dev
  1. Open http://localhost:4000 with your browser to run the application.

Using Code Templates

The GoCurrent frontend provides code templates for users to quickly get started with writing GoCurrent code.

To use a code template, click on the "Templates" button in the top left corner of the editor.

This will open a dropdown menu with a list of available code templates. Click on a template to insert it into the editor.

You can then modify the code as needed before running it.

Changing Heap Size

The current default heap size is 640 words as specified by the MEMORY_SIZE constant in src/components/Editor.tsx.

To change the heap size, modify the value of MEMORY_SIZE to the desired number of words.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors