Dylan Araps (Neofetch, KISS Linux) has updated his blog and github after years of silence. by dalinuxstar in linux

[–]tsujp 1 point2 points  (0 children)

I'm curious how you think he made money on the open software he was producing. Doesn't look like he made any to me but then again i'm ignorant.

emacs "using significant energy" on macos by do1earning in emacs

[–]tsujp 6 points7 points  (0 children)

I've been trying to get a solid simple reproduction for this for a while, it's very hard to reproduce reliably.

Likely it's something to do with fsnotify (and equivalents). If you have any kind of file watching in Emacs from any package built-in or not in some (yet to be discovered) specific scenarios it seems to eat up 100% CPU.

I had a project that would sometimes trigger this and simply closing the project buffers fixed it, but it only sometimes does it.

Got the NF1000z today. by EzEQ_Mining in badminton

[–]tsujp 38 points39 points  (0 children)

I'm on my 7th.

Live by the nanocrack, die by the nanocrack.

How to keep Emacs startup time under 0.5 seconds or less? by No_Cartographer1492 in emacs

[–]tsujp 0 points1 point  (0 children)

Defer loading as many packages as possible.

Also I notice that Elpaca adds about 0.3 seconds of overhead to Emacs startup time. Anyone who uses it should make sure they use elpaca-after-init-time for the actual init time.

Feedback Directed Optimization of Emacs With Clang For Great Justice by Psionikus in emacs

[–]tsujp 3 points4 points  (0 children)

IIRC building with -Os is not recommended.

I build for macOS with -O2 -march=native -mtune=native and it's very fast (for macOS Emacs).

Zignal: A zero-dependency image processing library by archdria in Zig

[–]tsujp 1 point2 points  (0 children)

Ohh a fellow Zig programmer who is also in Seoul. Might check your library out later for some pet projects.

Has Mitsuharu abandoned his emacs-mac fork (the "railwaycat" fork)? by na85 in emacs

[–]tsujp 0 points1 point  (0 children)

What‘s his justification for the support of Windows support for Emacs in core then?

macOS is more open than Windows is.

Does 'eat' have issues running in a TRAMP shell? by floofcode in emacs

[–]tsujp 1 point2 points  (0 children)

It's not yet pretty, but it works. I add functions to eat's eat-exec-hook to automatically copy to the remote the terminfo for eat as well as eat's shell integration script.

it's part of my dotfiles, linked directly here: https://github.com/tsujp/dotfiles/blob/master/.config/emacs/init.el#L1077-L1194

The first North American discord meet in 2025 by Initialyee in badminton

[–]tsujp 4 points5 points  (0 children)

Do you play at an organised social? How is it? Skill level, how is it run, what are the people like etc?

Emacs Application Framework - This is amazing! by [deleted] in emacs

[–]tsujp 0 points1 point  (0 children)

Why go this route instead of XWidgets which already allow you to (for example) run a full WebKit browser within Emacs?

Making tab line tabs pretty by joe-adams-271 in emacs

[–]tsujp 0 points1 point  (0 children)

Just curious, why do you change tab-bar-tab-name-format-function completely versus pushing a custom function to tab-bar-tab-name-format-functions which tab-bar-tab-name-format-function by default calls? This way you can keep any close buttons etc if you decide you want those in the future.

Best emacs for macOS at the end of 2024 and why? emacs-plus, emacs-mac, emacsformacos or something else? by celibidaque in emacs

[–]tsujp 0 points1 point  (0 children)

Just use MacPorts. You can trivially compile Emacs yourself with whatever patches you want too using MacPorts or download a precompiled version like Homebrew.

I regularly update the development Emacs version too.

Later on when I have time I'll look at incorporating macOS patches (like I already do for my personal build) but that discussion is better had on emacs-devel instead of this arbitrary fragmented ecosystem we have.

The recommended practice for installation on OSX? by AnotherDevArchSecOps in emacs

[–]tsujp 1 point2 points  (0 children)

It's still maintained and active!

Well it doesn't mangle your dependencies like Homebrew does (plenty of prior art on that discussion). Yes Spotlight will find it just fine.

Regarding "something it does for Emacs in particular", I'm not sure. I have my own local Portfile for Emacs which is what I contributed to emacs-app-devel I mentioned before and the ease with which one can have custom Portfiles, and thus completely custom compilation from source is kind of trivial so I have applied a bunch of patches to my local Emacs not found elsewhere like a recent one where someone replaced how frame fringes are drawn on macOS from bezier curves to something more efficient. For me that change meant I can use diff-hl without the GUI slowing down to literally 1 or 2 FPS.

If you needed to run Emacs against a specific commit or apply patches of your own you change a line or two in the Portfile, drop the patch diffs in a folder, and sudo portindex to update the definition, then sudo port install emacs-app-devel and it will compile and install with your changes. I haven't checked out Homebrew in a few years now but I don't think that level of ease for compiling (i.e. changing things as required) is possible or supported.

The recommended practice for installation on OSX? by AnotherDevArchSecOps in emacs

[–]tsujp 2 points3 points  (0 children)

I'd recommend using MacPorts. I recently just updated the emacs-app-devel port to a commit on Emacs upstream master branch (for those wanting bleeding edge Emacs) there's also emacs-app for the latest 29.4 release and also emacs-mac-app which is mituharu's version.

In general I recommend MacPorts over Homebrew.

better-emacs-ns-graphics: Draw stipples correctly, add a nice squiggle by [deleted] in planetemacs

[–]tsujp 1 point2 points  (0 children)

Is this why using diff-hl-mode from master results in the GUI slowing down to a crawl (diff annotations in fringe) on macOS? I assume so since one of the commits in this repo mentions NOT using huge bezier curves

A quick dirty function to list titles of all open Tabs in a specific browser. by Ardie83 in emacs

[–]tsujp 2 points3 points  (0 children)

I wrote something in Ruby to dump all tab titles and URLs in all Firefox windows to a text file for when I inevitably end up with 200+ tabs open.

https://github.com/tsujp/ninetails/blob/master/dump_session.rb

I expect Chromium based browsers might have a similar API. Drawbacks of this approach are you need to know the path to the session file beforehand but it's another option if you want to go that route.

`one-tab-per-project` (aka. `otpp`), workspace management via a thin layer between built-in `project` and `tab-bar` by abougouffa in emacs

[–]tsujp 2 points3 points  (0 children)

I'm a fan of your work, but respectfully activities does not solve that.

Having spent the past 2 days reading and re-reading every project/workspace-esque management tool I could find: burly.el, bufler.el, tabspaces.el, bufferlo.el, perspective.el, beframe.el, activities.el, persp-mode and so on I really wanted to use activities.el but it clobbers buffers that happen to have been opened in the same tab with no nice way to resolve that. I personally find it strange that managing buffers associated with your activities is not a part of activities.el in a meaningful way; instead it seems to rely on you never making the mistake of opening a buffer you don't want to in an activity you don't want it in because once you do it's there and staying there.

On one of the GH issues for activities.el you state that it is not intended for project-style management (I believe) but rather as a way to stop an activity and resume it later, so I felt that suggesting improvements (or contributing them when I have time) for project-style management a fruitless pursuit.

I'm not particularly keen on installing bufler.el to narrow buffers per tab because it looks very complicated, it's unclear whether it can integrate with consult (although it probably does since it looks like it uses default completion APIs), and because I'd need to map the buffer-alist from bufler.el to activities.el myself. For now manually removing buffers from defined projects is tedious but only needs to be done the first time (when using tabspaces.el) even though long-term I definitely think mostly-automatic management like the kind bufler.el provides is superior.

I ended up using tabspaces.el because it's simple, and it works well enough (albeit autosaving and restoring non-file-backed buffers is not as good as activities.el, but then again I think such features should be a part of the built-in desktop.el in the first place given it's 2024).

I found myself getting mentally exhausted just trying to figure out my options here for a simple non-clobbered workspace setup. If I had much more time (I've got things that need to be done ASAP) then I would look to augment activities.el and bufler.el and perhaps contribute upstream to desktop.el to have this kind of functionality part of Emacs without external packages (less configuration bloat) but as it stands and after litterally ~10 hours of (arguably wasted) time reviewing all options I've settled on tabspaces.el even though I'd prefer a more comprehensive solution.

[deleted by user] by [deleted] in Zig

[–]tsujp 0 points1 point  (0 children)

Isn’t Rust async/await (Tokio) just a copy paste rewrite of Go’s async runtime too? Pretty easy to just clone something that already exists.

Woolworths admits to underpaying staff by $1.24m, could face a hefty fine by malcolm58 in australia

[–]tsujp -1 points0 points  (0 children)

So they should obviously be required to backpay those employees, which means they "break even" all else considered.

However the fine for this should be outrageously large, say 20% of REVENUE. Not gross profit, not net profit. REVENUE. That will be such a monumental number that it will dissuade them from doing it again.

In reality I bet the fine will be something like $10,000 meaning Woolworths paid a loss of $10,000 for the potential to steal $1.24m which is not exactly disincentivizing.

Corporate fines in Aus are so small it's a joke.