Posts
4653
Following
319
Followers
484
Linux kernel hacker and maintainer etc.

OpenPGP: 3AB05486C7752FE1

Jarkko Sakkinen

Critical fixes for TPM2 authenticated sessions, which I still hope landing to 6.10:

https://lore.kernel.org/linux-integrity/20240703170815.1494625-1-jarkko@kernel.org/

#tpm #linux #kernel
1
1
2

Jarkko Sakkinen

Edited 1 year ago

I like to start a bug fix by:

$ git commit -a -s --allow-empty -m "Fixes: 1085b8276bb4 (\"tpm: Add the rest of the session HMAC API\")"
[auth-null d5d3411b52f7] Fixes: 1085b8276bb4 ("tpm: Add the rest of the session HMAC API")

$ git show
commit d5d3411b52f741cb16cfb7180d24f454e97b4570 (HEAD -> auth-null)
Author: Jarkko Sakkinen <jarkko@kernel.org>
Date:   Wed Jul 3 18:47:46 2024 +0300

    Fixes: 1085b8276bb4 ("tpm: Add the rest of the session HMAC API")
    
    Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>

So that I get the fixes-line backed up fast :-) Then I just amend the meat.

For generating the fixes line I have:

git-fixes() {
  git --no-pager log --format='Fixes: %h ("%s")' --abbrev=12 -1 $1;
}

#git #linux #kernel

0
1
0

Jarkko Sakkinen

I like this site: https://commit.style/
0
1
4

Sometimes while I'm digging around the bowels of PLs, I find websites straight out of the 90s for seemingly active projects:

https://unicon.sourceforge.io/

0
1
1

Jarkko Sakkinen

Edited 1 year ago

My initial ~/.vimrc for #vim after 3-4 years of using #neovim:

filetype plugin indent on
syntax enable

let g:mapleader = ","

set autoindent
set autoread
set formatoptions+=j
set guifont=MesloLGM\ Nerd\ Font\ Mono\ 12
set hidden
set history=500
set hlsearch
set listchars=tab:→\ ,trail:•,extends:›,precedes:‹,nbsp:␣,eol:↲
set nobackup
set nonumber
set noswapfile
set nowrap
set path+=**
set scrolloff=1
set showbreak=↪\
set showmatch
set sidescroll=1
set smarttab
set tags=./tags;/
set termguicolors

nnoremap <silent> <C-l> :nohl<C-R>=has('diff')?'<Bar>diffupdate':''<CR><CR><C-L>
nnoremap <silent> <leader>lcd :lcd %:p:h<CR>:pwd<CR>
nnoremap <silent> <leader>n :set number!<CR>

if !empty(globpath(&rtp, 'autoload/plug.vim'))
  call plug#begin()
  Plug 'ap/vim-buftabline', { 'as': 'buftabline' }
  Plug 'dracula/vim', { 'as': 'dracula' }
  Plug 'editorconfig/editorconfig-vim', { 'as': 'editorconfig' }
  Plug 'kaarmu/typst.vim', { 'as': 'typst' }
  Plug 'tpope/vim-commentary', { 'as': 'commentary' }
  Plug 'vim-scripts/git_patch_tags.vim', { 'as': 'git_patch_tags' }
  call plug#end()
endif

silent! colorscheme dracula

It’s quite short but does pretty much what I would ever want from a text editor:

$ wc -l .vimrc 
42 .vimrc
2
0
5
Couple more OS/2 screenshots - one in which IBM is explaining us how an office works (or should/could work). See image captions for transcript.
We're in 1994 or thereabouts, if I'm not mistaken. That's 30-ish years ago. I still miss it.
#retrocomputing #os2 #operatingsystems #timeflies #ibm #oldfart #nostalgia
0
2
1

Pedro José Pereira Vieito

The OpenAI ChatGPT app on macOS is not sandboxed and stores all the conversations in **plain-text** in a non-protected location:

~/Library/Application\ Support/com.openai.chat/conversations-{uuid}/

So basically any other running app / process / malware can read all your ChatGPT conversations without any permission prompt:

0
5
0
@AndrewRadev @realestninja IPC and client-server decoupling = ridiculously overrated and zero gain for the end user
0
1
0
@AndrewRadev @realestninja IPC and client-server decoupling = ridiculously overrated and zero gain for the end user
0
1
0
@AndrewRadev @realestninja and both expect real-time feedback when the data is stimulated by the user 😅 so essentially same piece of software
1
0
0
@AndrewRadev @realestninja what works in digital audio workstations can be claimed to be work also in text editors because both are model data editors for different type of artifacts.
1
0
0
@AndrewRadev @realestninja And a C lib could be then provided for ”LSP host” which would be trivial to integrate to any text editor.
1
0
0
@AndrewRadev @realestninja IMHO plugin based system similar to VST3 and CLAP in audio could be much more ideal architecture. Editor can eg then decide how to organize threads and can have a clock and scheduler which can orchestrate dynamic or even real-time behavior.
1
0
0

Generally speaking, C is pretty straightforward. It takes about 20 days to learn 80% of it, and then no more than 20 years to cover the remaining 20%

2
7
1
@thomholwerda too much tolerance for uncosidered language results a toxic community.
The flip side is that too much intolerance results a toxic positive community where self-censorship blocks fluid technical communications.
0
0
0
@thomholwerda In Github Ive noticed in some project that rejection of a PR without comment is safe-play for a maintainer. Ive seen cases where a maintainer has taken time to go into details why something is a bad idea and that has resulted blog entries etc talking about toxic behavior.

In this case I’d vote for some tolerance for bad humor and uncosidered commentary. It is just one commit in a high-bandwidth project. Not a big deal, and Im one of those sad gray people.
1
0
0
I can also feel how much snappier vim is given that it does decouple UI and the editor. It is kind of thing that in architecture it is for sure fancy BUT the problem comes from that as a user it can only cause more latency.

I prefer modular code-base over modular run-time :-)

If you pile that up with LSP you have decouple text editor managing decoupled static analysis, i.e. two layers of IPC at run-time, which is crazy IMHO. And since I use mostly the terminal, being e.g. able to integrate to vscode has total zero value for me.

I added the vim LSP shenanigans because I want to see whether it feels different when the editor stack is more stable and simplified. I give it a shot for Rust.
0
0
0
@AndrewRadev @realestninja Well it took me about 30 minutes to rewrite a vim config as i used already quite minimal set of plugins. I know my way with Vimscript as I've used it 20+ years.

I did add 'prabirshrestha/vim-lsp' and 'mattn/vim-lsp-settings' so that i can check at some point if they are usable with Rust. If they do less but the overall experience feels more "stable" than then it might work ;-)

With Linux kernel tree any LSP is pretty much useless, as any time I change kernel config I need to also re-generate a new JSON file. I use ctags because it can carve the whole kernel tree and does not care about the configuration.
1
0
0
@realestninja Even macOS stock installation has vim right off the bat.
0
0
1
Show older