Programming Leftovers

-
Here We Go
I Hate gl_PointSize And So Can You
Yes, we’re here.
After literally years of awfulness, I’ve finally solved (for good) the debacle that is point size conversion from GL to Vulkan.
What’s so awful about it, you might be asking. How hard can it be to just add gl_PointSize to a shader, you follow up with as you push your glasses higher up your nose.
Allow me to explain.
-
Suntime Calculation with Lua and the Great Gift of Open Source
Sometimes there are those unremarkable things which let you pause for a moment, and realize what a great gift of our time open source software and open knowledge is. At some point in time someone figured out how to calculate the sunrise and sunset time on the current date for your location. Someone else wrote that up and probably again a different person published it on the internet. The Internet Archive preserved a copy of it so I can still link to it. Someone took this algorithm and published a code sample on StackOverflow, which was later on used by the SatAgro guys to create the python-suntime library. Now I could come along, copy the core function of this library, and convert it within a few hours, mostly spent learning a few things about Lua, to a Lua script.
-
5 Excellent Free Books to Learn Crystal - LinuxLinks
Crystal is a general-purpose, concurrent, multi-paradigm, object-oriented programming language.
With syntax heavily inspired by the language Ruby, it is a compiled language with built-in static type-checking, but specifying the types of variables or method arguments is generally unneeded. This adds the benefit of a shallower learning curve.
The language also offers a powerful macro system, the compiler automatically checks for null references in compile time, a sleek concurrency model that uses green threads, as well as dedicated syntax to easily call native libraries.
Crystal is published under the Apache License 2.0.
-
Qt Design Studio 3.0 Released
We are happy to announce the release of Qt Design Studio 3.0.
-
Turn tabs into spaces on Linux and vice versa
The Linux expand and unexpand commands sound like they can make files larger and smaller, but what they actually do is turn tabs into spaces and spaces into tabs.
In this post, we’ll use some simple text files to demonstrate what happens when you use expand and unexpand. We’ll also compare how these commands work with some likely more familiar commands—sed and awk—that can provide similar results and offer additional options.
-
Async Rust in 2022
Almost a year ago, the Async Working Group embarked on a collaborative effort to write a shared async vision document. As we enter 2022, we wanted to give an update on the results from that process along with the progress we are making towards realizing that vision.
[...]
To set the scene, imagine it's Rust 2024, and you've decided to build your first project in Rust. You're working on a project that uses GitHub and you'd like a tool that will walk over all the issues on your repository and do some automatic triage. You decide to use async Rust for this. You pull out the Rust book and thumb over to the Async I/O section. In there, it shows you the basic structure of an async Rust application.
-

- Login or register to post comments
Printer-friendly version- 2421 reads
PDF version
More in Tux Machines
- Highlights
- Front Page
- Latest Headlines
- Archive
- Recent comments
- All-Time Popular Stories
- Hot Topics
- New Members
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.
|
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.
|
today's howtos
|








.svg_.png)
Content (where original) is available under CC-BY-SA, copyrighted by original author/s.

Recent comments
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago
1 year 11 weeks ago