Skip to content

Instantly share code, notes, and snippets.

View tycho's full-sized avatar

Steven Noonan tycho

  • Bellevue, WA, USA
View GitHub Profile
@tycho
tycho / .bash_profile
Created May 31, 2009 07:15
my bashrc, used for setting up common paths and preferences I have
# /etc/skel/.bash_profile
# This file is sourced by bash for login shells. The following line
# runs your .bashrc and is recommended by the bash info pages.
[[ -f ~/.bashrc ]] && . ~/.bashrc
<neunon> Hi folks. I'm trying to get Samba to work on Fedora 11, only to find that it's listening only on IPv6 ports. Any idea how to get it to listen on IPv4?
<[R]> ipv6 ports? that makes no sense
<neunon> Rather, it's listening on :::139, but not 0.0.0.0:139
<[R]> sounds ike you horribly screwed up the config
<neunon> Do tell, so I can fix it, then.
<neunon> I tried the 'interfaces' line, which did nothing
<[R]> you shod'nt have anythning crappy like that in your conifg
<neunon> I didn't originally. But then this IPv6 issue showed up...
<[R]> then therse somerhing horribly screwed up in your conifg
<neunon> That's not helping.
make.conf
---------
CFLAGS="-O2 -ggdb -fno-strict-aliasing"
CXXFLAGS="${CFLAGS}"
FEATURES="parallel-fetch splitdebug installsources sandbox usersandbox userfetch userpriv"
MAKEOPTS="-j3"
Optionally, add "-ffast-math" to CFLAGS. It's debatable whether this is a good idea or not, but
it generally results in faster code.

Abstract

Unladen Swallow offers some magnificent performance improvements over the CPython interpretation method. Unfortunately, the Just-in-Time compiler used by Unladen Swallow currently incurs a hefty memory overhead which needs to be reduced before Unladen Swallow can be merged into CPython.

Goals

The overall goal is to eliminate wasteful allocations, memory leaks, and generally poor heap management.

Ideally, we want:

@tycho
tycho / gist:6864870
Created October 7, 2013 09:10
PyCrypto under PyPy -- WIP
$ git describe
v2.6-112-gd813e41
$ git diff
diff --git a/src/_fastmath.c b/src/_fastmath.c
index a4160d9..baf31fe 100644
--- a/src/_fastmath.c
+++ b/src/_fastmath.c
@@ -60,7 +60,7 @@
#if ULONG_MAX==0xFFFFFFFFUL
@tycho
tycho / gist:7520953
Created November 18, 2013 01:27
Lua lanes deadlock in garbage collector
Thread 2 (Thread 0x7f378bf98700 (LWP 30758)):
#0 0x00007f378bfa503f in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
No symbol table info available.
#1 0x00007f378c3f9542 in SIGNAL_WAIT (ref=0x10868e0, mu=0x10854b0, abs_secs=-1) at threading.c:554
rc = 0
__PRETTY_FUNCTION__ = "SIGNAL_WAIT"
#2 0x00007f378c3f418b in LG_linda_receive (L=0x108b020) at lanes.c:639
s = 0x10a0760
prev_status = RUNNING
K = 0x10854b0
@tycho
tycho / gist:1d567a5c5a4e342cd6ac
Created January 4, 2015 08:31
crash-2015-01-04_00.14.58-server.txt
---- Minecraft Crash Report ----
// I let you down. Sorry :(
Time: 1/4/15 12:14 AM
Description: Exception ticking world
java.lang.NoClassDefFoundError: net/minecraft/world/World$2
at net.minecraft.world.World.func_147460_e(World.java:714)
at net.minecraft.world.World.func_147459_d(World.java:651)
at net.minecraft.world.World.func_147444_c(World.java:613)
@tycho
tycho / gist:8a626ba6f03428910f6c
Created January 4, 2015 08:33
crash-2015-01-04_00.18.05-server.txt
---- Minecraft Crash Report ----
// I blame Dinnerbone.
Time: 1/4/15 12:18 AM
Description: Exception ticking world
java.lang.NoClassDefFoundError: net/minecraft/world/World$2
at net.minecraft.world.World.func_147460_e(World.java:714)
at net.minecraft.world.World.func_147459_d(World.java:651)
at net.minecraft.world.World.func_147444_c(World.java:613)
@tycho
tycho / gist:e754b1da9512a4a062ed
Created January 4, 2015 08:33
crash-2015-01-04_00.20.41-server.txt
---- Minecraft Crash Report ----
// You're mean.
Time: 1/4/15 12:20 AM
Description: Exception ticking world
java.lang.NoClassDefFoundError: net/minecraft/world/World$2
at net.minecraft.world.World.func_147460_e(World.java:714)
at net.minecraft.world.World.func_147459_d(World.java:652)
at net.minecraft.world.World.func_147444_c(World.java:613)
bower Angular.uuid2#* not-cached https://github.com/MBehtemam/angular-uuid.git#*
bower Angular.uuid2#* resolve https://github.com/MBehtemam/angular-uuid.git#*
bower angular-chrome-storage#* not-cached git://github.com/infomofo/angular-chrome-storage.git#*
bower angular-chrome-storage#* resolve git://github.com/infomofo/angular-chrome-storage.git#*
bower lz-string#~1.4.x cached https://github.com/pieroxy/lz-string.git#1.4.4
bower lz-string#~1.4.x validate 1.4.4 against https://github.com/pieroxy/lz-string.git#~1.4.x
bower angular-native-dragdrop#* cached https://github.com/angular-dragdrop/angular-dragdrop.git#1.1.0
bower angular-native-dragdrop#* validate 1.1.0 against https://github.com/angular-dragdrop/angular-dragdrop.git#
bower ScrollToFixed#~1.0.6 cached https://github.com/bigspotteddog/ScrollToFixed.git#1.0.6