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! [ ]
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 [ ]
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 [ ]
[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 [ ]
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.) [ ]
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... [ ]
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 [ ]
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 [ ]
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 [ ]
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 [ ]