Skip to content

Piero Bosio Social Web Site Personale Logo Fediverso

Social Forum federato con il resto del mondo. Non contano le istanze, contano le persone

I'm always surprised when #Ruby doesn't have an antonym method for a predicate method.[].empty?#=> true![]

Uncategorized
2 2 11

Gli ultimi otto messaggi ricevuti dalla Federazione
Post suggeriti
  • 0 Votes
    2 Posts
    9 Views
    @denny I think it's the misleading ||= asval ||= x should desugar toval || val = xsoval || val = false if foo # foo neededvsval || val = (false if foo) # foo unneeded
  • Hi everyone,

    Uncategorized ruby
    1
    0 Votes
    1 Posts
    4 Views
    Hi everyone,I'd like to share and announce the release of llm.rb v2.1.0.The source is available at https://github.com/llmrb/llm.rb > What is llm.rb?llm.rb is a zero-dependency Ruby toolkit for Large Language Models thatincludes OpenAI, Gemini, Anthropic, xAI (Grok), zAI, DeepSeek, Ollama,and LlamaCpp. The toolkit includes full support for chat, streaming,tool calling, audio, images, files, and structured outputs. > ExampleA simple chatbot that maintains a conversation and streams responses inreal-time:#!/usr/bin/env rubyrequire "llm"llm = LLM.openai(key: ENV["KEY"])bot = LLM::Bot.new(llm, stream: $stdout)loop do print "> " bot.chat(gets) print "\n"end#ruby
  • 0 Votes
    1 Posts
    9 Views
    RE: https://ruby.social/@timriley/115614199516297073how am I only learning this after almost two decades! #ruby
  • 0 Votes
    5 Posts
    28 Views
    @jaredwhite yeah I think in the 00s. The ruby community back then was tiny but full of random interesting initiatives. E.g. I remember the Ruby Package Archive, which would have been a debian-like package system with maintainers instead of a "publish what you want" system like rubygems.Given the recent supply chain attack craze.. well maybe it was an idea worth pursuing.