Rosetta Code/List authors of task descriptions: Difference between revisions

m
(→‎{{header|Wren}}: Updated Wren script following site change - largely rewritten in fact.)
m (→‎{{header|Wren}}: Minor tidy)
 
Line 684:
 
Takes upwards of 80 minutes to run as the history page(s) for each task need to be downloaded and parsed to find the author. Worse still, given we are pounding a busy server pretty hard, there are lots of 'bad gateway' and other errors (94 on this particular run!) which necessitate adding tasks back to the task list until they are eventually downloaded and parsed successfully which can add several minutes to the overall time.
<syntaxhighlight lang="ecmascriptwren">/* rc_list_authors_of_task_descriptionsRosetta_Code_List_authors_of_task_descriptions.wren */
 
import "./pattern" for Pattern
Line 801:
<br>
We now embed this script in the following C program, build and run.
<syntaxhighlight lang="c">/* gcc rc_list_authors_of_task_descriptionsRosetta_Code_List_authors_of_task_descriptions.c -o rc_list_authors_of_task_descriptionsRosetta_Code_List_authors_of_task_descriptions -lcurl -lwren -lm */
 
#include <stdio.h>
Line 975:
WrenVM* vm = wrenNewVM(&config);
const char* module = "main";
const char* fileName = "rc_list_authors_of_task_descriptionsRosetta_Code_List_authors_of_task_descriptions.wren";
char *script = readFile(fileName);
WrenInterpretResult result = wrenInterpret(vm, module, script);
9,485

edits