perl5
getopt
Our great sponsors
perl5 | getopt | |
---|---|---|
87 | 7 | |
1,842 | 97 | |
1.7% | - | |
9.9 | 0.0 | |
5 days ago | 10 months ago | |
Perl | C | |
GNU General Public License v3.0 or later | The Unlicense |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
perl5
- Perl first commit: a replacement for Awk and sed
- Perl first commit: a “replacement” for Awk and sed
- "perlclass" is coming in Perl 5.38
-
GitHub crashes on Perl's Configure
I was not signed into GitHub. I opened the permalink and it displayed fine. I opened the raw page in another tab; it was fine.
- perldelta v5.38.0 (Draft)
-
Failed matches don't reset the match variables
Nothing to do with a fixing the trap, it turns out: https://github.com/Perl/perl5/commit/4197fe35a33e6471f8f532abfd06cd6c120f180e which leads to https://rt.perl.org/perl5/Ticket/Display.html?id=109408
- What's your favourite software on GitHub?
- How Are the Cool Kids Installing Perl on OSX Nowadays?
-
SPVM now supports object-oriented programming in Perl
As we mentioned last week, this week we are working on a portable, symbolic link implementation that also works on Windows. You can see our progress here. To implement this, the Perl win32/win32.c source code would be greatly appreciated.
getopt
-
Porting my very simple C code from Unixen/macOS to Windows
Between -std=c99 and removing these headers, you're missing time definitions (struct timeval, gettimeofday) and option parsing definitions (struct option, getopt_long). Mingw-w64 provides all this for compatibility, but MSVC has none of these, so you'll need to write replacements. I've written embeddable, public domain implementations of getopt and something like getopt_long, in case that helps. These are how I deal with option parsing portability.
-
I recently made a simple project in C. Would be really helpful if someone could review my code.
The option parser is crude and doesn't follow conventions. Particularly the lack of -- support (disables option parsing) would make it impossible to use safely in scripts. If you don't want to use the system or toolchain-provided getopt, here's a public domain, embeddable implementation: getopt.h
-
How to properly handle position non-specific program arguments? ./my_prog --format:"mp3"
On unix-like systems there's a getopt function for parsing short options. Mingw-w64 has one as well, to cover Windows programs. If I care about portability, I just embed my own so it not only works everywhere, it behave the same everywhere, too.
- How to make programs for linux
-
[ Feed back wanted ] Is this a good way to handle lot of if instead of if else?
https://github.com/skeeto/getopt/blob/master/getopt.h (short)
-
Debian discusses vendoring again
Not only the GNU, you have an example in this thread where someone suggested to use or roll something similar to https://github.com/skeeto/getopt/blob/master/getopt.h, which, surprise, depends on strchr, a function that solves a much trivial problem than POSIX getopt, to begin with.
What are some alternatives?
rakudo - 🦋 Rakudo – Raku on MoarVM, JVM, and JS
optparse - Portable, reentrant, getopt-like option parser
Gource - software version control visualization
cargs - A lightweight cross-platform getopt alternative that is tested on Linux, Windows, FreeBSD and macOS. Command line argument parser library for C/C++. Can be used to parse argv and argc parameters.
Corinna - Corinna - Bring Modern OO to the Core of Perl
rust-fnv - Fowler–Noll–Vo hash function
problem-solving - 🦋 Problem Solving, a repo for handling problems that require review, deliberation and possibly debate
rust-base64 - base64, in rust
ripgrep-all - rga: ripgrep, but also search in PDFs, E-Books, Office documents, zip, tar.gz, etc.
perlweeklychallenge-club - Knowledge base for The Weekly Challenge club members using Perl, Raku, Ada, APL, Awk, Bash, BASIC, Bc, Befunge-93, Bourne Shell, BQN, Brainfuck, C3, C, CESIL, C++, C#, Clojure, COBOL, Coconut, Crystal, D, Dart, Dc, Elm, Emacs Lisp, Erlang, Excel VBA, Fennel, Fish, Forth, Fortran, Gembase, GNAT, Go, Haskell, Haxe, HTML, Idris, IO, J, Janet, Java, JavaScript, Julia, Kotlin, Lisp, Lua, M4, Miranda, Modula 3, MMIX, Mumps, Myrddin, Nim, Nix, Node.js, Nuweb, OCaml, Odin, Ook, Pascal, PHP, Python, Postscript, Prolog, R, Ring, Ruby, Rust, Scala, Scheme, Sed, Smalltalk, SQL, Swift, Tcl, TypeScript, Visual BASIC, WebAssembly, Wolfram, XSLT and Zig.
itoa - Fast function for printing integer primitives to a decimal string