Skip to content

Instantly share code, notes, and snippets.

View jvican's full-sized avatar

Jorge jvican

View GitHub Profile
[debug] Found 1 main classes: hello.Hello.
[info] Linking (1495 ms)
[info] Discovered 1296 classes and 9589 methods
[info] Optimizing (debug mode) (3805 ms)
[info] Generating intermediate code (1781 ms)
[info] Produced 41 files
[debug] running
/usr/sbin/clang-6.0
-c
/home/jvican/.sbt/1.0/staging/9484247e69d252dea239/cross-platform/.bloop/2.6/crossNative/native/__stack_bottom.ll
jvican in /tmp                                                                                                                                                                                       [19:42:00] 
> $ curl -L https://github.com/scalacenter/bloop/releases/download/v1.0.0-M10/install.py > install.py
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   601    0   601    0     0    793      0 --:--:-- --:--:-- --:--:--   792
100  6863  100  6863    0     0   5064      0  0:00:01  0:00:01 --:--:--  5064
                                                                                                                                                                                                                
jvican in /tmp                                                                                                                                                                      
@jvican
jvican / maven-artifact-resolution.md
Last active June 5, 2018 18:07
Links to reuse/implement artifact resolution in Maven as a plugin
@jvican
jvican / sbt-build-stats-git.sh
Created May 3, 2018 21:23
Script to find out the percentage of commits that modified sbt build files in a repository.
#!/bin/bash -
#===============================================================================
#
# FILE: sbt-build-stats-git.sh
#
# USAGE: ./sbt-build-stats-git.sh
#
# DESCRIPTION: Script that outputs what's the percentage of commits in a codebase
# that modified the sbt build files. It can be modified to support
# statistics in other files.
@jvican
jvican / excessive-eager-loading-classes.txt
Created April 24, 2018 13:11
Classes loaded by the compiler when compiling "class A" in a cold start
Class representation for UNIXProcess$Platform: None
Class representation for NoSuchMethodError: None
Class representation for Class$1: None
Class representation for Long$LongCache: None
Class representation for ClassLoader$3: None
Class representation for CharacterName$1: None
Class representation for IllegalStateException: None
Class representation for Short$ShortCache: None
Class representation for RuntimePermission: None
Class representation for CharacterDataLatin1: None
@jvican
jvican / ScriptedBloop.scala
Last active April 19, 2018 13:25
Re-implementation of scripted with bloop. In this case, used to run Zinc's scripted infrastructure. It can be adapted to run any scripted integration. The biggest benefit is that you don't need to publish before testing scripted.
package sbt.inc
import java.io.File
import java.nio.file.Path
import sbt.io.syntax._
import sbt.internal.util.complete.Parser
import sbt.internal.util.complete.Parser._
import sbt.internal.util.complete.Parsers._
import sbt.io.{AllPassFilter, NameFilter}
+--------------------+ +--------------------------+
| | | +------------------+ |
| | | | | |
| | | | | |
| Bazel CLI +------------------>+ | Bloop Cli.scala | |
| | | | | |
| | | | | |
| | | +------------------+ |
| | | |
+--------------------+ | |
-::://///:::--.`
.://///////////::-.
-////////////////:-.
`://////::::--------.``
-:-..```````````````.::-..`
````````````````````````-:::---.`
`````````````````````````````.--------.`
````....````````````````````````.---------..`
```......``````````````````````````.----........`
```......`````````````````````````````.............``
@jvican
jvican / flamegraph-guardian-frontend.flamegraph
Created February 20, 2018 12:55
Logs of guardian/frontend master.
(() => Nothing) => java.util.concurrent.Callable[_ <: java.util.concurrent.CompletionStage[_]] [total 7] 1
((Int, Int)) => ?{def ->: ?} [total 1] 0
((Nothing, Nothing)) => (Boolean, Boolean, Boolean, Boolean, Boolean) => ?B [total 1] 0
((Nothing, Nothing)) => (Boolean, Boolean, Boolean, Boolean, Boolean, Option[model.pressed.PressedStory], Option[String], Boolean, Boolean, Option[String], Option[model.pressed.Image], String, Option[String], Option[String], Option[String], Option[String], Option[Long], Option[String], Option[String], Option[Seq[common.commercial.EditionBranding]]) => ?B [total 1] 12
((Nothing, Nothing)) => (Boolean, Boolean, Boolean, Boolean, Option[model.pressed.ItemKicker], Option[model.pressed.TagKicker], String, String, Option[Boolean]) => ?B [total 1] 0
((Nothing, Nothing)) => (Boolean, Boolean, Option[String]) => ?B [total 1] 0
((Nothing, Nothing)) => (Int, Boolean) => ?B [total 1] 0
((Nothing, Nothing)) => (Int, Int) => ?B [total 1] 0
((Nothing, Nothing)) => (Int, Int, Int) => ?B [total
@jvican
jvican / flamegraph-scalatest-macro-no-position-macro-implicit-reordering.flamegraph
Created February 19, 2018 15:52
Logs of Scalatest master without position macro and a reordering of the implicits.
This file has been truncated, but you can view the full file.
(() => Nothing) => (AsyncAssertionsSpec.this.FixtureParam => Any) [total 1] 0
(() => Nothing) => (FailNestedSuite.this.FixtureParam => Any) [total 1] 0
(() => Nothing) => (MySpec.this.FixtureParam => Any) [total 1] 0
(() => Nothing) => (MySuite.this.FixtureParam => Any) [total 1] 0
(() => Nothing) => (StatusSpec.this.FixtureParam => Any) [total 20] 0
(() => Nothing) => (TestNGSuiteSuite.this.FixtureParam => Any) [total 5] 0
(() => Nothing) => (TestSpec.this.FixtureParam => Any) [total 1] 0
(() => Nothing) => (WaitersSpec.this.FixtureParam => Any) [total 1] 0
(() => Nothing) => (this.FixtureParam => Any) [total 1] 2
((=> org.scalatest.Outcome) => org.scalatest.Outcome) => org.scalatest.Outcome [total 11] 2