conversations listlengths 2 3 | source stringclasses 1
value | stack stringclasses 1
value |
|---|---|---|
[
{
"from": "system",
"value": "Revert \"Temporarily workaround a .push bug in the js backend.\"\n\nThis reverts commit 485c2803c422c7246c1113689566ca06845aa9b9.\n"
},
{
"from": "human",
"value": "my $test_counter := 0;\nmy $todo_upto_test_num := 0;\nmy $todo_reason := '';\n\nsub plan... | perl6 | chosen |
[
{
"from": "system",
"value": "Make `mro` method fully transparent\n\nPass named parameters to base class `.^mro`\n"
},
{
"from": "human",
"value": "# Implemented by meta-objects that don't do inheritance per se,\n# but want to base themselves on another type and mostly behave\n# like they suppor... | perl6 | chosen |
[
{
"from": "system",
"value": "Revert \"Fix another MOP-related StrLexRef serialization bug\"\n\nThis reverts commit 9b181a700e51c26802dce8b48ef2d234c303eb66 as that change\nbreaks Inline::Perl5\n"
},
{
"from": "human",
"value": "role Perl6::Metamodel::Naming {\n has $!name;\n has $!shortna... | perl6 | chosen |
[
{
"from": "system",
"value": "Adjust paths to the new location of the helper library.\n"
},
{
"from": "human",
"value": "# Purpose: Use Parrot's config info to configure our Makefile.\n#\n# Usage:\n# parrot_nqp Configure.nqp\n\nour @ARGS;\nour %VM;\nour $OS;\n\nMAIN();\n\nsub MAIN () {\n ... | perl6 | chosen |
[
{
"from": "human",
"value": "Add tools to generate code from Scintilla.iface\n"
},
{
"from": "gpt",
"value": "#!/usr/bin/env perl6\n\nuse v6;\n\nmy $file-name = \"src/scintilla/include/Scintilla.iface\";\nfor $file-name.IO.lines -> $line {\n #say $line;\n \n if $line ~~ m{ ^ 'enu' \\s+ ... | perl6 | chosen |
[
{
"from": "system",
"value": "Use more compact .IO.watch approach\n"
},
{
"from": "human",
"value": "multi sub MAIN('watch') {\n unless '.git/HEAD'.IO.e {\n note \"Can only use inter-commit in a Git repository\";\n exit(1);\n }\n\n mkdir '.inter-commit';\n\n react {\n ... | perl6 | chosen |
[
{
"from": "human",
"value": "Add Electron downloader... still alpha\n"
},
{
"from": "gpt",
"value": "#!/usr/bin/env perl6\nuse v6;\n\nuse LWP::Simple;\n\nmy $release = 'electron-v0.30.1';\nmy %releases = (\n 'MSWin32_32' => 'win32-ia32.zip',\n 'MSWin32_64' => 'win32-x64.zip',\n #'-darwin-x6... | perl6 | chosen |
[
{
"from": "system",
"value": "Fix bug in interactive mode introduced by @*ARGS changes.\n"
},
{
"from": "human",
"value": "use NQPP6Regex;\nuse QRegex;\n\nclass Perl6::Compiler is HLL::Compiler {\n method command_eval(*@args, *%options) {\n my $hll_ns := pir::get_root_global__Ps('perl6... | perl6 | chosen |
[
{
"from": "human",
"value": "Add an example of using HTTP::Server::Async\n"
},
{
"from": "gpt",
"value": "#!/usr/bin/env perl6\n\nuse v6;\n\nuse lib 'lib';\n\n# Hello world from HTTP::Server::Async\nuse HTTP::Server::Async;\nmy $server = HTTP::Server::Async.new(:port(3000));\n$server.register(su... | perl6 | chosen |
[
{
"from": "system",
"value": "Switch element to rule to properly handle ws.\n"
},
{
"from": "human",
"value": "grammar XML::Grammar;\n\nrule TOP {\n ^\n <xmldecl>? [ <comment> | <pi> ]*\n <doctypedecl>? [ <comment> | <pi> ]*\n <root=element> [ <comment> | <pi> ]*\n $\n}\n\nregex comm... | perl6 | chosen |
[
{
"from": "system",
"value": "Add simple grammar to move tests into datafiles.\n"
},
{
"from": "human",
"value": "# nqp\n\n# This file compiled to pir and used in tests.\n\nQ:PIR{\n # We want Test::More features for testing. Not NQP's builtin.\n .include \"test_more.pir\"\n load_bytecod... | perl6 | chosen |
[
{
"from": "human",
"value": "Add libzip proof of concept\n"
},
{
"from": "gpt",
"value": "\n\n#!/usr/bin/env perl6\n\nuse v6;\n\nuse NativeCall;\n\nconstant LIB = 'libzip.so';\n\n#define ZIP_CREATE 1\n#define ZIP_EXCL 2\n#define ZIP_CHECKCONS 4\n\n# Create the archiv... | perl6 | chosen |
[
{
"from": "system",
"value": "Remove the Promise, as it just caused problems with Git::Wrapper.\n"
},
{
"from": "human",
"value": "\nuse Hiker::Model;\nuse Git::Wrapper;\nuse Config::From 'repos.json';\n\n#Update one of the git repos.\nclass Model::Update does Hiker::Model {\n method bind($re... | perl6 | chosen |
[
{
"from": "system",
"value": "Copy over crossover from the library\n"
},
{
"from": "human",
"value": "#!/usr/bin/env perl6\n\nmy Int $len = 16;\nmy $maxlen = 32768;\nmy $how-many =100000;\nwhile $len <= $maxlen {\n my $start = now;\n my @range = (0..$len-1);\t\n for 1..$how-many {\n ... | perl6 | chosen |
[
{
"from": "system",
"value": "Add Host header to HTTP request\n\nOtherwise it is Bad request."
},
{
"from": "human",
"value": "#!/usr/bin/env perl6\n\nuse v6;\n\n=begin pod\n\n=TITLE Writing a TCP Client\n\n=AUTHOR stmuk\n\nYou want to connect to a socket on a remote host\n\n=end pod\n\nmy $s = ... | perl6 | chosen |
[
{
"from": "system",
"value": "[js] Add browser to the list of know DISTRO and KERNEL names\n"
},
{
"from": "human",
"value": "class Perl does Systemic {\n has Compiler $.compiler;\n\n submethod BUILD(\n :$!name = 'Perl 6',\n :$!auth = \"The Perl Foundation\",\n :$!... | perl6 | chosen |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.