초무
hackers.pub.chomu.dev
초무
@hackers.pub.chomu.dev
🌉 bridged from ⁂ https://hackers.pub/@2chanhaeng, follow @ap.brid.gy to interact
요즘 CPU는 회로가 너무 밀도가 높아져서 양자역학적 요소까지 고려해야 한다는게 신기했슴
January 22, 2026 at 9:35 PM
Reposted by 초무
침 흘리는 고양이 보여줄게
January 22, 2026 at 12:38 PM
페디버스에 이런 웹게임적 요소를 넣으면 어떨까...? 이미 몇 개 있을 것 같기도 한데
여러분 드래곤 케이브 아세요? 요새 사람들 개인 홈페이지 만들던데 거기 웹페이지나 블로그 같은 곳에 태그로 붙여서 조회수? 같은 값으로 드래곤을 성장시키는 웹다마고치 같은거랍니다..
dragcave.net
Dragon Cave
dragcave.net
January 22, 2026 at 9:31 PM
Reposted by 초무
I'll be presenting @fedify at @fosdem 2026! My talk _Fedify: Building ActivityPub servers without the pain_ was accepted for the Social Web Devroom. See you in Brussels on January 31–February 1!
FOSDEM 2026 - Fedify: Building ActivityPub servers without the pain
fosdem.org
December 14, 2025 at 1:27 AM
Reposted by 초무
경찰에서 연락 받았습니다. 실종 8시간만에 신병확보 했다고 합니다.

무슨 일이 있었는지는 알 수 없습니다만, 현재 안전 확보된 상태라고 합니다.

걱정해주신 분들 정말 감사드립니다.
January 21, 2026 at 8:09 PM
Reposted by 초무
혼나는 빠루 네컷만화
무력하게 고영을 놓치는 엄무의 저 손이 너무 웃김
January 17, 2026 at 6:30 PM
Reposted by 초무
내가 일반 리눅스 쓴 경험으로 이런 이야기도 썼는데! 아! 망각하는 인간에게는 고통이 반복될 뿐이다! 허나 우리 모두는 망각하지 않는가?! 우리는 모두 고통 받는다!

#발광
January 18, 2026 at 9:01 AM
Reposted by 초무
뱀 아가들 자랑하기
January 13, 2026 at 7:46 AM
Reposted by 초무
졸려서 이만 자러 갑니다 안녕히 주무시고 좋은 꿈 꾸세요 고양이 사진 투척
January 17, 2026 at 6:18 PM
Reposted by 초무
보송보송 동글동글 고로로롱
January 17, 2026 at 4:02 PM
Reposted by 초무
jQuery 4.0.0이 나왔다고 한다…
January 18, 2026 at 7:46 AM
Reposted by 초무
인강들을때 고양이 맨날 뒤에서 이케 막 드르렁 뻐드렁 퍼질러 자고있슨...-
January 13, 2026 at 1:57 PM
Reposted by 초무
꿈 빡 꿈 빡
January 13, 2026 at 1:30 PM
Reposted by 초무
놀아달라고 하고 싶은데 바닥이 너무 따끈한 상황.
January 14, 2026 at 2:11 AM
Reposted by 초무
[속보] 李대통령 "재일동포, 계엄 때 민주주의 함께 지켜…존경과 감사"
송고2026-01-14 12:36
www.yna.co.kr/view/AKR2026...
[속보] 李대통령 "재일동포, 계엄 때 민주주의 함께 지켜…존경과 감사" | 연합뉴스
(
www.yna.co.kr
January 14, 2026 at 4:42 AM
Reposted by 초무
공익글: VS Code에서 작업하던 파일이 유실됐다면 가장 먼저 Timeline부터 확인합시다. 바로 오늘도 이 방법으로 삭제된 코드를 복구한 지인분이 계시며...
January 13, 2026 at 8:39 AM
Reposted by 초무
폴란드 대통령 사진 담당자가 영국 총리실 쥐잡이 보좌관 래리한테 걸려넘어졌다고. 뒤에 있는 사람이 폴란드 대통령...
January 14, 2026 at 5:52 AM
Reposted by 초무
JPEG XL 이미지 포맷 지원이 Chromium에 머지되어서 지금 Canary 빌드에서 플래그를 켜면 사용해볼 수 있다.

구현체로 jxl-rs를 사용하는데 저도 상당부분 기여했습니다 많관부...
Chromium 已合并 JpegXL
Chromium Has Merged JpegXL (chromium-review.googlesource.com) 14:42  ↑ 114 HN Points
chromium-review.googlesource.com
January 14, 2026 at 5:38 AM
Reposted by 초무
Your CLI's completion should know what options you've already typed
Consider Git's `-C` option: git -C /path/to/repo checkout <TAB> When you hit `Tab`, Git completes branch names from `/path/to/repo`, not your current directory. The completion is context-aware—it depends on the value of another option. Most CLI parsers can't do this. They treat each option in isolation, so completion for `--branch` has no way of knowing the `--repo` value. You end up with two unpleasant choices: either show completions for _all_ possible branches across all repositories (useless), or give up on completion entirely for these options. Optique 0.10.0 introduces a dependency system that solves this problem while preserving full type safety. ## Static dependencies with `or()` Optique already handles certain kinds of dependent options via the `or()` combinator: import { flag, object, option, or, string } from "@optique/core"; const outputOptions = or( object({ json: flag("--json"), pretty: flag("--pretty"), }), object({ csv: flag("--csv"), delimiter: option("--delimiter", string()), }), ); TypeScript knows that if `json` is `true`, you'll have a `pretty` field, and if `csv` is `true`, you'll have a `delimiter` field. The parser enforces this at runtime, and shell completion will suggest `--pretty` only when `--json` is present. This works well when the valid combinations are known at definition time. But it can't handle cases where valid values depend on _runtime input_ —like branch names that vary by repository. ## Runtime dependencies Common scenarios include: * A deployment CLI where `--environment` affects which services are available * A database tool where `--connection` affects which tables can be completed * A cloud CLI where `--project` affects which resources are shown In each case, you can't know the valid values until you know what the user typed for the dependency option. Optique 0.10.0 introduces `dependency()` and `derive()` to handle exactly this. ## The dependency system The core idea is simple: mark one option as a _dependency source_ , then create _derived parsers_ that use its value. import { choice, dependency, message, object, option, string, } from "@optique/core"; function getRefsFromRepo(repoPath: string): string[] { // In real code, this would read from the Git repository return ["main", "develop", "feature/login"]; } // Mark as a dependency source const repoParser = dependency(string()); // Create a derived parser const refParser = repoParser.derive({ metavar: "REF", factory: (repoPath) => { const refs = getRefsFromRepo(repoPath); return choice(refs); }, defaultValue: () => ".", }); const parser = object({ repo: option("--repo", repoParser, { description: message`Path to the repository`, }), ref: option("--ref", refParser, { description: message`Git reference`, }), }); The `factory` function is where the dependency gets resolved. It receives the actual value the user provided for `--repo` and returns a parser that validates against refs from that specific repository. Under the hood, Optique uses a three-phase parsing strategy: 1. Parse all options in a first pass, collecting dependency values 2. Call factory functions with the collected values to create concrete parsers 3. Re-parse derived options using those dynamically created parsers This means both validation and completion work correctly—if the user has already typed `--repo /some/path`, the `--ref` completion will show refs from that path. ## Repository-aware completion with `@optique/git` The `@optique/git` package provides async value parsers that read from Git repositories. Combined with the dependency system, you can build CLIs with repository-aware completion: import { command, dependency, message, object, option, string, } from "@optique/core"; import { gitBranch } from "@optique/git"; const repoParser = dependency(string()); const branchParser = repoParser.deriveAsync({ metavar: "BRANCH", factory: (repoPath) => gitBranch({ dir: repoPath }), defaultValue: () => ".", }); const checkout = command( "checkout", object({ repo: option("--repo", repoParser, { description: message`Path to the repository`, }), branch: option("--branch", branchParser, { description: message`Branch to checkout`, }), }), ); Now when you type `my-cli checkout --repo /path/to/project --branch <TAB>`, the completion will show branches from `/path/to/project`. The `defaultValue` of `"."` means that if `--repo` isn't specified, it falls back to the current directory. ## Multiple dependencies Sometimes a parser needs values from multiple options. The `deriveFrom()` function handles this: import { choice, dependency, deriveFrom, message, object, option, } from "@optique/core"; function getAvailableServices(env: string, region: string): string[] { return [`${env}-api-${region}`, `${env}-web-${region}`]; } const envParser = dependency(choice(["dev", "staging", "prod"] as const)); const regionParser = dependency(choice(["us-east", "eu-west"] as const)); const serviceParser = deriveFrom({ dependencies: [envParser, regionParser] as const, metavar: "SERVICE", factory: (env, region) => { const services = getAvailableServices(env, region); return choice(services); }, defaultValues: () => ["dev", "us-east"] as const, }); const parser = object({ env: option("--env", envParser, { description: message`Deployment environment`, }), region: option("--region", regionParser, { description: message`Cloud region`, }), service: option("--service", serviceParser, { description: message`Service to deploy`, }), }); The `factory` receives values in the same order as the dependency array. If some dependencies aren't provided, Optique uses the `defaultValues`. ## Async support Real-world dependency resolution often involves I/O—reading from Git repositories, querying APIs, accessing databases. Optique provides async variants for these cases: import { dependency, string } from "@optique/core"; import { gitBranch } from "@optique/git"; const repoParser = dependency(string()); const branchParser = repoParser.deriveAsync({ metavar: "BRANCH", factory: (repoPath) => gitBranch({ dir: repoPath }), defaultValue: () => ".", }); The `@optique/git` package uses isomorphic-git under the hood, so `gitBranch()`, `gitTag()`, and `gitRef()` all work in both Node.js and Deno. There's also `deriveSync()` for when you need to be explicit about synchronous behavior, and `deriveFromAsync()` for multiple async dependencies. ## Wrapping up The dependency system lets you build CLIs where options are aware of each other—not just for validation, but for shell completion too. You get type safety throughout: TypeScript knows the relationship between your dependency sources and derived parsers, and invalid combinations are caught at compile time. This is particularly useful for tools that interact with external systems where the set of valid values isn't known until runtime. Git repositories, cloud providers, databases, container registries—anywhere the completion choices depend on context the user has already provided. This feature will be available in Optique 0.10.0. To try the pre-release: deno add jsr:@optique/[email protected] Or with npm: npm install @optique/[email protected] See the documentation for more details.
hackers.pub
January 13, 2026 at 5:15 AM
Reposted by 초무
지금 이시간 가내 털공주
January 5, 2026 at 12:20 PM
Reposted by 초무
길가다 본 벨벳질감 고양이
January 4, 2026 at 9:06 AM
Reposted by 초무
집도착~~~~~
January 5, 2026 at 12:10 PM