Date of the guide : September, 2025
In this post, I will provide the solution that worked on my system on how to install Radeon Open Compute (ROCm) on Arch (linux-6.6.7.arch1-1) for RX 6900 XT (Should work on other 6000 series). ROCm is an open-source software platform that allows GPU-accelerated computation. This tool is a prerequist to use GPU Acceleration on TensorFlow or PyTorch. In this guide I will use Paru as my AUR package helper, feel free to use any other (https://wiki.archlinux.org/title/AUR_helpers). I will assume you have a working operating system and know what you do with it (Otherwise Arch will be painfull for you).
| #include <stdio.h> | |
| #include <stdlib.h> | |
| // ----------------------------------------------------------------------------- | |
| // Cross platform high resolution timer | |
| // From https://gist.github.com/ForeverZer0/0a4f80fc02b96e19380ebb7a3debbee5 | |
| #include <stdint.h> | |
| #include <stdbool.h> | |
| #if defined(__linux) |
| #!python | |
| # -*- mode: python; Encoding: utf-8; coding: utf-8 -*- | |
| # Last updated: <2022/07/13 01:32:08 +0900> | |
| """ | |
| Yliluoma's ordered dithering algorithm 1, 2, 3 and adobe like | |
| Arbitrary-palette positional dithering algorithm | |
| https://bisqwit.iki.fi/story/howto/dither/jy/ | |
| Usage: |
The Game Test Framework is a powerful tool provided by Mojang that is included with Minecraft in 1.17 and up. It allows you to declare game tests that can be run inside a Minecraft world and provide a success or fail state. Game tests are similar in concept to unit tests, but they allow you to interact with a running instance of Minecraft. This means you can test block interactions, entity interactions, item functionality, etc. Game tests use template structures to define the dimensions of the test and what blocks and entities will start in the test structure. This framework has useful applications for Continuous Integration (CI) and testing during development to ensure features are working as expected.
For a more in-depth explanation about the Game Test Framework itself and how Mojang uses it to test the base game, please see this video with contributions by Dinnerbone. This guide is tailored towards Forge modders by expla
| #include <sys/stdtypes.h> | |
| #include <stdbool.h> | |
| #include <mach/boolean.h> | |
| #include <sys/errno.h> | |
| #include <stdlib.h> | |
| #include <dispatch/dispatch.h> | |
| #if !defined(MAC_OS_X_VERSION_10_12) || \ | |
| (MAC_OS_X_VERSION_MIN_REQUIRED < MAC_OS_X_VERSION_10_12) |
This is inspired by https://fasterthanli.me/blog/2020/a-half-hour-to-learn-rust/
the command zig run my_code.zig will compile and immediately run your Zig
program. Each of these cells contains a zig program that you can try to run
(some of them contain compile-time errors that you can comment out to play
with)
| import uuid | |
| import json | |
| # Returns a python dictionary given a file containing a JSON-based | |
| # component definition. Every definition *must* contain a 'type' | |
| # and 'schema' field inside a top-level dictionary. Here is an | |
| # example of a simple schema file that defines a 'meta' component | |
| # containing a 'name' field. | |
| # |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| # This script is a simple test to do image operations on pyopencl in combination with PIL | |
| # | |
| # based on the code of: https://gist.github.com/likr/3735779 | |
| import pyopencl as cl | |
| import numpy |
