560 blogs tracked4,950 posts indexed

#programming-languages

8 posts · 2 companies · newest first

1

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
3

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
5

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
6

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
8

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
8 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.