Visual programming languages
Tersus
With the previously presented tools, developers just pointed and clicked to compose a flowchart of individual commands; even the object-oriented programming in Alice basically used an imperative style. Tersus [11], on the other hand, focuses on data flow. In the Eclipse-based development environment, a palette on the right offers functions to manipulating numbers, text, or lists. If you drop a function onto the canvas, it appears as a box with inputs and outputs. The box for multiplication, for example, has two inputs (for the two numbers to be multiplied) and one output for the result. When you connect these inputs and outputs to the inputs and outputs of other functions, the result is a data flow diagram as shown in Figure 7, and you can nest these diagrams to assemble complex computations from smaller units.
Tersus converts the finished program into a web application and serves it up with its own Tersus server. The functions and operations offered in the palette primarily cover the needs of web developers. Among other things, it supplies links to databases and functions for authentication and key generation.
Input and output is handled by forms (views) whose parts are again composed by point and click. The principle of nesting applies here as well: If you want two input fields to appear adjacent on a page, you first need to locate an element for a row on the form and then locate the two fields in the row. Tersus draws the input fields as simple rectangles. If you want to see the results, you need to complete and build the whole program.
Tersus is released under the GPLv2, but its vendor, Tersus Software Ltd., also offers a commercial version with links to commercial databases such as Oracle and enhanced support for MS Office files.
Diagrams as a Benefit
Tersus mainly uses tools for signal processing, as well as data flowcharts for music and multimedia programs. For example, if you use the GNU Radio Companion [12], you can drag the components of a sine wave generator from a palette into the drawing area and connect its output to the input of the audio output component, which you likewise drag from the palette. You can then change and convert signals (Figure 8) using other blocks.
With the help of the Pure Data (PD) [13] tool, users can use this approach to run sounds through several processing stages, as well as process video and multimedia data. Graphic artists also use graphic data flow diagrams [14] in the 3D Blender program to postprocess the rendered images. To do so, they link compositing nodes.
Lava
The graphical programming language Lava [15] was created in 2001 at the Fraunhofer Institute [16] for secure information technology; now, other developers continue to maintain the project. Similar to Drakon, the programming language is Lava, whereas the development environment has the name Lava Programming Environment, or Lava PE for short. Its complete source code is available under the GPLv2.
The object-oriented Lava uses a slightly different approach than the previously mentioned graphical programming languages: To start, you use a wizard to create the classes you need in your program. Lava PE displays these in a hierarchy (Figure 9). Related classes can be combined to create packages, as in Java.
To implement the methods of the classes, you then need to change to the text editor. In the editor, you do not need to type in the source code manually; rather, you point and click to compose the instructions from various palettes. Lava PE automatically ensures that only syntactically correct statements are produced. For example, if you use the palette with the control structures to create a foreach
loop, a wildcard appears in place of the termination condition and the loop body (Figure 10).
You can then replace these placeholders by pointing and clicking again. Depending on the currently selected placeholder, the palettes and combo boxes only offer statements, variables, and objects that you can use in the current situation.
The development environment itself is a little awkward to use. The myriad of meaningless symbols is overkill and, in turn, complicates the work and wastes time. On the positive side, you have the benefit of object-oriented programming, which means you can derive classes and use a signal/slot concept similar to that in Qt. Additionally, Lava PE offers native functions for refactoring.
The finished program is run by an interpreter named Lava. Lava PE provides a debugger to set breakpoints. When this issue went to press, the current 0.9.4 version was only available as source code and required Qt 5.1.1, which in turn is only included in more recent distributions. Documentation is based on examples, which is not only incomplete but also well hidden on the website [17].
« Previous 1 2 3 Next »
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
News
-
Gnome Fans Everywhere Rejoice for the Latest Release
Gnome 47.2 is now available for general use but don't expect much in the way of newness, as this is all about improvements and bug fixes.
-
Latest Cinnamon Desktop Releases with a Bold New Look
Just in time for the holidays, the developer of the Cinnamon desktop has shipped a new release to help spice up your eggnog with new features and a new look.
-
Armbian 24.11 Released with Expanded Hardware Support
If you've been waiting for Armbian to support OrangePi 5 Max and Radxa ROCK 5B+, the wait is over.
-
SUSE Renames Several Products for Better Name Recognition
SUSE has been a very powerful player in the European market, but it knows it must branch out to gain serious traction. Will a name change do the trick?
-
ESET Discovers New Linux Malware
WolfsBane is an all-in-one malware that has hit the Linux operating system and includes a dropper, a launcher, and a backdoor.
-
New Linux Kernel Patch Allows Forcing a CPU Mitigation
Even when CPU mitigations can consume precious CPU cycles, it might not be a bad idea to allow users to enable them, even if your machine isn't vulnerable.
-
Red Hat Enterprise Linux 9.5 Released
Notify your friends, loved ones, and colleagues that the latest version of RHEL is available with plenty of enhancements.
-
Linux Sees Massive Performance Increase from a Single Line of Code
With one line of code, Intel was able to increase the performance of the Linux kernel by 4,000 percent.
-
Fedora KDE Approved as an Official Spin
If you prefer the Plasma desktop environment and the Fedora distribution, you're in luck because there's now an official spin that is listed on the same level as the Fedora Workstation edition.
-
New Steam Client Ups the Ante for Linux
The latest release from Steam has some pretty cool tricks up its sleeve.