sk@pop-os:~ $ git clone https://github.com/utkarshkukreti/reaml-starter
Cloning into 'reaml-starter'...
remote: Enumerating objects: 118, done.
remote: Counting objects: 100% (118/118), done.
remote: Compressing objects: 100% (79/79), done.
remote: Total 118 (delta 73), reused 77 (delta 36), pack-reused 0
Receiving objects: 100% (118/118), 177.60 KiB | 103.00 KiB/s, done.
Resolving deltas: 100% (73/73), done.
sk@pop-os:~ $ cd reaml-starter/
| | name | command | time_secs | user_time_secs | sys_time_secs | maxrss_kB | codesize | ocaml_url | ocaml.version | ocaml.c_compiler | ocaml.architecture | ocaml.word_size | ocaml.system | ocaml.function_sections | ocaml.supports_shared_libraries | gc.allocated_words | gc.minor_words | gc.promoted_words | gc.major_words | gc.minor_collections | gc.major_collections | gc.heap_words | gc.heap_chunks | gc.top_heap_words | gc.compactions | gc.forced_major_collections | variant | display_name | |---:|:-------|:-------------------------------|------------:|-----------------:|----------------:|------------:|-----------:|:---------------------------------------------------------------------------------------|:-----------------------|:-------------------|:---------------------|------------------:|:---------------|:--------------------------|:--------
In [24]: A = [[1, 2, 3], [0, 4, 5], [0, 0, 6]]
In [25]: n = len(a[0])
In [26]: B = zeros(n)
In [27]: for i in range(0, n):
...: B[i][i] = 1/A[i][i]
...: for j in range(0, i-1):
type matrix = (int * int) * float array array | |
exception NonSquare | |
exception ImproperDimensions | |
let empty (rows : int) (columns : int) : matrix = | |
if rows > 0 && columns > 0 then | |
try | |
let m = Array.make_matrix rows columns 0. in |
// Problem link -> https://leetcode.com/problems/valid-parentheses/ | |
fn main() { | |
assert_eq!(Solution::is_valid("()".to_string()), true); | |
assert_eq!(Solution::is_valid("()[]{}".to_string()), true); | |
assert_eq!(Solution::is_valid("(]".to_string()), false); | |
assert_eq!(Solution::is_valid("([)]".to_string()), false); | |
assert_eq!(Solution::is_valid("{[]}".to_string()), true); | |
assert_eq!(Solution::is_valid("]".to_string()), false); | |
} |
| | name | command | time_secs | user_time_secs | sys_time_secs | maxrss_kB | codesize | ocaml_url | ocaml.version | ocaml.c_compiler | ocaml.architecture | ocaml.word_size | ocaml.system | ocaml.function_sections | ocaml.supports_shared_libraries | gc.allocated_words | gc.minor_words | gc.promoted_words | gc.major_words | gc.minor_collections | gc.major_collections | gc.heap_words | gc.heap_chunks | gc.top_heap_words | gc.compactions | gc.forced_major_collections | variant | display_name | |---:|:-----------------------------------|:--------------------------------------------------------------------------------------------------------------------|------------:|-----------------:|----------------
name | variant | gc.minor_collections | |
---|---|---|---|
10 | LU_decomposition.1024 | 4.12.0+PR+2bb2bde | 8218 |
10 | LU_decomposition.1024 | 4.12.0+younglimit | 8218 |
31 | bdd.26 | 4.12.0+PR+2bb2bde | 4689 |
31 | bdd.26 | 4.12.0+younglimit | 4691 |
24 | binarytrees5.21 | 4.12.0+PR+2bb2bde | 3527 |
24 | binarytrees5.21 | 4.12.0+younglimit | 3527 |
29 | cpdf.blacktext | 4.12.0+younglimit | 221 |
29 | cpdf.blacktext | 4.12.0+PR+2bb2bde | 221 |
name | cached vs uncached | |
---|---|---|
0 | LU_decomposition.1024 | 0 (0.0%) |
1 | bdd.26 | 2 (0.04265301770100235%) |
2 | binarytrees5.21 | 0 (0.0%) |
3 | cpdf.blacktext | 0 (0.0%) |
4 | cpdf.scale | 0 (0.0%) |
5 | cpdf.squeeze | 0 (0.0%) |
6 | cubicle.german_pfs.cub | 0 (0.0%) |
7 | cubicle.szymanski_at.cub | 0 (0.0%) |
name | runtime change | cached | uncached | minor collections change (cached vs uncached) | |
---|---|---|---|---|---|
35 | quicksort.4000000 | 6.15% | 9.37238 | 9.98706 | 0 (0.0%) |
1 | bdd.26 | 4.86% | 24.0601 | 25.2893 | 2 (0.04%) |
27 | menhir.ocamly | 2.4% | 927.577 | 950.364 | 0 (0.0%) |
20 | knucleotide. | 2.39% | 178.394 | 182.768 | 0 (0.0%) |
14 | fft. | 1.48% | 24.2063 | 24.569 | 363 (35.38%) |
2 | binarytrees5.21 |
https://www.reddit.com/r/archlinux/comments/exr82b/tried_55_from_testing_and_wifi_rtl8822be_stopped/
I have found a workaround for it issue. The issue is caused most times because this function fails trying to read the ASPM configuration from the PCI device. The current rtwpci module doesn't have an option to manage ASPM as well. So, digging a bit deeper I have found that setting ASPM using the Link Control Register fix the problem and rtwpci is able to read it properly. By default, RT8822BE cards enable L0s and L1 ASPM states but L0s states are shown as "Unknown" then rtwpci fails. I have made a little script that fix the issue, just be sure to follow:
Note: execute next commands as root.
Execute lspci | grep -i wifi | awk '{print $1}'
and keep that result in mind.