Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>xlangNew to Visual Studio Code? Get it now.
xlang

xlang

cantorai

|
430 installs
| (0) | Free
XLang's debugger and more
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

xlang

  • A new dynamic programing language for AI and IOT with natural born distributed computing ability
  • A super glue to easily integrating with other languages such as c++/c, python and javascript and any framework cross operation system barriers.
  • Running faster than python about 3x-5x

Start xlang engine in Windows

  • download from https://github.com/xlang-foundation/xlang.bin/blob/main/zip/xlang_windows_x64.zip?raw=true

  • download and extract to a local folder for example: xlang

  • inside folder xlang, run command below

    xlang -dbg -event_loop -enable_python

In vscode

  • new or open a .x file which uses same syntax like python
  • Click on menu Run/Start Debugging
  • will break on the first line

Example Code


def test():
    x = ["Hello Xlang","Awesome coding"]
    print(x)
    y = 2023
    print("y=${y}")
test()
print("well done")

Example code with SQL

Directly Embedded SQL statements in xlang


from xlang_sqlite import sqlite

xlang_addr ="some where in usa"
cantor_addr ="cantor way in usa"
pushWritepad(sqlite)
#create a database:example and a table: commpany

%USE example;
%CREATE TABLE company(\
   ID INT PRIMARY KEY     NOT NULL,\
   NAME           TEXT    NOT NULL,\
   AGE            INT     NOT NULL,\
   ADDRESS        CHAR(50),\
   Score          REAL\
);
%INSERT INTO company VALUES(1,'XLang',2,${xlang_addr},100);
%INSERT INTO company VALUES(2,'CantorAI',1,${cantor_addr},99.9);
%SELECT * FROM company;
%DROP TABLE company;

popWritepad()
print("end")



  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft