560 blogs tracked7,114 posts indexed

#programming-languages

9 posts · 2 companies · newest first

1

An LC-3 Disassembler in Haskell (opens on the source site)

LC-3 assembly is an educational programming language. It is simple enough that complex programs can be written directly in it without needing a compiler, and thus it is often used in teaching assembly. An LC-3 textual assembly program is compiled to a binary object file by an assembler, and then executed by a virtual machine. Writing a virtual machine for LC-3 is a fun little exercise. However, in this post, we implement a disassembler for compiled LC-3 binaries back to textual assembly programs. This post was originally published on abhinavsarkar.net. Contents Introduction to LC-3 Problem in…

disassemblersprogramming-languagesexcerpt only · body stays at the source
From the web
2

Implementing Co, a Small Language With Coroutines #5: Adding Sleep (opens on the source site)

In the previous post, we added channels to Co, the small language we are implementing in this series of posts. In this post, we add the sleep primitive to it, enabling time-based coroutine scheduling. We then use sleep to build a simulation of digital logic circuits.

programming-languagesinterpretersexcerpt only · body stays at the source
From the web
4

Going REPLing with Haskeline (opens on the source site)

So you went ahead and created a new programming language, with an AST, a parser, and an interpreter. And now you hate how you have to write the programs in your new language in files to run them? You need a REPL! In this post, we’ll create a shiny REPL with lots of nice features using the Haskeline library to go along with your new PL that you implemented in Haskell.

programming-languagesinterpretersexcerpt only · body stays at the source
From the web
6

Implementing Co, a Small Language With Coroutines #3: Adding Coroutines (opens on the source site)

In the previous post, we wrote the interpreter for basic features of Co, the small language we are building in this series of posts. In this post, we explore and implement what makes Co really interesting: support for lightweight concurrency using Coroutines.

programming-languagesinterpretersexcerpt only · body stays at the source
From the web
7

Updating The Single Most Influential Book of the BASIC Era (opens on the source site)

In a way, these two books are responsible for my entire professional career.With early computers, you didn’t boot up to a fancy schmancy desktop, or a screen full of apps you could easily poke and prod with your finger. No, those computers booted up to the command

programming-languagescomputer-historyexcerpt only · body stays at the source
From the web
9

Implementing Co, a Small Language With Coroutines #1: The Parser (opens on the source site)

Many major programming languages these days support some lightweight concurrency primitives. The most recent popular ones are Goroutines in Go, Coroutines in Kotlin and Async in Rust. Let’s explore some of these concepts in detail by implementing a programming language with support for coroutines and Go-style channels.

programming-languagesparsersexcerpt only · body stays at the source
From the web
9 shown

Privacy choices

Reading never requires analytics. These choices last 90 days on this browser.

Essential sign-in and security storage always stays on. Read the privacy notice.