Skip to content

Instantly share code, notes, and snippets.

View scivision's full-sized avatar
💭
I will be slow to respond.

scivision

💭
I will be slow to respond.
View GitHub Profile
@scivision
scivision / CMakeLists.txt
Last active October 21, 2025 14:37
Diagnose issue with Fortran directive, CMake, Ninja, and Flang
cmake_minimum_required(VERSION 3.20)
project(mini LANGUAGES Fortran)
message(STATUS "CMAKE Generator: ${CMAKE_GENERATOR}")
add_executable(mini mini.F)
@scivision
scivision / wstj-x-improved-Readme.txt
Created October 10, 2025 03:14
Notes on WSJT-X Installation for Mac OS X
Notes on WSJT-X Installation for Mac OS X
-----------------------------------------
First just drop the wsjtx.app onto the Applications folder in the dmg window to
install to Applications
If you have already downloaded a previous version of WSJT-X then I suggest
you change the name in the Applications folder from WSJT-X to WSJT-X_previous
before proceeding.
I recommend that you follow the installation instructions especially if you
@scivision
scivision / .flake8
Last active September 22, 2025 03:29
inhibit Windows from suspend/sleep while subprocess is running
[flake8]
max-line-length = 100
@scivision
scivision / vitter.c
Created August 28, 2025 22:15
Vitter algorithm
//Copyright Kevin Lawler, released under ISC License
// https://getkerf.wordpress.com/2016/03/30/the-best-algorithm-no-one-knows-about/
double random_double() //your random double function
{
//[0,1) uniformly random double, mt19937-64.c source is fine
//keep in mind most double-based implementations drop randomness to 52-bits
return genrand64_real2();
}
@scivision
scivision / readme.md
Created August 27, 2025 16:34
Discussion on parallelization (threads) using Performance cores vs. Efficiency cores

This becomes an issues with MPI workers with synchronized parallelism. There are "14 core" laptops with two P-cores and 12 E-cores. I have seen project teams that configure their programs (say via enviornment variables) to only use the P-cores, but this can lead to a performance drop vs. their much older all P-core computer.

fastbuild/fastbuild#995

@scivision
scivision / captive_portal.py
Last active August 18, 2025 14:08
Python requests to test if captive portal is grabbing connection
#!/usr/bin/env -S uv run --script
# /// script
# requires-python = ">=3.9"
# dependencies = ["requests"]
# ///
from __future__ import annotations
import requests
@scivision
scivision / Readme.md
Created August 13, 2025 14:21
GNU Octave Java JDK notes

Configure GNU Octave JVM

GNU Octave JVM can be configured with the JAVA_HOME environment variable. Some install packages don't include Java.

For example, with Homebrew:

@scivision
scivision / Readme.md
Created August 11, 2025 16:04
SSH into GitHub Actions CI run

GitHub Action to SSH into CI run

Just signal boosting this Action action-tmate that allows SSHing into a remote GitHub Actions server to help debug.

@scivision
scivision / linux-gcc-11.3.txt
Last active August 11, 2025 02:37
benchmarks from Lemire 2025/08/08 blog
1: | Input Size (bytes) | std::find (GB/s) | simdutf::find (GB/s) | naive_find (GB/s) |
1: |--------------------|------------------|-----------------------|-------------------|
1: | 1024 | 4.56 | 26.21 | 2.74 |
1: | 8192 | 4.61 | 59.72 | 2.70 |
1: | 65536 | 4.75 | 54.45 | 2.68 |
1: | 524288 | 4.77 | 55.61 | 2.69 |
1: | 2097152 | 4.78 | 26.14 | 2.69 |
1/2 Test #1: BenchmarkNative .................. Passed 37.91 sec
2: | Input Size (bytes) | std::find (GB/s) | simdutf::find (GB/s) | naive_find (GB/s) |
@scivision
scivision / CMakeLists.txt
Last active August 11, 2025 03:22
C++ can print compiler flags used for the source file
cmake_minimum_required(VERSION 3.19)
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Release CACHE STRING "Build type" FORCE)
endif()
project(CppCompilerOptions LANGUAGES CXX)
set(CMAKE_EXPORT_COMPILE_COMMANDS true)