This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ru.progrm_jarvis.benchmark.ultimatemessenger; | |
import org.openjdk.jmh.annotations.*; | |
import org.openjdk.jmh.infra.Blackhole; | |
import org.openjdk.jmh.runner.Runner; | |
import org.openjdk.jmh.runner.RunnerException; | |
import org.openjdk.jmh.runner.options.OptionsBuilder; | |
import ru.progrm_jarvis.ultimatemessenger.format.model.AsmGeneratingTextModelFactory; | |
import ru.progrm_jarvis.ultimatemessenger.format.model.TextModel; | |
import ru.progrm_jarvis.ultimatemessenger.format.model.TextModelFactory; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hello world | |
Hello, {user:name} | |
Hello, {user:name}, how are you? | |
Hello, {user:name}, how are you? | |
Hi, {user:name} your ping is {user:ping} | |
Hi, dear {user:name}, btw, {user:name}, how are you feeling? Also, what are you doing? | |
Your ping is {user:ping}. | |
Speaking about your friends, {user:friends}, how are they feeling? | |
Do your friends ({user:friends}) feel like they want to test your ping ({user:ping}? | |
This {user:magic could have been a great placeholder, but it isn't, lol |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ru.progrm_jarvis.ultimatemessenger.format.model; | |
import ru.progrm_jarvis.ultimatemessenger.format.model.TextModel; | |
import ru.progrm_jarvis.ultimatemessenger.format.model.AsmTextModelFactory.TextModelBuilder; | |
public final class AsmTextModelFactory$TextModelBuilder$$Generated$$TextModel$$1 implements TextModel { | |
public static final TextModel D0 = TextModelBuilder.internal$getDynamicTextModel("1"); | |
public static final TextModel D1 = TextModelBuilder.internal$getDynamicTextModel("2"); | |
public static final TextModel D2 = TextModelBuilder.internal$getDynamicTextModel("3"); | |
public static final TextModel D3 = TextModelBuilder.internal$getDynamicTextModel("4"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/java.base/share/classes/java/lang/invoke/AbstractValidatingLambdaMetafactory.java b/src/java.base/share/classes/java/lang/invoke/AbstractValidatingLambdaMetafactory.java | |
--- a/src/java.base/share/classes/java/lang/invoke/AbstractValidatingLambdaMetafactory.java | |
+++ b/src/java.base/share/classes/java/lang/invoke/AbstractValidatingLambdaMetafactory.java | |
@@ -61,6 +61,7 @@ | |
final MethodHandleInfo implInfo; // Info about the implementation method handle "MethodHandleInfo[5 CC.impl(int)String]" | |
final int implKind; // Invocation kind for implementation "5"=invokevirtual | |
final boolean implIsInstanceMethod; // Is the implementation an instance method "true" | |
+ final boolean implIsMethodNotField; // "true" for method and "false" for field | |
final Class<?> implClass; // Class for referencing the implementation method "class CC" | |
final MethodType instantiatedMethodType; // Instantiated erased functional interface method ty |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <string> | |
#include <vector> | |
#include <map> | |
#include <unordered_map> | |
#include <algorithm> | |
#ifndef in | |
#define in std::cin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -r 5573a7098439 src/java.base/share/classes/java/lang/invoke/SwitchTableFactory.java | |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 | |
+++ b/src/java.base/share/classes/java/lang/invoke/SwitchTableFactory.java Mon Nov 04 18:07:43 2019 +0300 | |
@@ -0,0 +1,580 @@ | |
+/* | |
+ * Copyright (c) 2008, 2019, Oracle and/or its affiliates. All rights reserved. | |
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | |
+ * | |
+ * This code is free software; you can redistribute it and/or modify it | |
+ * under the terms of the GNU General Public License version 2 only, as |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -r 5573a7098439 src/java.base/share/classes/java/lang/invoke/SwitchTableFactory.java | |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 | |
+++ b/src/java.base/share/classes/java/lang/invoke/SwitchTableFactory.java Mon Nov 04 18:07:43 2019 +0300 | |
@@ -0,0 +1,580 @@ | |
+/* | |
+ * Copyright (c) 2008, 2019, Oracle and/or its affiliates. All rights reserved. | |
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | |
+ * | |
+ * This code is free software; you can redistribute it and/or modify it | |
+ * under the terms of the GNU General Public License version 2 only, as |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.lang.annotation.ElementType; | |
import java.lang.annotation.Retention; | |
import java.lang.annotation.RetentionPolicy; | |
import java.lang.annotation.Target; | |
public class Main { | |
public static void main(String[] args) { | |
Main main = new Main(); | |
main.foo(); | |
main.bar(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ru.progrm_jarvis.ultimatemessenger; | |
import lombok.NonNull; | |
import lombok.val; | |
import lombok.var; | |
import org.jetbrains.annotations.Nullable; | |
import org.openjdk.jmh.annotations.*; | |
import org.openjdk.jmh.infra.Blackhole; | |
import org.openjdk.jmh.runner.Runner; | |
import org.openjdk.jmh.runner.RunnerException; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.BitSet; | |
import java.util.Objects; | |
import java.util.Scanner; | |
import java.util.function.Supplier; | |
import java.util.stream.Stream; | |
import static java.lang.System.out; | |
public class BinVectorSphere { | |
public static void main(String[] args) { |