Outreachy - Guix Data Service: implementing basic json output for derivation comparison page

2021-04-14 Thread Luciana Lima Brito
Hi, I implemented a basic json output for the derivation comparison page, for my first contribution as an Outreachy applicant. The patch for the code I've changed is attached. I'm waiting your reviews :) -- Best Regards, Luciana Lima Brito MSc. in Computer Science diff --git a

Re: Outreachy - Guix Data Service: implementing basic json output for derivation comparison page

2021-04-15 Thread Luciana Lima Brito
on. > I'm not sure what revision here referrs to. It was a placeholder, but now I removed it. > I hope that helps, just let me know if you have any questions, The function get-derivation-data does not depend on anything, don't you think it goes better in another place outside re

Re: Outreachy - Guix Data Service: implementing basic json output for derivation comparison page

2021-04-16 Thread Luciana Lima Brito
output. Also, I think that sometimes you might have more than one output for base, target like it does for common, and I fail to see how your example function addresses this. In short, I couldn't see the benefit of this over calling the function three times. Is it for organizational purpose or am I simply wrong? This time I'm just not understanding. :) -- Best Regards, Luciana Lima Brito MSc. in Computer Science

Re: Outreachy - Guix Data Service: implementing basic json output for derivation comparison page

2021-04-16 Thread Luciana Lima Brito
ased on the html code. However this outputs me something like: (("base" derivation output) ("target" derivation output) ("common" derivation output) ...) where "..." are lots of different ("common" derivation output) lists. The only way I could think of showing this, was transforming it to a vector, which gives us the indexes from 0, and inside each one we would have the label showing where it came from. Is that the way you think it is better? (is this what your proposed function should accomplish?) I think the above output produces a bit less clean json, that is why I changed this function to the last one I sent you, so I don't need to pass any labels, because if I pass the base, target, and common lists separately the output is already correct and we don't need any vectors. -- Best Regards, Luciana Lima Brito MSc. in Computer Science

Re: Outreachy - Guix Data Service: implementing basic json output for derivation comparison page

2021-04-16 Thread Luciana Lima Brito
earning a great deal! :) -- Best Regards, Luciana Lima Brito MSc. in Computer Science Federal University of Uberlândia >From b51dd007180e69f7da479a857afd48dfa60e32e7 Mon Sep 17 00:00:00 2001 From: Luciana Brito Date: Sun, 11 Apr 2021 11:06:06 -0300 Subject: [PATCH] Implement basic jso

Re: Outreachy - Guix Data Service: implementing basic json output for derivation comparison page

2021-04-17 Thread Luciana Lima Brito
ch more sense to me. I simplified this part of getting properly the values from matched-outputs, matched-inputs and matched-sources. -- Best Regards, Luciana Lima Brito MSc. in Computer Science >From 8d91269ead953c7d087242fbce5857af89af3025 Mon Sep 17 00:00:00 2001 From: Luciana Brito Date

Re: Outreachy - Guix Data Service: implementing basic json output for derivation comparison page

2021-04-17 Thread Luciana Lima Brito
e where the > binding is used. Done! :) I even simplified some other stuff, based on what you said. -- Best Regards, Luciana Lima Brito MSc. in Computer Science >From 701c89e8f039a6bc7d9b616acded54eac26fb0a7 Mon Sep 17 00:00:00 2001 From: Luciana Brito Date: Sun, 11 Apr 2021 11:06:06 -0

Re: Outreachy - Guix Data Service: implementing basic json output for derivation comparison page

2021-04-18 Thread Luciana Lima Brito
arguments grouping, I think this makes sense on the > HTML page, as they're connected, but does it make sense in the JSON? indeed, I separated them. > I think you're getting close to something that's ready to merge > though. One last thing, I see that on the

Re: Outreachy - Guix Data Service: implementing basic json output for derivation comparison page

2021-04-18 Thread Luciana Lima Brito
On Sun, 18 Apr 2021 13:12:07 + Luciana Lima Brito wrote: > Hi, > > On Sat, 17 Apr 2021 18:45:14 +0100 > Christopher Baines wrote: > > > Some more things to think about: > > > > - Variable naming, what does the "matched" in matched outputs mea

Re: Outreachy - Guix Data Service: implementing basic json output for derivation comparison page

2021-04-18 Thread Luciana Lima Brito
ces, I'd map over the arguments alist and transform it to the way > you want it to be. This part was a bit more complicated for me to understand. You mean I should build a function similar to outputs, inputs and sources to map the arguments, wouldn't it be a lot just to show a vector

Re: Outreachy - Guix Data Service: implementing basic json output for derivation comparison page

2021-04-19 Thread Luciana Lima Brito
One different thing I noticed: > > ,@(if (not (string? hash-alg)) > '() > `((hash-algorithm . ,hash-alg))) > > I'd suggest simplifying this by flipping the different parts of the > if, and removing the not. Done. -- Best Regards, Luciana Lima Brito MSc. in Compu

Re: Outreachy - Guix Data Service: implementing basic json output for derivation comparison page

2021-04-19 Thread Luciana Lima Brito
rding a contribution, > and starting to think about submitting the final application. I think I have to do something about that too. -- Best Regards, Luciana Lima Brito MSc. in Computer Science

Outreachy - Guix Data Service: questions about improving the data for derivation comparisons.

2021-04-21 Thread Luciana Lima Brito
ta on comparison.scm, and it worked properly. Is this the kind of change I should be doing? In case of a yes, which kind of improvements should I be aiming for? Furthermore, should I try to achieve any improvements to the queries itself, or this is not necessary? -- Best Regards, Luciana Lima Brito MSc. in Computer Science

Re: Outreachy - Guix Data Service: questions about improving the data for derivation comparisons.

2021-04-22 Thread Luciana Lima Brito
e slightly different. I'm not sure if this is what you want. -- Best Regards, Luciana Lima Brito MSc. in Computer Science

Re: Outreachy - Guix Data Service: questions about improving the data for derivation comparisons.

2021-04-22 Thread Luciana Lima Brito
s the way to go, but I can make some experiments in this regard. -- Best Regards, Luciana Lima Brito MSc. in Computer Science

Re: Outreachy - Guix Data Service: questions about improving the data for derivation comparisons.

2021-04-23 Thread Luciana Lima Brito
rst method I mentioned. And then, I would have the following alist: ((base (...)) (target (...)) (common ((...)(...)(... which is the current alist we are using in controller.scm. Problem is, I still don't know how to do this, and this seems somewhat too long winded to get the proper alist. -- Best Regards, Luciana Lima Brito MSc. in Computer Science

Re: Outreachy - Guix Data Service: questions about improving the data for derivation comparisons.

2021-04-25 Thread Luciana Lima Brito
p and match-lambda code to process them, wouldn't it be reasonable now to make it a local function? I'm sending the patch. I'll be waiting your reviews. -- Best Regards, Luciana Lima Brito MSc. in Computer Science >From d605d519a684b1be57ebd09cdf697bcdba017da1 Mon Sep 17 00:00:0

Re: Outreachy - Guix Data Service: questions about improving the data for derivation comparisons.

2021-04-26 Thread Luciana Lima Brito
uld be less clean and "arguments" would appear in a different order. What I did was bind the result of a function similar to this in the let. Well, this way made things much shorter. I'm sending a new patch for you to review. -- Best Regards, Luciana Lima Brito MSc. in Computer

Re: Outreachy - Guix Data Service: questions about improving the data for derivation comparisons.

2021-04-27 Thread Luciana Lima Brito
d a comment explaining its use. The main point here is, the code is working and it looks nice, but to get the data with the vectors seems to be right too. I'm sending the new patch for your review and I'll wait for your call, if you think I should try the first route or not. -- Best Re

Re: Outreachy - Guix Data Service: questions about improving the data for derivation comparisons.

2021-04-27 Thread Luciana Lima Brito
On Tue, 27 Apr 2021 13:10:01 + Luciana Lima Brito wrote: > > Maybe add another procedure that combines group-to-alist but > > generates an alist with vectors as the values? > > (group-to-alist/vector maybe). I did it! :) It was so much simpler. I created a function gro

Re: Outreachy - Guix Data Service: questions about improving the data for derivation comparisons.

2021-04-27 Thread Luciana Lima Brito
On Tue, 27 Apr 2021 19:42:13 +0100 Christopher Baines wrote: > I'd go with this approach, applying the comments I made about the > match-lambda bit above in the email I sent a few minutes ago. I applied all you instructed me. See if it looks better now. -- Best Regards, Luciana

Re: Outreachy - Guix Data Service: questions about improving the data for derivation comparisons.

2021-04-27 Thread Luciana Lima Brito
ill finish at each step". another thing, what I should be doing now for my next contribution? I'll be waiting for your directions. -- Best Regards, Luciana Lima Brito MSc. in Computer Science

Outreachy: Timeline tasks

2021-04-28 Thread Luciana Lima Brito
know what exactly is to be improved? But I imagine that work on this second task is more demanding than the first and will take most of the time of the internship. I appreciate if you could clarify some of these ideas I mentioned. -- Best Regards, Luciana Lima Brito MSc. in Computer Science

Re: Outreachy: Timeline tasks

2021-04-28 Thread Luciana Lima Brito
for improvement are. Maybe have a look through one of the job logs on > data.guix.gnu.org and see if you can spot some slow parts? I'll look into that and get back to you. -- Best Regards, Luciana Lima Brito MSc. in Computer Science

Re: Outreachy: Timeline tasks

2021-04-30 Thread Luciana Lima Brito
you think about that. -- Best Regards, Luciana Lima Brito MSc. in Computer Science

Re: Outreachy: Timeline tasks

2021-04-30 Thread Luciana Lima Brito
so it is harder to get the names of the actions and the time taken by each, so I think that create a new table, with only these values, is more suitable. > > Great, this is more like it. :) -- Best Regards, Luciana Lima Brito MSc. in Computer Science

Re: Outreachy: Timeline tasks

2021-05-01 Thread Luciana Lima Brito
s could be applied to both charts in order to make clear the equivalence. Both charts should appear at the same time, one above the other, to ease comparison. > Great, this is a good amount of detail. I'll add this to the plan and to the final application, ok? -- Best Regards, Luciana Lima Brito MSc. in Computer Science

Re: Outreachy: Timeline tasks

2021-05-01 Thread Luciana Lima Brito
On Sat, 01 May 2021 20:07:56 +0100 Christopher Baines wrote: > Luciana Lima Brito writes: > > > On Sat, 01 May 2021 09:16:08 +0100 > > Christopher Baines wrote: > > > >> Currently the timing of various sections of the process includes > >> timing

Re: Outreachy: Timeline tasks

2021-05-03 Thread Luciana Lima Brito
od time for some new task? :) -- Best Regards, Luciana Lima Brito MSc. in Computer Science