RSSAmplifier

Blog

Peeter Joot's Blog

Math, physics, perl, programming obscurity, and incoherent ramblings.

peeterjoot.comRSS feed ↗10 posts

Latest posts

Enterprise COBOL 6.5 TYPEDEF and “User Defined Functions”

I continually disparage and make fun of COBOL, a language deserving of all levels of mockery and condescension. My last LinkedIn mockery of COBOL paragraphs, to my great amusement, resulted in a COBOL defender saying it s not a programming language, but a report writing language. That s an even stronger case than I tried to make! [ ]

Stream of consciousness dump: new job, claude terminal, vscode, vim mode, …

This post is a fairly random stream of consciousness dump, including bits on all of the following: Job transition, and hints of what I m going to be working on Vscode, and vim mode deficiencies AI development integration Job change My last day at Lemurian was two weeks ago, after 11 months there. I enjoyed much [ ]

Line stepping through MLIR with a debugger!

I ve added an alternate input source for the silly compiler. As well as the .silly files that it previously accepted, it now also accepts .mlir (silly-dialect) files as input. This means that if there s an experimental language feature that requires new style MLIR, but I don t want to figure out how to push that all [ ]

Some line integral examples of the Fundamental theorem of geometric calculus

[Click here for a PDF version of this post] On my discord server, Frank asked about his attempt to demonstrate an example line integral computation of the fundamental theorem of geometric calculus. Before working through his example, and some others, it is first worth restating the line integral specialization of the \textit{Fundamental theorem of geometric [ ]

One more version tagged for the silly compiler: V7

V7 of the silly compiler is tagged. (EDIT: I d previously announced this as V8, but I jumped the gun, including having an AI generate a V8 image for me below. The newly tagged version is V7. There is no V8 yet, and only when I create it, will the V8 image below will be justified.) [ ]

Debugging wrong debug location info for a CALL in my silly language.

Here s a program in my silly language: PRINT "hi"; // line 1 FUNCTION bar0 ( ) // line 3 { PRINT "bar0"; // line 5 RETURN; // line 6 }; CALL bar0(); // line 9 I noticed that line stepping for this program has a line number glitch : xpg:/home/pjoot/toycalculator/samples gdb out/f Reading symbols from out/f... [ ]

V6 of my silly MLIR based compiler is tagged.

There s an existing toy MLIR dialect, part of the mlir tutorial documentation, so I ve renamed my dialect from toy to silly, and updated all the references to toy calculator to silly compiler , or silly language . There s no good reason to use this language, nor the compiler, so this is very appropriate. It was, however, an [ ]

MLIR toy compiler V5 tagged. Array element assignment/access is implemented.

The language and compiler now supports functions, calls, parameters, returns, basic conditional blocks, scalar and array declarations, binary and unary operations, arithmetic and boolean operators, and a print statement. See the Changelog for full details of all the changes since V4. The IF/ELSE work was described recently, but the ARRAY element work is new. Array [ ]

Added IF/ELSE support to my toy MLIR/LLVM compiler.

I dusted off my toy compiler this weekend, and had a bit of fun implementing IF and ELSE support. The MLIR+LLVM compiler infrastructure is impressively versatile, allowing me to implement a feature like this in a handful of hours. It was, however, an invasive feature addition, requiring grammar changes, parser/builder, and lowering adjustments, as well [ ]

Attempting to learn to use VSCode: some keymappings and notes.

I ve been using vim and the terminal for ~30 years, and am working now in a VSCode shop. I am probably the only holdout, using terminal tools (tmux, vim, cscope, ctags, perl, ). I am a keyboard guy, and am generally hopeless in a UI of any sort, and don t find them particularly intuitive. I [ ]