Welcome to the main channel on the development of MoarVM, a virtual machine for NQP and Rakudo (moarvm.org). This channel is being logged for historical purposes.
Set by lizmat on 24 May 2021.
00:08 reportable6 left 00:09 reportable6 joined 00:42 epony joined 01:13 Kaiepi joined 01:22 discord-raku-bot left, discord-raku-bot joined 01:27 vrurg_ joined 01:30 vrurg left 02:30 linkable6 left, evalable6 left 02:31 linkable6 joined 02:32 evalable6 joined 03:53 Kaiepi left 04:06 Techcable left 05:31 Voldenet_ joined 05:32 Voldenet left, Voldenet_ is now known as Voldenet 06:06 reportable6 left 06:08 reportable6 joined 07:56 linkable6 left, nativecallable6 left, evalable6 left, committable6 left, sourceable6 left, unicodable6 left, coverable6 left, bloatable6 left, shareable6 left, releasable6 left, tellable6 left, benchable6 left, quotable6 left, reportable6 left, bisectable6 left, notable6 left, greppable6 left, statisfiable6 left, squashable6 left, shareable6 joined, benchable6 joined, statisfiable6 joined, bisectable6 joined 07:57 tellable6 joined, greppable6 joined, sourceable6 joined 07:58 releasable6 joined, bloatable6 joined, unicodable6 joined, committable6 joined, nativecallable6 joined, notable6 joined, reportable6 joined, coverable6 joined 07:59 evalable6 joined, squashable6 joined, quotable6 joined, linkable6 joined 08:20 Kaiepi joined
nine jnthn: is there a plan for how to get file name and line number information into files compiled from RakuAST? I kinda miss that when debugging things... 09:54
10:33 sena_kun joined 11:33 linkable6 left, evalable6 left, linkable6 joined 11:35 evalable6 joined 12:06 reportable6 left 12:07 reportable6 joined 12:26 squashable6 left 12:28 squashable6 joined 13:12 Techcable joined 13:24 Kaiepi left 13:40 Kaiepi joined 13:56 sena_kun left 13:57 sena_kun joined
jnthn nine: Yes, my idea was that every RakuAST node carries a signed integer that is the char offset of the element in "normal" mode, but if there is more detailed match info to attach (for example, if we want to provide a parse mode that gives the exact extends of everything) negative integers are used, and negated and used as a lookup in a table, perhaps attached to the comp unit. 14:06
The same table approach would also be used for macros, where the AST instantiated from the quasi might correspond to source from another file 14:07
nine: For passing it on to the QAST, I think it'd work a lot like today: resolve the char offset into a line number and attach it for each statement
The existing char offset to line conversinon thing somewhere in NQP can presumably be reused, along with its caching 14:08
Ah, and also: I figured the char offset would be attached in the `attach` method: github.com/rakudo/rakudo/blob/46d8...ns.nqp#L22 14:10
nine And that would call a new set-char-offset (or the like) method on RakuAST::Node, so we don't have to adjust all the constructors? 14:25
jnthn Yes, something like that 15:04
nine jnthn: don't remember if I've asked this before, but have you actually ever looked at my rakuast commits? 16:15
18:07 reportable6 left, reportable6 joined 18:33 MasterDuke left 19:50 vrurg_ is now known as vrurg 22:34 sena_kun left 23:15 linkable6 left 23:18 linkable6 joined 23:54 linkable6 left 23:57 linkable6 joined