Posts tagged with "Rust"

Recently I found - 11

1 min read; 13 GFI

Introduction

An occasional collection of things I've recently found on the Internet and added to my bookmarks.

Outcrop

A geology app that shows the geologic map wherever you are, draws it onto the land in front of you in augmented reality, and works offline. I've yet to give it a go, but I can see it being an interesting thing to play with on my next visit to Whitby.

Building a Gemini server in Python

Someone's journey building a Gemini protocol server in Python.

Anytext

A hard fork of Textual. There are some deviations, but it's very much worth keeping an eye on because a) it's being actively maintained (unlike Textual itself) and b) it will also allow building applications that run inside a web page.

Who wants to fuck with Elon Musk?

An effort to build a monument to Elon Musk.

Anatomy of Apple's Personal Knowledge Graph

A post that goes into detail about Apple's personal knowledge graph, and how to access the content on macOS.

Psychological Reactions to Subordinates' LLM Use at Work

Quote: "The present research uncovers a novel, robust effect: subordinate LLM use decreases supervisory trust. The effect is consistent across contexts, task criticality, and supervisors’ prior LLM experience, and is only eliminated when LLM use at work is specifically encouraged. This work informs leadership theory and practice and extends the emerging literature on human-AI interaction at work. While subordinates’ LLM use involves benefits and downsides for subordinates and the organizations in which they work, their supervisors may view such use largely negatively."

Rust Style Guide

Google's style guide for Rust code.

Abyssal Garden

Another one of those things to load into the browser during a very boring all-hands.

Suicide of a Nation

Shaun takes on a questionable book, with a fascinating side quest related to using AI/LLMs as writing aids. While there's plenty of interesting political content here, I think there's also a lesson for the adoption of LLMs internally within businesses -- one they will either never learn, or will learn too late.

Cone City

Web-based tongue-in-cheek driving game set in Glasgow.

Build Your Own Paint

A Rust tutorial in which you build your own simple Paint application.

Now for some Rust

2 min read; 10 GFI

I'm sure I've mentioned it plenty of times on this blog over the years, but I like to dabble with programming languages. For some people, writing code is purely a job; they concentrate on one language, do it well, and that's enough for them. I can respect that. For me, though, writing code started as a hobby, long before I ever did it as a living, and it continues to be a hobby.

A consequence of this is that I like to try to wrap my head around a new language every so often. Over the years, I've written code with:

  • Assembler
  • BASIC
  • C
  • C++
  • Clipper
  • COBOL
  • Common Lisp
  • Emacs Lisp
  • JavaScript
  • Julia
  • OCaml
  • Pascal
  • Perl
  • PHP
  • Python
  • Ruby
  • Scheme
  • TypeScript

and probably some others I've forgotten to add to this list. One or two I like to think I've (mostly) mastered (at least at one point in my cycle of use); others I've dabbled with to the point of having some fun and nothing more.

This last week, I've started to add another language to the list: Rust. I don't know where on the usage scale it will end up yet (either quick dabble or the walk to attempting to master), but I'm finally getting to grips with it and the urge to do so is sticking.

I've had a couple of goes before now, both times making an effort to work through the book. For some reason, both those times in the past, I lost interest. I think it's because -- as I've often said -- I'm the sort of person who needs a purpose when it comes to learning a language. So, to this end, I'm working on the problem I've used for this so many times before: I'm writing a Norton Guide reading library.

As always, for me, this is a great project to work on: it's a problem I know well, it's an outcome I know well, and it's a requirement that touches on all sorts of issues that you want to be thinking about when learning a language. Already, while working on this, I've had to learn something about how to build a library package, how to lay the code out, what Rust does for the obvious bits of syntax you tend to go looking for, how to do memory management, how to do file IO, and so on.

I won't claim that what I've got written so far is good Rust. I suspect that much of it isn't even idiomatic Rust (yet). What I do know is, so far, the code is working, and in getting it to work, I've started to understand some core concepts of writing Rust.

I now want to see it through to the finish. Heck, who knows, perhaps I'll eventually take it further and build a Rust-based sibling application for AgiNG so I can see how working with Ratatui compares with all my experience with Textual.