Skip to content

Instantly share code, notes, and snippets.

View NeRdTheNed's full-sized avatar

Ned Loynd NeRdTheNed

View GitHub Profile
@skeeto
skeeto / jit.c
Last active November 15, 2023 13:20
Partial application JIT demo, with arena
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <windows.h>
#define new(a, t, n) (t *)alloc(a, sizeof(t)*n)
typedef struct {
char *beg, *end;
} arena;
@Spottedleaf
Spottedleaf / Starlight 1.20.md
Last active July 15, 2024 15:54
The future of the Starlight mod

Final change of plans (March 8, 2024)

I don't see that many people are using Starlight on modern versions anymore. As such, I don't see any reason to continue to maintain the mod versions, given that they do have real mod conflict issues with other mods. Starlight is also not neccessary to use on 1.20.x anyways.

Starlight may make a return in a future project of mine, but for now I am ceasing to upload new mod versions and commit updates to the github. If you want Starlight on the server, you will need to use Paper or one of its derivatives.

Zu mir

Hallo zusammen, mein name ist TheMeinerLP aka Phillipp. Ich besschäftige mich nun seit 8 Jahre Aktiv mit Minecraft und bin seit mehren Jahren auch tätig als Normaler Entwickler.

Intro

Hier bitte intro Musik einfügen

Seit etwa September 2022 geht ein Virus in Form von Plugins in der Minecraft Szene umher. PaperMC hat aktiv schon darauf aufmerksam gemacht. Dazu hat ein anderer Blogger schon probiert, diesen Virus zu analysieren. Gerne würde ich hier in dieser Toilet paper einmal meine Erfahrung teilen und wie ich den Virus bis zu einem bestimmten Teil zurückverfolgt habe.

@Laxystem
Laxystem / README.md
Last active April 26, 2023 19:55
Publishing to Modrinth & Github Packages using a Github Workflow

Layla's Website

  1. Create an env in your GitHub settings. Call it gradle.
  2. Add a variable to the env named RELEASE_TYPE, and give it a value of alpha, beta, or release.
  3. Add a secret to the env named MODRINTH_TOKEN, and give it the value of your Modrinth Token.
  4. Paste publishing.yml in .github/workflows/publishing.yml
  5. Add the following to your build.gradle.kts:
plugins {
  `maven-publish`
@RealDoigt
RealDoigt / 4mb jam 2023 rules.md
Last active May 27, 2023 05:03
4mb jam 2023 rules

4MB Jam Rules

You must submit a Ubuntu or Windows desktop (x64) application which adheres to the following conditions:

  1. Excluding readme and copyright attribution, it is under 4 megabytes in size using the power of 2 system also known as Mebibytes (MiB).
    • It is the size of the unpacked project which is counted, not the compressed archive size.
  2. It doesn't contain anything that violates any Canadian federal law.
  3. Isn't porn, doesn't have gratuitous nudity and explicit or implict sexual acts.
  4. It is a video game.
  5. You have a full month to do it, so it is expected it will be made during that month (may 2023).
  • Premade art, sound assets engine code are allowed.

Float precision

Source:

double x = 0.2F;

Fernflower:

double x = 0.20000000298023224D;

HotSpot Escape Analysis and Scalar Replacement Status

Introduction

Escape Analysis (EA) is a compiler analysis to answer the following questions for a given object O, method M, and thread T.

  • Escapes(O, M): Does object O outlive the execution of method M? This may happen for instance if a reference to O is assigned to a global variable.
  • Escapes(O, T): Does object O escape the current execution thread? This may happen for instance if a reference to O is copied to another thread.

Answers to these questions enable a compiler to perform a few highly effective optimizations, for instance, Stack Allocation (SA), Lock Elision (LE), and Scalar Replacement of Aggregates (SRA). Note that,

@pixelomer
pixelomer / longest-selector-finder.m
Created March 3, 2021 16:28
Small Objective-C program for finding the longest built-in method name
#import <Foundation/Foundation.h>
#import <objc/runtime.h>
static void LoadAllFrameworks(NSString *root) {
NSFileManager *defaultManager = [NSFileManager defaultManager];
NSDirectoryEnumerator *enumerator = [defaultManager
enumeratorAtURL:[NSURL fileURLWithPath:root]
includingPropertiesForKeys:nil
options:NSDirectoryEnumerationSkipsSubdirectoryDescendants
errorHandler:nil
@BoogieMonster1O1
BoogieMonster1O1 / legacyfabric_macos.md
Last active December 27, 2020 05:49
Running Legacy Fabric on Mac OS
@dakanji
dakanji / Install_USB_Maker.sh
Last active June 8, 2024 03:13
Creates Bootable USB for Mac OS Lion to Monterey (Excluding Mavericks)
#!/usr/bin/env bash
# Install_USB_Maker.sh
# Copyright (c) 2020 - 2024 Dayo Akanji
# - dakanji@users.sourceforge.net
# Portions Copyright (c) Jeff Geerling
# - https://github.com/geerlingguy/macos-virtualbox-vm/blob/master/LICENSE
#
# MIT License