Posts
5441
Following
347
Followers
541
.

Jarkko Sakkinen

FINALLY, figured this one out:

# Apply Linux kernel patch.
macro index L "<pipe-message>b4 shazam -l -s ''<enter>" "b4 shazam"

Pay attention to ''. I don’t why it fixes everything but after hours of poking on the problem I had that by accident there and suddenly it all came together 🤷

0
0
1

Jarkko Sakkinen

Edited 5 days ago
Despite it will take still a bit of time to publish CCD, but I'll release libttk.so much sooner.

It's my retained mode single-threaded terminal UI ...

... i.e, it has jobs but they yield and multi-tasking is co-operative :-) Scenegraphs are thread-safe (or may thread-local?) in the sense that they don't shared local state.

Running fm in single-thread neither does prevent parallel processing thanks to POSIX and non-blocking I/O, and in Linux you have uring.

This is how I look at performance, when I visit the topic. I.e. not thread-bombing but only taking what you need and "stay out of the way bothering" :-)
0
0
0
Diseases that are contagious before people are symptomatic are especially hazardous and epidemic-prone. The epidemic is time-delayed from the initial outbreak. LLM usage begets more LLM usage, and LLM-written technical debt takes time to become symptomatic. Exponentials are harder to see from the middle.
1
3
0

Jarkko Sakkinen

Edited 7 days ago
Mind the overlapping scrollbar but looks every day more polished.

As can be figured out from screenshot, despite Ranger-alike appearance, this does not share vim-like navigation but instead has prompt always at bottom and mc-style shortcuts.

I'm a heavy vim-user myself but having less speedrun-logic in the file manager gives my brain a healthy context switch. Managing files should not be done in fast turns anyhow :-)
0
0
2

Jarkko Sakkinen

Edited 10 days ago

zpico is great: https://github.com/thornjad/zpico

And migration from zap was super easy:

# Must be set before loading `zsh-contrib/zsh-vivid`.
export=VIVID_THEME=catpuccin-mocha

export ZP_PLUGIN_HOME="${XDG_DATA_HOME:-$HOME/.local/share}/zpico/plugins"
if [ -f "$HOME/.local/lib/zpico/zpico.zsh" ]; then
  source "$HOME/.local/lib/zpico/zpico.zsh"
  zpico add "zap-zsh/supercharge"
  fpath+=("$ZP_PLUGIN_HOME/pure")
  zpico add "sindresorhus/pure"
  zpico add "zsh-contrib/zsh-vivid"
  zpico add "zsh-users/zsh-completions"
  zpico add "zsh-users/zsh-syntax-highlighting"
fi
0
0
0

Jarkko Sakkinen

PDF viewing is till very experimental and broken feature but getting there...
1
0
1

Jarkko Sakkinen

Edited 14 days ago
I just can't use floating point numbers because we don't have them in kernel code.

Thus I implemented fixed-point arithmetic library with 16:16: and 24:8 format for my file manager ccd. It has multiplication, division, sqrt and trigonometric functions. Trigonometric functions measure in brads (binary radians) i.e., scale of 256 degrees.
0
0
2

Jarkko Sakkinen

Uprised license in any of my project where I can to GPL 3.0.
1
0
0

Jarkko Sakkinen

yay vs paru in arch...

In my opinion, having that debate equals me not doing real work and system configuration is overloaded with maitenance debt.

Thus, in my opinion makepkg is better than either of two 🤷
3
0
2

Jarkko Sakkinen

I'm implementing query language with flex and bison for ccd because they do the job :-)

Example: !~G i ~f

This filters regular files, which are not in .gitignore.
0
0
0

Jarkko Sakkinen

Edited 17 days ago
1.0.2 with Arch Linux packaging files in addition to Debian:

https://codeberg.org/jarkko/libbasedir/src/tag/1.0.2
0
0
1

Jarkko Sakkinen

Instead fuzzy search or regular expression I will have mutt alike filter syntax in caffeine commander (ccd) with similar search modifiers.

#mutt
0
0
1

Jarkko Sakkinen

Edited 17 days ago

Pipewire daemon without systemctl (needed it this recently):

# In cat ~/.config/pulse/client.conf, set:
# autospawn = no

pid=$(pidof pulseaudio) && kill "$pid"
setsid bash -c '
  pipewire &
  PIPEWIRE_PID=$!
  wireplumber &
  pipewire-pulse &
  wait $PIPEWIRE_PID
' > /dev/null 2>&1 & disown

#linux #pipewire #note

0
0
1

Jarkko Sakkinen

One of the many reasons why Lua is my favorite scripting language, is that you don't need JSON, YML or TOML.

Lua works well for all those needs and purposes also as a data format.
0
0
0

Jarkko Sakkinen

WDF circuit modelling and learning all about the topic has by accident become my hobby 🤷

It started by learning to model some existing analog gear based on circuit diagram and getting surprisngly good results.

I've cut out all plugins to their own Git project from the Clarity DAW project in order to trim it to something accomplishable.

From that stash I've further split 808 plugin project, and will redesign WDF modelled internals :-)

Always nice to learn a craft and I could imagine that this can be generalized to circuit simulation overall, which is professionally useful craft.
0
0
0

Jarkko Sakkinen

This has spinned off from my recent side-projects and thought to release it because it is disturbing to reimplement this all the time:

https://codeberg.org/jarkko/libbasedir

There was not really great library to handle this simple task so here you go.
1
0
2

Jarkko Sakkinen

Edited 18 days ago
Caffeine Commander (ccd) is a terminal file manager written in C, based on non-blocking file I/O.

All I/O operations are asynchronous, and UI and CPU tasks share a single thread, making the most of the available resources :-) And this obviously minimizes context switch latency while at it.
1
0
4
Show older