admin

admin

Tests

Argentum got a special syntax to define tests right in the source files along this with code that needs to be tested, and a special mode of compilation, designed to support those tests. How to Define Tests in Code Argentum…

Multilevel breaks from lambdas

This post extends the previous post related to break/continue/return operators. In other languages Let’s start with a JavaScript example: Why is it sometimes desirable to use lambda over loops? On the other hand Lambdas have one big disadvantage: handling control…

New Argentum project structure

Argentum is a modular language. Modules: Module is always a single text source file. It starts with a series of using declaration that define dependencies on other modules with optional imports of class/function/constant names from those used modules. Argentum SDK…

GUI Platform

It’s time to make Argentum programs work on: To do so it needs a graphical user interface library: But this GUI library itself needs a foundation: So meet an experimental “GuiPlatform” module: Example So far this example is tested on…

JSON Module Overview

Module Content It’s available in playground, so go and try it yourself 🙂 Argentum JSON module provides three separate ways to handle JSONs in your application: Use cases To be specific we need some sort of common task to be…

Build Argentum from sources on Ubuntu

Argentum switched to using vcpkg so it automatically installs and builds all dependencies for all platforms in all configurations. Argentum dependencies include LLVM, Skia, SDL, Curl, SqLite and other libraries. The initial build takes ≈60Gb of storage, it requires 16+Gb RAM,…

Hello World with HTTPs→JSON→SQL

Though fizz-buzz-like exercises are necessary at some early development stages, now it’s time to try something more practical. Today we’ll make some simple program that: 1. Create the app Launch VSCode, File->OpenFolder and chose the Argentum directory: Create a httpJsonDbDemo.ag…

JSON DOM

Argentum JSON module has effective Writer and Parser that reads and writes generic application data structures to and from JSONs. It’s a preferred way of using JSON in Argentum. Though in rare cases when an application has to deal with…

JSON Writer

Argentum got a JSON module. Its Writer class allows to directly encode in JSON arbitrary application data without creating any intermediate DOM structures. Writer has a number of methods that write structural and primitive data nodes.After data is written, a…

JSON Parser

This StAX parser allows to easily read JSONs directly to the application data structures, skipping the building of JSON DOM and skipping all irrelevant pieces of data in the JSON stream. Why StAX 99% of real world applications read JSONs…