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

Just launched a new site to showcase my open source work.

Uncategorized
1 1 8

Gli ultimi otto messaggi ricevuti dalla Federazione
Post suggeriti
  • Hi everyone,

    Uncategorized ruby
    1
    0 Votes
    1 Posts
    3 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
    5 Views
    so, #Day2 of #AdventOfCode with #rust and #ruby.Brute force, but in ruby it feels more natural for me to create a bunch of arrays, in rust it seemed easier to fiddle with array indexes. I wonder if I could use some "zero cost" slices?I'm pretty sure I could do both things the same way tho. Also my first rust tests! I'm not sure what the naming convention is supposed to be, the rust book doesn't make it clear imo.https://gist.github.com/riffraff/0aae02aeaa3af9e0320b8d944ab78e2d
  • 0 Votes
    5 Posts
    25 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.
  • 0 Votes
    1 Posts
    12 Views
    Heads up, Pragmatic Programmers (https://pragprog.com) is having a flash sale for 45% off PragProg books through Sept 18th to 20th. If there's something you've been wanting to level up on, keep an eye out on these upcoming dates.#ruby #programming #pragprog #techbooks #devlife