søren peter mørch

Timeline

Recent posts from feeds followed by sorenpeter@darch.dk

itsericwoodward (itsericwoodward.com)

In more frustrating news, I did something to my primary laptop, and now it crawls along like a 2005 Celeron trying to run Windows Vista.

My laptop is nothing too special (a Lenovo powered by an i7-1255U (4+8) @ 4.70 GHz with integrated "Iris Xe" graphics), but I've been running Manjaro Linux (with KDE Plasma) on it for the past couple of years, and apart from the odd pamac / pacman / "Add Remove Software" inconsistency (or Plasma widget issue), it's been running pretty well.

Then, a few days ago, it started bugging about updates, and yesterday it added complaints about an unsupported kernel, so I finally pulled the trigger on it, and boy do I regret it.

I initially kept having issues downloading all of the updates (it was trying to download some kind of non-existent Quake-related library, which I had to remove), and I also had issues getting rid of the unsupported 7.1 kernel (due to some "meta" packages that had been installed), but in the end, I resolved both issues, got the kernel removed and the updates installed, and everything seemed fine after the post-update reboot... for about 10 minutes.

And that's when the machine just decided to start moving at 1/3 speed: typing, moving the cursor, changing windows - everything started acting like it was 2008.

When I first tried to diagnose it, top showed kwin_wayland eating 50% of the CPU, and plasmashell another 10%, but it wasn't consistent (they both came and went). I disabled all of the desktop effects, which helped some, as did blanking my plasma config (setting my desktop back to default), but things are still noticeably laggier than they were a few days ago.

Someone online suggested freeing up 25% space total on my root drive (which typically runs 90-95% full), so I've been cleaning up (and offloading) as much as I can. If that doesn't work and I don't find a solution by the end of the week, I'll probably have to backup my data, wipe the machine clean, and start fresh. 🙃

Read replies 3 weeks ago
movq (www.uninformativ.de)

Why.

Python’s numeric types complex, float and int are not subtypes of each other, but to support common use cases, the type system contains a straightforward shortcut: when an argument is annotated as having type float, an argument of type int is acceptable; similar, for an argument annotated as having type complex, arguments of type float or int are acceptable.

https://typing.python.org/en/latest/spec/special-types.html#special-cases-for-float-and-complex

Read replies 4 months ago
lyse (lyse.isobeef.org)

@david Oh, really? I thought I've posted compose view screenshots before. Anyway. Glad you like it as much as I do. :-)

The update interval has always been one second. I just didn't remember and thus tried to time it by watching the preview update while typing. It felt like roughly under two seconds, but apparently my inner clock was off. After taking the screenshot and then examining it more closely, I noticed that the interval is stated right in the UI. :-D So, I just amended my message and didn't bother taking a new screenshot. I figured I just leave it alone and see who spots the change, if at all. And, of course, you found the easter egg. Congrats, mate! 8-)

In reply to: #2d46jinhbngc 4 months ago
movq (www.uninformativ.de)

(Just a brain dump, nobody needs to read this.)

I really think I should go back to Java.

Writing programs in Python is so exhausting. I want a compiler and I want static typing. No, linters and type checkers and IDEs are not good enough. Compilers catch way more errors in advance.

Rust is also exhausting. They’re constantly adding language features and, at the same time, the runtime library remains tiny and you need 3rd party libraries for everything. Many of those are still at version 0.x (SemVer!) and you can’t rely on anything. Often times, you need the latest Rust nightly compiler.

Go is … I don’t like it. And huge binaries.

I like C as a language, but it’s too fragile. I want to have a proper HashMap every now and then.

None of the above have good GUI libraries, at least not on Linux.

And then there’s Java. This is my fractal renderer that I wrote over 17 years ago:

https://movq.de/v/fcd3c4e557/vid-1784121825.mp4

It’s fast. It has a GUI with custom widgets and those weren’t even hard to make. It still works without changing a single line of code. The source code files have timestamps from 2009 and I just noticed that the JAR file I’m using in the video was compiled in 2010.

Java as a language is relatively easy to learn and to master. There are few surprises. The source code organization with packages is good. Java API docs are clear and well written.

The JVM ramp-up times have improved considerably:

https://movq.de/v/e7314e521e/vid-1784121998.mp4

This isn’t like the Dark Ages anymore. Might even be usable for some CLI tools.

The only thing where Java really sucks is anything close-ish to the kernel. Try issuing an ioctl() … I couldn’t have made my TUI framework in Java, but then again, I wouldn’t have needed to because Swing already exists and it just works.

Read replies 4 months ago
bender (twtxt.net)

@tftp mentioning in here requires he whole shebang. With jenny, if using vim, there is a key combination:

Nick name completions: Allows you to use ^X ^U to turn verbatim nick names into full twtxt mentions. For example, typing "cath" and then pressing ^X ^U will turn "cath" into a full mention, like "@cathy". (This function will read the contents of your "~/.config/jenny/follow" file.)

See: https://movq.de/git/jenny/file/vim/README.html

In reply to: #oczncxq 6 months ago
lyse (lyse.isobeef.org)

@movq Oh, nice! I never was brave enough to try to move the OS to a different machine, always reinstalled from scratch. :-S

A mate also had this or a very similar white Samsung netbook. I remember typing on that thing was no fun at all for me, never hit the single right key. :-D

I'm not a fan of netbooks, there's not remotely enough screen space for my taste. I always had 15 inch notebook. Sure, they are way heavier, but I can actually get work with them done. And yes, glared screens are an invention right from the devil himself. Completely stupid.

In reply to: #jlsndbq 6 months ago
prologic (twtxt.net)

Hmmm 🧐 I'm annectodaly not convinced so-called "AI"(s) really save time™. -- I have no proof though, I would need to do some concrete studies / numbers... -- But, there is one benefit... It can save you from typing and from worsening RSI / Carpal Tunnel.

Read replies 1 year ago
prologic (twtxt.net)

@movq Speaking of "clusterfucks". Every fucking time I try to type something on my fucking goddamn iPhone's little tiny ass on-screen keyboard it ends up typing out "I love you!" 🤟 For fucks sake 🤦‍♂️ -- Given the size of the fucking goddamn on-screen keyboards on these things and folks with limited/poor vision, can't we figure out what I meant to type instead of spitting out total garbage nonsense that I had no intention of typing that makes me just look silly and stupid?! 🤬 Ask @bender how many times this has happened on IRC whenever I've been on my phone 📱

In reply to: #zpok27q 1 year ago
prologic (twtxt.net)

@alexonit Holy fuck! 🤣 I just realized how bad my typing was in my reply before 🤣 🤦‍♂️ So sorry about that haha 😆 I blame the stupid iPhone on-screen keyboard ⌨️

In reply to: #3h7w7ca 1 year ago
bender (twtxt.net)

@prologic not me. I hate monosyllabic replies, specifically on the written medium, so I am just typing this to make it longer. But that doesn't change the truth, and that is, I don't want, nor care, about twtxt, and Activity Pub integration. 😅

In reply to: #32zhfoa 1 year ago
Reply via email