An ergonomic arg parsing library for the Roc programming language.
- Introductions
- Why did I want to make this library?
object YAML: | |
apiVersion: | |
apps/v1 | |
kind: | |
Deployment | |
metadata: | |
name: | |
"my-app" | |
namespace: | |
"my-app" |
You appear to be advocating a new: | |
[ ] functional [x] imperative [ ] object-oriented [x] procedural [ ] stack-based | |
[ ] "multi-paradigm" [ ] lazy [x] eager [x] statically-typed [ ] dynamically-typed | |
[ ] pure [x] impure [ ] non-hygienic [ ] visual [ ] beginner-friendly | |
[ ] non-programmer-friendly [ ] completely incomprehensible | |
programming language. Your language will not work. Here is why it will not work. | |
You appear to believe that: | |
[ ] Syntax is what makes programming difficult | |
[ ] Garbage collection is free [ ] Computers have infinite memory |
This is a living document. Everything in this document is made in good faith of being accurate, but like I just said; we don't yet know everything about what's going on.
Update: I've disabled comments as of 2025-01-26 to avoid everyone having notifications for something a year on if someone wants to suggest a correction. Folks are free to email to suggest corrections still, of course.
package bench | |
import ( | |
"testing" | |
) | |
func BenchmarkParseDeletionTimestamp(b *testing.B) { | |
b.ReportAllocs() | |
for i := 0; i < b.N; i++ { | |
_, _ = ParseDeletionTimestamp(data) |
#!/usr/bin/env -S bash -c "docker run -p 8080:8080 -it --rm \$(docker build --progress plain -f \$0 . 2>&1 | tee /dev/stderr | grep -oP 'sha256:[0-9a-f]*')" | |
# syntax = docker/dockerfile:1.4.0 | |
FROM node:20 | |
WORKDIR /root | |
RUN npm install sqlite3 |
from requests.adapters import HTTPAdapter, Retry | |
from requests import Session | |
retries = Retry( | |
total=5, backoff_factor=1, status_forcelist=[502, 503, 504] | |
) | |
session = Session() # reuse tcp connection | |
session.mount("http://", HTTPAdapter(max_retries=retries)) | |
session.mount("https://", HTTPAdapter(max_retries=retries)) |
font: | |
normal: {} | |
size: 18.0 | |
hints: | |
enabled: | |
- binding: | |
key: U | |
mods: Control|Shift | |
command: | |
program: /Users/penglei/.local/bin/open-haskell-doc |