🦋 Welcome to the MAIN() IRC channel of the Raku Programming Language (raku.org). Log available at irclogs.raku.org/raku/live.html . If you're a beginner, you can also check out the #raku-beginner channel!
Set by lizmat on 6 September 2022.
SmokeMachine librasteve: I’ve been playing with the idea of html slang/dsl for Raku for some time now (it’s more related to components, but it involves html). I’m not sure if it could help showing some options, but if you’d like to see some experiments: github.com/FCO/p6-react github.com/FCO/proact/blob/master/t/01-slang.t github.com/FCO/MemoizedDOM/blob/ma...o/Todo.pm6 02:39
github.com/FCO/Cro-WebSocket-WebCo...odo.crotmp github.com/FCO/HTML-Component
librasteve: the last one even tries to have a few facilitators to HTMX. 02:40
roguerakudev Hm, I just installed Rakudo 2024.10 on a VPS and zef is reporting "No candidates found matching identity" for whatever modules I try 04:58
Working fine on my own machine which is on 2024.09
not an internet connection issue either as I was able to curl the rakudo tarfile 04:59
oh, seems it's because I su'd into the account which left me in /root 05:07
testing connection 2 05:43
SmokeMachine librasteve: what I mean is that maybe it can help you to compare some options without making you to write them just to compare… 08:45
lizmat roguerakudev please add to the list yourself, or make a PR for it: either is ok 09:40
librasteve SmokeMachine: thanks, I'll take a look 10:42
SmokeMachine: yes I think you are already ahead of my thinking in the same general direction - however, I have some "wilder" concepts that I would like to bring to the party. I have a couple of questions for you that I will post at a new HTML::Components issue and maybe I will start a new repo that I will call HTML::Islands for now that (my guess is) could have HTML::Components as attributes. So we can try to 12:58
partition and reuse stuff... I genuinely feel that I am scratching the surface and that this will need some collaboration work to get to the "best" solution...
antononcube @lizmat I assume your PR comment above is about registering as a Raku Advent author. 13:30
lizmat yes
Geth advent: antononcube++ created pull request #114:
Adding three Advent 2024 articles by antononcube.
13:41
advent/main: 98446ab608 | (Anton Antonov)++ (committed using GitHub Web editor) | raku-advent-2024/authors.md
docs:Adding three Advent 2024 articles by antononcube. (#114)
13:42
[Coke] TIL about the "National Fenestration Ratings Council" 16:26
lizmat not Defenestration ?
antononcube @librasteve Can your metrics framework be used for matrices? See this HackerNews comment here: news.ycombinator.com/item?id=42204046 16:31
I think it should be pretty doable...
librasteve crag of the day 16:48
crag '$v^=^([1,2,3],"m/s"); $m=4kg; $p^=$m*$v^; say "p^=$p^"'
so this $v^=^([1,2,3],"m/s") is a velocity 3-vector 16:49
(raku App::Crag is a CLI calculator that uses Physics::Measure and Math::Vector) 16:50
my current idea is that DataFrames are the best vehicle for typing of columns (ie not Math::Matrices) and I have in mind an improvement to the Dan library that can take a Physics::Measure type as a column type (as well as more basic types currently supported) 16:53
lizmat librasteve perhaps raku.land/zef:lizmat/Prompt could be of interest for App::Crag ? 16:55
librasteve Physics::Measure::Mass, Physics::Measure::Speed and so on
antononcube I have mentioned this before: "Math::Matrix" is a heavy package, so, I use it, but not very aggressively. Snd it needs re-adoption. (As far as I can tell.) 16:56
librasteve switches to IRCCloud
antononcube @lizmat Maybe "Commands" too, should be interest to "Craig". 16:57
lizmat yeah.. that as well... :-)
librasteve_ p⃗=^(4, 8, 12)kg m/s
lizmat working on integrating Commands into the REPL module atm
librasteve sadly Discord does not like to show some unicode 16:58
tbrowder hi, is this a True statement referring to using a BEGIN block: “no executable may be created or accessed because compilation is not yet completed” 17:14
Geth advent: landyacht++ created pull request #115:
Add rogue's Conditionall Writeable Attributes article
17:15
advent/main: 2f937c9827 | landyacht++ (committed using GitHub Web editor) | 2 files
Add rogue's Conditionall Writeable Attributes article (#115)

  * Adds rogue's Conditionally Writeable Attributes article
  * Sync with Raku/advent:main
  ---------
Co-authored-by: landyacht <landyacht@nunya.business>
ab5tract tbrowder: what do you mean by "no executable may be created"? 17:18
librasteve since I mangled my post a bit I will rephrase my answer: Physics::Measure objects have a value, that value may be either a Real or a Math::Vector (actually it has no type constraint, but these are the types I have tested). The App::Crag example shows some Crag syntax ^(1,2,3) shorthand for Math::Vector.new(1,2,3), the p^ syntax makes a unicode combining p and the small arrow above. 17:19
tbrowder should i have been more restrictive and added caveats? i think this is discussed in the docs somewhere. i just need some kind succint warning for users of my advent article 17:22
librasteve so we already have Math::Vector as value of Physics::Measure, but to go to a matrix, then we need a structure that has typed columns and a Dan DataFrame is the perfect container for that... where each column can have a Physics::Unit type 17:24
I look forward to making Crag work with the repl ! 17:25
ab5tract " where each column can have a Physics::Unit type" now this sounds really cool 17:26
:)
[Coke] lizmat: no "de" - only time I've ever seen that word without the de prefix. 18:10
lizmat weird :-)
[Coke] tbrowder: raku -e "BEGIN say run('ls')" #this works 18:12
what is the actual problem you're trying to warn against?
timo maybe a warning that if the module the BEGIN is in gets precompiled, then the BEGINned code won't run when it's loaded? 18:15
but then that sounds like you just want INIT instead?
ugexe yeah that just sounds like describing what BEGIN is when using it 18:16
[Coke] ah
timo but that was just a guess 18:21
antononcube @librasteve Ad hoc matrix-vector Dot product is not that hard to program. 18:41
I will see can re-cast your examples with dot-product from "Math::DistanceFunctions". 18:44
Actually, dot-product is only in "Math::DistanceFunctions::Native". (For now.) 18:45
Geth advent/main: 047ba90423 | (Daniel Sockwell)++ (committed using GitHub Web editor) | raku-advent-2024/authors.md
Add post by Codesections on TPRF talks
20:37
SmokeMachine librasteve: sure, I’m really keen to help anyway I can. I’m waiting o your questions… 22:22
SmokeMachine lizmat: does Prompt handle tab/completions? 23:16
lizmat SmokeMachine: not yet, but I want to add that as well, yes 23:43
if the underlying editor logic allows :-) 23:44