Better HN
topnewbestaskshowjobs
Log inSign up

Aaronepower

38 karma · joined Jan 26, 2016 (10y ago) · 10 submissions

[ my public key: https://keybase.io/aaronepower; my proof: https://keybase.io/aaronepower/sigs/TfkryTheEyFR0JcuD95tH2lszSQT3p4PUFCJxnArurk ]
Submissions

comment 8y ago · link · parent

Well luckily I recently published a new comparison benchmark[0]. :)

The TL;DR is that loc is faster by a few hundred milliseconds depending on repository size, but as cgag mentions doesn't have comment in string detection so can be quite off in its metrics, for example on the Rust repo Tokei says it has 643,754 lines of code where as loc says it's 635,849.

[0]: https://github.com/Aaronepower/tokei/blob/master/COMPARISON....

2.

Show HN: Eve, a utility to search and replace with environment variables

2 points · by Aaronepower · 8y ago · 1 comment

3.

Show HN: Tokei, a fast command line code counter written in Rust(github.com ↗)

10 points · by Aaronepower · 8y ago · discuss

comment 10y ago · link · parent

What you're thinking of is PascalCase

https://en.m.wikipedia.org/wiki/PascalCase

comment 10y ago · link · parent

The syntax of Jinja is completely different to Polly's. If you're really persistent about using Jinja, you should probably use Jinja2-c.

comment 10y ago · link · parent

Well components, are purely static. They are the equivalent of text expansion, or string interpolation.

A Function's logic, isn't defined in Polly. You have to define it in Rust. This moves all the logic to your Rust server, where your logic should be. It also provides the advantage of being compiled, and optimised with the program, rather than if Polly defined it's own syntax for functions, and logic, and trying to parse that out at run-time.

comment 10y ago · link · parent

You're right, I didn't explain it there, I'll update it, but you can just escape it with a \ so "bshimmin\@mail.com" would work.

8.

Show HN: Polly: A templating language for Rust(gitlab.com ↗)

47 points · by Aaronepower · 10y ago · 21 comments

9.

Show HN: Tokei. A fast code counter program, written in Rust(github.com ↗)

1 points · by Aaronepower · 10y ago · discuss