Skip to content

Instantly share code, notes, and snippets.

Adriaan Moors adriaanm

View GitHub Profile
View sigs.md
Class empty result fromSpecific result newSpecificBuilder result withFilter result
AbstractSeq Iterable[A @scala.annotation.unchecked.uncheckedVariance] Iterable[A @scala.annotation.unchecked.uncheckedVariance] mutable.Builder[A @scala.annotation.unchecked.uncheckedVariance,Iterable[A @scala.annotation.unchecked.uncheckedVariance]] WithFilter[A,[]Seq[]]
StringView View[Char] View[Char] mutable.Builder[Char,View[Char]] WithFilter[Char,[]View[]]
IndexedSeqView View[A] View[A] mutable.Builder[A,View[A]] WithFilter[A,[]View[]]
IndexedSeq IndexedSeq[A] IndexedSeq[A] mutable.Builder[A,IndexedSeq[A]] WithFilter[A,[]IndexedSeq[]]
LinearSeq LinearSeq[A] LinearSeq[A] mutable.Builder[A,LinearSeq[A]] WithFilter[A,[]LinearSeq[]]
Seq Seq[A] Seq[A] mutable.Builder[A,Seq[A]] WithFilter[A,[]Seq[]]
SeqView View[A] View[A] mutable.Builde
View 2.12.7.md

Main highlights of this release:

  • Add Scaladoc markdown tables (#6043)
  • Fix equality of WrappedArray.ofRef (for Spark, #7156)
  • Numerous compiler performance improvements (#7067, #6696, #7147)

Further highlights:

  • Improved Java 9+ support (#7089 ASM 6.2, #7240 Un-deprecate linesIterator)
  • Support @Repeatable Java annotations (#6846)
@adriaanm
adriaanm / para-namers.diff
Created May 8, 2018
macro paradise namers/expanders diff
View para-namers.diff
--- /tmp/para-namers.scala 2018-05-08 15:52:02.000000000 +0200
+++ src/compiler/scala/tools/nsc/typechecker/MacroAnnotationNamers.scala 2018-05-08 15:52:32.000000000 +0200
@@ -1,28 +1,22 @@
-package org.scalamacros.paradise
-package typechecker
-
-trait Namers {
- self: AnalyzerPlugins =>
+package scala.tools.nsc.typechecker
View gist:b01d6e9c9446302de69c34e35a0ccd22
1 scala.collection.mutable.ArrayBuilder.ofBoolean
1 scala.collection.mutable.BitSet
1 scala.collection.mutable.ImmutableSetAdaptor
1 scala.collection.mutable.LazyBuilder
1 scala.collection.mutable.LinkedHashMap
1 scala.collection.mutable.LinkedHashMap.DefaultKeySet
1 scala.collection.mutable.Map
1 scala.collection.mutable.ObservableBuffer
1 scala.collection.mutable.SortedSet
1 scala.collection.script
@adriaanm
adriaanm / github-tabindex.js
Last active Sep 11, 2017
Suppress tabindex for file upload / markdown help on github comment #tampermonkey
View github-tabindex.js
// ==UserScript==
// @name Suppress tabindex for file upload / markdown help on github comment
// @namespace http://tampermonkey.net/
// @version 0.3
// @match https://github.com/*
// @require http://code.jquery.com/jquery-1.11.0.min.js
// ==/UserScript==
(function() {
'use strict';
View WordCountDemo.scala
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
View 2.12.1-2.library.diff
diff --git a/library/library.properties b/library/library.properties
index 83d982c..e59f8c9 100644
--- a/library/library.properties
+++ b/library/library.properties
@@ -1,5 +1,5 @@
-#Mon Apr 10 13:23:59 PDT 2017
-copyright.string=Copyright 2002-2016, LAMP/EPFL and Lightbend, Inc.
-version.number=2.12.1-local-2787b47
-osgi.version.number=2.12.1.v20161205-104509-local-2787b47-2787b47
-maven.version.number=2.12.1-local-2787b47
@adriaanm
adriaanm / scala-library-2.11.8 to 10.diff
Created Apr 7, 2017
bytecode diff between 2.11.8/2.11.10 scala library compiled with 2.11.8/2.11.10
View scala-library-2.11.8 to 10.diff
diff --git i/library/library.properties w/library/library.properties
index 73a162f..69ba316 100644
--- i/library/library.properties
+++ w/library/library.properties
@@ -1,5 +1,5 @@
-#Fri Apr 07 13:56:50 PDT 2017
-copyright.string=Copyright 2002-2016, LAMP/EPFL
-version.number=2.11.8-20160304-115712-1706a37
-osgi.version.number=2.11.8.v20160304-115712-1706a37
-maven.version.number=2.11.8-SNAPSHOT
@adriaanm
adriaanm / 2.11.8-10.diff
Created Apr 6, 2017
for ... ; do javap -v -p "$i" > 2.11.10 ; javap -v -p "/Users/adriaan/git/scala/build-2.11.8/quick/classes/$i" > 2.11.8 ; diff -uwa 2.11.{8,10} ; done
View 2.11.8-10.diff
--- 2.11.8 2017-04-05 16:59:30.000000000 -0700
+++ 2.11.10 2017-04-05 16:59:30.000000000 -0700
@@ -1,6 +1,6 @@
-Classfile /Users/adriaan/git/scala/build-2.11.8/quick/classes/compiler/scala/tools/nsc/io/Socket$Box.class
- Last modified Apr 5, 2017; size 2850 bytes
- MD5 checksum 534fd95ad482ddd14a0f81b9008dbc14
+Classfile /Users/adriaan/git/scala/build-2.11.10-snap/quick/classes/compiler/scala/tools/nsc/io/Socket$Box.class
+ Last modified Apr 5, 2017; size 2852 bytes
+ MD5 checksum 387a0dd23fd57b3d7eabf63fddb47745
Compiled from "Socket.scala"
@adriaanm
adriaanm / nightly.sbt
Created Dec 11, 2016
How to use the latest Scala nightly build from your sbt build by @SethTisue
View nightly.sbt
// originally by @SethTisue, see http://stackoverflow.com/questions/40622878/how-do-i-tell-sbt-to-use-a-nightly-build-of-scala-2-11-or-2-12/40622879#40622879
resolvers += "nightlies" at "https://scala-ci.typesafe.com/artifactory/scala-release-temp/"
scalaVersion := {
val propsUrl = new URL("https://scala-ci.typesafe.com/job/scala-2.12.x-integrate-bootstrap/lastSuccessfulBuild/artifact/jenkins.properties/*view*/")
val props = new java.util.Properties
props.load(propsUrl.openStream)
props.getProperty("version")
}
scalaBinaryVersion := "2.12"
You can’t perform that action at this time.