Skip to content

Instantly share code, notes, and snippets.

Jason Zaugg retronym

  • Lightbend
  • Brisbane, Australia
Block or report user

Report or block retronym

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View repl-wrapper-bloat-grinds-to-a-halt-outdir.log
ls -lart '/tmp/$line648'
total 1448
-rw-r--r-- 1 jz wheel 399 Nov 28 16:53 $read$.class
-rw-r--r-- 1 jz wheel 4892 Nov 28 16:53 $read.class
-rw-r--r-- 1 jz wheel 506 Nov 28 16:53 $read$$iw$.class
-rw-r--r-- 1 jz wheel 551 Nov 28 16:53 $read$$iw$$iw$.class
-rw-r--r-- 1 jz wheel 600 Nov 28 16:53 $read$$iw$$iw$$iw$.class
-rw-r--r-- 1 jz wheel 653 Nov 28 16:53 $read$$iw$$iw$$iw$$iw$.class
-rw-r--r-- 1 jz wheel 710 Nov 28 16:53 $read$$iw$$iw$$iw$$iw$$iw$.class
-rw-r--r-- 1 jz wheel 771 Nov 28 16:53 $read$$iw$$iw$$iw$$iw$$iw$$iw$.class
View repl-wrapper-bloat-grinds-to-a-halt.log
for i in {1..1000}; do printf 'object bar { val foo = '$i'}; \nimport bar.foo\n foo\n val foo = ""\n foo\n'; done | scala
Welcome to Scala 2.13.1 (OpenJDK 64-Bit Server VM, Java 1.8.0_212).
Type in expressions for evaluation. Or try :help.
scala> object bar { val foo = 1};
defined object bar
scala> import bar.foo
import bar.foo
View repl-encoding.out
➜ scala-public-pickle git:(topic/public-pickle) printf 'object foo { def bar = 42}\nimport foo._\nbar\n val bar = 43\nbar\n' | scala -Xprint:parser -Yrepl-class-based
Welcome to Scala 2.13.1 (OpenJDK 64-Bit Server VM, Java 1.8.0_212).
Type in expressions for evaluation. Or try :help.
scala> object foo { def bar = 42}
[[syntax trees at end of parser]] // <console>
package $line3 {
sealed class $read extends _root_.scala.Serializable {
def <init>() = {
super.<init>();
View pr-8516-asm.log
after boxUnbox
// access flags 0x1000001
public scala$collection$mutable$PriorityQueue$$heapify(I)V
// parameter final from
L0
LINENUMBER 148 L0
L1
LINENUMBER 151 L1
ALOAD 0
View pr-8516.log
qscalac -Ydebug -d /tmp -opt:l:inline,box-unbox '-opt-inline-from:scala/**' -Yopt-log-inline 'scala/collection/mutable/PriorityQueue.scala$collection$mutable$PriorityQueue$$heapify' **/PriorityQueue.scala
[running phase parser on PriorityQueue.scala]
[running phase namer on PriorityQueue.scala]
[running phase packageobjects on PriorityQueue.scala]
[running phase typer on PriorityQueue.scala]
[running phase patmat on PriorityQueue.scala]
[running phase superaccessors on PriorityQueue.scala]
[running phase extmethods on PriorityQueue.scala]
[running phase pickler on PriorityQueue.scala]
[running phase refchecks on PriorityQueue.scala]
View ArgsFile.scala
package io.github.retronym
import sbt._
import Keys._
object SbtArgsFilePlugin extends AutoPlugin {
override def trigger = allRequirements
override def requires = sbt.plugins.JvmPlugin
import java.io.File.pathSeparator
val argsFileContents = taskKey[String]("Contents of file suitable for `scalac @args.txt`")
View tsan.log
osboxes@osboxes:~/code/scala$ (export JAVA_HOME=/home/osboxes/code/tsan/build/linux-x86_64-server-release/images/jdk; export JAVA_OPTS=-XX:+ThreadSanitizer; scala -cp /tmp scala.reflect.runtime.ThreadSafetyTestMain)
==================
WARNING: ThreadSanitizer: unlock of an unlocked mutex (or by a wrong thread) (pid=29788)
#0 pthread_mutex_unlock <null> (java+0x43fb6e)
#1 ZIP_Get_From_Cache /home/osboxes/code/tsan/src/java.base/share/native/libzip/zip_util.c:822:5 (libzip.so+0x3309)
Location is heap block of size 160 at 0x7b28000051e0 allocated by thread T1:
#0 malloc <null> (java+0x4222f7)
#1 os::malloc(unsigned long, MemoryType, NativeCallStack const&) /home/osboxes/code/tsan/src/hotspot/share/runtime/os.cpp:698:18 (libjvm.so+0xadc8c1)
View perfasm.md

Slow

[info] ....[Hottest Region 1]..............................................................................
[info] c2, level 4, bench.generated.ListsBenchmark_scalaListBufferPlusEq_212_jmhTest::scalaListBufferPlusEq_212_thrpt_jmhStub, version 616 (348 bytes)
[info]                                                                         ; - scala.collection.mutable.ListBuffer::&lt;init&gt;@1 (line 48)
[info]                                                                         ; - bench.ListsBenchmark::scalaListBufferPlusEq_212@4 (line 42)
[info]                                                                         ; - bench.generated.ListsBenchmark_scalaListBufferPlusEq_212_jmhTest::scalaListBufferPlusEq_212_thrpt_jmhStub@17 (line 119)
[info]                                                                         ; implicit exception: dispatches to 0x00007fd547e826ea
[info]               0x00007fd547e8233b: test   r11d,r11d
View result-.json
[
{
"jmhVersion" : "1.21",
"benchmark" : "bench.ListBufferBenchmark.intListCreation",
"mode" : "thrpt",
"threads" : 1,
"forks" : 2,
"jvm" : "/Users/jz/.jabba/jdk/adopt@1.8.212-04/Contents/Home/jre/bin/java",
"jvmArgs" : [
"-server",
You can’t perform that action at this time.