Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/copilot-instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ If you are on windows, use `mill`, not `./mill`.

Each module contains it's own build definition in the package.mill file in it's module directory.

- BUILDS: Mill cold compilation takes 2 minutes or so. Stay patient!
- BUILDS: Cold compilation may take 1 minute or so the _first_ time any compilation is run. Subsequent (incremental) compilations are fast.
- Compile specific platforms (e.g. jvm) with `./mill vecxt.jvm.compile` or `./mill vecxt.js.compile` etc.
- Run all tests by following with the same pattern `./mill vecxt.__.test`
- Format code with `./mill mill.scalalib.scalafmt.ScalafmtModule/`. CI will enforce formatting, and will fail if code is not formatted.
Expand Down
1 change: 1 addition & 0 deletions build.mill
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ object V:
val jsBSP = false
val nativeBSP = false
val jvmBSP = true
val oslib = mvn"com.lihaoyi::os-lib::0.11.5"
end V

trait VecxtPublishModule extends PublishModule, ScalaModule, ScalafixModule:
Expand Down
4 changes: 2 additions & 2 deletions experiments/package.mill
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ object `package` extends ScalaModule:
override def forkArgs = super.forkArgs() ++ build.vecIncubatorFlag
// override def mainClass = Some("mnist")

override def moduleDeps = Seq(build.vecxt.jvm, build.vecxtensions.jvm, build.vecxt_re.jvm)
override def moduleDeps = Seq(build.vecxt.jvm, build.vecxtensions.jvm, build.vecxt_re.jvm, build.vecxt_io.jvm)
override def mvnDeps = super.mvnDeps() ++ Seq(
mvn"com.lihaoyi::os-lib::0.10.4",
mvn"io.github.quafadas::scautable::0.0.35",
mvn"io.github.quafadas::dedav4s::0.10.4",
mvn"io.github.quafadas::dedav4s::0.10.5",
mvn"org.apache.logging.log4j:log4j-core:2.24.3" // Required by Apache POI for Excel
)
end `package`
Expand Down
18 changes: 10 additions & 8 deletions experiments/resources/pixelPlot.vg.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,28 @@
{
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
"description": "Plot a single pixel at (x, y) with opacity c (0=transparent, 255=opaque).",
"description": "Plot a single pixel at (x, y) with opacity c (0=transparent, 1=opaque).",
"data": {
"values": [
{"x": 50, "y": 30, "opacity": 255}
{"x": 50, "y": 30, "opacity": 1}
]
},
"mark": {
"type": "rect",
"width": 1,
"height": 1,
"width": 10,
"height": 10,
"color": "black"
},
"encoding": {
"x": {"field": "x", "type": "quantitative"},
"y": {"field": "y", "type": "quantitative"},
"x": {"field": "x", "type": "quantitative", "axis": {"ticks": false, "labels": false, "title": null}},
"y": {"field": "y", "type": "quantitative", "axis": {"ticks": false, "labels": false, "title": null}},
"opacity": {
"field": "opacity",
"type": "quantitative",
"scale": {"domain": [0, 255], "range": [0, 1]}
"scale": {"domain": [0, 1], "range": [0, 1]},
"legend": null
}
},
"width": 28,
"height": 28
"height": 28,
"title": "A Random Pixel Plot"
}
Loading
Loading