Skip to content

Instantly share code, notes, and snippets.

View jszaday's full-sized avatar

Justin Szaday jszaday

  • Bay Area, CA, USA
View GitHub Profile

Exclamation point (!) indicates parallel version of a command or method call.

array<int> vs. array!<int> array.size vs. array!size

class array<T> {
    # define size as a function that can be implemented in parallel or serial
    def size|! : int = this|!reduce(x, y -> x + 1)
    # define explicitly serial and parallel versions of reduce

def reduce( ... ) : T

@jszaday
jszaday / Makefile
Last active June 9, 2020 01:24
Straightforward Channels API for Charm++
CHARMC = $(CHARM_HOME)/bin/charmc
BINARY = channels
CHARMCFLAGS = $(OPTS)
CHARMCLINKFLAGS = -language charm++ $(OPTS)
TESTFLAGS = ++local +p2
%.o: %.C
all: $(BINARY)
I'm looking to build my ultimate Windows XP machine. My specs are as follows:
- Core 2 Quad, Yorkfield XE
- 16GB of DDR3 RAM
- 1-2x PCIe v2.0 Slots
- Nvidia Geforce GTX 480 (my dream GPU~!)
Chipsets: https://en.wikipedia.org/wiki/List_of_Intel_chipsets#Core_2_chipsets
Processors: https://en.wikipedia.org/wiki/List_of_Intel_Core_2_microprocessors#%22Yorkfield_XE%22_(45_nm)
core 2 quad (qx9750, qx9650, qx9770, qx9775)
# xys = [ [3.307892425, 39.69470909],
# [12.13809951, 49.46848102],
# [2.169050363, 26.02860435],
# [2.860301106, 22.88240885],
# [2.171773728, 26.06128474],
# [2.860659084, 22.88527267],
# [3.307550518, 39.69060621],
# [12.27431946, 50.02364157] ]
xys = [ [0.714329297, 11.782296],