frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

Dev snapshot: Godot 4.5 beta 1

https://godotengine.org/article/dev-snapshot-godot-4-5-beta-1/
1•danbolt•7m ago•0 comments

MAIR: A Benchmark for Evaluating Instructed Retrieval

https://github.com/sunnweiwei/MAIR
1•fzliu•16m ago•0 comments

Tell HN: Claude enthuses about my insights and brilliant ideas; I'm liking it

1•wewewedxfgdf•18m ago•0 comments

Privacy-Preserving Attribution: Level 1 Draft. Private Advertising Technology WG

https://www.w3.org/TR/privacy-preserving-attribution/
1•nuker•27m ago•0 comments

CISA warns of attackers exploiting Linux flaw with PoC exploit

https://www.bleepingcomputer.com/news/security/cisa-warns-of-attackers-exploiting-linux-flaw-with-poc-exploit/
2•TheLocehiliosan•28m ago•0 comments

Mathematicians Hunting Prime Numbers Discover Infinite New Pattern

https://www.scientificamerican.com/article/mathematicians-hunting-prime-numbers-discover-infinite-new-pattern-for/
1•georgecmu•30m ago•0 comments

Dr. Demento Announces Retirement After 55-Year Radio Career

https://sopghreporter.com/2025/06/01/dr-demento-announces-retirement/
13•coloneltcb•31m ago•3 comments

I feel open source has turned into two worlds

https://utcc.utoronto.ca/~cks/space/blog/tech/OpenSourceTwoWorlds
2•sdht0•31m ago•0 comments

Austrian government agrees on plan to allow monitoring of secure messaging

https://www.reuters.com/world/austrian-government-agrees-plan-allow-monitoring-secure-messaging-2025-06-18/
3•gardnr•37m ago•0 comments

Greg Egan's Home Page

https://www.gregegan.net
2•babelfish•37m ago•0 comments

An injectable HIV-prevention drug is highly effective – but expensive

https://www.nbcnews.com/nbc-out/out-health-and-wellness/injectable-hiv-prevention-drug-lencapavir-rcna170778
6•nradov•45m ago•0 comments

BattleBots: Greg Munson and Trey Roski [video] (2024)

https://www.youtube.com/watch?v=bKCK1YDCf_I
3•walterbell•47m ago•0 comments

Lessons Building a Database

https://www.polarsignals.com/blog/posts/2025/06/10/lessons-building-a-database
1•nvais•50m ago•0 comments

Wallbleed: A Memory Disclosure Vulnerability in the Great Firewall of China

https://gfw.report/publications/ndss25/en/
2•greyface-•54m ago•0 comments

Bigfoot vlog – meet my alien friend Zorp

https://www.youtube.com/watch?v=l9yTiGIenDQ
2•keepamovin•55m ago•0 comments

Most LLMs return the same answer in number guessing game

https://twitter.com/karpathy/status/1935404600653492484
2•samuel246•58m ago•0 comments

Deciphering Stuxnet, the Most Menacing Malware in History (2011)

https://www.wired.com/2011/07/how-digital-detectives-deciphered-stuxnet/
5•leonidasv•58m ago•0 comments

How to Legislate in a Half-Known World

https://www.afterbabel.com/p/legislate-half-known-world
1•paulpauper•1h ago•0 comments

Gemini 2.5 Pro: From 0506 to 0605

https://thezvi.substack.com/p/gemini-25-pro-from-0506-to-0605
1•paulpauper•1h ago•0 comments

What is Europe? A secret history of the world

https://samkriss.substack.com/p/what-is-europe
3•paulpauper•1h ago•0 comments

Adaptive Control and the NASA X–15 Program: A Concise History [pdf]

https://skoge.folk.ntnu.no/prost/proceedings/acc08/data/papers/0086.pdf
2•nill0•1h ago•0 comments

ChatGPT May Be Eroding Critical Thinking Skills, According to a New MIT Study

https://time.com/7295195/ai-chatgpt-google-learning-school/
5•ArtixFox•1h ago•1 comments

Is This Phone Blocked?

https://isthisphoneblocked.net.au/
2•austinallegro•1h ago•0 comments

Data Center Energy Needs Could Upend Power Grids and Threaten the Climate

https://www.eesi.org/articles/view/data-center-energy-needs-are-upending-power-grids-and-threatening-the-climate
2•mooreds•1h ago•0 comments

The Zed Debugger Is Here

https://zed.dev/blog/debugger
1•SupremumLimit•1h ago•0 comments

ChatGPT Record

https://help.openai.com/en/articles/11487532-chatgpt-record
1•mfiguiere•1h ago•0 comments

HIV prevention drug hailed as a 'breakthrough' gets FDA approval

https://www.npr.org/sections/goats-and-soda/2025/06/18/g-s1-73130/hiv-prevention-drug-lenacapavir-fda-breakthrough
6•neilfrndes•1h ago•0 comments

AI Models Are Helping to Understand – and Control – The Brain

https://www.quantamagazine.org/how-ai-models-are-helping-to-understand-and-control-the-brain-20250618/
2•nsoonhui•1h ago•0 comments

The Developer Benefits of Single Sign-On

https://fusionauth.io/articles/authentication/developer-benefits-single-sign-on
1•mooreds•1h ago•0 comments

The Blackberry Keyboard: How an Open-Source Ecosystem Sprouts

https://hackaday.com/2025/06/04/the-blackberry-keyboard-how-an-open-source-ecosystem-sprouts/
1•walterbell•1h ago•0 comments
Open in hackernews

Fang, the CLI Starter Kit

https://github.com/charmbracelet/fang
81•bewuethr•5h ago

Comments

johnisgood•3h ago
I just ran across "gum"[1] from charmbracelet which I intend to use! I just want to replace dialog. I came across whiptail, too, but gum seems nicer.

They have a TUI framework, too, among a lot of other related things. Some of their projects are Go libraries, some are a CLI tool, such as gum.

[1] https://github.com/charmbracelet/gum

nodesocket•3h ago
Gum looks awesome. Gonna keep it in-mind next time I need to write a shell CLI.
csomar•3h ago
I’ve been maintaining rust-starter[!] for quite sometime now. It is kind of the equivalent of fang but for Rust. It uses Clap which is the equivalent of Cobra; though I don’t think Clap has the same kind of fancy output?

Throughout these years, I have found that cross-compiling is the most challenging part of creating a CLI. When you are building a web back-end, you control the execution environment (usually linux). For CLIs, your users could be on Linux, macOS or Windows. You need to get three x2 binaries (so a total of 6) to have a fair coverage.

I’ve tried cross, but for Windows and macOS you need licenses. There is no straightforward way to give your users Docker images and have them running in a few commands. You can compile on GitHub action machines, but that’s a very slow feedback loop. I wonder if things are better in Go land.

!: https://github.com/rust-starter/rust-starter

christianrocha•3h ago
I feel your pain. That said, cross compiling from Go is pretty trivial, as long as everything is pure Go, which it most often is. That’s one if the reasons we invested in jt.

(Hello from Charm! I’m one of the authors of this library.)

neomantra•3h ago
Golang itself bundles a toolchain and can cross compile to a many target OSes and architectures. I use Goreleaser [1] to create GitHub releases, Homebrew packages, Docker images, and Linux packages. Goreleaser Pro can also create MSI packages.

ETA since I just saw Christian chime in: the Goreleaser author works at Charm.sh =)

[1] https://goreleaser.com

christianrocha•2h ago
GoReleaser is indeed an awesome tool and we use it for every applicable project.

And actually Carlos, who builds GoReleaser, is the true author of Fang and took it from concept to execution.

mootoday•3h ago
This is great, lots I learned by looking at your code and the dependencies you use!

I started a similar thing, although not as feature-rich as yours. My goal was to follow CLI best practices and add all the boilerplate one needs to build a Rust CLI.

https://github.com/mootoday/cli-template

threemux•2h ago
Wow TIL cross compilation is a bit of a pain in Rust. I assumed it was as easy as Go. I can confirm as long as you're using pure Go (no cgo), it's as easy as setting $GOOS and $GOARCH appropriately.
paulddraper•2h ago
The difficulty is due to Rust dynamically linking and Go statically linking. The former requires the system libs.

That said, I am unfamiliar with any licensing for Windows builds.

MacOS has some niche (usually discarded) technicalities like you can only use the SDK on Apple hardware.

threemux•2h ago
I think that's a reference to the use of Docker in the "cross" tool that makes cross compilation easier but I'm not certain
RSHEPP•3h ago
Just re-wrote an internal CLI to urfave from custom, but having issues with v3 autocomplete scripts. Might just take the time to switch over to cobra and use this.
syvolt•13m ago
I think kong[1] is better than both options although cobra is by far the most popular. Might be worth a look.

Definitely won't look as pretty as the parent project though but I prefer kong in terms of the actual code you need to write.

[1] https://github.com/alecthomas/kong

jmsdnns•3h ago
This is awesome! Love the work the charm bracelet team is doing.
christianrocha•2h ago
Thank you for the very kind words. Hello from Charm!
jonpalmisc•2h ago
Stubborn complaint (and maybe a hot take): I dislike CLIs that try to be overly pretty. I don't receive any tangible benefit as the user from the "fancy" (their words) help output. I'd much rather simple plain text output that looks like all the other tools I already use.
assbuttbuttass•2h ago
agreed, plain text is more scriptable too. Let me pipe it into awk!
caarlos0•1h ago
If you do it right, you can output plain text when stdout is not a tty - which is something fang does, fwiw :)
arp242•1h ago
It still tries to put the terminal in raw mode or something. "cmd | less" doesn't work and requires "stty sane". I didn't investigate, but FYI.
arp242•1h ago
Alignment (and maybe bold text for some things) is all you need in >95% of cases, IMHO.

One of the downsides of a lot of these tools is that's exactly what they don't do well: many things don't align or wrap nicely.

For example, here's a comparison of this fang library vs one where I just raw-dogged the usage text: https://imgur.com/a/QWh9TLD – the nice alignment does a lot more than colours. Especially for larger programs with a bunch of flags it can be such a pain. For example from an otherwise quite nice tool: https://imgur.com/a/RELL9Gk – you just completely lose any "overview".

I did spend some time on some better tooling to improve all of this, because manually writing these isn't super-fun either, but not so straight-forward to do well (or at least: not in a way that I like).

bbkane•1h ago
It would be really cool if Fang could generate a TUI form for your app with https://github.com/charmbracelet/huh (by the same org). Is something like that on the roadmap?

Similar work: https://github.com/chriskiehl/Gooey and https://github.com/Sorcerio/Argparse-Interface

I've wanted to do TUI form generation for my own CLI framework since 2023 ( https://github.com/bbkane/warg/issues/71 ), but I still haven't gotten around to it