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
$ cmake --build '/Users/elliotb/.conan/data/spdlog/1.9.2/_/_/build/c5863c4449d8a7b237b54af4fc090c66b790d6a5' '--' '-j16' | |
[ 14%] Building CXX object source_subfolder/CMakeFiles/spdlog.dir/src/file_sinks.cpp.o | |
clang: error: unable to execute command: Segmentation fault: 11 | |
clang: error: clang frontend command failed due to signal (use -v to see invocation) | |
Apple clang version 13.0.0 (clang-1300.0.29.30) | |
Target: x86_64-apple-darwin20.6.0 | |
Thread model: posix | |
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin | |
clang: note: diagnostic msg: | |
******************** |
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 org.microhttp; | |
import java.time.Duration; | |
import java.util.Arrays; | |
import java.util.List; | |
public class SerializationProfiler { | |
public static void main(String[] args) { | |
int bodySize = 16_384; |
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 org.microhttp; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.io.OutputStream; | |
import java.net.Socket; | |
import java.time.Duration; | |
import java.util.Arrays; | |
import java.util.List; |
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 test; | |
import microhttp.EventLoop; | |
import microhttp.Header; | |
import microhttp.LogEntry; | |
import microhttp.Logger; | |
import microhttp.Options; | |
import microhttp.Response; | |
import java.io.IOException; |
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 test; | |
import java.io.IOException; | |
import java.net.InetSocketAddress; | |
import java.nio.ByteBuffer; | |
import java.nio.channels.SelectableChannel; | |
import java.nio.channels.SelectionKey; | |
import java.nio.channels.Selector; | |
import java.nio.channels.SocketChannel; | |
import java.util.Arrays; |
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 test; | |
import microhttp.EventLoop; | |
import microhttp.Header; | |
import microhttp.LogEntry; | |
import microhttp.Logger; | |
import microhttp.Options; | |
import microhttp.Response; | |
import java.io.IOException; |
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.Random; | |
public class Main { | |
public static void main(String[] args) { | |
int len = 36; | |
byte[] arr1 = new byte[len]; | |
byte[] arr2 = new byte[len]; | |
Random random = new Random(); | |
random.nextBytes(arr1); |
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
var light = new AtomicReference<>(TrafficLight.GREEN); | |
light.updateAndGet(TrafficLight::next); |
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
public class GameDev { | |
public static void main(String[] args) { | |
System.out.println("Hello world); | |
} | |
} |
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
private String utf8Encoded(String name) throws UnsupportedEncodingException { | |
return new String(name.getBytes(ISO_8859_1), "UTF-8"); | |
} |