Language Selection

English French German Italian Portuguese Spanish

Programming: Vala, Emojis, Perl, Python and Java

Filed under
Development

  • 3 Free Books to Learn Vala

    Vala is an object-oriented programming language with a self-hosting compiler that generates C code and uses the GObject system.

    Vala combines the high-level build-time performance of scripting languages with the run-time performance of low-level programming languages.

    Vala is syntactically similar to C# and includes notable features such as anonymous functions, signals, properties, generics, assisted memory management, exception handling, type inference, and foreach statements.

    Its developers, Jürg Billeter and Raffaele Sandrini, wanted to bring these features to the plain C runtime with little overhead and no special runtime support by targeting the GObject object system. Rather than compiling directly to machine code or assembly language, it compiles to a lower-level intermediate language. It source-to-source compiles to C, which is then compiled with a C compiler for a given platform, such as GCC.

    Did you always want to write GTK+ or GNOME programs, but hate C with a passion? Try Vala.

    Vala is published under the GNU Lesser General Public License v2.1+.

  • Back Up Your Data

    This post is a public service announcement about backups inspired by the one that got lost. I’ve had my own backups for over 5 years, and never have I lost any data from those backups. So I have a little bit of experience making backups. The following advice is meant for individuals, not a corporate or business setting.

  • Michael Sheldon: Emoji Support for Linux Flutter Apps

    Recently Canonical have been working alongside Google to make it possible to write native Linux apps with Flutter. In this short tutorial, I’ll show you how you can render colour fonts, such as emoji, within your Flutter apps.

  • Visual Basics: Codecademy Launches a Course on Coding with Emojis

    July 17 was “World Emoji Day,” and so the online learning site Codecademy found a fun way to celebrate. It unveiled a five-hour mini-course teaching Emojicode, a unique programming language that consists entirely of emojis.

    “We believe that Emojis have expressive force,” explained the language’s official web page. “Let’s use that to make programming more fun and accessible.”

    Originally, Codecademy planned to reveal the mini-course on April Fool’s Day, but was delayed in the height of the world dealing with the COVID-19 pandemic.

  • 2020.30 Almost On Time

    Alexander Kiryuhin announced the Rakudo 2020.07 Compiler Release just a few days after the targeted date! The delay was caused by some build breakage introduced just days before the release, which needed to be fixed first. The associated binary packages are available at the expected locations.

  • Polling for fun and engagement

    I've been posting some Perl related polls in Perl Programmers over the last few weeks. Despite the obvious weaknesses in the sampling method, they've provided some good insights and great talking points.

  • 25 Years of Java: Still as Popular as It's Ever Been

    The Java programming language celebrated 25 years on May 23 this year. It was first released by Sun Microsystems in 1995. Two and a half decades on, it remains one of the most popular programming languages.

    In 1991, James Gosling, an engineer at Sun Microsystems, began developing a new language that he initially called Oak. Later on, the language came to be known as Java. The purpose of developing this new language was to build a system that would enable a large network of interactive consumer electronic devices that could be managed from a handheld remote controller. The concept didn’t excite the digital cable television industry at that time. Perhaps, it was too advanced for them way back in 1995.

    Developers began using Java, however, to develop applications for desktop computers. The Internet was beginning to catch on around the same time. In 1993, the World Wide Web became a public domain, thereby enabling the public to join in the fun. In 1995, the Pew Research Center reported that 14 percent of adults in the US were already “online.” Programmers started using Java for web applications and it soon became the preferred programming language for apps.

    Java was better suited for the Internet and enterprise application development than older languages, such as COBOL, C, and C++. It provided support for Internet protocols, such as HTTP. Java enabled easier and faster application programming than COBOL or C because of its object-oriented design, integrated libraries, and run-time error detection capability.

  • Python Multithreading Misconception

    One of the misconceptions that developers say that python is too slow and python multithreading sucks. Well, it’s not true. let’s broaden this topic. A lot of pythonists used to say GIL (Global Interpreter Lock) is the cause of the performance of python. They say it prevents you from running more than one thread at a time. You can’t get the real concurrency feature in python. Yes, it’s true but the truth is multithreading is still perfect. Yeah, there are some exceptions which you have to lookout. And depending on the cases, it might need GIL otherwise why to make ur development life harder and being burn out. What Gil restricts that two bytecode can’t run parallelly. Threading can allow concurrency and reduces time consumption, increase performance.
    As I mention here about GIL a lot but what actually it is? Well, Gil is a feature of CPython which default python manages memory. but Jython and IronPython lack the GIL coz it’s an implementation detail of the underlying VM. I tired about it and here is the result.
    jython.png

    lol, they don’t have. They handle dynamic memory differently and can safely run the python code in multiple threads at the same time. And I think Cpython can’t remove the GIL feature too. And what’s the solution in order to achieve Multithreading. Well, Many python libraries bypass multithreading issue by using C/C++ extensions.I recommend multiprocessing to get the benefits of all the cores. One more thing GIL is only a problem in a multiprocessor environment.

  • Python main function

    In this tutorial, we will learn how to use a Python program's __name__ attribute to run it dynamically in different contexts.

  • PSF GSoC students blogs: Week 7
  • PSF GSoC students blogs: Week 6
  • PSF GSoC students blogs: Weekly Check-in #5

More in Tux Machines

digiKam 7.7.0 is released

After three months of active maintenance and another bug triage, the digiKam team is proud to present version 7.7.0 of its open source digital photo manager. See below the list of most important features coming with this release. Read more

Dilution and Misuse of the "Linux" Brand

Samsung, Red Hat to Work on Linux Drivers for Future Tech

The metaverse is expected to uproot system design as we know it, and Samsung is one of many hardware vendors re-imagining data center infrastructure in preparation for a parallel 3D world. Samsung is working on new memory technologies that provide faster bandwidth inside hardware for data to travel between CPUs, storage and other computing resources. The company also announced it was partnering with Red Hat to ensure these technologies have Linux compatibility. Read more

today's howtos

  • How to install go1.19beta on Ubuntu 22.04 – NextGenTips

    In this tutorial, we are going to explore how to install go on Ubuntu 22.04 Golang is an open-source programming language that is easy to learn and use. It is built-in concurrency and has a robust standard library. It is reliable, builds fast, and efficient software that scales fast. Its concurrency mechanisms make it easy to write programs that get the most out of multicore and networked machines, while its novel-type systems enable flexible and modular program constructions. Go compiles quickly to machine code and has the convenience of garbage collection and the power of run-time reflection. In this guide, we are going to learn how to install golang 1.19beta on Ubuntu 22.04. Go 1.19beta1 is not yet released. There is so much work in progress with all the documentation.

  • molecule test: failed to connect to bus in systemd container - openQA bites

    Ansible Molecule is a project to help you test your ansible roles. I’m using molecule for automatically testing the ansible roles of geekoops.

  • How To Install MongoDB on AlmaLinux 9 - idroot

    In this tutorial, we will show you how to install MongoDB on AlmaLinux 9. For those of you who didn’t know, MongoDB is a high-performance, highly scalable document-oriented NoSQL database. Unlike in SQL databases where data is stored in rows and columns inside tables, in MongoDB, data is structured in JSON-like format inside records which are referred to as documents. The open-source attribute of MongoDB as a database software makes it an ideal candidate for almost any database-related project. This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo‘ to the commands to get root privileges. I will show you the step-by-step installation of the MongoDB NoSQL database on AlmaLinux 9. You can follow the same instructions for CentOS and Rocky Linux.

  • An introduction (and how-to) to Plugin Loader for the Steam Deck. - Invidious
  • Self-host a Ghost Blog With Traefik

    Ghost is a very popular open-source content management system. Started as an alternative to WordPress and it went on to become an alternative to Substack by focusing on membership and newsletter. The creators of Ghost offer managed Pro hosting but it may not fit everyone's budget. Alternatively, you can self-host it on your own cloud servers. On Linux handbook, we already have a guide on deploying Ghost with Docker in a reverse proxy setup. Instead of Ngnix reverse proxy, you can also use another software called Traefik with Docker. It is a popular open-source cloud-native application proxy, API Gateway, Edge-router, and more. I use Traefik to secure my websites using an SSL certificate obtained from Let's Encrypt. Once deployed, Traefik can automatically manage your certificates and their renewals. In this tutorial, I'll share the necessary steps for deploying a Ghost blog with Docker and Traefik.