Skip to content

Commit

Permalink
Merge branch 'minor' into 'master'
Browse files Browse the repository at this point in the history
Minor

See merge request mhammons/slinc!34
  • Loading branch information
markehammons committed Feb 4, 2022
2 parents 906aee0 + 28bd7e7 commit ae3dd44
Show file tree
Hide file tree
Showing 9 changed files with 60 additions and 6 deletions.
9 changes: 9 additions & 0 deletions slinc/docs/_layouts/blog-page.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
---
layout: main
---
<meta name="image" property="og:image" content="{{ page.header-image }}">
<meta name="author" content="{{ page.author }}">

<h1>{{page.title}}</h1>


<div style="text-align: center;">
<img src="{{ page.header-image }}"" height=32%>
</div>


{{content}}
6 changes: 2 additions & 4 deletions slinc/docs/blog/_posts/2022-01-22-V0-1-0-Released.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@
title: "v0.1.0 of Slinc released!!"
layout: blog-page
date: 2022-01-22
header-image: /images/blog/2022-01-22-header.png
author: Mark Hammons
---
<div style="text-align: center;">
<img src=/images/logo.svg height=32%>
</div>


After a massive amount of work, I've finished and published the first version of Slinc. Slinc is a Scala 3 library that uses Java 17's foreign incubator to create bindings to C libraries easily. In
this release Slinc supports:
Expand Down
20 changes: 20 additions & 0 deletions slinc/docs/blog/_posts/2022-02-04-V0-1-1-Release.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
title: "v0.1.1 releases with significant performance improvements"
layout: blog-page
date: 2022-02-04
author: Mark Hammons
---

I'm proud to announce the first patch release of Slinc. While it doesn't contain many new features, it does feature massive performance improvements!

## Changelog

* A [benchmarks page](../../docs/benchmarks/index.md) was added to the site
* A simplistic blas binding was added to the project. Check [gitlab.com/mhammons/slinc] to see it.
* Bindings are now cached, increasing performance exponentially, and allowing slinc to beat jblas by a factor of 1.5x on the same data.
* `bind` and `variadicBind` have been deprecated for `accessNative` and `accessNativeVariadic`. Please read [binding C methods](/docs/docs/usage/binding-c-methods.md) for more information.
* `Library` has been deprecated for `CLibrary` and `LibraryLocation`. Please read [binding C methods](/docs/docs/usage/binding-c-methods.md) for more information.
* camelCase method names are now parsed to snake_case depending on capitals placement. If you want to turn off this feature, use `RawNaming`.
* `WithPrefix` has been added, allowing to specify a function name prefix and cutting down on repeated function names.

In the next release, I plan to add provisional support for Java 18, as well as C Union types.
9 changes: 9 additions & 0 deletions slinc/docs/docs/benchmarks/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
title: Benchmarks
layout: doc-page
---

This section houses the benchmark data from the various releases of Slinc.

* [v0.1.0](v0-1-0/index.md)
* [v0.1.1](v0-1-1/index.md)
6 changes: 6 additions & 0 deletions slinc/docs/docs/benchmarks/v0-1-0/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: v0.1.0 Benchmarks
layout: doc-page
---

As version 0.1.0 was the very first version of Slinc, only performance comparison benchmarks exist for it. You can access them [here](performance.md)
6 changes: 6 additions & 0 deletions slinc/docs/docs/benchmarks/v0-1-1/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: v0.1.1 Benchmarks
layout: doc-page
---

This release saw markedly improved performance from Slinc bindings. You can read [performance comparisons between v0.1.1 and v0.1.0](self-improvement.md) and [general performance comparisons with jblas and scala](performance.md)
2 changes: 1 addition & 1 deletion slinc/docs/docs/usage/supported-platforms.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ layout: doc-page

Currently, the following platforms are supported:

* Linux x86_64
* Java 17/Linux/x86_64
3 changes: 3 additions & 0 deletions slinc/docs/images/blog/2022-01-22-header.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 4 additions & 1 deletion slinc/docs/sidebar.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,15 @@ sidebar:
- page: docs/usage/other-helpful-functions
- page: docs/usage/supported-platforms
- page: docs/usage/unsupported-features
- title: benchmarks
- title: Benchmarks
index: docs/benchmarks/index
subsection:
- title: v0.1.0
index: docs/benchmarks/v0-1-0/index
subsection:
- page: docs/benchmarks/v0-1-0/performance
- title: v0.1.1
index: docs/benchmarks/v0-1-1/index
subsection:
- page: docs/benchmarks/v0-1-1/performance
- page: docs/benchmarks/v0-1-1/self-improvement

0 comments on commit ae3dd44

Please sign in to comment.