profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/vthriller/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.
vthriller vi. tabs. 1tbs. `(gdb) set disassembly-flavor intel`.

vthriller/hdd-rs 8

[WIP] instruments for querying ATA and SCSI disks

vthriller/Kaiwa 3

A modern XMPP Web client

vthriller/flask-genshi 2

Genshi templating for Flask

vthriller/hashmap-entry-ownable 2

Variation of HashMap::entry() that accepts borrowed forms of keys.

vthriller/dbfread 1

Read DBF Files with Python

vthriller/ccl-ssns 0

Automatically exported from code.google.com/p/ccl-ssns

vthriller/copy_in_place 0

a single-function Rust crate providing a safe wrapper around ptr::copy for efficient copying within slices

startedsharkdp/stack-inspector

started time in 11 hours

push eventvthriller/promql

vthriller

commit sha 4267c576c014b4da88da3720d4e0e91805dcf2e1

don't clutter docs with helper macros

view details

push time in 4 days

push eventvthriller/promql

vthriller

commit sha 2c4f863fe2d5762c6e65b7011bba61d74ce5c219

a struct for future parser options

view details

vthriller

commit sha da8a0c5c69b25fca9cb0bda617fed73b69020cd2

docs: use raw string literals for readability

view details

vthriller

commit sha 4efff2e7b79d93d91acaadb2c78be38c9de7be5c

parse range literals into floats

view details

vthriller

commit sha 3e7dbd556fdcc1f0743e69f8377c1e01f241a49c

turn range_literal into parser generator

view details

vthriller

commit sha ec7db1caba2478ee52fd04c9699a4e5f9b04abda

builder pattern for parser options

view details

vthriller

commit sha 3cc340a3d4014a0ce3ac24b96d9b4138c80bba2b

use builder in tests for brevity in future code

view details

vthriller

commit sha bd1be477369fc2f8b8a2fb844422b0620ee93d18

tests: pass ParseOptions into modified_vectors_for_instant() instead of a single option

view details

vthriller

commit sha e871210b6a709107e9304ca64a4a8d309acb536b

make modified_vectors_for_instant() a bit more concise

view details

vthriller

commit sha ba2f1d634372fcf027cee3ef69ff9d849ba47af7

fractional intervals

view details

vthriller

commit sha d66eb32aeca655826d633bb7587c684cad2f37fb

compound intervals

view details

vthriller

commit sha 6bc3f626c62e22ca2a2802c9fa95d86c9d7c2ca7

use builder-pattern crate for ParserOptions

view details

vthriller

commit sha 4529d49c197cad2d4a9b4c9643938eed4b7fd071

negative offsets

view details

vthriller

commit sha 38b3bd263a1db90492cff728064e2ba96350a9b0

separate tests for ranges

view details

vthriller

commit sha 3c71c98a535f532c2f4c8b490e1e112f7959aeb5

separate function for duration suffix intervals

view details

vthriller

commit sha 31151e9481bd4f2d6fe7bdae3c9f5b8532b12909

compound duration tokens should come in a particular order

view details

vthriller

commit sha 9fe8257f8b9deb6e5a82c1cc7b200550a0d2ba2b

Revert "separate function for duration suffix intervals" This reverts commit 3c71c98a535f532c2f4c8b490e1e112f7959aeb5.

view details

vthriller

commit sha effb604e843b3587a5f6d40324e39af0bb02ba3f

ms durations

view details

push time in 4 days

delete branch vthriller/promql

delete branch : nom-bump

delete time in 5 days

created tagvthriller/promql

tagv0.4.1

PromQL parser for Rust

created time in 5 days

push eventvthriller/promql

vthriller

commit sha 6c68864649f3c37dc21a99022ca1055d85b1db34

update quick-error

view details

vthriller

commit sha ffaf9c1aceb6d66c69364ebf7e2c06000a8a673c

v0.4.1 "Disaster Edition" The only change in this release is updated dependencies. The reason for release codename is the amount of changes that caused this seemingly simple update. Tests pass, but there's probably not enough of them, so please upgrade with caution.

view details

push time in 5 days

push eventvthriller/promql

vthriller

commit sha e79f7598a805da3902b99a3c8126dcfdb3eb4f57

make clippy happy

view details

vthriller

commit sha eaf7c722e8568955d8ba812b6f6cc8091b056722

bump nom to 6.0

view details

vthriller

commit sha f53aebbd330a1fa729b2127757f0d91f6a8bdf37

s/separated_list/&0/g

view details

vthriller

commit sha fc0263342480eb013dd3df991cd89dc024cd3f79

Fn → FnMut where necessary

view details

vthriller

commit sha 37384719d104ffbb27bbdefa2862cc3f4cc2921d

can't figure out conflicting requirements between FnMut, Fn, and impl FnMut (compiler suggestion to turn P1 into Fn+FnMut was particularly funny), so turn pair_permutations into macro

view details

vthriller

commit sha d12e0046f6e44bb1d2f9f7cb24ac0145ca0d290c

fix error types

view details

vthriller

commit sha 75614b0e47105095dbfcf48798c371ecfec76527

help rust with lifetime constraints in label_set()

view details

vthriller

commit sha 275f4658b37cdd1e461a6a159699daed0b830a97

with_modifier: avoid nom macros

view details

vthriller

commit sha 169d59adf82cf7f3f058054584fde8ef3dc3dbd1

left_op: unwrap do_parse!()

view details

vthriller

commit sha 799b8c1fa7dd28c7300c24d2c08d83d49611a143

help rust with lifetime constraints in expression() and left_op!-based functions

view details

vthriller

commit sha 96aed264e8d2a48edc76e5c60a1ccf620e8cb71a

with_modifier!: return parser function instead of calling it directly

view details

vthriller

commit sha 1314e7b9a39f6efe610af0cd48cd14098c006a36

last arg of left_op!: alt!(...) → call!(alt(...))

view details

vthriller

commit sha 22314466bd83d50bc5a60c45581afa04681c3c59

left_op!: accept function as the op arg instead of macro call

view details

vthriller

commit sha 058e41c483a531049262d645caafd48880d6a878

op_modifier: unwrap inner do_parse!()

view details

vthriller

commit sha 6a5dd484b25776ad6dd0e70b595948321192b856

op_modifier: unwrap outer do_parse!()

view details

vthriller

commit sha 0b9dd92dd2e610c8f902faa9a2ae0c7602af7129

(reindent)

view details

vthriller

commit sha a58daa8342848d50546bebdcb9fab4e0d5595188

power(): remove nom macros inside do_parse!()

view details

vthriller

commit sha bb9120eb0a4e6fe7888a4db1f70472e66909033c

power(): unwrap do_parse!()

view details

vthriller

commit sha 77a0525010db9e34a3254410f72061406c9e6e3a

(reindent)

view details

vthriller

commit sha ae5cf03d8a0d59f895694b84aa0fd6f33bf8f315

rune(): preceded!() → preceded()

view details

push time in 9 days

push eventvthriller/promql

vthriller

commit sha 45dfc632362ca05d2f6b3e13cbc6af99c3b20781

bump nom to 5.0

view details

vthriller

commit sha ae1e103867868f304ce5f9aff4e33787f3f89ca7

CompleteByteSlice is gone: drop imports

view details

vthriller

commit sha 10fdca0032db7b606c6a2de3744d7e9deec53370

CompleteByteSlice is gone: remove calls

view details

vthriller

commit sha 673a5de2ec463e4c82f0b1c47524406a0cc015d0

CompleteByteSlice is gone: replace every mention with &[u8]

view details

vthriller

commit sha 1c4ae35682657400005262b2195b4d8a3cf8efb5

CompleteByteSlice is gone: wrapper is gone, no need to `.0`

view details

vthriller

commit sha 8520c25c389336c14e5f3a334b1dc7f0ab8865a5

fix broken parser imports

view details

vthriller

commit sha b8b98d32c88d632afd7bc129ba1774c437347495

nom: Context is gone, ErrorKind is in different mod now > Usually, changing a `Err(Err::Error(Context::Code(input, error)))` to `Err(Err::Error((input, error)))` is enough (if you use the default error type `(Input, ErrorKind)`) ~ https://github.com/Geal/nom/blob/master/doc/upgrading_to_nom_5.md

view details

vthriller

commit sha 0203a20e178d461c9ccb48e8d038642f56cc141b

nom: error types also differ

view details

vthriller

commit sha 0247d68ccb00b49196d3c7b0b18a0a62728a331b

nom: is_a! is streaming by default, use complete version instead

view details

vthriller

commit sha d7d11c8268e3d6a330fe8c0f19830380eb2718a5

nom: tag! is streaming by default, use complete version instead

view details

vthriller

commit sha 4f125b4649f7fd5cac346ec80de958de94e48db0

nom: char! is streaming by default, use complete version instead

view details

vthriller

commit sha fe35ce7ed183fc0d62e52b6ba121a6af5bccac7a

nom: replace remaining streaming macros with complete functions, rendering remaining parser tests successful

view details

vthriller

commit sha 5e7895c9f5f05e36e19ca72379a924e6e6cd9a4c

get rid of the named!() in preparation for ws!() deprecation warning fix

view details

vthriller

commit sha 3e7faa7425381cd5e3a7e5ca673c5496eb6e2002

(reindent)

view details

vthriller

commit sha aafca51166399daa6ad0d320b3d7d4637d37d123

label_set(): unwrap outermost macro

view details

vthriller

commit sha 187a7ae31ab4ac69fd8ded4426a4e3253037d47f

label_set(): temporarily remove deprecated ws!()

view details

vthriller

commit sha f7bf161b9a5547b7acb7b5fb69f9644755ce44f4

label_set(): unwrap separated_list!()

view details

vthriller

commit sha ca8f0264bedf5e6b1500c0baf25ddffb460e215d

label_set(): I guess this is what do_parse!() is abandoned for

view details

vthriller

commit sha 853eb7d771c0fc446c0d1fe1c41578635bab0f8e

label_set(): emulate ws!() within elements of separated_list()

view details

vthriller

commit sha 8bc724afd3e4da5bdd491534d09e9c0bd6b69db2

label_set(): also skip whitespace around list separator

view details

push time in 10 days

push eventvthriller/promql

vthriller

commit sha 5e7895c9f5f05e36e19ca72379a924e6e6cd9a4c

get rid of the named!() in preparation for ws!() deprecation warning fix

view details

vthriller

commit sha 3e7faa7425381cd5e3a7e5ca673c5496eb6e2002

(reindent)

view details

vthriller

commit sha aafca51166399daa6ad0d320b3d7d4637d37d123

label_set(): unwrap outermost macro

view details

vthriller

commit sha 187a7ae31ab4ac69fd8ded4426a4e3253037d47f

label_set(): temporarily remove deprecated ws!()

view details

vthriller

commit sha f7bf161b9a5547b7acb7b5fb69f9644755ce44f4

label_set(): unwrap separated_list!()

view details

vthriller

commit sha ca8f0264bedf5e6b1500c0baf25ddffb460e215d

label_set(): I guess this is what do_parse!() is abandoned for

view details

vthriller

commit sha 853eb7d771c0fc446c0d1fe1c41578635bab0f8e

label_set(): emulate ws!() within elements of separated_list()

view details

vthriller

commit sha 8bc724afd3e4da5bdd491534d09e9c0bd6b69db2

label_set(): also skip whitespace around list separator

view details

vthriller

commit sha 2a6816a29100aa1a99ebd27037dff07956721958

label_set(): and, finally, skip whitespace before and after initial argument of ws!()

view details

vthriller

commit sha b2e7544ed321b5c198b01fd2c65de02c1f86decb

(reindent)

view details

vthriller

commit sha 4315eaf78c1a04a8f4981fe2a886cd0703ed0501

a bit more concise version of label_set()

view details

vthriller

commit sha 060e6661c00e789df311f5ef60243c0e4c9800fc

instant_vec(): unwrap do_parse!() (ignoring ws!() for a moment)

view details

vthriller

commit sha 7efef60d4ca027a1ba3fc0b54efd0d0016e3d732

instant_vec(): map_res!() no longer necessary, it only butchers return type now

view details

vthriller

commit sha bc4af24a82117d653ab0e89160698eb8e5be260f

instant_vec(): bring back ws!() behaviour in the former do_parse!() part of the parser

view details

vthriller

commit sha a1b96ff52c519302621d87db00b8c38ca9105c67

instant_vec(): opt!() → opt() for conciseness

view details

vthriller

commit sha 01b118946b3a85b401b81726cfa6116087a18f19

instant_vec(): fix returned error in accordance to tests

view details

vthriller

commit sha e9ac2147f5c3cfda2a0092ef6438cdaa08010b0a

instant_vec(): drop unnecessary ws!()

view details

vthriller

commit sha c85dba583c4b208698fa5a8ede95a3630585ab58

(reindent)

view details

vthriller

commit sha 348a08547602a2dfa9bd838c82c12ad4d0298f73

vector(): rewrite do_parse!() part

view details

vthriller

commit sha 39aef89f0d293027edae034f0552f3b15bf7b20c

vector(): ws!() seems to be entirely unnecessary

view details

push time in 10 days

create barnchvthriller/promql

branch : nom-bump

created branch time in 10 days

issue openedglenn-m/promR

`port` label is shadowed by the port parsed from the `instance`

Consider exporter that exposes following metrics:

tcp_queue{state="LISTEN", dir="rx", addr="0.0.0.0", port="6432"} 0
tcp_queue{state="LISTEN", dir="rx", addr="127.0.0.1", port="5432"} 0

This is what prom$rangeQuery(query = 'tcp_queue', ...)$port returns instead of expected values:

 [1] 12345 12345 12345 12345 12345 12345 12345 12345 12345 12345 12345 12345
[13] 12345 12345

where 12345 actually comes from instance="127.0.0.1:12345"

created time in 12 days