HN user

rickstanley

353 karma
Posts4
Comments189
View on HN

On top of that, the seemingly endless remakes... Some are praise worthy others not so much. I got tired of Resident Evil Remakes, they are just recycling the same formula over, and over, and over again... Innovation has left a long time a go. Other example is the recent Assassin's Creed Black Flag "Resync" (which is a remaster with some things on top of it), I was planing on buying it, but Jesus, Ubisoft couldn't let it pass: their launcher is still there, all DLC's together cost more than the base game (and why have DLC in the first place?), the menu is has an ad for Assassin's Creed Shadows which, etc.

I'm currently doing a course (I think it's equivalent to an "Associate degree" in USA) in Game Development. I feel demotivated to take part in this industry, and I think that, at least for me, it should be just on and off gig to do in my spare time, perhaps with other enthusiasts too, but I don't plan to pursue it.

I was wondering if it's possible to have the container volume change to, say, an external drive. I currently use QMEU with qcow2 images to achieve this, works well enough.

On The <dl> 2 months ago

I've used this a good amount of times, when I coded in front end projects. The first time gave me that satisfying feeling of using the right tool for the job, like completing a puzzle of HTML semantics. I remember JAWS not announcing it correctly in 2018, not sure if it's better now.

Textadept 5 months ago

I have this view as well. After years of Notepad++, the last security problem made me want to switch, not because of just that, but that, overall, since the author has an active voice expressing his political views (which is totally fine), I have this unease feeling that it makes him, and his products, a notorious target.

Searching for alternatives, Textadept seemed to fill the gap between features, speed and simplicity.

The plugin mentioned by the parent is really easy to grasp and tailor to my needs, which would not be the case with Notepad++, well, not for me at least.

Textadept 5 months ago

I downloaded it recently and found it to be quite useful for quick notes. And I can attest to its "fast" claim, using it on a heavily monitored corporate computer, with CrowStrike and what-not; curiously, and I may being hyperbolic here, but, I got the feeling that it was opening faster than MS Notepad, even with Copilot disabled.

The only thing missing is for me is the "save temporary file" behavior, as I have this habit of making a quick note, close to save up space, both in RAM and view, then later on, fire it up again. Will see if there's a Lua api for this later.

It's because of the trademark: https://stoat.chat/updates/long-live-stoat

Nevertheless, I don't like the new name either, oh well...

I like this comment though:

Imagine you make a free software project and it runs into trademark issues because people have more money than you to register in more classes than your project.

And then even though your project existed first, they still come after you anyway.

And from that an even more expensive rebranding from this as well.

from: https://news.ycombinator.com/item?id=45626225, not sure how accurate it is, but it makes me want to revolt .

Toady I used GLM 4.7 to port a C++ project of mine to Rust, so I could read and toy with it, to get into the language: https://codeberg.org/RickStanley/agatetepe-rs.

Really interesting results, not sure how well it is written but works. I was quite found of Rust syntax; it certainly is not as convoluted as C++ (in my opinion).

Then I read this article. Since I was already eye-balling Swift for some time, I decided to give it a try and port to it, using Rust implementation as reference, and this time, without much of A. I. assistance, if I could help it.

I'm using an qcow2 Debian trixie arm image in UTM as playground. I found out that there is no packaging for Debian at the time of this writing: https://github.com/swiftlang/swift/issues/60690. No problem! They have a script for installing: https://www.swift.org/install/linux/

    curl -O https://download.swift.org/swiftly/linux/swiftly-$(uname -m).tar.gz && \
    tar zxf swiftly-$(uname -m).tar.gz && \
    ./swiftly init --quiet-shell-followup && \
    . "${SWIFTLY_HOME_DIR:-$HOME/.local/share/swiftly}/env.sh" && \
    hash -r
But, god damn, the size is huge,
    Unsupported Linux platform
    Debian GNU/Linux 13 (trixie) is not an officially supported platform, but the toolchains for another platform may still work on it.
    Please select the platform to use for toolchain downloads:
    
    0) Cancel
    1) Ubuntu 24.04
    2) Ubuntu 22.04
    3) Ubuntu 20.04
    4) Ubuntu 18.04
    5) Fedora Linux 39
    6) RHEL 9
    7) Amazon Linux 2
    8) Debian GNU/Linux 12
    Pick one of the available selections [0-8] : 
    
    8 
    Installing swiftly in /home/debby/.local/share/swiftly/bin/swiftly...
    Creating shell environment file for the user...
    Updating profile...
    Fetching the latest stable Swift release...
    Installing Swift 6.2.3
                      Downloading Swift 6.2.3
    100% [========================================================]
    Downloaded 947.6 MiB of 947.6 MiB
    
    Verifying toolchain signature...
    Extracting toolchain...
    The file `/home/debby/ent/agateteper/.swift-version` has been set to `Swift 6.2.3`
    The global default toolchain has been set to `Swift 6.2.3`
    Swift 6.2.3 is installed successfully!
    There are some dependencies that should be installed before using this toolchain.
    You can run the following script as the system administrator (e.g. root) to prepare
    your system:
    
        apt-get -y install libicu-dev libcurl4-openssl-dev libedit-dev libsqlite3-dev 
        libncurses-dev libpython3-dev libxml2-dev pkg-config uuid-dev libstdc++-12-dev

947.6 MiB ! I wonder why is that...

We've been using Mapperly (https://mapperly.riok.app/), after a migration from AutoMapper, in our production application. I'm having a good experience, and we kind of like the holistic of this library.

So far, there have been no surprises, and the library warns about potential issues very explicitly, I quite like it.

Of course, if it's just a handful of fields that need mapping, than write manually is the way to go, specially if said fields require a custom mapping, where the library would not facilitate.

Thanks for sharing. I've been off editor hopping for quite some time, nowadays I just use some pre-defined configuration like Doom Emacs, occasionally I try to build some environment, with AI help, from "scratch" for fun and curiosity.

I really like Emacs' flexibility + evil-mode and reactivity, recently I searched for something similar and found Lem: https://github.com/lem-project/lem, looks promising, I'll try it out and compare with Emacs when I have the chance and time.

We tried to use LISTEN/NOTIFY for notification purposes, or rather, a queue in which the order mattered (well, kind of, we were aiming for the best scenario where a customer would not perform a specific task in a matter of milliseconds, because we could afford this expectation), in a .NET application using Npgsql.

The listeners were scattered between replicas, so we took advantage of Advisory Locks (https://www.postgresql.org/docs/current/explicit-locking.htm...) by choosing a unique key (unique to the data being sent) and before performing any task on the JSON payload, that the notification would send, we would first check the lock and continue the routine.

The NOTIFY routine was triggered after an insert in an Outbox table, so we could replay it if it failed for some reason.

Unfortunately I don't remember the exact reason we didn't use it, but I was bit sceptical for 2 reasons:

- I had a feeling that I was use this feature in a wrong way; and

- I read both the article and comments from this HN entry: https://news.ycombinator.com/item?id=44490510, and my first point felt validated;

but to this day I'm still unsure. Anyway, since it was a complementary system, it didn't hurt to leave it out, we had another background job that would process the outbox table regardless, but I felt it could/would give something closer to "real time" in our system.

When I had a Macbook from work, I set up an Arch Linux VM using their basic VM image [1], and followed these steps (it may differ, since is quite old): https://www.youtube.com/watch?v=enF3zbyiNZA

Then, I removed the graphical settings, as I was aiming to use SSH instead of emulated TTY that comes ON by default with UTM (at that time).

Finally, I set up some basic scripting to turn the machine on and SSH into it as soon as sshd.service was available, which I don't have now, but the script finished with this:

(fish shell)

    while not ssh -p 2222 arch@localhost; sleep 2; end;
Later it evolved in something like this:
    virsh start arch-linux_testing && virsh qemu-monitor-command --hmp arch-linux_testing 'hostfwd_add ::2222-:22' && while not ssh -p 2222 arch@localhost; sleep 2; end;
I also removed some unnecessary services for local development:
    arch@archlinux ~> sudo systemctl mask systemd-time-wait-sync.service 
    arch@archlinux ~> sudo systemctl disable systemd-time-wait-sync.service

And done, performance was really good and I could develop on seamlessly.

[1] https://gitlab.archlinux.org/archlinux/arch-boxes/-/packages...

Rereading books 10 months ago

I can not recommend Xenophon's Anabasis (AKA March Of The Ten Thousand) enough.

I'm rereading it for the fourth time, in less than 2 years. There's a variety of themes:

- political intrigue; - religion; - moral, ethics; - companionship; - brotherhood;

etc. Xenophon is eloquent and straight to the point, I really like his approach in this narration.

Now, on the topic of "rereading", I've often thought that maybe I should (have) read other books; that perhaps I was "spending too much time" in one book, but I just don't care enough to ruminate on this thought, and besides, there's always something new to learn from it.

Concurrently I'm reading "Crime & Punishment", which I also recommend.

Yeah. I was wondering if it would be feasible to have a superset language for C++, much like what TypeScript is for JavaScript. But I guess there's always the risk of bike-shedding hell.

On this topic, I've been wondering if models are capable of recommending other models for a given machine spec, for example: which model, if any, would be recommended for a laptop with a Ryzen 9 6000S and RTX 3060m (random spec).

I enjoyed Rogue One, they took a unexplored slice of the story after the legends thing and created this self contained, well written journey of a group that is only mentioned in the 4th episode.

Takin may have felt a bit off (uncanny valley), but I think it was a good choice to have him included in the story nonetheless. I like the cold, unhinged personality of this character; I've grown used to Peter Cushing's acting and facial features.

I feel like, there should be more exploration of Star Wars in the aspect of "mundane" life, like it's done in Andor. There's a big universe already established. Andor really helped me understand 2 things of SW universe: the oppression which built up the motivation for Cassian to join the Rebels, and, effectiveness of the Empire, specifically the ISB. God, the exchange between Daedra Meero and Blevin, with an added mediation of the cunning Major Partagaz was excellent. Reminded me of the discussion in Jurassic Park about ethics.

I think I saw all of them in a CSS Tricks post, but I too took the "simple" way. At first, I marvelled at the complexity of CSS units, but it didn't take long for me to tire of them.

Some tricks are still useful though, like using `calc` with `v[w|h]`, `[r]em` and `%`, that yield favourable and interesting results; fortunately you only have to remember and understand a subset of units to take advantage of this.

Fully agreed.

I myself use 2 terminals: Alacritty and WezTerm. The former for local work, and the latter for my VMs, and occasional remote server work.

I couldn't explain exactly why I use separated applications, since WezTerm works well for local (which even has a menu entry for that) and remote alike, but I'm comfortable with the workflow that I have today, and for me it's enough and what matters.

I used to use lsp-mode

Do you not use it any more? Have you switched to Eglot or something?

I use lsp-mode, was going to switch to eglot, but it doesn't have the features that lsp-mode has, like lsp-ui (as far as I can remember), and the last time a compared (last year), the performance impact was somewhat noticeable.

I'm a newcomer, started using Emacs in 2022, well, not vanilla, but Doom Emacs. I was immediately hooked! The defaults are sane for my workflow, and to make it short: it boosted my productivity. But, I've been bitten many times by Emacs' UI nature, unfortunately, mainly in big repos. It's not bad enough to drive me away though.

I has gotten better over this past year, I've noticed many improvements with Nativa Compilation and Tree-Sitter, not sure if it can get even better; I sure hope so.

I bought an iPhone last year. I started regretting it after 3 months of usage. Trivial things are a burden to set up, like:

- custom ringtone;

- emulators;

- lock screen rotation in landscape;

- listen to music from local storage without an Apple subscription;

I could go on and on. Most of them have solutions, but again, a burden to configure compared to an Android device. My next smartphone will be Android, once again. I just wish small smartphones were more common and had battery life comparable to Apple's.

I bought a second hand MacBook Pro 2015 to use Linux on. I'll let Asahi cook a bit more before moving to an M series.

My goal is to (1) try running an A.I. locally and see if it works, out curiosity, and (2) delve into A.I. concepts. I do not intend to use it as the definitive tool to code for me, and maybe I shouldn't.

Realistically, since we are in a Azure ecosystem, I would use Codex to try out a solution.