RobertoHP - If you have decided to do something, do it well since the beginning.
-
Welcome, my students
I am your professor, Roberto Hernández Pérez. I have created this site as a space for us to share course materials, activities, assignments, and assessments throughout the semester.
I encourage you to visit it regularly, stay up to date with your coursework, and make the most of the resources available to support your learning.
I hope you have a productive and enjoyable learning experience.
-
HPCompiler Installation
Before installing HPCompiler, make sure that JDK 21 or later and Python 3.10 or later are installed on your system.
You can verify the installed versions from a PowerShell terminal:
Windows System
1. Verify Java and Python
Open a PowerShell terminal and run:
java --version python --versionYou should see output similar to:
java 21.0.2 2024-01-16 LTS Java(TM) SE Runtime Environment (build 21.0.2+13-LTS-58) Java HotSpot(TM) 64-Bit Server VM (build 21.0.2+13-LTS-58, mixed mode, sharing) Python 3.13.1If the
pythoncommand is not available but Python was installed with the Windows Python Launcher, you can also try:py --version2. Download HPCompiler
Download HPCompiler-v5.8.1 and save the ZIP file in any directory, for example:
C:\Users\<user>\Downloads3. Uncompress HPCompiler
You can extract the ZIP file using Windows File Explorer or PowerShell.
For example:
Expand-Archive .\hpcompiler-v5.8.1.zip4. Change to the HPCompiler directory
cd .\hpcompiler-v5.8.15. Check the distribution files
Get-ChildItemYou should see files and directories similar to:
bin lib hp hp.bat hp.py hplang-1.0.0.vsix install_hpcompiler.ps1 install_hpcompiler.sh install_hpcompiler_server.sh requirements.txt6. Install HPCompiler
Run:
.\install_hpcompiler.ps1HPCompiler is installed in your user home directory:
C:\Users\<user>\hpcompilerEach HPCompiler version has its own directory and its own private Python virtual environment:
C:\Users\<user>\hpcompiler\ └── versions\ ├── hpcompiler-v5.8.1\ │ ├── bin\ │ ├── lib\ │ └── venv\ │ └── currentThe
currentdirectory references the active HPCompiler version.The installer also adds the following directory to the user PATH:
C:\Users\<user>\hpcompiler\versions\current\binThe installation does not modify the system PATH and does not require administrator privileges.
During installation, you should see messages similar to:
HPCompiler Installer ==================== Version: hpcompiler-v5.8.1 Installing version hpcompiler-v5.8.1... Creating Python virtual environment... Installing HPCompiler Python dependencies... Updating current version... User PATH updated successfully. Installation completed successfully. Open a new terminal and run: hp --version hpcompiler --versionHPCompiler installs its Python dependencies inside the private virtual environment associated with that HPCompiler version. It does not install these dependencies into the global Python environment.
If PowerShell blocks the installer
Depending on the PowerShell execution policy configured on your computer, Windows may prevent the
.ps1script from running.In that case, you can run the installer for this process only with:
powershell.exe -ExecutionPolicy Bypass -File .\install_hpcompiler.ps1This does not permanently change the PowerShell execution policy.
7. Close the terminal
Close the PowerShell terminal used during installation.
You do not need to restart Windows.
8. Open a new PowerShell terminal
Create a working directory for your HPLang programs, for example:
mkdir hp_progs cd hp_progs9. Verify the HPCompiler installation
Run:
hp --version hpcompiler --versionYou should see output similar to:
hp v1.10.0 (March 2, 2026) HPCompiler 5.8.1 (May 19, 2026)You can also verify the HPCompiler environment with:
hp doctorand check the installed HPCompiler versions with:
hp listFor example:
Installed versions: * hpcompiler-v5.8.1 (current)10. Run your first HPLang program
You can compile and run an HPLang program with:
hp myprog.hpYou can also run:
hpWhen no filename is specified, HPCompiler uses the default
TestLang.hpprogram.The first time a working directory is used, HPCompiler initializes the workspace and then compiles and runs the program.
You should see output similar to:
Configuring this working space (directory) for hpcompiler. Compiling TestLang.hp for python ... Running with Python ... Version 5.8.1 (May 19, 2026)