Hyper IDE

Hyper IDE is your “goto component” when you want to create your own modules using Magic and Hyperlambda. It’s a web based IDE, allowing you to edit your code, create new modules, and contains a lot of things you’re used to from a traditional IDE. It is also the natural extension of Magic’s endpoint generator, since it allows you to edit the Hyperlambda endpoint files after Magic have generated your CRUD backend. Another important feature is its ability to help you create workflows.

Editing a file in Hyper IDE

Hyper IDE also provides integrated autocomplete if your editor has focus and you click CTRL+SPACE in Windows or FN+CONTROL+SPACE on your Mac. This allows you to very rapidly create Hyperlambda code, while having Hyper IDE ensure your code is using existing slots. Click the “Shortkeys” button to see a list of all keyboard shortcuts Hyper IDE provides. Notice, these keyboard shortcuts are only available when your code editor has focus.

Hyper IDE autocomplete

Hyper IDE features

Hyper IDE is not a fully fledged IDE, and cannot compare to something like VS Code or Visual Studio. However, its purpose is to function as an extension on top of the endpoint generator, giving you code editing capabilities of your generated Hyperlambda files - In addition to rapidly allowing you to create workflows and edit Hyperlambda files.

You can use Hyper IDE to edit TypeScript, Ruby, HTML and C# code, but we don’t recommend replacing it with your existing code editor, since other IDEs have much more features than Hyper IDE. However, the opposite is also true, implying Hyper IDE have features your existing IDE does not have - Especially in regards to Hyperlambda, which is the axiom around which Magic evolves.

For a walkthrough of Hyper IDE’s most important features you can watch the following YouTube video.

One example of such features is its integrated machine learning and AI features. With Hyper IDE, you can use OpenAI’s API to ask it to create code for you. This resembles the way GitHub CoPilot works.

Another difference is that Hyperlambda is a dynamic programming language, implying once you’ve saved your Hyperlambda files, you can immediately test your code by executing it from within Hyper IDE by clicking F5. This results in a much tighter development model than a traditional compiled programming language gives you, making it much faster to find bugs and create working code.

If you execute code in immediate mode using F5, and your code requires arguments, Hyper IDE will ask you for what to pass in as arguments. This isn’t perfect, and only works for first level arguments - But if you need more complexity, you can always use the Hyperlambda Playground, and/or the Endpoints Component.

Magic does not separate between code creation and your code’s production environment, providing you with instant feedback as you create your code.

Executing Hyperlambda from Hyper IDE

Hyper IDE allows you to execute Hyperlambda without ever leaving your IDE by clicking F5. This makes it easy for you to test your code as you are creating it, and is the closest you come to the equivalent of a “debugger” in Magic.

If you’re creating a workflow, Hyper IDE will communicate everything it does back to the client over web sockets, allowing you to see input arguments to specific actions, and what they return. If an error occurs as you’re executing a workflow, Hyper IDE will show you exactly where the error occurred.

Executing a workflow in Hyper IDE

Integrated Hyperlambda AI help

If you mark some Hyperlambda code in Hyper IDE and click F1, it will invoke AINIRO.IO’s machine learning type for Hyperlambda, and actually explain your code using natural language.

Hyper IDE integrated Hyperlambda help

Notice, this will use AINIRO.IO’s machine learning models, and tokens. For now we’ve opened up this for free usage, but we might have to charge a fee for this in the future. Other machine learning components are using your local OpenAI types and tokens, such as if you ask the AI to create an HTML page for you, or you’re using SQL Studio’s AI features to create SQL for you.

Machine learning features

Hyper IDE contains a machine learning component, similar to SQL Studio, that allows you to have it create code for you using AI.

Use AI to generate code in Hyper IDE

If you use the AI chat interface in Hyper IDE you can ask the AI to create, and/or modify your code, and such have “conversations” with the AI about your code - And even use the AI as your “AI-based pair programming buddy”. Such requests will be paired to a local type with the same name as your file extension, implying if you’re asking the AI to help you when you’ve got an HTML file open, the AI will search for a type who’s name is “html”. If the backend does not find such a type, it will resort to using your “default” type.

This allows you to create your own unique models using RAG or fine-tuning, that are matched to your file extensions, to for instance teach the AI about your own code, etc.

Workflows and declarative programming

Probably Hyper IDE’s most important feature is its ability to create code “declaratively”. With traditional programming you need to describe the “how”. Declarative programming allows you to ignore the “how” and focus on the “what”. This trait of Hyper IDE significantly lowers the bar and makes it easier to create working software, also for people without any prior software development experience.

For instance, to invoke Stripe’s API to create a subscription or a payment requires knowledge of HTTP, JSON, Stripe’s API, etc. With Hyper IDE it’s as easy as clicking a button and decorating an “action”.

Declarative programming with Hyper IDE

Actions can be chained together into workflows, where each consecutive action chains output arguments from its previous actions into input arguments to itself.

Modules

Magic is modularized, allowing you to easily move modules from one machine to another. This is the purpose of your “/modules/” folder, as in each folder inside this folder is considered a module in Magic.

If you’re developing a module in your own local installation of Magic, you can mark the folder in the tree control, and click the action button for downloading the folder. This will give you a zip file you can easily upload to another server using the install module action button.

This is also horizontally integrated into SQL Studio, allowing you to “export” your database DDL SQL to a module, assuming your module has the same name as your database. If you use this feature, Magic will automatically create your database, and even apply migration scripts if required during installation.

Continuous Integration and Deployment

You can even connect creation of such modules, and automatically deploying them to for instance a GitHub action using CI/CD, by creating a token using your “username/Generate Token” menu item. This give you a JWT token you can use to authenticate a process such that it’s allowed to invoke your /magic/system/file-system/install-module endpoint, that will allow you to automatically upload a zip file, and re-install it after uploading it.

Hyper, Hyper

For some tasks Hyper IDE literally makes you 1,000x more productive. For other tasks it’s close to useless compared to other tools. Hyper IDE’s purpose is to allow you to extremely rapidly create backend code and APIs. Don’t expect Hyper IDE to replace your existing IDE, if you do, you will be disappointed.

Expect it to instead allow you to rapidly create backend code and APIs. If you do, you might be positively surprised at how expressive it is due to its declarative constructs based upon meta programming and Hyperlambda.

However, Hyper IDE is not a free lunch. It still requires mastering the tool, and spending time learning how to use it. If you do, you might realise that for some tasks that it was created for, a single junior software developer might some times replace the work of entire departments filled with senior software developers.