Quantcast
Channel: Exploring Beautiful Languages
Browsing all 25 articles
Browse latest View live

Executing code from a buffer with Rust on Windows

Creating and executing code at runtime is an intriguing topic. It is one of the pieces that makes it possible to write JIT compilers for things like Java or C#.Creating a byte array with executable...

View Article


Image may be NSFW.
Clik here to view.

Implementing WHILE in a toy BASIC interpreter

While working on a toy BASIC implementation, I ran into an unexpected challenge implementing the WHILE instruction. The implementation of this instruction seems simple. Here is an example : 10 X = 1...

View Article


Some considerations for using closures in Rust/WASM

Here are a couple of things I learned while trying to pass a Rust closure to a JavaScript function. Some of these notes are a result of my lack of experience with Rust and Rust/WASM.Passing a closure...

View Article

Haskell 'newtype' and the record syntax

While reading some Haskell code snippets I found something that seemed confusing. The snippet involved newtype and record syntax. A simplified example is the following:newtype PersonName = PersonName {...

View Article

A quick look at functors in OCaml

A couple of weeks ago I was working on a small program that required generating code in different ways depending on a user option. I was trying to make as few changes as possible. Because of the way...

View Article

Browsing all 25 articles
Browse latest View live