2017 Retrospective In Which A Lot Happens
I developed Dissonance Voice Chat all year.
What Did I Do In 2016?
Dissonance Voice Chat
Obviously the bulk of my work in 2017 was on Dissonance voice chat. We released in late January of 2017 and it’s been all go since then - dealing with support requests by email, fixing bugs discovered in the wild, developing new features and pushing all this out in 19 versions.
This has been completely unlike any software development work I’ve done before - previously it’s all been closed source development on Epimetheus/Heist (with no customers influencing my decisions) or it’s open source work where I can happily just answer with “I’ll be happy to accept a PR” if I don’t want to work on whatever is being requested. It can be stressful but in general it’s been great fun!
I think the most interesting aspect is how this has influenced how I write code. New stuff that I write is a lot more robust and ready for release with extra things to help inevitable debugging e.g. live readouts in editor of as much as possible, logging everything but hiding that behind a toggle to not annoy users, verifying as much about the runtime environment as possible (not trusting the user to set it up properly).
Releasing on the asset store
Releasing on a store implies a whole load of other associated work. Making branding images, keeping on top of reviews (making sure to respond to any review that isn’t 5 stars) and collaborating with other developers to cross promote our products. The hardest thing, which I’m still not confident about, is making pricing decisions - in 2017 we raised the price twice as we released major new features or gained confidence about how stable/robust Dissonance is. We also participated in 2 store wide sales (at different discount levels) and were featured once in the 24 hours sale. Measuring the impact of all this and extrapolating it out to make future decisions about the price is very difficult!
Compatibility with Android/Linux/iOS
I’ve always hated C++, it’s such a huge and complex language seemingly packed with as many footguns as possible. With the arrival of Rust I thought there was a good chance I may avoid heaving to learn C++ altogether. Of course this was not to be - I could write all my new code in Rust but the world still runs on C++! I learnt a huge amount about C++ for Dissonance while working on changes to Opus (to make it easier to compile on iOS), reverse engineering how libspeexdsp works (attempting to get AEC to work) and extracting just the bits of webRTC that I need to make preprocessing/VAD/AEC to work.
I must admit C++ isn’t as bad as I thought, as long as you know what legacy parts of the language to avoid and you have decent tooling to back you up it’s actually not a bad way to write relatively cross platform code.
Collaborating With Other Developers
A big feature of Dissonance is that it is specifically designed to abstract over the network layer - allowing us to use the same code for multiple different networking systems. We’ve already got seven network integrations (Forge Remastered, Forge classic, Photon Unity Networking, Photon Bolt, UNet HLAPI, UNet LLAPI and Steamworks p2p) and we plan to write even more. We’ve had a great response from other asset developers collaborating with us to help integrate the two assets together and then cross promoting our assets.
I particularly want to shout out to Darrin at Crazy Minnow Studio. I asked him if he would be interested in bringing together Dissonance and SALSA lip sync, he responded enthusiastically and did a huge amount of work to make it happen - he essentially wrote the entire script, all the documentation and even made a great tutorial video on how to set it up.
The end result is super cool! Especially in VR - it adds a lot of immersion to see character faces animated as they talk.
I’m a massive fan of open source and try to release as much of my code as possible, I’m sad to say I’ve slowed down a lot in 2017. Usually I would keep the main project closed source and open source any helper libraries I wrote e.g. the SwizzleMyVectors library which I wrote to help me port Epimetheus over to not use XNA vector types. However, Dissonance is designed to be a single self-contained package so there are no parts we’ve released like that yet - we may break out some parts of it (e.g. logging) into a helper library as we develop more projects.
That’s not to say I’ve not released anything though!
This is a C# wrapper for the Z3 theorem prover. Rather than writing constraints like this:
var b = ctx.MkConst("B", ctx.RealSort); var c = ctx.MkConst("C", ctx.IntSort); s.Assert(ctx.MkEq(ctx.MkReal(1), ctx.MkDiv((ArithExpr)b, ctx.MkMul(ctx.MkReal(13, 10), (ArithExpr)c))));
You can write it as a C# expression:
var b = ctx.MkConstReal("B"); var c = ctx.MkConstInt("C"); s.Assert(ctx.MkExpr(b, c, (bb, cc) => 1 == b / (c * 1.3)));
This isn’t very well developed at the moment. It works fairly well for booleans and integers but has absolutely no support for reals (they don’t map perfectly into the C# type system).
This has been useful for…
This is a collaboration with my friend Dan Atkinson to design a CoreXY printer from scratch. We’re both into 3d printing but neither of us is a mechanical engineer so this is a pretty interesting learning experience!
With Rule Breaker 1 we’re just aiming for something which can print - If it can produce a quality benchy I will be very happy! Hopefully once we have built that and learnt all the things we did wrong we will move on to design another printer with a similar design but much much larger.
Rock is an interpreter for the Nock (the lowest level part of Urbit) written in Rust. Implementing a Nock interpreter has become my goto project for learning a new language: it’s relatively simple to implement the most basic Nock operators, a little complex to implement the complex Nock operators and there’s essentially limitless optimisation opportunity.
At the start of the year I got myself a Prusa i3 MK2 and started a year long obsession with 3D printing! As mentioned above I’m working to design my own printer from scratch which has also got me interested in learning about embedded programming (I purchased an STM32F303K8 microcontroller to experiment with over the Christmas holiday).
I also have ambitions to build a hangprinter once the weather warms up a little and I can take over the entire garage to build a printer.
Back in July Oculus put on a sale for the headset and touch controllers for just £399! After I got a VR headset I managed to talk a lot of my friends into getting headsets to and it’s caused a pretty big change - we’re all big gamers and we’ve played a big range of fantastic games. But we’ve also spent a lot of time just hanging out in VR, building shared spaces or just chatting in a nice environment.
A lot of people may say VR is overhyped but I honestly haven’t met anyone yet who wasn’t amazed by VR when they tried it - I can’t help but think something with such draw even to non techie people is going to be big!
Some other interesting things I encountered in 2017
- Applied Science
- 2 Minute Papers
- Unite Amsterdam Conference
- Stormlight Archive
blog comments powered by Disqus