The Bag of Holding

Profile
Bellevue, WA
A bipolar guy in a pressure-cooker industry
1,455 comments
44 followers
628 entries
Advertisement
ApochPiQ
July 23, 2012
Which [X] Should I Use?
What {programming language | API | toolkit | operating system | etc. } should I use?
A fairly frequent source of discussion in the General Programming forum is the infamous "X vs. Y" thread. Put simply, this type of thread is basically asking which option the poster should choose out of a list of o…
10,432 views
ApochPiQ
July 23, 2012
Oh Noes, My Code Is Teh Crash!
My Code is Crashing. Help!
A common request for assistance in the General Programming forum involves code which is crashing, often for mysterious reasons. When posting a thread discussing a crash, there are a few important things you should do.

1. Understand what the crash really means
That scary-loo…
7,721 views
ApochPiQ
July 13, 2012
Random mind dump
Just offloading some interesting tidbits; I might get around to formatting this into a more interesting post later.

  • Floating point determinism is bloody hard, but not impossible, to achieve
  • Syncing between x86 and x64 code is a nightmare
  • SSE2 is pretty much everywhere, so configure your compiler to us…
2,292 views
ApochPiQ
July 02, 2012
Behind the Scenes
I've known since I was very young that someday I wanted to be a video game developer. It didn't take too long to narrow that down to video game programmer. And now, many years down the road, I've wound up precisely where I wanted to be.

It's an interesting quandary, in a way. I work with a phenomena…
2,227 views
ApochPiQ
May 16, 2012
Rapid-fire debugging thoughts
Just a collection of assorted things that have been running through my mind during the past week and a half of marathon debugging...

  • Unless you have a really darn good reason, don't use different coordinate systems for different parts of your game, and especially not if you're using floating-point r…
19,337 views
ApochPiQ
May 08, 2012
Epoch - Generics vs. Templates
This is mostly just some rambling to try and organize my own thoughts regarding the Epoch type system, but it may also be interesting for general consumption, so I decided to post it here instead of just leaving it in my scratch book.


One of the big concerns I have for the next steps of Epoch's deve…
2,248 views
ApochPiQ
May 06, 2012
Sum types are now more powerful
I worked on the sum type implementation for a while, and finally got it up to the point where you can dynamically alter the type of data stored in a sum-typed variable. This is subtly different from dynamic typing; the possible types of the variable are bounded at compile time, and the compiler gua…
1,477 views
Advertisement
ApochPiQ
April 29, 2012
More steroids for Epoch's type system!
This program now compiles and runs under the Epoch trunk:

//
// SUMTYPEFUNCTION.EPOCH
//
// Basic test of functions operating on sum types
//

type test : integer | string



sumfunc : integer param
{
assert(param == 42)
}

sumfunc : string param
{
assert(param == "bletch")
}


entrypoint :
{
test foo = 42
1,774 views
ApochPiQ
April 27, 2012
Epoch Type System += Steroids
Another productive week in Epoch-land!

The first phase of my recent set of changes was to introduce the internal concept of type families. These are groups of type ID tags that represent different categories of semantics. For example, I used to reserve everything above the ID number 20 as "structure…
1,728 views
ApochPiQ
April 24, 2012
Musings on Epoch features
I'll just leave this here...


//
// Define a recursive structure for a singly linked list
//
// A list must contain at least one element. If empty lists
// are desired in a given context, use the algebraic sum
// type (list | nothing) to indicate that the list may
// be empty.
//
// Note that the "next" memb…
1,994 views
Advertisement

Popular Blogs

shawnhar
Generalist
101 Entries
13 Followers
klg71
Generalist
53 Entries
1 Followers
ApochPiQ
Generalist
628 Entries
44 Followers
15 Entries
13 Followers
johnhattan
Programmer
1,277 Entries
50 Followers
Advertisement