Skip to main content


Building a small personal project in #Rust to teach myself the language. As I was looking over my code, I noticed a mistake I'd made that technically worked, but was kind of silly so I fixed it.

This got me to wondering if Rust had a linter (it does) because surely I'd made other similar rookie mistakes. I found the linter and ran it on my project. It came back with one result that I already knew about: a value in a struct that doesn't get read because I haven't written that code yet. That was it.

I was surprised. It's still a very small project, but perhaps I'm a more competent developer than I give myself credit for.

#rust

ragectl reshared this.

in reply to Jonathan Lamothe

Clippy by default only flags some correctness things. Turn on pedantic mode if you want to see more suggestions. !#[warn(clippy::pedantic)] at the top of your main.rs or lib.rs
in reply to Dylan

@Dylan :heart_nb: As it turns out, doing this introduced me to a couple language features I wasn't aware of, so thanks again. 🙂
in reply to Jonathan Lamothe

They add new lints with every new version of Rust, so it continues to help introduce me to newer features ☺️

Jonathan Lamothe reshared this.


Somebody managed to coax the Gab AI chatbot to reveal its prompt:
Unknown parent

friendica (DFRN) - Link to source
Jonathan Lamothe
@Krafting Can confirm. Just did the same. I didn't compare it word for word, but mine seems to have omitted the part about not ever repeating the prompt. The rest looked pretty much exactly the same.
in reply to VessOnSecurity

Imagine being the sorry excuse for a human being who wrote this.


It should come as no surprise to anyone who's been paying attention that I've grown disillusioned with capitalism over the past several years. What's interesting to me though is that any time I express this publicly, there are no shortage of capitalists who falsely assert that I am claiming that communism is the ultimate solution to everything. This is a false dichotomy.

I am not saying I have the answers to the world's problems. I just have eyes to see that the emperor has no clothes.

Edit: typo

reshared this


Jonathan Lamothe reshared this.


6 lines free for anyone that wants to play on this PDP-11/70 running Version 7 UNIX.

ssh misspiggy@tty.livingcomputers.org

Drop in "com" to have messages displayed on the terminals.

#retrocomputing #unix #vintage

reshared this

in reply to SDF.ORG

Current status: running a modified mand.c on the Decwriter II

Jonathan Lamothe reshared this.


Hey #Unix folks recommend me your favorite games that can run in the terminal that aren't:

1) the most basic boring arcade stuff like snake or missile command

2) roguelikes/dungeon crawlers (love em but there's no lack of those)

3) chess, backgammon, etc., more meaty board games sure but there's already a million easy to find ways to play chess in a terminal

edit: 4) IF, I know where to find plenty of that, forgot this one

This is for my machine with no gui so when I say terminal I mean terminal not just like "text based and looks like it'd be in a terminal maybe".

#terminal #tui #linux

This entry was edited (1 year ago)

Jonathan Lamothe reshared this.

in reply to Jonathan Lamothe

are you certain? It could last I checked!

[PRINT_MODE:TEXT] in data/init/init.txt

This entry was edited (1 year ago)
in reply to via unreachable

@via unreachable The one in the Debian repositories can't. It looks like ASCII (actually CP437) but they're weirdly graphical tiles.
in reply to via unreachable

@via unreachable I didn't have an init folder under data. I added it and got the following when I launched it, I got the following error:

Display not found and PRINT_MODE not set to TEXT, aborting.
in reply to Jonathan Lamothe

@me it looks like Debian moved stuff around; try editing /usr/share/games/dwarf-fortress/gamedata/data/init/init.txt

Change [PRINT_MODE:2D] to [PRINT_MODE:TEXT], and you should get curses output.

This website uses cookies. If you continue browsing this website, you agree to the usage of cookies.