News for hackers. Stuff that matters.

antononcube

Re:Selkie – Opinionated TUI Framework for Raku on Tuesday April 14, 2026 @11:13AM (#47766725)
There is a set of Raku modules that leverage LLMs for different tasks (mostly code generation) using different techniques:

- https://raku.land/zef:antononcube/LLM::Resources : Uses agentic LLM-graphs with asynchronous execution

- https://raku.land/zef:antononcube/ML::FindTextualAnswer : Finds answers to questions over provided texts (e.g. natural language code generation commands)

- https://raku.land/zef:antononcube/ML::NLPTemplateEngine : Fills-in predefined code templates based on natural language code descriptions/commands

- https://raku.land/zef:antononcube/DSL::Examples : Example translations of natural language commands to executable code

Re:Natural Language Processing Template Engine on Saturday February 21, 2026 @04:28PM (#47104975)
That Python package, "NLPTemplateEngine" has Raku and Wolfram Language counterparts:

- Raku, "ML::NLPTemplateEngine"

  - https://raku.land/zef:antononcube/ML::NLPTemplateEngine
- Wolfram Language, "NLPTemplateEngine"

  - https://resources.wolframcloud.com/PacletRepository/resources/AntonAntonov/NLPTemplateEngine/
Re:Day 22 – Numerically 2026 Is Unremarkable yet Happy on Saturday January 03, 2026 @12:01PM (#46478918)
Related Number Theory notebooks / discussions:

- «Numerically 2026 is unremarkable yet happy: semiprime with primitive roots» https://community.wolfram.com/groups/-/m/t/3594686

- «Happy √2²²-22 -- And other ways to calculate 2026» https://community.wolfram.com/groups/-/m/t/3599161

Re:Numerically 2026 is unremarkable yet happy on Monday December 22, 2025 @09:17AM (#46354289)
The integer 2026 is semiprime and a happy number, with 365 as one of its primitive roots. Although 2026 may not be particularly noteworthy in number theory, this provides a great excuse to create various elaborate visualizations that reveal some interesting aspects of the number.
Re:Rock Paper Scissors Solitaire on Friday November 28, 2025 @02:53PM (#46082163)
Interesting variant. I might program it for some of the «Rock-Paper-Scissors extensions» here:

https://rakuforprediction.wordpress.com/2025/03/03/rock-pape...

Some of the extensions would need polyhedral dices:

https://demonstrations.wolfram.com/OpenDiceRolls/

This document (notebook) shows transformations of a movie dataset into a format more suitable for data analysis and for making a movie recommender system. It is the first of a three-part series of notebooks that showcase Raku packages for doing Data Science (DS).
Yes, Wolfram Language (WL) -- aka Mathematica -- introduced `Tabular` in 2025. It is a new data structure with a constellation of related functions (like `ToTabular`, `PivotToColumns`, etc.) Using it is 10÷100 times faster than using WL's older `Dataset` structure. (In my experience. With both didactic and real life data of 1_000÷100_000 rows and 10÷100 columns.)
Re: on Monday September 29, 2025 @12:37PM (#45415791)
This blog post (and related notebook) show how to utilize Large Language Model (LLM) Function Calling with the Raku package "LLM::Functions".

- Package: https://raku.land/zef:antononcube/LLM::Functions

- Notebook: https://github.com/antononcube/RakuForPrediction-blog/blob/m...

Re:Asynchronous LLM computations specifications with LLM:Graph on Sunday September 28, 2025 @05:07PM (#45408014)
Mostly, because Python is not a good a "discovery" and prototyping language. It is like that by design -- Guido Van Rossum decided that TMTOWTDI is counter-productive.

Another point, which could have mentioned in my previous response -- Raku has more elegant and easy to use asynchronous computations framework.

IMO, Python's introspection matches that Raku's introspection.

Some argue that Python's LLM packages are more and better than Raku's. I agree on the "more" part. I am not sure about the "better" part:

- Generally speaking, different people prefer decomposing computations in a different way. - When few years ago I re-implemented Raku's LLM packages in Python, Python did not have equally convenient packages.

Re:Asynchronous LLM computations specifications with LLM:Graph on Sunday September 28, 2025 @12:04PM (#45405374)
Ah, yes, Raku's "LLM::Graph" is heavily inspired by the design of the function LLMGraph of Wolfram Language (aka Mathematica.)

WL's LLMGraph is more developed and productized, but Raku's "LLM::Graph" is catching up.

I would like to say that "LLM::Graph" was relatively easy to program because of the Raku's introspection, wrappers, asynchronous features, and pre-existing LLM functionalities packages. As a consequence the code of "LLM::Graph" is short.

Wolfram Language does not have that level introspection, but otherwise is likely a better choice mostly for its far greater scope of functionalities. (Mathematics, graphics, computable data, etc.)

In principle a corresponding Python "LLMGraph" package can be developed, for comparison purposes. Then the "better choice" question can answered in a more informed manner. (The Raku packages "LLM::Functions" and "LLM::Prompts" have their corresponding Python packages implemented already.)

Re:Asynchronous LLM computations specifications with LLM:Graph on Sunday September 28, 2025 @11:29AM (#45405069)
Specifications for asynchronous LLM computations with Raku's "LLM::Graph" detail how to manage complex, multi-step LLM workflows by representing them as graphs. By defining the workflow as a graph, developers can execute LLM function calls concurrently, enabling higher throughput and lower latency than synchronous, step-by-step processes.

"LLM::Graph" uses a graph structure to manage dependencies between tasks, where each node represents a computation and edges dictate the flow. Asynchronous behavior is a default feature, with specific options available for control.

Re:TallMountain – Stoic Virtue Ethics for an LLM Agent on Thursday September 25, 2025 @09:00PM (#45381314)
God to know.

BTW, several years ago the LLM-revolution didn't happen yet. Raku started to have sound LLM packages circa March-May 2023.

Re:TallMountain – Stoic Virtue Ethics for an LLM Agent on Thursday September 25, 2025 @06:01PM (#45379748)
What is better in Raku than Python? Did you use any of the dedicated Raku LLM packages?
Re:DeepMind releases Lyria 2 music generation model on Friday April 25, 2025 @07:38AM (#43792531)
I think nightcore versions of your pieces would be of interest...
Re:DeepMind releases Lyria 2 music generation model on Friday April 25, 2025 @07:31AM (#43792491)
In my opinion the referenced music fragment of that video is fairly "unmemorable", it is "just" a sequence of harmonized textures. And that is precisely what AIs (LLMs) are good at.

(I listened for ≈7 min from the reference point.) (I am talking about the music, not the live performance itself.)

Re:DeepMind releases Lyria 2 music generation model on Friday April 25, 2025 @03:08AM (#43791001)
The creation of music by AI brings to mind a quote from David Bowie:

“Music itself is going to become like running water or electricity. So take advantage of these last few years, because this will never happen again. Get ready for a lot of touring, because that's the only unique experience left.”

While Bowie had different reasoning for making that statement, it's interesting to think that with AI-generated music, his idea of "music like water or electricity" might finally come true.

Re:LLM comprehensive summary template for large texts on Thursday April 24, 2025 @09:38AM (#43782623)
Wolfram Language (aka Mathematica) notebook.
Re:Hands-On Large Language Models on Saturday April 19, 2025 @09:24AM (#43736222)
I assume you mean book's code shown in the Jypyter notebooks in the repository. (Which I think is both simple and messy.)
Re: on Tuesday March 25, 2025 @12:53PM (#43473387)
Dedicated presentation GitHub repository: https://github.com/antononcube/SimplifiedMachineLearningWork...
Re:Numerical Coincidences for 2025 on Sunday January 05, 2025 @03:17PM (#42604664)
Thanks for sharing this!

I only "followed" so far the properties given at Wolfram Community:

https://community.wolfram.com/groups/-/m/t/3347182

Re: on Tuesday December 10, 2024 @08:40AM (#42376696)
In this presentation we discuss:

- Two ways of plotting chessboards

- Knight's tour graphs

- Hamiltonian paths

- Animations of knight's tours

Re:Exploratory Data Analysis with Raku [video] on Tuesday December 03, 2024 @02:48PM (#42310469)
Showcasing Raku's tools for exploratory data analysis over programming languages data.

Here is the presentation notebook: https://github.com/antononcube/RakuForPrediction-blog/blob/m...

Here is the corresponding Wolfram Language (aka Mathematica) notebook: https://community.wolfram.com/groups/-/m/t/3180327

Older »