Skip to content

Instantly share code, notes, and snippets.

View ayardley's full-sized avatar

Alvis Yardley ayardley

  • Stephenville, TX
View GitHub Profile
@ayardley
ayardley / gist:2783372
Created May 24, 2012 18:38
Problem with ResizableStringArray in Winxed
NotFound,
I have been looking at different ways to detect the end of a string. For some reason, I don't understand why, the 'ResizableStringArray' below terminates prematurely. That is, the below does not work:
function main[main] ()
{
string regexp = "";
string text = "Thisisastring.";
var regex = split('', regexp);
@ayardley
ayardley / gist:2482904
Created April 24, 2012 19:24
Trying to build Rosella
Ubuntu 11.10 (oneiric) 32bit:
When I try to build a new clone of Rosella, the build blows with,
winxed -o rosella/json.pir -c rosella/json.winxed
rosella/json.winxed:432: unclosed namespace near namespace
exit status: 256
command: winxed -o rosella/json.pir -c rosella/json.winxed
current instr.: 'parrot;Rosella;Winxed;Distutils;compile_to_pir' pc 692 (./src/winxed/Distutils.bootstrap.pir:341) (src/winxed/Distutils.winxed:155)
called from Sub 'parrot;Rosella;Winxed;Distutils;build_winxed_files' pc 270 (./src/winxed/Distutils.bootstrap.pir:126) (src/winxed/Distutils.winxed:63)
@ayardley
ayardley / gist:1786407
Created February 10, 2012 03:59
Winxed: Not a left-side expression near (
NotFound:
My apologies for my failure to include enough code to allow you to reproduce the error in the earlier gist. The below "should" reproduce the error for you. Please note, the "error" has mysteriously moved to the 'append()' function, and the only thing I changed was to chop out some already commented code.
Again, thank you for your help.
Alvis
P.S. The below code dies with the following error: 'lisp.i:142: Not a left-side expression near ('
@ayardley
ayardley / gist:1639784
Created January 19, 2012 12:23
cotto - using email to parrot.org to open an issue on the parrot repo
cotto:
I want to, tentatively,[1] retract my suggestion of using a proxy repo in
favor of what, I think, is a more robust approach, that is, moritz'.[2]
Here, in-the-main, is moritz' idea:
1. Create a bug@parrot.org email address, if there isn't one already;
2. Have a cron job fetch any new emails delivered to this address; and
3. If it looks like a bug report, the cron job launches a script to open
@ayardley
ayardley / gist:1639268
Created January 19, 2012 10:18
cotto - using the parrotbug proxy repo to open an issue on the parrot repo
(1) parrotbug, via Net::GitHub or Pithub, uses the github API to open an issue on the new parrotbug proxy repo;
(2) the parrotbug proxy repo throws an open issue event (it's a hook api);
(3) the parrot repo "catches" -- i'm not exactly certain how this happens yet, but the docs say it can -- this event;
(4) Here I'm uncertain. That is, i'm not sure what we actually *do* to open the issue on the parrot repo. That is, I'm not sure what the thrown event can kick off on the parrot repo to open an issue, but I'll dig around today and fill in this gap.
@ayardley
ayardley / gist:1627750
Created January 17, 2012 17:38
gerdr/parrot.git
not_gerd: I reinstalled cygwin this weekend and installed *only* the mingw64_-x86_64-* toolchain. This allowed gerdr/cygcross64 to 'make.' 'make test' stalled out, however, on 't/src/extend_vtable.t ..... 101/137'.
Btw, the problem earlier was, I think, everything defaulted to gcc 4.*, and not gcc 3.4.4 bundled with mingw.
I did *try* to use the -mno-cygwin switch, but, evidently, it's been dropped from gcc 4.*, so ....
Hope this helps.
@ayardley
ayardley / gist:1614446
Created January 15, 2012 05:10
gerdr/parrot.git - make failure, plus config_lib.pir
not_gerd: Again, if I need to change/edit something, please let me know. (Fwiw, I'm rather unfamiliar with cygwin.)
$ git branch
* gerdr/cygcross64
master
----------
In file included from ./include/parrot/memory.h:13:0,
from ./include/parrot/parrot.h:247,
@ayardley
ayardley / gist:1611934
Created January 14, 2012 16:21
gerdr/parrot.git - config_lib.pir
# ex: set ro:
# DO NOT EDIT THIS FILE
# Generated by gen::config_pm from config/gen/config_pm/config_lib_pir.in and %PConfig
# This file should be the last thing run during
# the make process, after Parrot is built.
# Copyright (C) 2004-2009, Parrot Foundation.
.include 'datatypes.pasm'
.include 'parrot_version.pir'
@ayardley
ayardley / gist:1611026
Created January 14, 2012 11:14
Attempted make on gerdr/parrot.git
not_gerd: The below is what I got when I attempted to 'make'. Please let me know if you need any additional information (or if I need to do/check something to make this work for you).
alvis
----------
Windows Vista Home Premium SP2
AMD Phenom 9150e Quad-Core Processor 1.80 GHz
4.00 GB
64-bit OS
@ayardley
ayardley / gist:1480159
Created December 15, 2011 07:11
Guitor on i386-cygwin (XP SP3)
NotFound:
Thank you for the correction/information.
The following command, executed in the 'Guitor' directory,
winxed -L build/ examples/pizarra.winxed
results in the following error,