Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/MasseGuillaume/hands-on-scala-native


https://github.com/MasseGuillaume/hands-on-scala-native

Last synced: 25 days ago
JSON representation

Awesome Lists containing this project

README

        

[![Build Status](https://travis-ci.org/MasseGuillaume/hands-on-scala-native.svg?branch=master)](https://travis-ci.org/MasseGuillaume/hands-on-scala-native)

# Hands-on Scala-Native

## Install Required Software

see http://www.scala-native.org/en/latest/user/setup.html
and install ncurses

or

```
curl https://nixos.org/nix/install | sh
nix-shell .
```

## Original C program

[Nbwmon: Ncurse sbandwidth monitor](https://github.com/causes-/nbwmon)

```
┌[ 1.59 KiB/s ]─────────[ nbwmon-0.6 | interface: wlp4s0 ]────────────[ Received ]┐
│- * │
│- * * │
│- * * │
│- * * * │
│- * * * │
│- * * * * │
│- * * * * * * │
│- * * * * * * *│
│- * * * * **** * ** *│
│- * * * * ** **** * * * ** *│
│- * ** * * *** * **** * ** * ** * * * *** *│
└[ 0 B/s ]────────────────────────────────────────────────────────────────────────┘
┌[ 3.74 KiB/s ]────────────────────────────────────────────────────[ Transmitted ]┐
│- * │
│- * │
│- * │
│- * │
│- * │
│- * │
│- * * │
│- * * * │
│- * * * ** * │
│- * * * ** **** * * *│
│- * ** * * **** * **** * ** * ** * * * * ** *│
└[ 0 B/s ]────────────────────────────────────────────────────────────────────────┘
┌[ Received ]───────────────────────────┐┌[ Transmitted ]─────────────────────────┐
│Current: 384 B/s││Current: 564 B/s│
│Maximum: 1.59 KiB/s││Maximum: 3.74 KiB/s│
│Average: 113 B/s││Average: 164 B/s│
│Minimum: 0 B/s││Minimum: 0 B/s│
│Total: 3.65 GiB││Total: 2.88 GiB│
│ ││ │
└───────────────────────────────────────┘└────────────────────────────────────────┘
```

## Running

```
sbt
> ~nativeLink
```

```
./run
```