🦋 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 reportable6 left 00:03 reportable6 joined 01:03 reportable6 left, greppable6 left, bloatable6 left, squashable6 left, linkable6 left, sourceable6 left, shareable6 left, coverable6 left, statisfiable6 left, nativecallable6 left, releasable6 left, unicodable6 left, evalable6 left, quotable6 left, bisectable6 left, committable6 left, committable6 joined, quotable6 joined, linkable6 joined, sourceable6 joined, nativecallable6 joined, squashable6 joined, releasable6 joined 01:04 xinming left, bisectable6 joined 01:05 coverable6 joined, unicodable6 joined, statisfiable6 joined, evalable6 joined, shareable6 joined, reportable6 joined 01:06 greppable6 joined, bloatable6 joined, xinming joined 01:29 squashable6 left 01:32 squashable6 joined 02:17 tea3po joined 02:18 tea3po left 02:19 tea3po joined 02:20 tea3po left, tea3po joined, teatwo left 02:22 tea3po left, tea3po joined
uzl[m] I started playing around with parsing a binary file format (i.e., DBF III w/o memo file) with Raku, and well it ended up turning into an article. Since I've a bunch of code snippets in it, I figured it made sense to make the whole thing a module/program the reader could tinker with so that's what I'm doing. However I'm... (full message at <libera.ems.host/_matrix/media/v3/d...9ae9e>) 02:28
02:47 frost joined 03:06 frost left 03:46 rf left 04:46 evalable6 left, nativecallable6 left, statisfiable6 left, linkable6 left, notable6 left, greppable6 left, coverable6 left, sourceable6 left, benchable6 left, bisectable6 left, releasable6 left, quotable6 left, committable6 left, unicodable6 left, tellable6 left, shareable6 left, evalable6 joined, quotable6 joined, notable6 joined, sourceable6 joined, coverable6 joined, unicodable6 joined 04:47 statisfiable6 joined, committable6 joined, linkable6 joined, bisectable6 joined, greppable6 joined 04:48 tellable6 joined, benchable6 joined, nativecallable6 joined, shareable6 joined 04:49 releasable6 joined 05:49 bloatable6 left, nativecallable6 left, notable6 left, coverable6 left, unicodable6 left, quotable6 left, committable6 left, statisfiable6 left, sourceable6 left, squashable6 left, reportable6 left, linkable6 left, benchable6 left, evalable6 left, greppable6 left, tellable6 left, bisectable6 left, shareable6 left, releasable6 left, bisectable6 joined, quotable6 joined 05:50 committable6 joined, reportable6 joined, coverable6 joined, evalable6 joined, shareable6 joined, squashable6 joined 05:51 releasable6 joined, linkable6 joined, benchable6 joined, nativecallable6 joined, bloatable6 joined, sourceable6 joined, greppable6 joined, tellable6 joined 05:52 unicodable6 joined, statisfiable6 joined, notable6 joined 06:00 reportable6 left 06:01 reportable6 joined 06:27 jast left 06:28 jast joined 06:29 bpalmer` joined, camelia left, leont left, SmokeMachine left, leedo left, SmokeMachine joined, leedo joined, phogg left 06:31 bpalmer left, heartburn left, jcallen left, Altreus left, moritz left, jcallen joined 06:32 moritz joined, phogg joined, heartburn joined 06:34 jpn left 06:41 lucs left, lucs joined 06:44 leont joined, Altreus joined 06:59 jpn joined 07:03 jpn left 07:08 squashable6 left 07:09 squashable6 joined, abraxxa joined 07:24 ab5tract left 07:36 ab5tract joined 07:40 Sgeo left 07:47 sena_kun joined 07:49 ab5tract left 07:53 camelia joined 07:57 dakkar joined 07:58 Tirifto left 08:00 jpn joined, frost92 joined 08:01 Tirifto joined 08:04 jpn left 08:09 jpn joined 08:10 frost92 left 08:14 jpn left 08:34 ab5tract joined 08:35 frost98 joined 08:36 jpn joined 08:37 frost98 left 08:48 abraxxa left 08:49 frost3 joined 09:02 ab5tract left 09:11 frost3 left 09:29 phogg left, phogg joined 09:45 abraxxa joined 10:17 derpydoo left 10:21 jpn left 10:23 jpn joined
tbrowder__ uzl[m]: i couldn't get the link, but i am interested in binary parsing, esp. for getting 11:30
* 11:31
access to common Windows output files. David Warring has large coverage of PDF, but there are other things to look at. 11:33
i guess PDF is not quite binary... 11:34
11:44 linkable6 left, evalable6 left 11:45 evalable6 joined 11:46 linkable6 joined 12:00 reportable6 left 12:01 reportable6 joined 12:14 jpn left 12:34 jpn joined 12:39 jpn left
moritz
.oO( ternary PDF )
13:40
13:41 jpn joined 14:17 teatwo joined, teatwo left 14:18 teatwo joined 14:19 tea3po left
Voldenet iirc pdf can be mostly plaintext 14:32
14:35 Sgeo joined
Voldenet but most pdfs use compressed streams 14:35
tbrowder__ ternary, good description 14:49
moritz: you and jj and some of the other published authors ought to join forces and publish a short book on beginning programming in raku for youngsters to compete with the similar books using (cough, cough) python 14:53
get them started young and see what happens 14:54
15:15 guifa joined 15:16 guifa_ left
lizmat and yet another Rakudo Weekly News hits the Net: rakudoweekly.blog/2023/05/15/2023-20-so-survey/ 15:40
15:53 saint- joined
moritz tbrowder__: I don't really have energy for writing atm :-( 15:56
nor do I feel I'm doing a good job explaining things to beginners
Nemokosch there was zero interest in at least compiling the existing materials into an accessible maintained list, even 16:00
16:02 abraxxa left 16:27 gkqha joined, gkqha left 16:30 jmcgnh left 16:33 bpalmer` is now known as bpalmer 16:38 euandreh left
tonyo rf: is it possible to swap out the backend server in hummingbird? would you prefer a PR if i go down that route? 16:38
tellable6 tonyo, I'll pass your message to rf
16:44 jmcgnh joined, dakkar left 16:48 euandreh joined 16:57 bpalmer left 17:18 jpn left 17:31 jpn joined 17:47 Sgeo left 17:58 jpn left 18:00 reportable6 left 18:02 reportable6 joined 18:15 euandreh left, euandreh joined 18:39 jpn joined 18:46 rf joined 19:11 Sgeo joined 19:23 jpn left 19:27 rf_ joined 19:28 rf left 19:39 heartburn left 19:47 heartburn joined
tbrowder__ moritz: i understand, take care 19:48
Voldenet tonyo: iirc hummingbird is supposed to be exposed via reverse proxy in that case 19:49
not that it's technically impossible to write alternative Request.decode method even using native call 19:54
20:25 rf_ left, rf joined
rf tonyo: Yes I would be interested in a PR if you'd be up to it :) 20:26
tellable6 2023-05-15T16:38:53Z #raku <tonyo> rf: is it possible to swap out the backend server in hummingbird? would you prefer a PR if i go down that route?
rf That was something I was debating about, I think it is valuable. At the moment the backend is fairly simple/naive
I designed request, response like that on purpose to potentially allow for this later, but since I couldn't find a Plack/Rack style library I just rolled it myself. 20:29
tonyo the way this is designed is very choice. my routes read a lot like fp that just _does the right thing_ 20:44
Voldenet: mostly interested in a non-single threaded option, an nginx proxy is OK
rf tonyo++ Excited to see what you come up with 20:45
tonyo can you expose the query string params list somewhere? looks like it exists for headers and params but not for query() 20:46
rf Yeah I ran into that yesterday, I'll put it in 20:47
tonyo: Pull down 2.1.5 20:53
21:06 Tirifto left 21:09 Tirifto joined 21:20 jpn joined 21:25 jpn left 21:27 patrickb left, patrickb joined 21:28 archenoth joined 21:29 Oshawott left 21:30 rf left 21:53 squashable6 left 21:54 sena_kun left 21:56 squashable6 joined
uzl[m] tbrowder__: Do you mean my github gist link? It should be accessible to any one who has the link 22:02
I'm using element/matrix to connect the the libera channel and after looking at the logs, it seems most of my message got cut off lol 22:06
I started playing around with parsing a binary file format (i.e., DBF III w/o memo file) with Raku, and well it ended up turning into an article. Since I've a bunch of code snippets in it, I figured it made sense to make the whole thing a module/program the reader could tinker with so that's what I'm doing. 22:07
However I'm trying to make sure if this layout makes sense.
Right now, I've a Header class that represents the header. Within the header, there's a subsection called the field array descriptor which contains an array of fields but I moved that to its own Fields class.
Then I've the DBF class which is the entry point: it creates a handle from the path in :r and :bin mode, and then passes it to Header and Fields objects (the file pointer is being moved so the order matters). 22:08
Next would be reading the records.
Anyways... I know TMTOWTDI but I'm wondering if this code layout makes sense (please tag me if you respond to this, otherwise I might lose track of it).
LINK: gist.github.com/uzluisf/d732072075...dde1db71b3
gfldex: What does "ENODOC" mean? Iguess it means not documented but first coming across that term/acronym 😅 22:16
*first time 22:17
tbrowder__: ref book for beginners: I think Rosenfeld's "Think in Raku" does quite a nice job at that, or do you mean something more basic than that? 22:20
[Coke] Error, NO DOC umentation 22:24
e.g. www.gnu.org/software/libc/manual/h...Codes.html 22:25
ENOENT, ENOEXEC, ENODEV, ENOSPC, etc. 22:26
uzl[m] Thanks!!! Quite the list :)
22:28 rf joined 23:08 explorer joined 23:23 explorer left 23:26 rf left
tbrowder__ uzl[m]: ref the first link it didn't work for me, safari reported something about unable to get a secure connection...the last link did 23:43
ref book: much more basic. jmerelo's book '' is a fairly 23:45
good start for high school and older, but maybe not for most middle school kids. 23:46
tonyo rf++ danke! 23:52
uzl[m] tbrowder__: Probably something like "Python for Kids" (nostarch.com/python-kids-2nd-edition). I gotta admit it might've been the first book I read, even though I was already in highschool haha. I don't remember finishing it though 23:58