Skip to content

Getting Started With Jac and Jaseci#

[Jac is a new language that supersets the semantics of Python with full interoperability with Python's ecosystem that introduces cutting edge programming models and abstractions for minimizing and hiding complexity, being AI forward, and abstracting away categories of common software systems we do manually today. The langauge is designed to be production grade and is already used in production for a number of use cases.]

[Jaseci is an implementation of the Jac runtime. (think CPython for Python)]

Installation#

Firstly make sure that Python 3.12 or higher is installed in your environment, then simply install Jac using pip:

python -m pip install -U jaclang

Once you've got Jaclang installed, just give the Jac CLI a try to make sure everything's up and running smoothly.

  • Start the Jac CLI:
    jac --version
    
  • Run a .jac file ```bash jac run .jac
  • To test run a 'Hello World'Program
    echo "with entry { print('hello world'); }" > test.jac;
    jac run test.jac;
    rm test.jac;
    

    Note

    If these commands prints hello world you are good to go.

Installing the VS Code Extention#

In addition to setting up JacLang itself, you may also want to take advantage of the JacLang language extension for Visual Studio Code (VSCode). This will give you enhanced code highlighting, autocomplete, and other useful language features within your VSCode environment.

  • To install just visit the VS Code marketplace and install,

Next Steps#