TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: Chatbladder, a Ruby wrapper for Chatblade

1 pointsby dzsekijoabout 2 years ago
Why?<p>Looking for a viable solution for interactive interaction with ChatGPT from terminal.<p>Why wrap?<p>There are two kind of interaction models I saw in ChatGPT command line clients:<p>- REPL. However, a REPL is painful without mature line editing capabilities, and these programs have not progressed as far as to have this under their belt. - Direct command line invocation. Popular shells do have sophisticated line editing, but the rudimentary shell &quot;string syntax&quot; makes this style of usage painful whenever punctuation and quotation comes to picture, which is the natural case for natural language.<p>So the idea came that input for the client could be obtained via another REPL which has a proper solution to the above issues.<p>Why wrap in Ruby?<p>Ruby&#x27;s default REPL, Irb has acquired decent line editing capabilities (via the Reline library). Ruby has rich string literal syntax that allows inputting punctuation and quotation without the need of escaping.

no comments

no comments