Readit News logoReadit News
ghewgill commented on Advent of Code 2025   adventofcode.com/2025/abo... · Posted by u/vismit2000
fainpul · 20 days ago
Opinion poll:

Python is extremely suitable for these kind of problems. C++ is also often used, especially by competitive programmers.

Which "non-mainstream" or even obscure languages are also well suited for AoC? Please list your weapon of choice and a short statement why it's well suited (not why you like it, why it's good for AoC).

ghewgill · 19 days ago
I've done AoC on what I call "hard mode", where I do the solutions in a language I designed and implemented myself. It's not because the language is particularly suited to AoC in any particular way, but it gives me confidence that my language can be used to solve real problems.

Neon Language: https://neon-lang.dev/ Some previous AoC solutions: https://github.com/ghewgill/adventofcode

ghewgill commented on Fstrings.wtf   fstrings.wtf/... · Posted by u/darkamaul
pansa2 · 5 months ago
The walrus operator hardly changes that example at all:

    if m := re.match(pattern1, line):
        do_stuff(m.group(1))
    else:
        if m := re.match(pattern2, line):
            do_other_stuff(m.group(2))
        else:
            if m := re.match(pattern3, line):
                do_things(m.groups())
            else:
                m = ...
I've found `:=` useful in the headers of `while` loops, but that's about it. The complexity that walrus adds to the language far outweighs its usefulness.

ghewgill · 5 months ago
The walrus operator allows you to use `elif` there to avoid cascading indentation.

    if m := re.match(pattern1, line):
        do_stuff(m.group(1))
    elif m := re.match(pattern2, line):
        do_other_stuff(m.group(2))
    elif m := re.match(pattern3, line):
        do_things(m.groups())
    else:
        ...

ghewgill commented on Information has been permanently deleted, for small values of permanently   devblogs.microsoft.com/ol... · Posted by u/Tomte
Mystery-Machine · 6 months ago
Interesting that this comes from a Microsoft employee...
ghewgill · 6 months ago
Raymond Chen happens to have worked for Microsoft for a long time, but he is an institution unto himself.
ghewgill commented on I built a native Windows Todo app in pure C (278 KB, no frameworks)   github.com/Efeckc17/simpl... · Posted by u/toxi360
scripturial · 7 months ago
The allure of the perfect notes and todo app. Having gone through phases of various modern todo and note apps over the years, I’ve finally let it go and decided to embrace just using text files. (Neovim for me, not that it matters which text editor one uses)

It’s not that there aren’t cool apps for this stuff, it’s more that I have a trail of data across various todo and notes apps from years of different tools.

One solution to the problem of making things “feel native” is to go all in on letting go of native. Target a different style, be it minimalism, Commodore 64, pixel art, etc… it can be fun that way, especially if it’s mostly just a tool for you.

ghewgill · 7 months ago
If text files are your world, then http://todotxt.org/ might be for you. I'm currently using "pter".
ghewgill commented on I built a native Windows Todo app in pure C (278 KB, no frameworks)   github.com/Efeckc17/simpl... · Posted by u/toxi360
sargstuff · 7 months ago
Ah isn't the user32:<windows api functions> a framework not related to 'pure' C?
ghewgill · 7 months ago
The colons there don't represent C++. That's just a way of referring to a windows API function that exists in a specific DLL (in this case "user32"). Because the functions used here do not exist in older versions of Windows, the linked code dynamically loads user32.dll and tries to get the address of those functions so they can be called. That's why you need to know which Windows DLL they exist in.
ghewgill commented on I built a native Windows Todo app in pure C (278 KB, no frameworks)   github.com/Efeckc17/simpl... · Posted by u/toxi360
ghewgill · 7 months ago
I think the hard limit of 100 todos is the best feature of this. Why don't other todo apps have this feature?
ghewgill commented on QModem 4.51 Source Code   github.com/AaronFriel/qmo... · Posted by u/AaronFriel
wenc · 8 months ago
Ah SLMR is OLX.

Mustang Software (Wildcat! BBS) bought Qmodem and SLMR (and renamed the latter to OLX).

ghewgill · 8 months ago
SLMR and OLX were by the same author, but OLX was a complete rewrite and didn't look anything like SLMR.
ghewgill commented on QModem 4.51 Source Code   github.com/AaronFriel/qmo... · Posted by u/AaronFriel
wenc · 8 months ago
This brought back memories. I remember dialling into BBSes using Qmodem, downloading QWKs (compressed email packets) from “conferences” (similar to newsgroups).

I would read/reply offline using OLX (Offline Express, a QWK reader also part of the Qmodem suite), and then batch upload my replies (.REPs, also compressed) to the BBS.

This was back in the day when you weren't connected 24/7, and when dial-up wasn’t unlimited (in my country — even if it was, BBSes were node limited so you couldn’t stay connected forever). So participating in BBS conferences meant quick dial-ins and uploads, where most of the messaging/replies was done offline.

Although bandwidth is abundant these days, I still think the QWK/REP idea is an attractive one. There is an art and a beauty to crafting replies offline from the cozy Turbo Vision UI that was OLX.

ghewgill · 8 months ago
OLX (and SLMR) author here. It gives me warm fuzzies to hear about your positive experiences with OLX, after all these years. To this day I maintain that Turbo Vision was peak computer UI, it's been downhill since. :)
ghewgill commented on A new form of verification on Bluesky   bsky.social/about/blog/04... · Posted by u/ink_13
fp64 · 8 months ago
A long time ago there was this “web of trust”, I don’t think it exists anymore. Was one of the big CA and you could get different certificates through some form of vouching, I think it even went as far as meeting people to show your ID and then they sign you or something. As it was run by a big CA, not really distributed but IIRC they kept their involvement minimal. It’s been a long time but if you’re curious maybe look into that
ghewgill · 8 months ago
You're thinking of the Thawte Web of Trust: https://en.wikipedia.org/wiki/Thawte which was run by Mark Shuttleworth (now of Canonical). The certificates were used for email, not for SSL. I lost track of what happened to it after CACert took over.

u/ghewgill

KarmaCake day1169January 24, 2011
About
https://hewgill.com

[ my public key: https://keybase.io/ghewgill; my proof: https://keybase.io/ghewgill/sigs/ekeqihd1f2-ueH7c1OfZUti7OexSibHHd1B2DEul6Fw ]

View Original