A world to win - WebAssembly for the rest of us
https://www.wingolog.org/archives/2023/03/20/a-world-to-win-webassembly-for-the-rest-of-us [www.wingolog.org]
2023-03-20 22:09
tags:
functional
garbage-collection
lisp
programming
transcript
wasm
As it turns out, there is a reason that there is no good Scheme implementation on WebAssembly: the initial version of WebAssembly is a terrible target if your language relies on the presence of a garbage collector. There have been some advances but this observation still applies to the current standardized and deployed versions of WebAssembly. To better understand this issue, let’s dig into the guts of the system to see what the limitations are.
source: HN
What Remains Technical Breakdown
http://www.dustmop.io/blog/2019/09/10/what-remains-technical-breakdown/ [www.dustmop.io]
2019-09-22 18:19
tags:
gaming
graphics
lisp
programming
retro
What Remains is a narrative adventure game for the 8-bit NES video game console, and was released in March 2019 as a free ROM, playable in emulator. It was created by a small team, Iodine Dynamics, over the course of two years of on and off development. It’s currently in the hardware phase as a limited batch of cartridges are being created from all recycled parts.
The game plays out over 6 stages, wherein the player walks around multiple scenes with 4-way scrolling maps, speaking to NPCs, collecting clues, learning about their world, playing mini-games, and solving simple puzzles. As the primary engineer on this project, I faced a lot of challenges in bringing the team’s vision to reality. Given the significant restrains of the NES hardware, making any game is difficult enough, let alone one with as much content as What Remains. Only by creating useful subsystems to hide and manage this complexity were we able to work as a team to complete the game.
Herein is a technical breakdown of some of the pieces that make up our game’s engine, in the hopes that others find it useful or at least interesting to read about.
source: Dfly
Defeating Racket’s separate compilation guarantee
https://lexi-lambda.github.io/blog/2019/04/21/defeating-racket-s-separate-compilation-guarantee/ [lexi-lambda.github.io]
2019-04-22 15:53
tags:
compiler
lisp
programming
Being a self-described programming-language programming language is an ambitious goal. To preserve predictability while permitting linguistic extension, Racket comes equipped with a module system carefully designed to accommodate composable and compilable macros. One of the module system’s foundational properties is its separate compilation guarantee, which imposes strong, unbreakable limits on the extent of compile-time side-effects. It is essential for preserving static guarantees in a world where compiling a module can execute arbitrary code, and despite numerous unsafe trapdoors that have crept into Racket since its birth as PLT Scheme, none have ever given the programmer the ability to cheat it.
Yet today, in this blog post, we’re going to do exactly that.
source: L
I Built a Lisp Compiler
https://mpov.timmorgan.org/i-built-a-lisp-compiler/ [mpov.timmorgan.org]
2019-03-27 22:42
tags:
c
compiler
lisp
programming
Malcc is an incremental and ahead-of-time lisp compiler written in C.
This is the story of my progress over the years and what I learned in the process. An alternate title for this post is: “How to Write a Compiler in Ten Years or Less”
source: L
A Road to Common Lisp
http://stevelosh.com/blog/2018/08/a-road-to-common-lisp/ [stevelosh.com]
2018-08-27 20:08
tags:
intro-programming
lisp
One disclaimer up front: this is a road to Common Lisp, not the road to Common Lisp. It’s what I followed (without some of the dead ends) and has a lot of my personal opinions baked in, but it is by no means the only way to learn the language.
source: L
Racket v6.11
http://blog.racket-lang.org/2017/10/racket-v6-11.html [blog.racket-lang.org]
2017-11-01 15:38
tags:
lisp
release
type-system
Typed Racket supports refinement types and dependent function types. Previously an experimental feature, refinement types allow types to describe more interesting properties of values, especially integers.
source: L
An Introduction to Urn
http://urn-lang.com/tutorial/01-introduction.html [urn-lang.com]
2017-11-01 14:10
tags:
compiler
intro-programming
lisp
lua
These tutorials aim to guide you through Urn, a Lisp dialect which compiles to Lua. We’ll assume you have some prior programming knowledge. A little Lua knowledge is useful in places, though not required.
Numbers and tagged pointers in early Lisp implementations
https://www.snellman.net/blog/archive/2017-09-04-lisp-numbers/ [www.snellman.net]
2017-09-06 04:48
tags:
lisp
programming
retro
Let’s take a tour through some early Lisp implementations, and look at how they represented data in general, and numbers in particular.
source: L
growing fibers
https://wingolog.org/archives/2017/06/27/growing-fibers [wingolog.org]
2017-06-27 19:27
tags:
concurrency
lisp
programming
I wanted to be able to spawn a million threads on a core, to support highly-concurrent I/O servers, and Guile’s POSIX threads are just not the answer. I needed something different, and this article is about the search for and the implementation of that thing.
source: L
Some Performance Advantages of Lexical Scope
http://nullprogram.com/blog/2016/12/22/ [nullprogram.com]
2016-12-22 15:51
tags:
compiler
emacs
lisp
perf
programming
Somewhat specific to emacs lisp, somewhat generic.
CHIP-8 in Common Lisp: The CPU
http://stevelosh.com/blog/2016/12/chip8-cpu/ [stevelosh.com]
2016-12-20 04:13
tags:
cpu
hardware
lisp
programming
retro
series
In this post and a couple of future ones I’ll walk through all of my CHIP-8 emulator implementation.
Quite a lot of detail and code.
sxc - S-Expression C
https://github.com/burtonsamograd/sxc/blob/master/README.md [github.com]
2016-12-17 15:33
tags:
c
compiler
lisp
programming
sxc is an an s-expression based language source transpiler for C. By providing an S-expression based syntax, sxc adds full Lisp-like macro and code generation capabilities to the C language using Common Lisp.
Faster Elfeed Search Through JIT Byte-code Compilation
http://nullprogram.com/blog/2016/12/11/ [nullprogram.com]
2016-12-12 15:43
tags:
emacs
jit
lisp
perf
programming
In another world we might call this “eval” instead but it does the trick.
Learn you a Lisp in 0 minutes
https://hackernoon.com/learn-you-a-lisp-in-0-minutes-e0c1a060a178 [hackernoon.com]
2016-11-23 00:24
tags:
intro-programming
lisp
Probably know more than you think you do. As it happens, my first exposure to scheme was trying to cobble together some gimp automation without learning anything.
Tiny Lisp Computer
http://www.technoblogy.com/show?1INT [www.technoblogy.com]
2016-11-14 16:30
tags:
hardware
lisp
programming
solder
tech
It would be much cooler if it really were a wrist mounted lisp machine, as jwz called it, but oh well. If all embedded devices provided an editable environment, we’d be living in a sci-fi movie.