š¦ 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. |
|||
00:00
apac left
00:01
erry joined
|
|||
erry | i may have stayed up too late and got cursed ideas | 00:02 | |
and became a perl^w raku developer | |||
but this looks the kind of language where i could use to make my own thing? | |||
liek say i wanted to rename 'if' statements and make it not english | |||
mwhahah | |||
i feel like i should be able to do it but chatgpt is useless at this stuff | 00:03 | ||
got to become a raku dev, not enough examples for chatgpt to replace | |||
00:16
tjr left
00:18
DarthGandalf left
00:20
DarthGandalf joined
|
|||
antononcube | @err Use the prompt "CodeWriterX" -- it produces good / workable Raku code reliably. | 00:21 | |
ugexe | github.com/rakudo/rakudo/blob/9445...kumod#L818 | 00:22 | |
also see dev.to/finanalyst/creating-a-new-p...draig-503p | 00:23 | ||
for creating non-english syntax | |||
erry | oh | 00:45 | |
gist.github.com/errietta/601c3ccef...db0d09e477 | |||
lel | |||
so i shouldnt have done it like that | |||
D: | |||
z. | 00:46 | ||
00:54
guifa_ joined
|
|||
antononcube | Looks interesting, for sure. | 00:55 | |
00:55
guifa left
|
|||
ugexe | github.com/Raku/L10N/tree/main/localizations | 00:58 | |
github.com/finanalyst/rakuast-L10N-JA even | 00:59 | ||
erry | :( | 01:01 | |
ok i check that | |||
nice | 01:02 | ||
i can learn japanese that way | |||
very efficienet | |||
i pass the n1 in no time like that | |||
i'll become very jouzu | |||
ew | |||
Geth | examples/docker-build-actions: 5e2a54a886 | (Coleman McFarland)++ | .github/workflows/build-docker.yml Add GHA workflow to build and push docker container Still need to add secrets to the Repo's backend to make the push work. |
01:04 | |
examples: dontlaugh++ created pull request #103: Add GHA workflow to build and push docker container |
01:05 | ||
tbrowder | hi [Coke] thnx | 01:07 | |
01:12
yewscion joined
01:16
yewscion left
01:45
hulk joined,
kylese left
01:52
yewscion joined
01:56
yewscion left
01:58
yewscion joined
02:03
yewscion left
02:15
hulk left,
kylese joined
02:19
yewscion joined
02:24
yewscion left
02:41
yewscion joined
02:46
yewscion left
|
|||
SmokeMachine | weekly: dev.to/fco/deps-453b | 03:09 | |
notable6 | SmokeMachine, Noted! (weekly) | ||
SmokeMachine | Voldenet: dev.to/fco/deps-453b | ||
03:30
stanrifkin_ joined
03:33
stanrifkin left
03:45
kylese left
03:48
kylese joined
04:16
Aedil joined
04:28
human-blip left
04:34
human-blip joined
05:04
yeahitsme joined
|
|||
Voldenet | SmokeMachine: `:priority<deffer>` probably typo | 05:43 | |
but that's a nice post | 05:44 | ||
06:41
yewscion joined
06:46
yewscion left
07:45
apac joined
08:13
apac left
08:45
Aedil left
08:53
librasteve_ joined
08:54
lizmat left
08:56
lizmat joined
|
|||
librasteve | o/ | 08:59 | |
08:59
Aedil joined
|
|||
lizmat | librasteve ToyJeansEnableHardly | 09:04 | |
09:05
Guest43 joined,
Guest43 left
|
|||
librasteve | 2 mins | 09:05 | |
09:06
mozambique joined
|
|||
mozambique | hello | 09:10 | |
09:16
mozambique left
|
|||
[Coke] | 'allo | 09:30 | |
09:34
abraxxa-home joined
|
|||
Geth | raku.org/main: b2ac305d23 | (Will Coleda)++ | source/fun/index.html Remove cafepress, the link is dead. |
10:07 | |
10:33
lichtkind joined
10:43
apac joined
|
|||
wayland | Hi all, but especially librasteve_ : I've done a bit of an analysis of what we should have conversion guides for. My idea is that the new raku.org page will provide a pathway into a series of guides, but then the guides themselves will live in the doco. See github.com/librasteve/raku-org-25-...o/issues/7 for what I've put together. | 11:23 | |
In particular, people interested in the hARC stack (Red, Cro, etc) will be interested in the Web Frameworks section, and melezhik will be interested in the System/Configuration Management section. | 11:30 | ||
11:46
Sgeo left
|
|||
librasteve | wayland: thanks ⦠iāll go and take a look | 12:48 | |
tbrowder | hi, if i have a string: , | 13:14 | |
string: ':type("name")' | 13:15 | ||
whats the easy way to convert it to a pair? | 13:16 | ||
m: my $s = ':type("name")'; say $s. ^name | 13:17 | ||
camelia | ===SORRY!=== Error while compiling <tmp> Unsupported use of . to concatenate strings. In Raku please use: ~. at <tmp>:1 ------> my $s = ':type("name")'; say $s.<HERE> ^name |
||
tbrowder | erg, spaces.. | 13:18 | |
m: my $s = ':type("name")'; say $s.^name | 13:19 | ||
camelia | Str | ||
13:21
apac left
|
|||
tbrowder | m: my $s = "\:key\(\"value\"\)"; say $s.^name; my %h = %($s); say %h.^name | 13:24 | |
camelia | Str Odd number of elements found where hash initializer expected: Only saw: ":key(\"value\")" in block <unit> at <tmp> line 1 |
||
tbrowder | i can do the trick a small piece at a time, but is there golfish way to do it? | 13:26 | |
timo | m: say val(Q[:key("value")]).raku | 13:32 | |
camelia | ":key(\"value\")" | ||
timo | mhm, that's just the string | ||
i don't think we have something easily accessible that's not "toss the full raku language parser at it" at the moment | 13:35 | ||
lucs | m: my $x = EVAL ':K("V")'; print $x.key, $x.value # If EVAL is acceptable. | 13:36 | |
camelia | KV | ||
librasteve | yeah - I think EVAL is good, or you could roll a mini Grammar | 13:38 | |
timo | i would really not suggest EVAL :) | 13:39 | |
Geth | examples: b5598e1c29 | (Will Coleda)++ | t/000-check-dependencies.t This test just verifies deps are installed. Duplicative of info in 'zef install --deps-only .'. |
||
examples: 3fac5104f5 | (Will Coleda)++ | README.md Note site is being archived Part of #104 |
|||
raku.org/main: 71183b1573 | (Will Coleda)++ | source/index.html Remove link to stale examples site |
13:41 | ||
timo | we don't have a way to "parse this but don't run any code", neither for the old raku grammar and the RakuAST grammar | ||
tbrowder | how about using RakuAST? | 13:52 | |
timo | what i just said :) | 13:54 | |
m: use experimental :rakuast; Q[:value(my constant LOL = say "owned")].AST.raku.say | |||
camelia | owned RakuAST::StatementList.new( RakuAST::Statement::Expression.new( expression => RakuAST::ColonPair::Value.new( key => "value", value => RakuAST::Circumfix::Parentheses.new( RakuAST::SemiList.new( ⦠|
||
antononcube | weekly: rakuforprediction.wordpress.com/20...es-gemini/ | 13:55 | |
notable6 | antononcube, Noted! (weekly) | ||
13:56
abraxxa-home left
|
|||
tbrowder | yes, i was slow typing and didn't see yrs until i hit return :-( | 13:56 | |
13:59
abraxxa-home joined
|
|||
tbrowder | cool! but i'll do it my own pick-apart way for now: thanks timo | 14:01 | |
14:26
yewscion joined
14:33
yewscion left
14:36
abraxxa-home left
14:37
yewscion joined
14:42
yewscion left
14:59
yewscion joined
15:04
yewscion left,
yewscion joined
15:08
yewscion left
|
|||
davidromero55 | Hi, im working in a personal project and get something confusing, Why can not declare class Foo::Bar {} inside Foo/Bar.rakumod ? or just declade class Bar {} and use as Foo::Bar.new? | 15:16 | |
[Coke] | The first one should work, no? | 15:22 | |
timo | there's an important difference between "what do i put after `use`" and "what do i get after i use `use`"; the location of the file tells you what you "use", and what's in it decides what you get from it | ||
you will need to have that class exported or "our" scoped for it to show up after you "use" it | 15:23 | ||
[Coke] | The second does not, the file name doesn't fixup the | ||
... class name automagically | |||
davidromero55 | I finally get the problem, It work as class Foo::Bar {} but for some reason the Raku VS Code plugin is showing an error "Syntax: Redeclaration of symbol 'Foo::Bar'". In the compiler it runs.... | 15:25 | |
antononcube | I was going to ask about that -- what editor / IDE are you using> | 15:26 | |
Better use IntelliJ for Raku package programming. I use VSCode with Raku a lot, but that is only for research projects. | 15:27 | ||
15:28
vrurg left
|
|||
davidromero55 | O thanks I going to try with IntelliJ | 15:28 | |
did you use Comma IDE or IntelliJ base Ide? | 15:29 | ||
antononcube | I use both now. But Comma IDE is obsolete. | 15:30 | |
Use a recent IntelliJ with this Raku plugin: github.com/ab5tract/comma-plugin | 15:31 | ||
15:37
yewscion joined
15:38
vrurg joined
15:42
yewscion left
15:57
wayland76 joined
15:58
wayland left
15:59
yewscion joined
16:04
yewscion left,
yewscion joined
16:09
yewscion left
16:26
yewscion joined
16:30
yewscion left
16:48
yeahitsme left
16:51
yewscion joined
16:54
apac joined
16:56
yewscion left
16:58
yewscion joined
17:02
yewscion left
17:04
yewscion joined
17:10
yewscion left
17:26
apac left
17:30
yewscion joined
17:40
yewscion left
18:20
yewscion joined
18:24
yewscion left
18:27
yewscion joined
18:31
yewscion left
18:37
lizmat left
18:39
lizmat joined
18:53
yewscion joined
18:57
yewscion left
18:59
yewscion joined
19:04
yewscion left
19:12
Sgeo joined
19:19
yewscion joined
19:31
yewscion left
19:34
yewscion joined
19:41
yewscion left
20:04
yewscion joined
20:09
yewscion left
|
|||
erry | does anybody actually use raku at work | 20:26 | |
i was a perl dev a looooong time ago | |||
but there's not really perm jobs, i jumped to save my career | |||
but my career eventually deaded anyway | |||
nod | |||
antononcube | @erry Yeah. I answered similar question a few weeks ago here. | 20:28 | |
librasteve | i use raku at work ... this is the most useful thing I have said rakujourney.wordpress.com/2024/11/...ciliation/ | ||
erry | why llm prompt engineering specifically | 20:29 | |
i mean you can do that in any language | |||
it's jjust an api call to <insert your favourite toy> | 20:30 | ||
librasteve | <<DSLLM>> | 20:31 | |
raku Grammars are fantastic for Domain Speciifc Languages (aka Slangs) ... and LLMs are language machines | 20:32 | ||
thus DSLLMs (DSLs + LLMs) | 20:33 | ||
antononcube | @erry For "why doing LLM with Raku?" see "LLM::Functions" and/or "Jupyter::Chatbook". | ||
Raku provides a more "uniform" LLM experience. | |||
erry | oh my god the flowchart | 20:34 | |
librasteve | like a lot of things, if you match the power of the (prompt engineering) tool to the challenges of the (LLM) services you can get the best automation ... "impedance matching" | ||
erry | huh | 20:35 | |
th ellm stuff is .. something | |||
librasteve | "My God, it's full of stars." | 20:36 | |
antononcube | @erry As I menttioned I am repeating myself here: (1) I use Raku for different work-related projects. (2) Half of the time the employers/clients do not know (or care) that I have implemented the functionalities in Raku. (3) I use the Raku-LLM functionalities for supporting other my use of other programming language and/or forming or analyzing documents. | 20:38 | |
At this point Raku is good for exploratory data analysis with datasets that have, say, less than 50k rows. | 20:41 | ||
Most of the Raku programmers claim that Raku's CLI is excellent for making shell scripts. (I sort of agree, but "docopt" has made CLI in many programming languages easy.) | 20:43 | ||
20:48
yewscion joined
|
|||
erry | yes | 20:48 | |
i c | |||
uh | 20:49 | ||
so you can have your pre-written prompts and call them as functions | |||
it's kinda like langchain? | 20:50 | ||
20:50
apac joined
|
|||
erry | i have to learn that | 20:50 | |
antononcube | Right. "LLM::Prompts" also facilitates the declaring and usage of "local" prompts. | 20:51 | |
erry | i c ic | ||
every job ad now has 'langchain experience' | |||
it's ridiculous. it's been out for like 3 years | |||
I can learn it on my free time but if my job wasn't using it, it wasn't using it | 20:52 | ||
how am i supposed to make work experience out of nowhere! | |||
grbml. | |||
grmbl. | |||
[Coke] | Yah, that was always an issue for me when I was consulting. Much easier now that I'm in a long term gig. | ||
20:52
yewscion left
|
|||
erry | [Coke]: nah i'm talking perm roles | 20:55 | |
the job market is LOL at the moment | |||
you need to match the keywords 100% and then also drop your salary expectations down to as close to £0 as possible | |||
>_> | |||
and while you're at it possibly offer to do sexual favours to the hiring manager i guess | 20:56 | ||
can't hurt | |||
sigh | |||
also what's a long temr gig | |||
erry laughs at tech redundancies every year | |||
having said that i'm a job hopper | 20:57 | ||
:D | |||
antononcube | @erry Yeah. IT job ads like "Looking for 21-26 year old code barista with long, shaved legs." might become common. | 20:58 | |
erry | i have to shave my legs? | ||
god damn it | |||
antononcube | Maybe, depends on the country or state.. | 20:59 | |
erry | the lenghts i have to go to to get a jo | ||
b | |||
antononcube | BTW, data science jobs also shrunk. | 21:00 | |
erry | fub | 21:01 | |
fun | |||
i wanna start applying for jobs maybe next month | |||
or in | 21:02 | ||
a bit more than tha | |||
my life is all up in the air right now | |||
antononcube | @erry I am curious now -- do you use Jupyter? Or you reacted to some other LLM-related flowchart... | ||
erry | disbot1: no the flowchart in the llm thing | ||
i've used jupyter a bit but really i've not studied data analysis as much as maybe i should | 21:03 | ||
i think it's a skill i need to have | |||
we used DBT cloud a bit in my last gig | |||
unfortunately just for 1 year before i got laid off | |||
:( | |||
i would have stayed there longer | |||
instead of the job i ended up doing right after it | |||
that's been uh, something | 21:04 | ||
antononcube | Hmmm... I have not heard of "dbt Cloud" before -- had to look it up. | 21:05 | |
erry | they call it 'ai' now | ||
wasn't the case when i used it | |||
just data analysis | |||
antononcube | I see. | ||
erry | i wish i could keep getting jobs by word of mouth | 21:06 | |
when that happens i barely need an interview process | |||
makes it much more pleasant | |||
but normal application is like, upload CV, hope the ATS doesn't just auto reject you because you wrote 'nodejs' instead of 'node.js', message the hiring manager to show your appreciation for his talents, have first interview with some guy who has no idea what python or node even are, do a take home test which you have to narrate, have a STAR interview in a 5 person panel, do a live coding exercise, do a live architecture exercise, talk to the CEO.... | 21:08 | ||
then you get a job offer that 's like £10k below market value and you get a 6 month probation period | |||
like that's long enough! if you get 6 whiole months that you can just get rid of me without any notice, why do you even need that ridiculous interview process | 21:09 | ||
just hire me and fire me if i can't do the job | |||
antononcube | There was recently a Vampire joke about interviewing with panel... | ||
erry | i saw a job ad where they wanted to say 12-13 years of experience (as if that's not long enough already) but the - got eaten so it required 1213 years of experience | 21:10 | |
i posted on linkedin like "any vampires in my network interested in this job?" | |||
antononcube | > Interview with the Vampire > Technical screen with the Vampire > Leetcode with the Vampire > 2nd Round Interview with the Vampire > 3rd Round Interview with the Vampire > Zoom Whole-Team Interview with the Vampire > Executive Interview with the Vampire > After careful consideration, we decided weāre not moving ahead with your application, but weāll keep your name in mind for future positions with the Vampire. | 21:11 | |
erry | LMAOOO | ||
ow | 21:12 | ||
that hurts | |||
antononcube | Shouldn't it be "LMVAO" ?! | ||
erry | :) | ||
I wonder if I should just buy a derelict house in japan and rennovate it and turn it into an airbnb | |||
and live off that | |||
idk anything but this :'( | |||
antononcube | With vampire services or without? (That Japanese house.) | 21:13 | |
erry | yeah sure why not | 21:14 | |
it'll be a japanese vampire | |||
21:14
dg left
|
|||
erry | TIL åøč”鬼 | 21:14 | |
antononcube | Right "blood demon". | 21:16 | |
21:19
yewscion joined
21:25
yewscion left
21:26
yewscion joined
21:31
yewscion left
|
|||
librasteve | Leetcode with the Vampire - XDD | 21:41 | |
japhb | I've had interviews that felt like my life was being sucked out through my neck, so ... can confirm? | 21:52 | |
21:52
yewscion joined
|
|||
japhb | Worst interview group though is the one where you realize that the person interviewing you doesn't actually know what they would need to in order to assess your answers. And that person is the hiring manager. | 21:54 | |
21:57
yewscion left
|
|||
antononcube | šÆ | 21:58 | |
21:58
yewscion joined
|
|||
tbrowder | if i use experimental :rakuast in a prog, how do i interrogate the equivalent of $=pod6? our docs have a lot on RakuAST and rakudoc v2, but no direct help for a user that i can see. there is a ārenderā method out there, in the ether, but its description is hard to deal with for meāway too much http involved. | 21:59 | |
timo | just "use experimental :rakuast" doesn't switch the parser used for your code over yet, you need that env var for it | 22:02 | |
RAKUDO_RAKUAST=1 | |||
tbrowder | ah, i forgot | ||
22:03
yewscion left
|
|||
[Coke] | $=pod gets you (in my case here) an array of Pod::Blocks | 22:05 | |
I think $=pod might always be everything, but you could a particular section if you have it named. | 22:07 | ||
22:14
bdju left
22:16
bdju joined
22:20
yewscion joined
22:30
yewscion left
|
|||
antononcube | I forgot what was "Leetcode"... | 22:34 | |
tbrowder | yeah, i can get an RakuAST::Block.new but only get empty methods so far | 22:42 | |
i mean RakuAST::Doc::Block.nee | 22:43 | ||
22:52
yewscion joined
|
|||
tbrowder | until we can get the equiv of $=pod6 inside a raku script i canāt see much utility for self documentation, but iām not a very forward thinker. | 22:53 | |
^^^ for RakuAST::Doc::*, that is | 22:54 | ||
22:57
yewscion left
22:58
yewscion joined
23:03
yewscion left
23:04
yewscion joined,
apac left
23:05
ACfromTX left
23:09
yewscion left
23:18
Aedil left
|
|||
tbrowder | but, i will keep experimenting. actually, the current docs do have info on the RakuAST::Doc::* methods i haven't seen anywhere else and the look promising for external pod files... | 23:18 | |
*they | 23:19 | ||
timo | hm. i can only get regular old instances of the Pod classes from $=pod as well as &mysub.WHY; is the rakuast doc classes maybe not meant to replace these pod classes at all? | 23:22 | |
like, the Pod:: classes are what you get out of stuff, and RakuAST::Doc is what you have to work with when you work with RakuAST directly, and then it will compile into Pod::blah instances | 23:23 | ||
23:26
yewscion joined
23:31
yewscion left
23:49
ACfromTX joined
23:59
ACfromTX left
|