Archives For November 30, 1999

Visual Studio Code announced version 1.87 as the new February 2024 release!

The release features voice dictation support in editor. With VS Code Speech extension installed, user can use voice to dictate directly into the editor.

It can be started by pressing Ctrl+Alt+V on keyboard, and stop via Escape key. Or, press and hold the key combination (Ctrl+Alt+V) to enable walky-talky mode, that the voice recognition stops as soon as the keys released.

The VS Code Speech extension now has 26 supported languages support. Each language comes as its own extension. And user can choose between them using accessibility.voice.speechLanguage setting.

Other changes in the release include:

  • Multi-cursor inline completions are previewed and applied at both the primary and the secondary cursor positions.
  • Rename suggestions from Copilot.
  • Pylance extension for Python support now has an Add Imports code action for adding missing imports.
  • Enable sticky scroll by defaul, and increase maximum display number from 10 to 20.
  • GitHub Copilot Chat suggests templates and features when adding dev container configuration files to a workspace
  • Side-by-side preview refactoring – Preview refactorings across files with multi diff editor.


Continue Reading…

Gambas released new 3.19.0 few days ago. Here’s the new features and how to to install guide for Ubuntu users!

Gambas is a full-featured object-oriented language and development environment built on a BASIC interpreter. It’s made up of a compiler, interpreter, archiver, scripter, development environment, and many extension components, for easily developing command-line, GTK2/GTK3, Qt, Database, Web, SDL applications.

The latest version so far is Gambas 3.19.0 that includes many exciting new features. First, as you see above, it has a new app icon that’s called gambas-thin. Though, I personally prefer the old one a bit more.

old gambas3 icon

The new release brings huge improvements to interpreter, to make it faster than Python, Perl and Java interpreters in all benchmarks!
Continue Reading…

This simple tutorial shows how to install Python 3.13 in Ubuntu 24.04, Ubuntu 22.04, and/or Ubuntu 20.04 LTS.

Python 3.13.0 was released on Oct 7, 2024 as the new major release that features new interactive interpreter, that supports multi-line editing, REPL-specific commands such as help, exit, clear, and quit, interactive help, history browsing, and ‘paste mode’ for pasting larger blocks of code.

CPython now has experimental support for free-threaded mode for running threads in parallel on available CPU cores, though disabled by default.

Other changes in Python 3.13.0 include:

  • New interactive interpreter, features multi-line editing and color support, as well as colorized exception tracebacks.
  • Experimental free-threaded build mode.
  • A preliminary, experimental JIT.
  • The (cyclic) garbage collector is now incremental.
  • Include a modified version of mimalloc, and enabled by default if supported by the platform.
  • Docstrings now have their leading indentation stripped, reducing memory use and the size of .pyc files.
  • The dbm module has a new dbm.sqlite3 backend that is used by default when creating new files.
  • Support for type defaults in type parameters.
  • New type narrowing annotation, typing.TypeIs.
  • New annotation for read-only items in TypeDicts.
  • Removals of many deprecated modules: aifc, audioop, chunk, cgi, cgitb, crypt, imghdr, mailcap, msilib, nis, nntplib, ossaudiodev, pipes, sndhdr, spwd, sunau, telnetlib, uu, xdrlib, lib2to3.

For more, see the official release note.

Continue Reading…

This simple tutorial shows how to install the latest Clang compiler 17 and/or 16 in Ubuntu 20.04, Ubuntu 22.04, and Ubuntu 23.10.

Ubuntu includes several versions of Clang in its system repositories. But, it rarely builds newer releases into Ubuntu stable repositories.

You can easily install Clang 10, 11, 12, 13, 14, and 15 by running sudo apt install clang-xx (replace xx with major version number) command in terminal.

For the most recent 16 and 17, they are also easy to install via the official apt repository.

Step 1: Download the Automatic installation script

The official Clang repository, so far supports Ubuntu 18.04, Ubuntu 20.04, Ubuntu 22.04, Ubuntu 23.04, and Ubuntu 23.10. It has a script to make adding repository and installing Clang as easy as few Linux commands.

1. First, press Ctrl+Alt+T on keyboard to open terminal. When terminal opens, run command to download the official installation script:

wget https://apt.llvm.org/llvm.sh

You may also use the script in Debian stable, though you may need to install wget first.

2. After downloading the script, add executable permission by running command:

chmod u+x llvm.sh

Step 2: Use the script to install Clang

The script automate the process of adding the official apt repository, updating package cache, and installing specific Clang version into your system.

All this can be done by running a single command. For example, install Clang-17:

sudo ./llvm.sh 17

Replace 17 with 16 for installing Clang-16, or even 18 if it’s already released when you see this tutorial

During the process, it will ask to hit Enter to confirm adding the apt repository. Then, you may just wait until the process done.

Step 3: Verify

If everything’s done successfully, just run clang-xx --version and/or locate clang-xx to verify.

Uninstall

To remove the repository added by the script, just open terminal (Ctrl+Alt+T) and run command to remove the corresponding source file:

sudo rm /etc/apt/sources.list.d/archive_uri-http_apt_llvm_org_*.list

And, remove the repository key file via command:

sudo rm /etc/apt/trusted.gpg.d/apt.llvm.org.asc

Or, launch “Software & Updates” and remove source line and key from “Other Software” and “Authentication” tabs.

To remove Clang packages (replace 17 accordingly), just run command:

sudo apt remove --autoremove clang-17 lldb-17 lld-17 clangd-17