cpp
C++ Serpent7776 3 months ago 100%
Comparing C++ range libraries for filter+reverse case with non-trivial lambda https://dev.to/serpent7776/comparing-c-range-libraries-for-filterreverse-case-with-non-trivial-lambda-4lj7

I wrote a blog post comparing several range libraries for a case that is doing filter with non-trivial lambda and then reverse.

8
0
commandline commandline I used hyperfine CLI tool to measure startup and shutdown times of several code interpreters
Jump
commandline
commandline Serpent7776 5 months ago 100%
I used hyperfine CLI tool to measure startup and shutdown times of several code interpreters dev.to

A blog post shows an example usage of hyperfine CLI tool to measure and plot time of startup and shutdown of several code interpreters.

10
2
programming_languages
Programming Languages Serpent7776 7 months ago 90%
Programming Language Awareness Centre http://www.math.bas.bg/bantchev/place/languages.html

A Programming Language Learner's Resource. Contains descriptions of many ineresting programming languages, like APL, ABC, FP, Factor with examples and further links.

8
1
cpp C++ Index arrays with ordinals instead of integers with custom literals
Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearSE
    Serpent7776
    7 months ago 100%

    It should be easy to edit the existing code to add support for i18n, but there's probably no way to make in generic (except for macros).

    2
  • cpp C++ Index arrays with ordinals instead of integers with custom literals
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearSE
    Serpent7776
    7 months ago 100%

    There's no purpose really. It was more of "wonder if I can" and also nice way to learn custom literals.

    14
  • cpp
    C++ Serpent7776 7 months ago 84%
    Index arrays with ordinals instead of integers with custom literals

    I did a code that uses custom literals to allow indexing arrays with ordinals (1st, 2nd, 3rd), all at compile time. Additionally _st works only with 1, _nd only with 2, _rd only with 3. Zero and negative numbers are also not supported and fail compilation. https://github.com/serpent7776/bits/blob/master/th.cpp/th.cpp

    18
    11
    commandline
    commandline Serpent7776 8 months ago 85%
    histat - a simple history stats github.com

    I created a very simple script that shows the history usage of your shell. Should work with bash and fish shells. This basically goes through the history and counts the command names. So all of `git push`, `git pull`, etc will count as just `git`. Example output: ``` 847 pacman 296 cd 206 git 203 time 180 vim 172 awk 166 aur 142 strace 141 cat 125 ls Total commands: 7008 Unique commands: 753 ```

    5
    0
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearSE
    Serpent7776
    8 months ago 100%

    I can actually define this in TCL:

    % proc ifn't {cond cmds} {if {!$cond} {uplevel $cmds}}
    % ifn't false {puts 12}
    12
    % ifn't true {puts 12}
    % 
    
    2