title

From now on, the title of the post is allowed to just be "January 2024" (only when it is January 2024, however)

Hello again,

This month I've been plugging away on the project I mentioned in the previous post which involves among other things a PDF generator and now an implementation of ML (as in Standard ML, but also the other one). This is probably the 10th "compiler" I've written in my life, and it's kind of fun to revisit these problems that you've done many times and try out different approaches, although this time one of the approaches is "Use C++" (for reasons of making good on a joke, but also for reasons of mlton doesn't work on my computer any more). And although C++ is a fine tool for many applications, it does have some deficiencies for the task of writing a compiler (one of the most irritating: a very modest limit on the stack depth? Like my computer has 256 Gigabytes of RAM and 2^64 virtual addresses and somehow it can only manage 1 megabyte for the stack and there's no standard way to increase it? Get off my lawn). But then you can also experience new ways of struggling with C++, like: A middle of the night power failure wrecked my computer's GPT (as in GUID Partition Table, but also the other one) and I was deep in the depths of taking the computer apart to reset its parts, its BIOS (its Basic In/Out System, which is where it stores its biography) and its hard drives were everywhere on the floor, and it could not be saved, and this after I already broke my computer this year by trying to put the world's biggest video card in it, too hard. And I could not merely perform recovery because of Unknown Error, so I had to begin anew again and restore from backups. But when you restore from backup and you're in the mood of "why is this so complicated and I don't understand how computers work any more?" it occurs to you (me) to also change your underlying development environment instead of reinstalling the devil you know. So I ended my friendship with Cygwin64 and switched to new best friend MSYS2. Both of these things are different ways of wishing that you were using Linux while you're using Windows. The main reason I tried this new way of struggling is that Cygwin is very behind on its version of x86_64 clang (C++ compiler), which I wanted to try because it supports AddressSanitizer and clangd on Windows, and I wanted to give LSP in emacs a shot (it's finally good!). There were a few growing pains, but I think MSYS2 is what I would recommend now. One of the nice things they did was create multiple different environments depending on what you want to do (e.g. "I want to use clang to compile x86_64 code" or "I want to do 32-bit cross compilation for ARM") and in that environment, you just say "g++" and it invokes the compiler you want, instead of the weird contortions I've been doing for years with manually invoking x86_64-w64-mingw32-g++. I was also able to get clblast working before being too filled with rage to continue, so that is nice for the ML inference on the world's biggest graphics card. I made these graphics to help me tune the correct settings of GPU layers (y axis) and number of threads (x axis):


tune-single

tune-batch


In some sense the results are obvious (more threads and more layers is faster) but it was interesting to me how the cliff of performance drops off at a different number of layers for single and batch mode (I guess because the batch needs some memory itself?) and how it's clearly better to use fewer threads than cores for batch as well. I was not surprised to see performance drop off for >32 threads (everybody knows that hyper-threads kinda suck) but I was very surprised to see performance pick up again when it gets back up to 64? And only for single mode? I wish I understood that better. But mostly I'm a sucker for the custom visualizations.

Right but when writing this compiler I realized that I wanted to use some Greek letters, and I can't handle it when some characters are in a different font in my source code, so I finally made some space for those in my programming font FixederSys. These certainly still need some tweaks, but it's already better than just being in some other weird font:


{{{caption}}}


You can also see that I have been adding some "useful" emoji at the top. It is an interesting puzzle to try to make these things recognizable (especially for the 1x version, whose charboxes are 8x16 pixels). I am pretty sure I will not try to do all of the emoji (like, the flags are totally hopeless at 8x16), but it is tempting to round out the Unicode support somewhat. Like I was trying to make a ¯\_(ツ)_/¯ today and had to settle for ~\_( :) )_/~ which is pretty much (ノಠ益ಠ)ノ彡┻━┻.

Also: Adam revived our old game jam game Headcat, which I described in post 927, now over 16 years ago. You can play it online at Headcat.org. It is harder than I remember, perhaps explaining why it did not reach #1 on the One Appstore Per Child charts.

Also: I started and finished (true ending, but just with one character) Slay the Spire. Good game, but you don't need me to tell you that. Same for Alwa's Legacy, which is the sequel to Alwa's Awakening. Both of these are very true-to-form "8-bit" and "16-bit" platformers that I enjoyed and would recommend for genre fans, though I did not try to 100% them. The graphics are the highlight and I thought it was very cute how these could easily have been a pair of games from the NES and SNES. The good old days. And speaking of good-old days, I am now playing Katamari Damacy, which I had played at a friend's house many years ago, and always wanted to spend more time with. It totally holds up (aside from stuff like: You have to play through the tutorial and first level before you can access the menus at all, like to make the game fullscreen?) and it's honestly inspiring how unhinged the game design and writing are, and how fun it manages to be. What an accomplishment!








title

Untitled






title

Untitled




title

Cavan hold on to Ulster U21 title

Cavan retain the Ulster Under-21 Football title as they edge out Tyrone 1-10 to 0-10 in Wednesday's final at Brewster Park.







title

Untitled






















title

Untitled




title

Untitled




title

Untitled







title

Scandals, crashes & rivalries - eight dramatic F1 title battles

The 2024 title fight is getting heated between Max Verstappen and Lando Norris - here are eight other memorable championship battles.




title

Liverpool's to lose? Is Premier League title race down to two already?

Is the Premier League title race down to two teams after just 11 games? BBC Sport looks at the chances of the top four.




title

Problem Notes for SAS®9 - 66496: Titles and footnotes do not span the full width of a page when you use the COLUMNS= option with the TAGSETS.RTF_SAMPLE tagset

Titles and footnotes do not span the entire width of the page when you use the COLUMNS= option with a value that is greater than 1 with the TAGSETS.RTF_SAMPLE tagset. When a value that is greater than 1 is specified for th




title

Realmuto 'excited' to compete for title with Phils

The Phillies introduced J.T. Realmuto, their new All-Star catcher, in a news conference Tuesday at the team's Spring Training complex in Clearwater, Fla.




title

OCR Letter Says Connecticut's Policy on Transgender Athletes Violates Title IX

The U.S. Department of Education's office for civil rights says that Connecticut's interscholastic sports governing body violates Title IX with its transgender participation policy.




title

FAO titles in e-reader format – bringing knowledge to you

How do you prefer to read? On your phone, on your tablet, on your computer, or in print? And maybe the way you do it today is not the same [...]




title

Hardy Cup winning head coach leads first 3-5 team to a Canada West football title

The University of Regina Rams knock off their provincial rivals, the University of Saskatchewan Huskies to win their second ever Hardy Cup championship. An emotional Rams head coach, Mark McConkey talks about how his team was able to overcome a rough regular season and win the title.




title

Calgary's Cavalry FC dethrones Hamilton's Forge FC for 1st-ever Canadian Premier League title

Calgary’s Cavalry FC can finally call itself Canadian Premier League champions. Playing in front of its hometown crowd, Cavalry FC dethroned the four-time champions Forge FC from Hamilton 2-1 Saturday in Calgary.



  • Sports/Soccer/CPL

title

Canada's Keegan Messing, Madeline Schizas claim 1st national figure skating titles

Keegan Messing won the men's title at the Canadian figure skating championships on Saturday, all but clinching his berth on the Olympic team for Beijing.



  • Sports/Olympics/Winter Sports/Figure Skating

title

Keegan Messing wins 1st national title, Roman Sadovsky takes silver

That Figure Skating Show recaps the men's program at the 2022 Canadian National Championships in Ottawa and discusses who likely made the Olympic team.




title

Title IX Rule Details How K-12 Schools Must Address Sexual Harassment, Assault

The Education Department outlines when and how schools must respond to reports of sexual assault and harassment under the Trump administration's interpretation of Title IX, the federal law that prohibits sex discrimination.




title

After Actor Ajith Kumar, Kamal Haasan Declines All Titles And Prefixes Including 'Ulaganayagan'

Earlier, actor Ajith had similarly asked fans to call him AK or Ajith Kumar instead of the title "Thala"