Skip to content

Instantly share code, notes, and snippets.

View nicolasstucki's full-sized avatar
🌴
On vacation

Nicolas Stucki nicolasstucki

🌴
On vacation
  • LAMP / EPFL
  • Switzerland
View GitHub Profile
@nicolasstucki
nicolasstucki / diff.md
Last active July 11, 2016 13:43
Reversi diff 2.12.0-M4 vs 2.12.0-M5
--- reversi-fastopt-M4.js	2016-07-11 15:10:35.000000000 +0200
+++ reversi-fastopt-M5.js	2016-07-11 14:38:25.000000000 +0200
@@ -1351,18 +1351,6 @@
     }
   }
 }
-function $f_scm_FlatHashTable$HashUtils__elemToEntry__O__O($thiz, elem) {
-  return ((elem === null) ? $m_scm_FlatHashTable$NullSentinel$() : elem)
-}

Stoic functions implementation

Support for stoic functions

@stoic and Stoical
trait Stoical
class stoic extends scala.annotation.StaticAnnotation
@nicolasstucki
nicolasstucki / after-pickling.txt
Created July 18, 2016 09:47
Output for #1355.
[cannot display due to scala.MatchError: 98 (of class java.lang.Integer), raw string = PackageDef(Ident(util),List(Import(Select(Ident(scala),annotation),List(Ident(tailrec))), Import(Ident(difflib),List(Ident(_))), ValDef(DiffUtil,TypeTree[TypeRef(TermRef(ThisType(TypeRef(NoPrefix,dotc)),util),DiffUtil$)],Apply(Select(New(TypeTree[TypeRef(TermRef(ThisType(TypeRef(NoPrefix,dotc)),util),DiffUtil$)]),<init>),List())), TypeDef(DiffUtil$,Template(DefDef(<init>,List(),List(List()),TypeTree[TypeRef(TermRef(ThisType(TypeRef(NoPrefix,<root>)),scala),Unit)],EmptyTree),List(Apply(Select(New(TypeTree[TypeRef(TermRef(ThisType(TypeRef(NoPrefix,java)),lang),Object)]),<init>),List())),ValDef(_,TypeTree[TermRef(TermRef(ThisType(TypeRef(NoPrefix,dotc)),util),DiffUtil)],EmptyTree),List(ValDef(ANSI_DEFAULT,TypeTree[ConstantType(Constant())],Literal(Constant())), ValDef(ANSI_RED,TypeTree[ConstantType(Constant())],Literal(Constant())), ValDef(ANSI_GREEN,TypeTree[ConstantType(Constant())],Literal(Constant())), ValDef(ANSI_YELLOW,T
[info] Test dotc.tests.compileStdLib started
assertion failure for X <:< X, frozen = true
assertion failure for X <:< X, frozen = true
assertion failure for  = X <:<  = X, frozen = true
assertion failure for scala.collection.Set[X] <:< collection.Set[X], frozen = true
assertion failure for X <:< X, frozen = true
assertion failure for X <:< X, frozen = true
assertion failure for X <:< X, frozen = true
assertion failure for  = X <:<  = X, frozen = true
val badType = RefinedType(RefinedType(TypeRef(RefinedType(RefinedType(RefinedType(RefinedType(TypeRef(TypeRef(ThisType(TypeRef(NoPrefix,immutable)),Nil$),$anon), scala$collection$TraversableOnce$$A, TypeAlias(TypeRef(TypeRef(ThisType(TypeRef(NoPrefix,immutable)),Nil$),scala$collection$LinearSeqLike$$A), 1)), scala$collection$GenTraversableOnce$$A, TypeAlias(TypeRef(TypeRef(ThisType(TypeRef(NoPrefix,immutable)),Nil$),scala$collection$LinearSeqLike$$A), 1)), scala$collection$Iterator$$A, TypeAlias(TypeRef(TypeRef(ThisType(TypeRef(NoPrefix,immutable)),Nil$),scala$collection$LinearSeqLike$$A), 1)), scala$collection$AbstractIterator$$A, TypeAlias(TypeRef(TypeRef(ThisType(TypeRef(NoPrefix,immutable)),Nil$),scala$collection$LinearSeqLike$$A), 1)),$anon), scala$collection$TraversableOnce$$A, TypeAlias(RefinedType(RefinedType(TypeRef(ThisType(TypeRef(NoPrefix,scala)),Tuple2), scala$Tuple2$$T1, TypeAlias(TypeRef(TermRef(ThisType(TypeRef(NoPrefix,scala)),Predef),String), 1)), scala$Tuple2$$T2, TypeAlias(TypeRef

With fingerprints

[info] Test run started
[info] Test dotty.tools.dotc.CompilationTests.runAll started
[=======================================] completed (775/775, 38s)  
[info] Test dotty.tools.dotc.CompilationTests.compileNeg started
[=======================================] completed (252/252, 2s)  
[info] Test dotty.tools.dotc.CompilationTests.compilePos started
[=======================================] completed (871/871, 59s)  
[info] Test dotty.tools.dotc.CompilationTests.testPickling started
import scala.annotation.implicitNotFound
import scala.reflect.ClassTag

object Test {

  import Phantom_=::=._
  //  import Normal_=::=._

  def main(args: Array[String]): Unit = {
I: File: out/linkCustomLib/custom-lib/Map2.class
I: Done in 0.118 ms, nt size: 54
I: public interface abstract class Map2#2
* Version: 52.0 (supported by JDK 1.8)
* Constant Pool [34]
#0 [null entry]: -
#1 [Utf8]: Map2
#2 [Class]: Map2#1
#3 [Utf8]: java/lang/Object
#4 [Class]: java/lang/Object#3
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 10.
"","","","","","","","",""
"Exclusive","Inclusive","Exclusive Instructions","Exclusive Cycles","Exclusive","Exclusive CPU","Exclusive L3","Exclusive L2","Name"
"Total CPU Time","Total CPU Time","Per Cycle","Per Instruction","Instructions Executed","Cycles Time","Cache Misses","Cache Misses",""
"V (sec.)"," (sec.)"," "," "," "," "," "," "," "
"400.960","400.960","1.078","0.928","331536890705","384.385","275967027","1382745376","<Total>"
"305.674","305.674","1.180","0.847","276264202471","292.580","214724555","890599668","<JVM-System>"
"22.556","22.556","0.648","1.543","11657039096","22.482","14969978","114809445","<no Java callstack recorded>"
"1.741","1.741","1.656","0.604","1670055813","1.261","433393","5004987","sun.misc.Unsafe.defineAnonymousClass(java.lang.Class, byte[], java.lang.Object[])"
"0.921","6.284","1.342","0.745","768415887","0.716","0","2779760","scala.tools.nsc.backend.jvm.BCodeBodyBuilder$PlainBodyBuilder.genLoad(java.lang.Object, scala.tools.nsc.backend.jvm.BTypes$BType)"
"0
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 10.
"","","","","","","","",""
"Exclusive","Inclusive","Exclusive Instructions","Exclusive Cycles","Exclusive","Exclusive CPU","Exclusive L3","Exclusive","Name"
"Total CPU Time","Total CPU Time","Per Cycle","Per Instruction","Instructions Executed","Cycles Time","Cache Misses","DTLB Misses",""
"V (sec.)"," (sec.)"," "," "," "," "," "," "," "
"1431.842","1431.842","1.157","0.864","1268421578129","1370.584","882869123","662882619","<Total>"
"815.330","815.330","1.214","0.824","757521873525","780.231","503144433","273962039","<JVM-System>"
"205.033","205.033","1.052","0.950","170526483591","202.564","84820085","101125893","<no Java callstack recorded>"
"7.465","8.176","1.279","0.782","7042200705","6.882","5739586","1001309","dotty.tools.dotc.core.Flags$FlagSet$.$bar$extension(long, long)"
"6.214","7.735","0.917","1.090","2722306500","3.709","1901922","3156944","java.lang.ClassLoader.defineClass1(java.lang.String, byte[], int, int, java.security.ProtectionDomain, java.lang.String)"
"5.134","91.114","