Skip to content

Instantly share code, notes, and snippets.

View JoJoDeveloping's full-sized avatar
💭
🦉

Johannes Hostert JoJoDeveloping

💭
🦉
View GitHub Profile
Benchmark Mode Cnt Score Error Units
MicroBenchmark.testEmptyMethod avgt 5 0.245 ± 0.001 ns/op
MicroBenchmark.testEmptyMethod:·compiler.nmethodCodeSize avgt 5 585.281 Kb
MicroBenchmark.testEmptyMethod:·compiler.nmethodSize avgt 5 968.344 Kb
MicroBenchmark.testEmptyMethod:·compiler.osrBytes avgt 5 0.774 Kb
MicroBenchmark.testEmptyMethod:·compiler.osrCompiles avgt 5 9.000 methods
MicroBenchmark.testEmptyMethod:·compiler.osrTime avgt 5 13.096 ms
MicroBenchmark.testEmptyMethod:·compiler.standardBytes avgt 5 43.328 Kb
MicroBenchmark.testEmptyMethod:·compiler.standardCompiles avgt 5 541.000 methods
MicroBenchmark.testEmptyMethod:·compiler.standardTime avgt 5 172.288 ms
Actual exception!!
java.lang.NullPointerException
at net.minecraftforge.fml.util.ThreeConsumer.lambda$bindArgs$0(ThreeConsumer.java:43)
at net.minecraftforge.fml.network.NetworkInitialization.lambda$biConsumerFor$6(NetworkInitialization.java:114)
at net.minecraftforge.fml.network.simple.IndexedMessageCodec.lambda$tryDecode$3(IndexedMessageCodec.java:114)
at java.base/java.util.Optional.ifPresent(Optional.java:172)
at net.minecraftforge.fml.network.simple.IndexedMessageCodec.tryDecode(IndexedMessageCodec.java:114)
at net.minecraftforge.fml.network.simple.IndexedMessageCodec.consume(IndexedMessageCodec.java:147)
at net.minecraftforge.fml.network.simple.SimpleChannel.networkEventListener(SimpleChannel.java:64)
at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:183)
$ ls -la pd/
total 12
drwxr-xr-x 3 myname myname 4096 Apr 10 23:08 .
drwxr-xr-x 5 myname myname 4096 Apr 10 23:08 ..
lrwxrwxrwx 1 myname myname 3 Apr 10 23:06 a -> b/c
drwxr-xr-x 3 myname myname 4096 Apr 10 23:05 b
#!/usr/bin/python3
import sys
#Note that this is executed by moving all old md files into a folder like old and then running ./migrator.py $(cd old; ls *.md), because I was to lazy to implement proper file path handling
for f in sys.argv:
ns = f.split("-")
if f[-3:] != ".md": continue
if len(ns) != 3: continue
fv = ns[0]
@JoJoDeveloping
JoJoDeveloping / FAP 2019 summary.md
Last active June 3, 2019 10:57
Summary of the 2019 FAP (Forge Annual Panel)

Find the VOD here: https://www.twitch.tv/videos/433606398, the question list here: https://gist.github.com/JTK222/1f59c90046e2a62cec5165e7b5407c1d or here: https://gist.github.com/cpw/b7d439f14289cec10f8704af462ca938

  • Discord is offline so they use teamspeak, which leads to a bit of organisation mess
  • $WELCOME
  • Happy FAPing
  • The FAP is actually annual
  • Lex and CPW will update everyone on current affairs
  • Attendants: Lex, cpw, mezz,
    • in Chat: tterrag aka gerritt, asiekierka (Fabric guy¹), RainWarrior/fry, many other people
module Parity(
input clock,
input i,
output o
);
reg state = 1'd0;
reg res = 1'd0;
always @(posedge clock)
begin
import javax.imageio.ImageIO;
import java.awt.*;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
public class ImageCombiner {
public static void main(String[] args) throws IOException {
if(args.length < 2){
https://discordapp.com/channels/313125603924639766/454376090362970122/588078118401474706
also
cpw I feel you're somewhat misguided about the new async reloader.. it has an async and a sync phase where stuff is loaded in the async phase and then put into the game in the sync phase. the sync phase is sequential and you can block for things in it.
The IStage isnt a stage the Istagebuilder is a callback. You put it into the compfutute chain at the end of the async workload and then that markes the async part as complete, and returns a compfuture which is itself complete once all the others are done.
Based on it the sync part is predicated, where the async conpute results are applied. This resync 'wait on me' compfuture is built in a way that it runs the things in the order they're supplied.
the one method in IFutureReloadListenee returns an CF that is done when async&sync are done, the IStage is a callback so it can do stuff when async is done.
I named a lot of things already so pull in latest mappings.
diff --git a/build.gradle b/build.gradle
index a1bc39dd9..33416efdb 100644
--- a/build.gradle
+++ b/build.gradle
@@ -1,6 +1,7 @@
buildscript {
repositories {
mavenLocal()
+ maven { url = 'http://localhost:8000' }
maven { url = 'https://files.minecraftforge.net/maven' }
curl -O https://files.minecraftforge.net/maven/de/oceanlabs/mcp/mcp_snapshot/20190723-1.14.3/mcp_snapshot-20190723-1.14.3.zip
curl -O https://files.minecraftforge.net/maven/de/oceanlabs/mcp/mcp_config/1.14.4/mcp_config-1.14.4.zip
unzip mcp_config-1.14.4.zip
unzip mcp_snapshot-20190723-1.14.3.zip
cp config/* .
cp ../../MinecraftForge/projects/mcp/build/mcp/mcinject/output.jar joined_srg.jar
ls
#access.txt exceptions.txt mcp_config-1.14.4.zip patches
#config fields.csv mcp_snapshot-20190723-1.14.3.zip static_methods.txt
#config.json joined_srg.jar methods.csv