💾 Archived View for gemini.tuxmachines.org › n › 2024 › 08 › 24 › Programming_Leftovers.gmi captured on 2024-08-25 at 01:56:02. Gemini links have been rewritten to link to archived content
-=-=-=-=-=-=-
Tux Machines
Posted by Roy Schestowitz on Aug 24, 2024
Show, Openwashing, BSD, and More
Free, Libre, and Open Source Software Leftovers
=> https://www.r-bloggers.com/2024/08/ipv4-components-in-apl/ ↺ IPv4 Components in APL
At a recent APL-focussed Meetup someone posed a challenge to slice up the components of an IPv4 address with an APL language and it prompted me to learn a bit more about how that works in general and how I could do the processing in APL myself.
=> https://jamesg.blog/2024/08/23/search-query-transpiler/ ↺ Writing a search query transpiler
With that said, the query language can be separate from the query execution engine. One use for this is to implement a search query transpiler. Transpilers covert text from one language into another.
There are three high-level steps to build a transpiler:
=> https://www.r-bloggers.com/2024/08/understanding-the-main-function-in-c/ ↺ Understanding the main() Function in C
If you’re just starting with C programming, you’ve probably noticed that almost every C program begins with a main() function. But have you ever wondered why this function is so crucial? In this blog post, we’ll dive into what the main() function is, why it’s necessary, and how you can use it effectively in your C programs. By the end of this guide, you’ll have a solid understanding of the main() function, allowing you to write better C code with confidence.
=> https://lorentzen.ch/index.php/2024/08/23/out-of-sample-imputation-with-missranger/ ↺ Out-of-sample Imputation with {missRanger}
{missRanger} is a multivariate imputation algorithm based on random forests, and a fast version of the original missForest algorithm of Stekhoven and Buehlmann (2012). Surprise, surprise: it uses {ranger} to fit random forests. Especially combined with predictive mean matching (PMM), the imputations are often quite realistic.
=> https://www.r-bloggers.com/2024/08/out-of-sample-imputation-with-missranger/ ↺ Out-of-sample Imputation with {missRanger}
=> https://www.r-bloggers.com/2024/08/comparing-many-models-crude-oil-futures-price/ ↺ Comparing Many Models: Crude Oil Futures Price
Crude oil futures prices have fluctuated above the point forecast line (XGBoost) year to date.
=> https://www.r-bloggers.com/2024/08/understanding-the-main-function-in-c/ ↺ Understanding the main() Function in C
If you’re just starting with C programming, you’ve probably noticed that almost every C program begins with a main() function. But have you ever wondered why this function is so crucial?
=> https://www.haiku-os.org/blog/diegoroux/2024-08-22_gsoc_2024_final_report/ ↺ [GSoC 2024] Virtio Sound: Final Report
During this GSoC period, I focused on developing the virtio sound driver for Haiku, aiming to enhance its performance as a guest OS in virtualized environments. This journey began with some challenges, for example, initially, I missed a small detail in the driver module path, which prevented the driver from loading.
One of the significant setbacks, I had, was understanding hmulti_audio. With little to no documentation available, it felt like working with a black box. I had to dive into existing audio drivers to piece together how things worked, but even then, some aspects remained hidden to me.
=> https://joaotgouveia.com/blog/gsoc-2024-wrapping-up ↺ GSoC 2024: Wrapping Up
Throughout this summer, I’ve developed a C++ library called MankalaEngine, implementing three opponents for the games of Bohnenspiel and Oware.
The current library is highly extensible. After implementing all the base classes and Bohnenspiel, adding Oware to the library was fairly fast and straightforward. This focus on extensibility has been a priority since the beginning of the project. Given that the Mancala family of games comprises numerous variants, designing the API with this in mind has proven valuable.
The three provided opponents use a random selection algorithm, Minimax, and MTD-f. The Minimax and MTD-f opponents were implemented with optimizations like alpha-beta pruning and transposition tables, making them both very capable, consistently outperforming the random opponent.
=> https://medium.com/@bharat.atbrat/gsoc-2024-the-finale-1b6d56fcda92?source=rss-db7dde3c9797------2 ↺ Bharat Tyagi: GsoC 2024: The Finale
Hey everybody, this is another iteration of my previous posts. It’s been a while since I published any updates about my project.
Before I begin with the updates I’d like to thank all of the people who helped me get this far into the project, it wouldn’t have been as engaging and enjoyable of a ride without your support.
For someone reading this blog for the first time, I am Bharat Tyagi. I am a Computer Science major and I have been contributing to the GNOME Project (Workbench in particular) under Surveillance Giant Google Summer of Code this year.
=> https://isc.sans.edu/diary/rss/31200 ↺ Pandas Errors: What encoding are my logs in?, (Fri, Aug 23rd)
While trying to process some of my honeypot data, I ran into the following error in my Python script: [...]
=> https://micro.webology.dev/2024/08/23/uv-run-django.html ↺ 📓 UV Run Django Notes
I wanted to know how hard it would be to turn one of my django-startproject projects into a uv run friendly project. As it turns out, it worked, and the steps were more than reasonable.
=> https://hamatti.org/posts/branch-out-with-pattern-matching/ ↺ Branch out with pattern matching
What I really like with Python’s pattern matching is that you can:
1. Only check for the parts that you care for instead of having to model the entire response object
2. Combine checking and capturing data to variables