Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0" encoding="UTF-8" ?>
<testsuite errors="1" failures="0" hostname="desktop" name="tools.test.osgi.BasicTest" skipped="0" tests="1" time="0.159" timestamp="2014-10-21T00:06:59">
<properties>
<property name="env.LC_ADDRESS" value="de_DE.UTF-8" />
<property name="actors.package" value="" />
<property name="env.DEFAULTS_PATH" value="/usr/share/gconf/xubuntu.default.path" />
<property name="reflect.description" value="Scala Reflection Library" />
<property name="partest-extras.targetdir" value="lib" />
<property name="env.VCS_INFO_message_1_" value="zsh: scala" />
<property name="time.TODAY" value="October 21 2014" />
scala.reflect.internal.Types$TypeError: assignment to non variable
at scala.tools.nsc.typechecker.Contexts$Context.issue(Contexts.scala:560)
at scala.tools.nsc.typechecker.ContextErrors$ErrorUtils$.issueTypeError(ContextErrors.scala:97)
at scala.tools.nsc.typechecker.ContextErrors$ErrorUtils$.issueNormalTypeError(ContextErrors.scala:86)
at scala.tools.nsc.typechecker.ContextErrors$TyperContextErrors$TyperErrorGen$.AssignmentError(ContextErrors.scala:301)
at scala.tools.nsc.typechecker.Typers$Typer.fail$2(Typers.scala:4124)
at scala.tools.nsc.typechecker.Typers$Typer.typedAssign$1(Typers.scala:4127)
at scala.tools.nsc.typechecker.Typers$Typer.typedOutsidePatternMode$1(Typers.scala:5221)
at scala.tools.nsc.typechecker.Typers$Typer.typedInAnyMode$1(Typers.scala:5250)
at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5257)
@soc
soc / gist:ab0d37ebda31ce273782
Created August 13, 2014 15:55
../../../build/pack/bin/scalac -Yissue-debug t3222.scala
java.lang.Exception
at scala.tools.nsc.typechecker.Contexts$Context.issueCommon(Contexts.scala:551)
at scala.tools.nsc.typechecker.Contexts$Context.issue(Contexts.scala:560)
at scala.tools.nsc.typechecker.ContextErrors$ErrorUtils$.issueTypeError(ContextErrors.scala:97)
at scala.tools.nsc.typechecker.Typers$Typer.issue$1(Typers.scala:4745)
at scala.tools.nsc.typechecker.Typers$Typer.typedIdent$2(Typers.scala:4761)
at scala.tools.nsc.typechecker.Typers$Typer.typedIdentOrWildcard$1(Typers.scala:4786)
at scala.tools.nsc.typechecker.Typers$Typer.typedInAnyMode$1(Typers.scala:5215)
at scala.tools.nsc.typechecker.Typers$Typer.typed1(Typers.scala:5234)
at scala.tools.nsc.typechecker.Typers$Typer.runTyper$1(Typers.scala:5270)
@soc
soc / gist:223d3640459743530dac
Created August 9, 2014 12:37
Bulk operations
Requirements:
- Efficient by design (no "let's hope the optimizer/compiler rewrite rules/... figure this out")
- Unified API which can support all implementations and input sources
- Supports both push and pull models (event streams, collections, ...)
- Reification of operations (to allow reasonable queries against databases as an input source)
Conclusions:
scalaVersion := "2.11.1"
organization := "de.oxnrtr"
name := "psp-view-examples"
version := "0.1.0-SNAPSHOT"
libraryDependencies += "org.improving" %% "psp-view" % "0.1.2-SNAPSHOT"
@soc
soc / Build.scala
Last active August 29, 2015 14:03
Random other Build.scala which correctly creates two Eclipse projects
import sbt._
import Keys._
object BuildSettings {
val buildSettings = Defaults.defaultSettings ++ Seq(
organization := "de.oxnrtr.typeprovider",
version := "0.4-SNAPSHOT",
scalacOptions ++= Seq("-deprecation", "-feature"),
scalaVersion := "2.11.1",
resolvers += Resolver.sonatypeRepo("snapshots"),
@soc
soc / Build.scala
Last active August 29, 2015 14:03
Build.scala which creates one eclipse project
import sbt._
import Keys._
object BuildSettings {
val buildSettings = Defaults.defaultSettings ++ Seq(
organization := "de.oxnrtr.psp",
version := "0.1.2-SNAPSHOT",
scalacOptions ++= Seq("-deprecation", "-feature"),
scalaVersion := "2.11.1",
exportJars := true
package pspex
import psp.core._
object Main extends App {
def double(x: Int) = {
println(s"1# doubling $x")
x * 2
}
def greaterThanSix(x: Int) = {

Monday June 16th

Scala: The Simple Parts

Tuesday June 17th

#include "stdint.h"
#include "jni.h"
#include "stdlib.h"
#if (defined __MINGW32__) || (defined _MSC_VER)
# define EXPORT __declspec(dllexport)
#else
# define EXPORT __attribute__ ((visibility("default"))) __attribute__ ((used))
#endif