Skip to content

Instantly share code, notes, and snippets.

@bubaflub
bubaflub / gist:5427626
Created April 20, 2013 22:12
system_profiler SPHardwareDataType output
Hardware:
Hardware Overview:
Model Name: MacBook Pro
Model Identifier: MacBookPro5,1
Processor Name: Intel Core 2 Duo
Processor Speed: 2.4 GHz
Number of Processors: 1
Total Number of Cores: 2
L2 Cache: 3 MB
@bubaflub
bubaflub / error
Created July 14, 2011 01:26
NCI thunk compile error
cc -fno-common -no-cpp-precomp -pipe -fstack-protector -I/usr/local/include -pipe -fno-common -DHASATTRIBUTE_CONST -DHASATTRIBUTE_DEPRECATED -DHASATTRIBUTE_MALLOC -DHASATTRIBUTE_NONNULL -DHASATTRIBUTE_NORETURN -DHASATTRIBUTE_PURE -DHASATTRIBUTE_UNUSED -DHASATTRIBUTE_WARN_UNUSED_RESULT -I/usr/local/Cellar/libffi/3.0.9/lib/libffi-3.0.9/include -I/usr/local/include/parrot/3.5.0-devel -Ipmc/pmc_nci.h -o src/GMP/thunks src/GMP/thunks.c
Undefined symbols:
"_Parrot_pcc_fill_params_from_c_args", referenced from:
_pcf_void_ptr_ptr_ptr_long in ccSotlCp.o
_pcf_double_ptr in ccSotlCp.o
_pcf_void_ptr_ptr_long_long in ccSotlCp.o
_pcf_long_ptr_long in ccSotlCp.o
_pcf_void_ptr_ptr_long in ccSotlCp.o
_pcf_ptr_ptr_int_ptr in ccSotlCp.o
_pcf_void_ptr_double in ccSotlCp.o
@bubaflub
bubaflub / setup.winxed
Created July 1, 2011 01:39
Null PMC access in invoke
function load[anon,load]() {
load_bytecode('distutils.pbc');
}
function main[main](argv) {
var parrot_gmp = {
"name" : 'Parrot-GMP',
"abstract" : 'Parrot bindings for the GNU Multi-Precision Library',
"authority" : 'http://github.com/bubaflub',
@bubaflub
bubaflub / commands
Created June 30, 2011 13:41
compiling parrot-gmp
parrot -o src/GMP/raw.pbc src/GMP/raw.pir
parrot -o src/GMP/Common.pbc src/GMP/Common.pir
parrot -o src/GMP/Random.pbc src/GMP/Random.pir
parrot -o src/GMP/Integer.pbc src/GMP/Integer.pir
winxed examples/basic.winxed
@bubaflub
bubaflub / output
Created June 29, 2011 19:19
Dan's magic sort
{"user_auth":"blah blah blah","herp_derp":"yep","asdf":"nope","zxcv":"nope again"}
@bubaflub
bubaflub / gmp.h
Created June 26, 2011 03:08
crazy structs i need to fit into a StructView
/* Available random number generation algorithms. */
typedef enum
{
GMP_RAND_ALG_DEFAULT = 0,
GMP_RAND_ALG_LC = GMP_RAND_ALG_DEFAULT /* Linear congruential. */
} gmp_randalg_t;
/* Random state struct. */
typedef struct
{
@bubaflub
bubaflub / oldncidef2new.pl
Created June 24, 2011 01:11
first shot at conversion script
#! perl
# Copyright (C) 2011, Parrot Foundation.
=head1 NAME
tools/dev/oldncidef2new.pl - Turn an old NCI definition file into a new one
=head1 SYNOPSIS
diff --git runtime/parrot/library/ncurses.declarations runtime/parrot/library/ncurses.declarations
index 6922d90..fbf57ee 100644
--- runtime/parrot/library/ncurses.declarations
+++ runtime/parrot/library/ncurses.declarations
@@ -10,8 +10,8 @@ p new_field i i i i i i
p dup_field p i i
p link_field p i i
i free_field p
-i field_info p 3 3 3 3 3 3
-i dynamic_field_info p 3 3 3
@bubaflub
bubaflub / Parrot GSoC proposal - GMP bindings
Created March 28, 2011 15:35
Parrot Google Summer of Code proposal - Bindings for GMP (www.gmplib.org)
Personal Information
Bob Kuo
bobjkuo@gmail.com - bubaflub (github, IRC)
Project: Parrot bindings for GMP integer functions
Abstract:
This project aims to provide bindings for all integer functions in the GMP library as
@bubaflub
bubaflub / output.txt
Created March 27, 2011 19:39
basic nci jazz
parrot test.pir
42