🦋 Welcome to the MAIN() IRC channel of the Raku Programming Language (raku.org). This channel is logged for the purpose of keeping a history about its development | evalbot usage: 'm: say 3;' or /msg camelia m: ... | 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 8 June 2022.
00:02 jaguart left 00:06 reportable6 left 00:09 reportable6 joined 00:26 frost joined 01:26 greppable6 left, evalable6 left, bloatable6 left, benchable6 left, linkable6 left, reportable6 left, shareable6 left, sourceable6 left, nativecallable6 left, notable6 left, coverable6 left, unicodable6 left, committable6 left, releasable6 left, quotable6 left, tellable6 left, bisectable6 left, statisfiable6 left 01:27 unicodable6 joined, tellable6 joined, bloatable6 joined, statisfiable6 joined, quotable6 joined 01:28 nativecallable6 joined, committable6 joined, evalable6 joined, sourceable6 joined, greppable6 joined, benchable6 joined 01:29 shareable6 joined, linkable6 joined, coverable6 joined, releasable6 joined, notable6 joined, reportable6 joined, bisectable6 joined 02:08 xinming left 02:10 xinming joined 03:10 statisfiable6 left, releasable6 left, quotable6 left, sourceable6 left, committable6 left, bisectable6 left, unicodable6 left, evalable6 left, linkable6 left, tellable6 left, greppable6 left, shareable6 left, benchable6 left, bloatable6 left, reportable6 left, nativecallable6 left, notable6 left, coverable6 left, benchable6 joined, statisfiable6 joined, nativecallable6 joined, evalable6 joined, coverable6 joined, bisectable6 joined, releasable6 joined, notable6 joined 03:11 bloatable6 joined, quotable6 joined 03:12 shareable6 joined, linkable6 joined, sourceable6 joined, tellable6 joined, unicodable6 joined, greppable6 joined, committable6 joined 03:13 reportable6 joined 03:28 kaskal- joined, kaskal left 04:28 bloatable6 left, releasable6 left, tellable6 left, benchable6 left, statisfiable6 left, committable6 left, reportable6 left, nativecallable6 left, coverable6 left, notable6 left, greppable6 left, sourceable6 left, bisectable6 left, linkable6 left, unicodable6 left, shareable6 left, evalable6 left, quotable6 left 04:29 reportable6 joined, coverable6 joined, shareable6 joined 04:30 benchable6 joined, bloatable6 joined, tellable6 joined, quotable6 joined, statisfiable6 joined, committable6 joined, nativecallable6 joined, sourceable6 joined 04:31 notable6 joined, releasable6 joined, unicodable6 joined, greppable6 joined 04:32 linkable6 joined, evalable6 joined, bisectable6 joined 05:32 statisfiable6 left, evalable6 left, releasable6 left, reportable6 left, greppable6 left, quotable6 left, bisectable6 left, notable6 left, committable6 left, sourceable6 left, bloatable6 left, linkable6 left, coverable6 left, benchable6 left, shareable6 left, tellable6 left, nativecallable6 left, unicodable6 left, benchable6 joined, shareable6 joined, coverable6 joined, nativecallable6 joined 05:33 notable6 joined, statisfiable6 joined, committable6 joined, sourceable6 joined, quotable6 joined 05:34 unicodable6 joined, evalable6 joined, reportable6 joined, releasable6 joined, linkable6 joined, bisectable6 joined, bloatable6 joined, tellable6 joined 05:35 greppable6 joined 06:07 reportable6 left 06:08 silug left 06:09 silug joined 06:10 reportable6 joined 06:32 abraxxa joined 06:34 Xliff joined 06:38 abraxxa left 06:39 abraxxa joined 06:52 guifa left 06:57 silug left, silug joined 07:16 Sgeo left 07:47 stevied left 07:57 sena_kun joined 08:00 dakkar joined
Nemokosch an online friend says "Raku is a write-only language" and I ask myself: what did I do wrong? 😅 08:15
I guess a lot of people really don't like this "APL style" as Voldenet called it
but I'm not gonna write 20 liners for 5 liners when all I'm doing is like string processing automation 08:17
Voldenet it's not even about number of lines btw 08:18
I used to laugh at having methods named equals() or add(), but how do I google `that unnamed symbol` 08:19
Nemokosch For me, it is about the number of lines, though 08:24
I don't optimize for "that unnamed symbol" but mistake possibilities and time wasted 08:25
09:00 linkable6 left, evalable6 left, evalable6 joined 09:03 linkable6 joined 09:04 synthmeat left 09:05 synthmeat joined
SmokeMachine Sorry for resending the same message again, but I really want some feedback about that: 09:15
I've been rethinking on how the syntax to grammar for event patterns should be. (I have no idea on how to do that yet, but...). Could someone see if any of this (github.com/FCO/EventExpressionLang...mindstorm) make sense? And if someone have any suggestion
09:37 sena_kun left 09:39 sena_kun joined 09:53 Oshawott joined 09:57 archenoth left 10:57 linkable6 left, bloatable6 left, benchable6 left, evalable6 left, tellable6 left, releasable6 left, quotable6 left, notable6 left, nativecallable6 left, bisectable6 left, sourceable6 left, reportable6 left, statisfiable6 left, coverable6 left, shareable6 left, committable6 left, greppable6 left, unicodable6 left, nativecallable6 joined, shareable6 joined, bisectable6 joined 10:58 releasable6 joined, quotable6 joined, unicodable6 joined, statisfiable6 joined, tellable6 joined, coverable6 joined 10:59 greppable6 joined, evalable6 joined, bloatable6 joined, reportable6 joined, linkable6 joined 11:00 notable6 joined, sourceable6 joined, benchable6 joined, committable6 joined 11:23 frost left 11:31 Kaipei left 11:36 frost joined 11:47 Kaipei joined 12:07 reportable6 left 12:10 reportable6 joined
stevied Unless your brain is a compiler, you don’t “read” a programming language. 12:57
You review it and then you get the gist of what it does based on major clues in the structure of the code. 12:59
12:59 Sgeo joined
Voldenet I read more code than I write 13:00
stevied Yeah but I’m saying the analogy is wrong. “Read” is a very bad metaphor. 13:01
Voldenet I read it like I'd read the book 13:04
it's not a metaphor 13:05
stevied If I have to read someone’s code like a book to figure out how to modify and change it, then it’s poorly written code. 13:09
13:25 tejr left
Nemokosch to be frank, I do write more Raku than read; this is just the nature of disposable scripts dedicated for one automational task 13:27
but regardless I don't see why someone would conclude from the particular pieces I've shown to them that it's "write only" 13:28
in fact I think it's pretty easy to read and it's just _not for modification_
13:29 tejr joined
it solves one particular task and that's that 13:29
if you cannot do it by passing the right parameters, it's just not meant for the task
13:43 dakkar left 14:35 abraxxa left
Xliff \o 14:53
15:30 Garbanzo left 15:51 toddr left
stevied anyone got an idea on this? stackoverflow.com/questions/728187...r-a-reboot 16:04
Voldenet "If I have to read someone’s code like a book to figure out how to modify and change it, then it’s poorly written code." 16:06
Actually, I read code because I want to know details on how it works usually
stevied but that's not reading. that's like looking things up in a dictionary 16:07
Voldenet dictionary is still a book though
stevied that's vocabulary building
sure, but it's not the same act as reading a magazine article. totally different objectives. 16:08
Nemokosch in very broad terms, yes
it looks like a book, let's put it this way
stevied it would be like studying a magazine article and thinking about which word choices were used and which tropes were used and why
that's not reading, that's deconstructing
now, is Raku a harder language to deconstruct? yes. it has a big vocabulary. 16:15
But it is much easier to grok what the code is doing because there's much less of it.
the implementation details are concise and compact and you don't have to worry about them (as long as they are properly tested).
if the implementation is bad, you can easily isolate the problem if the code is well-written 16:17
Nemokosch regarding vocab, I must say I'd like Raku even for the sole fact that it's not plain anglo-centric 16:19
stevied we don't say math symbols are "write once" 16:25
they are the most concise way of conveying ideas ever invented.
Nemokosch well, _we_ don't 🙂
stevied well, I do, I'm not a math guy 🙂 16:26
Nemokosch now do you or do you not? don't trip me up! 😛 16:27
stevied do I call math "write once?" no, because I know if I knew the symbols, I could read them.
Nemokosch fair enough
also, "write only" 16:29
stevied each little squiggle has a meaning. just got to practice with those meaning until they become ingrained in your brain
Nemokosch writing once is optimal, means you got it right for the first time
stevied each little squiggle has a meaning. just got to practice with those meanings until they become ingrained in your brain
then it become second nature
then it becomes second nature
Nemokosch anyway, I have the feeling that I could have shown boring pieces of code and then the same guy wouldn't have said "write only" but probably would have said "genuinely uninteresting" 16:30
like what, you have objects, you have if and for, arrays, hashes... it's easy to do this 16:31
but I couldn't show some OO monstrosity for example, since that's just not what I use Raku for
stevied any language is basically "write once" until you learn it 16:32
Nemokosch ^tbh 16:33
although some languages might stay "write once" even afterwards 😄
stevied If I looked at c++ code, I'd be totally lost. but it would be stupid for me to say "this is garbage!"
Nemokosch I cannot accept /bin/sh as a legit programming language though
Really, in an ideal world, all people would have agreed to just use Perl by 1992 16:34
stevied well, it's a scripting language with some programming constructs slowly built into it over time.
these tools evolve over time and the lines get blurrier 16:35
Nemokosch or Tcl if not Perl
I guess Tcl would still make a whole lot of sense compared to the POSIX shell
stevied like php was an html generation script
that was it
Nemokosch it took like 20 years to fix PHP 16:36
stevied but people understood it and then it took off and had a life of it's own
Nemokosch it would took an eternity to fix the POSIX shell, it's just done for
it's too late to fix it
stevied i was doing a little php programming a few months ago. painful. 16:37
Nemokosch I don't think it's all that bad these days
in fact it has grown into a quite powerful language
stevied no, but it is tedious to write
Nemokosch ... perhaps I wouldn't use it for string processing
stevied hey, anyone got any ideas on this issue: github.com/Raku/ecosystem/issues/606 16:38
16:38 morte_ joined
oops, wrong link.. hold on 16:38
hey, anyone got any ideas on this issue: github.com/Raku/ecosystem/issues/606
Nemokosch yeah
16:38 jgaz joined
stevied stackoverflow.com/questions/728187...r-a-reboot 16:38
Nemokosch some environmental variable mess? 16:39
stevied has to be, but I have no idea how to fix in comma
Nemokosch I'm in a situation where I would always bet on the environmental variables...
trying to get Oracle 19c working with Debian 9 🥴
stevied don't see any obvious setting
Nemokosch did something change about your $PATH? 16:42
if it's after reboot
a "reboot" is often what I miss
stevied no didn't touch it. everything works fine from a regular terminal window in comma
it's only when running tests
16:42 frost left
hmm, guess I'll have to echo some shell output to the screen. see if I can figure out what shell it's using 16:46
Nemokosch ez win
[Coke] (tcl) having some experience with tcl, I'm not sure it "makes sense" compared to any other language. :) 16:49
17:07 jgaz left
nine Well if your script really just consists of a long list of binaries to run with various arguments, shell is still the better language. It's when you start to do calculations or manipulating data in your script that it becomes the wrong tool for the job very quickly. 17:34
Voldenet Actually, tcl is amazing tool for configs 17:43
[Coke] oh, I love tcl, it's just kind of unlike anything else. :) 17:45
17:51 Xliff left 18:00 jgaz joined 18:07 reportable6 left 18:08 reportable6 joined 18:18 morte_ left 18:31 guifa joined 18:35 monkey_ joined 19:02 elves-upstate joined 19:24 guifa left 19:40 monkey_ left 19:41 xinming left 19:43 xinming joined 19:44 monkey_ joined 19:58 elves-upstate left 20:03 discord-raku-bot left, discord-raku-bot joined 20:08 monkey_ left 20:09 monkey_ joined 20:40 dogbert17 joined, dogbert11 left 20:50 jgaz left 20:51 guifa joined 20:53 linkable6 left 20:54 linkable6 joined
moritz TCL is an "everything is a" language, where it joins Lisp ("everything is a list") and C ("everything is undefined behavior") :D 21:09
japhb moritz: "everything is in" also applies -- Forth: "Everything is on the stack or in the dictionary" 21:22
lizmat whereas in Raku, everything is Any, except Junctions :-) 21:28
moritz everything is Mu :-) 21:31
japhb: "or" is not allowed
.oO( Rust: everything is a type error)
21:32
21:38 pierrot left 21:40 pierrot joined
japhb Haskell: Everything is a pure function. Even if that means it has to close over the observable universe. 21:45
21:48 guifa left 22:02 monkey_ left 22:19 pierrot left 22:20 pierrot joined 23:20 quotable6 left, releasable6 left, statisfiable6 left, notable6 left, reportable6 left, coverable6 left, greppable6 left, bloatable6 left, benchable6 left, sourceable6 left, bisectable6 left, linkable6 left, committable6 left, evalable6 left, tellable6 left, nativecallable6 left, unicodable6 left, shareable6 left 23:21 sourceable6 joined, benchable6 joined, releasable6 joined, bloatable6 joined, reportable6 joined 23:22 greppable6 joined, unicodable6 joined, linkable6 joined, tellable6 joined, statisfiable6 joined, quotable6 joined 23:23 bisectable6 joined, evalable6 joined, nativecallable6 joined, coverable6 joined, committable6 joined, shareable6 joined, notable6 joined