🎉 Celebrating 25 Years of GameDev.net! 🎉
Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!
So Epoch has managed to self-host (as of an embarrassingly long time ago) and the Era IDE is slowly turning into something actually worth using. Over the past few days I got a rudimentary symbol lookup feature done, where you can press F11 to process a project and F12 with the text caret over a sym…
Turns out that leaving a project alone for six months is a great way to discover that it's full of mysterious bugs you don't remember having.
I noticed some weird behavior with Era, the Epoch IDE, earlier this evening, and started poking around looking for explanations. It turns out that in some wei…
I noticed some weird behavior with Era, the Epoch IDE, earlier this evening, and started poking around looking for explanations. It turns out that in some wei…
Sampler-Based Profiling: The Quick Version
So you're happily working on some code, and suddenly it happens: everything is just too damn slow! Something is eating up all your performance, but it's not immediately obvious what to do about it.
One of the first things any experienced programmer will tell…
So you're happily working on some code, and suddenly it happens: everything is just too damn slow! Something is eating up all your performance, but it's not immediately obvious what to do about it.
One of the first things any experienced programmer will tell…
No structure or real nice formatting will be found in this post. This is a stream-of-consciousness blathering process wherein I contemplate how to organize code in a way that escapes the limitations of the file paradigm.
Considerations for organizing code
Main goal: aid in discoverability and navigat…
Considerations for organizing code
Main goal: aid in discoverability and navigat…
I've written before about how much I want to get away from the "code goes in files" model of programming. The more code I write, and the larger the project, the less it makes sense to organize everything strictly by file names.
Yes, folder hierarchies can be one reasonable way to group related code.…
Yes, folder hierarchies can be one reasonable way to group related code.…
It's been well over a year since I embarked on the monumental project of self-hosting the Epoch language compiler. In all that time, there have been a whopping ZERO releases of the language or any of its accompanying tools/examples/etc.
I'd been taking some time off from Epoch for a number of reason…
I'd been taking some time off from Epoch for a number of reason…
Why in the ever living FUCK does Visual Studio 2012 insist on bringing itself to the foreground every time the debugger starts?
This is fucking horseshit. I have multiple projects that I have to work on concurrently, each with a separate VS instance. So if I want to fire up one instance's debugger, …
This is fucking horseshit. I have multiple projects that I have to work on concurrently, each with a separate VS instance. So if I want to fire up one instance's debugger, …
It's an interesting time, that's for sure.
Work has been consuming a monumental portion of my time and energy lately; and while I can't talk about it yet, I can say that it has definitively been a lot of fun and I really can't wait to unleash what I've been working on. There's a ton of potential in …
Work has been consuming a monumental portion of my time and energy lately; and while I can't talk about it yet, I can say that it has definitively been a lot of fun and I really can't wait to unleash what I've been working on. There's a ton of potential in …
All programmers undergo a transformation, from the moment they first start typing code, until the moment they realize that there's more important things in life than making computers obey one's whims. (I hypothesize that this latter moment occurs after death, because I sure can't think of anything …
I am thoroughly PISSED THE HELL OFF right now.
One of my favorite text editor options in old versions of Visual Studio was "Go to selection anchor after pressing escape." If you never experienced the blissful joy of this, here's what it did:
- Open some long code file
- Hold Shift
- Accidentally pre…
One of my favorite text editor options in old versions of Visual Studio was "Go to selection anchor after pressing escape." If you never experienced the blissful joy of this, here's what it did:
- Open some long code file
- Hold Shift
- Accidentally pre…
I'm going to give you a sales pitch. It might sound outlandish at first, but bear with me - I think, by the end, you'll agree that this is a Good Thing(TM).
You should embed a tiny web server in your game engine.
It doesn't need to ship with the game, of course; this is a development tool. If you're …
You should embed a tiny web server in your game engine.
It doesn't need to ship with the game, of course; this is a development tool. If you're …
I got tired of having my IRC bot be a plugin to a Chrome plugin, so I started tearing apart the CIRC Chrome extension and stripping it down to serve as a bot hosting platform. The UI already has some tweaks to support bot features, and having direct access to the whole Chrome extension API is very …
So I got bored last summer, and started writing an IRC bot in JavaScript.
This weekend I got bored again, and polished it up and posted it on my scribblings site. You can view the entire beast here.
Note that I make no claim whatsoever to have written "good" JavaScript code.
This weekend I got bored again, and polished it up and posted it on my scribblings site. You can view the entire beast here.
Note that I make no claim whatsoever to have written "good" JavaScript code.
Once, there was a carpenter.
He was a pretty good carpenter, too, and knew a lot about his trade. He made a decent living selling his wares in the local market.
As the carpenter wandered through the forest looking for good trees to use for his next project, he stubbed his toe on a small lamp. He pick…
He was a pretty good carpenter, too, and knew a lot about his trade. He made a decent living selling his wares in the local market.
As the carpenter wandered through the forest looking for good trees to use for his next project, he stubbed his toe on a small lamp. He pick…
Tonight witnessed the first fully operational build of the Era IDE compiled under the end-to-end Epoch toolchain.
This is cool for a number of reasons: it means that the Epoch compiler can build Windows .EXEs with embedded resources correctly; it means that the entire language toolset is now self-su…
This is cool for a number of reasons: it means that the Epoch compiler can build Windows .EXEs with embedded resources correctly; it means that the entire language toolset is now self-su…
My mid-term goal for the Epoch language project remains the same: I want to get Era back up to speed and start developing a better IDE now that the compiler is more or less solid.
However, the short-term implication of this is that I need support for GUI apps in the compiler, and that means resource…
However, the short-term implication of this is that I need support for GUI apps in the compiler, and that means resource…
I've been slowly narrowing down my garbage collection issue, and I think I've landed on a reasonable hypothesis.
Background: I'm working on a mark/sweep-based garbage collector for the Epoch language. The full details are far too intricate for a single journal entry, but the basic theory is this: st…
Background: I'm working on a mark/sweep-based garbage collector for the Epoch language. The full details are far too intricate for a single journal entry, but the basic theory is this: st…
Earlier today I decided to go ahead and turn the garbage collector back on, and see just how bad things are.
On the plus side, the compiler still self-hosts in only a few seconds, so it's not nearly as horrid as it could be.
On the down side, there's a persistent crash deep in the garbage collector t…
On the plus side, the compiler still self-hosts in only a few seconds, so it's not nearly as horrid as it could be.
On the down side, there's a persistent crash deep in the garbage collector t…
This time last year, I was obsessing over putting the finishing touches on the Epoch realtime raytracing demo. The emphasis then was on runtime speed, much like the recent focus has been on compilation speed. I think it's fitting that the work on runtime speed directly contributed to the ability to…
There is a special trick to optimizing code, one that I usually drag out as a weapon of last resort when all algorithmic stuff is taken care of and it's time to give up or start trying to micro-optimize.
The secret, of course, is to eliminate dynamic memory allocations. This isn't a huge revelation …
The secret, of course, is to eliminate dynamic memory allocations. This isn't a huge revelation …
Over the past few days I've managed to hit what seems to be a local minimum in the compiler's speed: 1.1 seconds. Of course, this is slightly inflated, because the compiler is now substantially larger than it was before. If I do a pure apples-to-apples comparison, the compiler hits about 850 millis…
A few days ago, the Epoch compiler could self-host in about 60 seconds.
My last run of the self-hosting process clocked in at 6.59 seconds - nearly ten times faster than when I started out. That's not bad for a couple afternoons worth of work.
As I suspected, there was a lot of lazy nonsense in the c…
My last run of the self-hosting process clocked in at 6.59 seconds - nearly ten times faster than when I started out. That's not bad for a couple afternoons worth of work.
As I suspected, there was a lot of lazy nonsense in the c…
As I wrote up in the previous several entries, the Epoch programming language recently achieved self-hosting. I've had a few people ask what happens next, so I figured I'd write up my plans for Epoch's immediate future.
First and foremost, I need to fix the garbage collector. It's currently stupidly…
First and foremost, I need to fix the garbage collector. It's currently stupidly…
Tackling problems with a fresh mind makes a world of difference.
The first thing I needed to solve this morning was a miscompile involving constructors. Deeper investigation showed that sum-typed members were to blame. Thankfully, this bug had an easy repro, so I built out a test case and set out to…
The first thing I needed to solve this morning was a miscompile involving constructors. Deeper investigation showed that sum-typed members were to blame. Thankfully, this bug had an easy repro, so I built out a test case and set out to…
After a nice night of rest, it's time to come back in force and really hammer on this compiler.
The first bug I decided to tackle involved incorrect type annotations when passing sum-typed variables to a pattern matched function (say that ten times fast). The fix was to look more carefully at the or…
The first bug I decided to tackle involved incorrect type annotations when passing sum-typed variables to a pattern matched function (say that ten times fast). The fix was to look more carefully at the or…
Mostly hammering away on a variety of miscompiles and other tiny bugs tonight; I've squished a ton of problems but they all blur together and I can't clearly remember what all they were.
Almost everything at this stage manifests as the JIT engine vomiting when trying to turn the compiled Epoch progr…
Almost everything at this stage manifests as the JIT engine vomiting when trying to turn the compiled Epoch progr…
Sat down and figured out some of the annoying bugs that were left in the compiler, mostly surrounding higher order functions and templates. Rigged up a half-dozen more intrinsics and such, and fired off the compiler for yet another pass on itself.
At 8:02PM PST the compiler successfully completed it…
At 8:02PM PST the compiler successfully completed it…
A large number of the errors emitted by attempting to self-host the compiler have turned out to be caused by a relatively small number of bugs.
Hex literals had no support at all in the compiler, so I added that, and crushed a bunch of errors. I forgot to special-case 0 so anything that evaluated to…
Hex literals had no support at all in the compiler, so I added that, and crushed a bunch of errors. I forgot to special-case 0 so anything that evaluated to…
Advertisement
Popular Blogs
Advertisement