Skip to content

Instantly share code, notes, and snippets.

View GoldenStack's full-sized avatar

golden GoldenStack

View GitHub Profile
@GoldenStack
GoldenStack / language-rationale.md
Last active August 24, 2025 23:52
Language explanation and rationale for some key features of my language (https://github.com/GoldenStack/overscore)
  • No place expressions/lvalues. This means the = operator takes two arguments, of type *T and T, and sets the left side to the right side. There are several other implications of this, but I'm not including them here.
  • No booleans. The type system is powerful enough to allow easily swapping them out for more comprehensible alternatives. For example, consider fn evaluate(expr: Expr, deep: bool). When calling, it looks like evaluate(expr, true), which doesn't really communicate what true means. Instead, with fn evaluate(expr: Expr, depth: .shallow or .deep), the call looks like evaluate(expr, .deep), which communicates the meaning of it much better: deep evaluation. This doesn't implement any math operators, but if what you need is a 2-value integer, you can just create an an integer type with two elements (syntax undecided as of now) and use normal mathematical operations on them. If you think booleans are really needed, you can simply const Bool = .true or .false.
  • Declarations (x: int)
@GoldenStack
GoldenStack / neofetch.diff
Last active April 25, 2025 11:05
Diff for my neofetch install
diff --git a/neofetch b/neofetch
index 32601b5c..f8bbb07a 100755
--- a/neofetch
+++ b/neofetch
@@ -1522,6 +1522,9 @@ get_distro() {
distro=${distro//Enterprise Server}
+ distro="Red Star OS via $distro"
+ distro=${distro/Ubuntu/Ubuntu(*)}
@GoldenStack
GoldenStack / build.gradle
Created January 6, 2023 00:41
Fixes "ERROR: No build artifacts found". Pick the one that fits your project.
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
}
}
}
@GoldenStack
GoldenStack / HelloWorld.java
Last active May 13, 2025 10:21
Hello World: Absolute Pain
/* This is the first line: line number one. */
/* This is the beginning of this Java source file (not to be confused with a Java class file). */
/////////////////////////////////////////////////////////////////////
// IMPORTANT NOTE: //
// //
// Apparently people are skeptical that this was written by hand. //
// (See https://goldenstack.net/skeptical.png) //
// I promise that this was one hundred percent handwritten. //
// //