Skip to content

C o s e

cretox

  • Info

Category: FLOSS

Free/Libre/Open-Source Software

A short journey towards the field of lesser-known code editors

Posted on 02/10/2024 by cretox

laptop displaying programming software

A.K.A: The endless research for the perfect (01) code editor (potentially IDE)

My journey began years ago when the programming part of my job wanted to be more pressing in some way.
Anyway I’ve been a “script guy” since forever: mostly Bash, Python, Ruby, Markdown, Asciidoc

My path has been something like this (chronologically speaking):

  • Brackets
    By Adobe; Electron app (I think); not lightweight (02); now discontinued; forks: Brackets.io
    I’ve used briefly Adobe Brackets a log time ago (~8 years?) right before I’ve discovered that everybody used Atom, so I made the switch.
  • Atom
    By the Github guys; lots of plugins; nice to use if I don’t install too many plugins; Electron app; not lightweight; now discontinued; forks: Pulsar
    Atom was almost perfect even though it has always eaten my RAM, but at the time I had a gaming laptop with 16GB of memory and Linux so I did not notice it to much
    Eventually, news appeared about Atom to be discontinued so I began searching a new candidate and I landed on VSCode in the VSCodium variant.
  • VSCodium
    Built against VSCode source and binary released under MIT license; lots of plugins; nice to use if I don’t install too many plugins; Electron app; not lightweight; less likely to phone home (main app telemetry is disabled but it is not always the case for plugins they said).
    Years passed but sadly the memory of my laptop shrinked to 8GB (the magic of benefits administration!) so it became a bottleneck.
    On first OOM murder I decided that I didn’t want to run browsers other than the app I used to surf the internet and the one to read emails (oh and the other one for the meetings).

So I started searching for an editor that was: free and open source, lightweight but not too minimal, extensible and with a GUI, still active as a project.

  • Geany
    I used it shortly as I didn’t like the interface at all :-(
  • Gedit
    The basic editor of the GNOME DE, I ran Xfce at the time so it almost fitted.
    Interface was clean enough and almost pleasant to use for my needs.
    But Python appeared at my job so I needed a code editor with better integrated linting/code snippets/completions ecc.
    In the end I turned to a more hardcore solution: vi… ehm vim, no no it was Neovim!
  • Neovim
    Super lightweight; lots and lots of plugins; needs to be configured carefully
    I did not configure it from the ground up (no time!) but I used a tool which did it for me (LazyVim).
    It has sane defaults, IIRC I edited only some shortcuts and something related to Black.
    Albeit it has no GUI, I used it for months and I was thinking it was Final.
    One day it broke after some plugin update, I can’t remember which one but I do remember the error was clear in no way at first glance.
    I fixed it somehow. It broke another couple of times (not the editor itself but some plugin), it gave me a true sense of instability which I didn’t need.
    Next.

Was it so difficult to have more RAM? Yes.
Was it so difficult to have a decent editor? I still do not know as today.
Let’s try with some obscure/unknown/niche projects…

  • Lite XL
    Fork of Lite; super lightweight and fast, easily extensible via LUA.
    This was a surprise but the interface and minor bugs put me off (word wrapping, git integration).
    Anyway it is a very good editor.
  • Pragtical
    Fork of Lite XL; same feelings as about Lite XL.
  • Lapce
    Written in Rust (so it has to be good! \s), like Lite XL it’s very lightweight.
    It seems not there yet but it’s very promising.
  • Pulsar
    Atom is back but but… here we go again, my free memory is gone!
  • Theia IDE
    Wow is this VSCode again? Comparison to VSCode
  • Zed (Ok not so unknown nowadays)
    By a former developer of Atom; young compared to other mainstream editors; lightweight; too centered on Github Copilot (can be disabled); not so many plugins; clean interface
    I really like it but the fact that I failed to run it in a VM (it needs direct access to GPU somehow) it’s a no-go for me.
  • Kate
    The advanced editor from KDE. It stays between Kwrite (basic) and Kdevelop (full IDE).
    Written in C++, can run external tools via keyboard shortcuts.
    For scripting and small programs it’s very good. It’s very configurable and supports LSP via official plugin.
    The interface can be reduced to the minimum: vertical toolbar on the left (filesystem, git, symbols, ecc), tabs bar, status bar, hidden main menu.

I’m trying to stick with Kate at the moment as I can’t found big issues with her.


Notes:

  1. Not really?
  2. Compared to a browser

Posted in FLOSS, techTagged editor, ide, journey, perfection

Best feature ever

Posted on 17/12/2014 by cretox

dict_bestfeature

Best feature ever? Double dictionary check!
Now guess the program.

Posted in anvedi, FLOSS

Aggiorno Firefox e mi tremano le ginocchia

Posted on 20/08/2011 by cretox

$ apt-cache policy iceweasel
iceweasel:
  Installed: 5.0-6
  Candidate: 6.0-2
  Version table:
     7.0~b1-2 0
        300 http://ftp.it.debian.org/debian/ experimental/main amd64 Packages
     6.0-2 0
        500 http://ftp.it.debian.org/debian/ sid/main amd64 Packages
 *** 5.0-6 0
        200 http://ftp.it.debian.org/debian/ testing/main amd64 Packages
        100 /var/lib/dpkg/status
     3.5.16-6 0
        100 http://ftp.it.debian.org/debian/ stable/main amd64 Packages

Ordunque. Cosa è questo macello?

Posted in arghh!, dubbi, FLOSS

The onion highway

Posted on 26/11/2010 - 26/11/2010 by cretox

Tutto questo bisogno di anonimato…
Il mondo è così bello e verde…

ilgrandepicco

Posted in anvedi, be happy, FLOSS

Il syntax highlighter!

Posted on 14/11/2010 by cretox

Usare il plugin wp-syntax per colorare in modo intelligente il nostro codice stupidino:

  1. chiederlo agli amministratori con simpatia
  2. attendere il tempo necessario
  3. entrare nel pannello di controllo di WP e cercare il plugin
  4. non trovarlo, da nussuna parte
  5. urlare forte “O PLUGIN, ABILITATI!!!” dentro un cavo di rete collegato al router
  6. testare l’effettiva nuova funzionalita’ ***
  7. amare tutte e tutti, soprattutto chi si sbatte per soddisfare pochi capricci

***: howto

Posted in anvedi, be happy, FLOSS1 Comment

webcam come sensore di movimento

Posted on 05/09/2010 - 14/11/2010 by cretox

Ebbene ho una webcam.
Oggi ho provato ad usarla con il programma “webcam” (che fantasia).
Il programmino richiede una webcam compatibile con v4l2, poi, dice che funziona.
Sì funziona ma io mi stufo subito.
Poi scopro l’opzione ‘trigger’:

With ‘trigger’ set to a non-zero value webcam will upload the image only if the content of the image has changed. It just looks for the maximum difference between the last uploaded and current image and if it is greater than the specified value the image will be uploaded.

\o/
Ma tutto ciò apre infinite possibilità!
Metto ‘trigger’ a 100 e mi infilo nei meandri del bash scrpting.
Infatti ‘webcam’ registra una jpeg, sovrascivendola tutte le volte che cattura.
Quindi ho scritto uno script che avvia ‘webcam’, rinomina ogni nuova cattura e tiene il conto delle immagine salvate:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
 
cd $HOME/immagini/bigbrother/
i=frame.jpg
touch frames.list
n=`tail -n 1 frames.list`
sleep 5
webcam /etc/webcam/bigbrother.conf &> bb.log &
echo x-key to stop
until [ "$input" = "x" ]
do
  read -t1 -s -n1 input
   if [ -f $i ]
   then
     n=$[n+1]
     mv $i $n.jpg
     echo $n >> frames.list
   fi
done
killall webcam

#!/bin/bash cd $HOME/immagini/bigbrother/ i=frame.jpg touch frames.list n=`tail -n 1 frames.list` sleep 5 webcam /etc/webcam/bigbrother.conf &> bb.log & echo x-key to stop until [ "$input" = "x" ] do read -t1 -s -n1 input if [ -f $i ] then n=$[n+1] mv $i $n.jpg echo $n >> frames.list fi done killall webcam

Adesso non mi basta fare altro che trovare il modo di creare un video con ffmpeg ed metterlo nello script.

Risorse:
– bash @ tldp.org
– webcam @ aboutdebian.com

Posted in anvedi, Debian e GNU/Linux, FLOSS

Read the manuanal

Posted on 21/06/2010 by cretox

Capitolo 43
Prima di inserire qualsiasi dato in una installazione appena fatta, è consigliabile impostare alcuni parametri predefiniti per rendere il resto della configurazione più facile. Per fare questo…

E me lo dici al quarantatreesimo capitolo?
Ahhhhhhhhhhhhhhh
Moriremo tutti

Posted in arghh!, FLOSS

py2 vs py3

Posted on 19/06/2010 by cretox

Trova le differenze :P

rand_cards2_py2.py

rand_cards2_py3.py

Posted in anvedi, FLOSS, python

ia32-apt-get… EHHHHH???!?!?!

Posted on 15/07/2009 by cretox

Ohhhh che bello!
Si sono inventati un modo fico di farmi avere TUTTE le librerie a 32bit per la mia debian a 64bit!
Ed è OBBLIGATORIO! Ma che saggezza infinita!
Siete dei fottuti geni, dio unstable.

Sbocca che ti passa

Il fatto è che bisogna installare il pacchetto ia32-apt-get per far sopravvivere debian sid 64bit.
L’idea non sarebbe neanche male, visto che il mondo ancora gira a 32bit, quindi magari avere TUTTE queste librerie potrebbe essere utile…
Sì, peccato che aptitude non contempli lo sminchiamento offerto senza pietà da ia32-apt-get.
E apt-get si rompe su debian-multimedia.org, il quale non contempla, giustamente, la stronzata del doppio repository (32bit/64bit) per debian64bit.

Ma se le provaste prima di venderle le cose?

Update: Ahhh, ecco, mi sembrava. Tutto torna, tutto va.

Posted in arghh!, Debian e GNU/Linux, FLOSS

Prestazionalmente

Posted on 10/01/2009 by cretox

Mi piace fare test di performance.
Ho da poco acquistato un computer nuovo (che bello!), una manna per fare grafica ma un delirio per le mie tasche.

Ho installato la mia amata Debian Sid/experimental (per me è ed è sempre stata una “lei”), KDE4.1 (sbav..) e poco altro per ora.

Ho pianificato questi test, che in pratica dimostrano poco, se non che i pacchetti precompilati a 32 bit (i386 generico) fanno cacare su macchine moderne. Per moderne intendo con CPU che supporano SSE/SSE2/SSE3, tutte le cosette nuove e un po’ meno nuove, etc etc…
Fanno cacare dal punto di vista prestazionale.

Io ho provato una sola applicazione (Blender) ma credo che a logica si possa prevedere un comportamento simile per qualsiasi “cosa” precompilata per girare su un qualsiasi generico i386 (dalla lavastoviglie col Pentiummmx al termoinceneritore con 28 Opteron)

Continue reading “Prestazionalmente” →

Posted in anvedi, blender, Debian e GNU/Linux, dubbi, FLOSS, KDE, tech

Posts navigation

Older posts


Supporta:

Questo weblog esiste ed è visibile sulla rete grazie al Collettivo Autistici/Inventati che offre il servizio e mette a disposizione i mezzi (banda e macchine). Il progetto ha costi notevoli ma vive solo delle donazioni: nessun amministratorə verrà mai a casa tua a chiederti il canone.
Se vuoi che questo blog e la miriade di altri servizi offerti da A/I continuino ad esistere, sarebbe molto carino se impegnassi qualche euro in questo senso. Per fare una donazione, visita questa pagina.


Follow this blog on:

Follow this blog
Proudly powered by WordPress | Theme: micro, developed by DevriX.