This paper presents a joint typicality framework for encoding and decoding nested linear codes in multiuser networks. This framework provides a new perspective on compute-forward within the context of discrete memoryless networks. In particular, it establishes an achievable rate region for computing a linear combination over a discrete memoryless multiple-access channel (MAC). When specialized to the Gaussian MAC, this rate region recovers and improves upon the lattice-based compute-forward rate region of Nazer and Gastpar, thus providing a unified approach for discrete memoryless and Gaussian networks. Furthermore, our framework provides some valuable insights on establishing the optimal decoding rate region for compute-forward by considering joint decoders, progressing beyond most previous works that consider successive cancellation decoding. Specifically, this work establishes an achievable rate region for simultaneously decoding two linear combinations of nested linear codewords from K senders. Index Terms Linear codes, joint decoding, compute-forward, multiple-access channel, relay networks I. INTRODUCTION In network information theory, random i.i.d. ensembles serve as the foundation for the vast majority of coding theorems and analytical tools. As elegantly demonstrated by the textbook of El Gamal and Kim [1], the core results of this theory can be unified via a few powerful packing and covering lemmas. However, starting from the many-help-one source coding example of Körner and Marton [2], it has been well-known that there are coding theorems that seem to require random linear ensembles, as opposed to random i.i.d. ensembles. Recent efforts have demonstrated that linear and lattice codes can yield new achievable rates for relay networks [3]-[9],