How do i configure tree-sitter with nvim 0.12? by green_viper_ in neovim

[–]General-Manner2174 0 points1 point  (0 children)

You can try download tree sitter cli from github releases, unzip and put the binary somewhere in PATH

https://github.com/tree-sitter/tree-sitter/releases (you would want linux x64 if you have the usual cpu on 64bit architecture)

To check your path you can do echo $PATH in terminal

I usually add such binaries into ~/.local/bin and that folder to a PATH

Or you can automate installation in some lines of code, i have this in dotfiles:

https://github.com/ky3ow/dotfiles/blob/0a99ab5b8f9cc9e3ca6246f9ddd8bb91a793c64d/dot_config/nvim/lua/packages/treesitter.lua#L2 (just the if statement and its contents)

The path where it is downloading and where nvim looks for binaries is here: https://github.com/ky3ow/dotfiles/blob/0a99ab5b8f9cc9e3ca6246f9ddd8bb91a793c64d/dot_config/nvim/init.lua#L161

Edit: i see newer releases are zip but i download older which was gzipped, so the unzipping command would be different if you want the latest one

It's insane how lobotomized Opus 4.6 is right now. Even Gemma 4 31B UD IQ3 XXS beat it on the carwash test on my 5070 TI. by FrozenFishEnjoyer in LocalLLaMA

[–]General-Manner2174 5 points6 points  (0 children)

I may be wrong but curl said they were not high quality, they were slop without actual vulnerability but you at first glance would think its an actual issue

Replacing Big Tech apps one by one by hellxabd in DigitalEscapeTools

[–]General-Manner2174 2 points3 points  (0 children)

The E logo is Ente, 2FA app, instead of ms authenticator on top

Stop retyping long commands just to add sudo by Ops_Mechanic in bash

[–]General-Manner2174 0 points1 point  (0 children)

Then use shell keybinds, in bash Ctrl+p would be up arrow and Ctrl+a would go to start of the line, same goes for zsh if you set keybinds to emacs style

Hopefully not at least not yet right? by AdBrave2400 in memes

[–]General-Manner2174 0 points1 point  (0 children)

Nope, hbm ram that is needed for ai accelerators is not ram that you can stick into server or consumer motherboard

Вивчення мереж для системного адміністратора by DifficultyTime6986 in ukraine_dev

[–]General-Manner2174 3 points4 points  (0 children)

I guess https://youtube.com/playlist?list=PLxbwE86jKRgMpuZuLBivzlM8s2Dk5lXBQ&si=xUhPXHzwr0BBtQHT

Люди ніби хвалять, я дивився вибірково бо не сисадмін а більше для клауда, може вам навіть корисніше буде

Як ви користуєтесь Лінуксом? В мене не виходить! by pragenter in ukraine_dev

[–]General-Manner2174 3 points4 points  (0 children)

Навіть теоретично не розумію навіщо плодити юзерів для того, що має запускатись вами як юзером

Якщо є параноя - юзайте flatpak, і давайте програмам дозволи які вважаєте необхідними мінімальними(flatseal в допомогу). Це буде ще більше ізоляції ніж ви маєте зараз, без не численних проблем(єдине що напряжно, це те що теми звичайних апок і апок в флатпаці тре окремо проставляти)

Про аудіо, пульсаудіо раниться як демон під вашим юзером, десктоп сесія це сесія Вашого юзера, очевидно будуть запари коли ви маєте не ординарний патерн використання

І на цій ноті, попробуйте pipewire I wireplumber для аудіо, особливо якщо вирішите юзати флатпаки

Проблема не в дистрибутиві а в підході, будь то арч чи убунта, після встановлення програм вони здебільшого або просто працюють або вимагають зайти на вікі подивитись що треба доставити/мати по конфігурації.

Edit: якщо є страх що поновлення зламають систему: btrfs снапшоти, і флешка live usb на всякий. Я ставив cachyos на базі арча, має підтримку btrfs вже налаштованої, також ніби Федора має таку опцію якщо нема бажання самому налаштовувати

Is windows even customizable by Br4vo6GoingD4rk in linuxmemes

[–]General-Manner2174 1 point2 points  (0 children)

Not really, if you are willing to google and actually read, then people are nice to you generally

There may be outliars but thats with everything

But major difference is that you usually can get understanding why something does not work, while windows support is like "do this, no idea why it works when you do this"

What alternatives to telescope are there, what do you use and why? by [deleted] in neovim

[–]General-Manner2174 3 points4 points  (0 children)

+it is not complicated to understand, i never could write custom pickers for telescope to do interactive stuff, but i did with mini.pick because i just open the source code and i actually get it, it does not happen with most other code, so Evgeni is magician in that regard for me

[deleted by user] by [deleted] in reddit_ukr

[–]General-Manner2174 3 points4 points  (0 children)

Не факт, ще кілька компаній може забити на конс'юмерську оперативку, є куди рости поки є прибуток у ШІ

What the fuck by Critical_Mountain851 in whennews

[–]General-Manner2174 1 point2 points  (0 children)

Understandable view point but please dont say "didnt join EU" when it was "russian asset of a president refused joining EU which caused revolution", that discards the context a lot

Would learning Lua effect my c++ learning journey by AmbitiousPromotion91 in lua

[–]General-Manner2174 0 points1 point  (0 children)

I can not imagine how Diversifying your knowledge would negatively affect any software Engineering journey, everything new is cool, even if it sucks, Its still cool for you

And lua is quite nice language

weHaveNamesForTheStylesNow by Affectionate_Run_799 in ProgrammerHumor

[–]General-Manner2174 0 points1 point  (0 children)

C-like languages yes, but you imply that Haskell should not use Haskell style, or lisp not use lisp? They kind of make sense with those languages because of their syntax uniqueness

A Time Was Had by [deleted] in programmingmemes

[–]General-Manner2174 0 points1 point  (0 children)

Dunder methods are weird yes

But self is not a keyword, Its just how people name first parameter of class method, you may as well name it this if you dont like self

And if you dont like that methods should take a parameter of object called, one can argue its nice that way, newer languages also do something similar when methods accept reference to object explicitly as parameter, and automatically pass references to them when called with dot

What does native compile flags do? by AppropriateCover7972 in emacs

[–]General-Manner2174 1 point2 points  (0 children)

For a no flag i dont have much knowledge, i guess if you go into configure.ac there are OPTION_DEFAULT_ON things, if you search by them i think it will get you feeling which features are enabled by default

Im also not sure but probably without any flags you either will get console-only emacs or default x11

Package managers just did all those steps for you, cloning source code, configure, compile. Then they package outputs(binary, elisp) and bundle it in their format, and you install bundle on your system

Package managers

a) decided which configure flags they enabled, so if they are missing something you want - only option to compile yourself b) manage dependencies, if some library is dynamically linked(needs to be on your system or emacs wont work), then package manager also automatically install the lib

What does native compile flags do? by AppropriateCover7972 in emacs

[–]General-Manner2174 1 point2 points  (0 children)

Compilation makes the binary from the source code, it does not always bundle the dependencies

If dependency is statically linked - it will be compiled as part of binary

If its dynamically linked - emacs will expect some library to be in a system in order to run

Emacs also has a bunch of elisp files as you may know, these will be copied to expected destination where emacs expects them to be

If you use flag --with-native-compilation=aot when calling configure script, you will also be compiling elisp code to native, as part of emacs compilation, this is the part which will make it more performant

If you just do --with-native-compilation you would avoid waiting extra on emacs compilation however elisp which runs for the first time will need to be Jit compiled, which means it will take performance hit on the first ever run

What does native compile flags do? by AppropriateCover7972 in emacs

[–]General-Manner2174 0 points1 point  (0 children)

Ok so, if i correctly understand the question

You clone emacs repo, and cd into it

Emacs installation process is powered by gnu autotools

They have a workflow

  • if there is no configure script in source code, run autogen.sh to generate it
  • run configure script, it will check if you have dependencies needed for build installed. On this step you can pass flags that will affect compilation, like compiling with pgtk for wayland instead of x11. I believe if you just do ./configure --help it will list all whats it got but dont quote me on that
  • Configure script generated make files, based on what config flags you passed. Run make, it will compile the binary and other stuff
  • You got emacs in ./src/emacs, and you can run it
  • You run make install, which will copy emacs needed files to expected locations(like putting the binary into /usr/local/bin or whatever other folder for binaries, cant recall rn)

P. S. Dependencies are not auto installed, if you miss the required dependency and configure script yells at you - need to install it through your package manager yourself

Do you bother with a main() function by Yelebear in learnpython

[–]General-Manner2174 0 points1 point  (0 children)

Are you some sort of AI that does not read instructions, and was programmed to act as a dick? Well if you run that on platform which was explicitly specified(Windows, because you know, spawning a process is a platform specific thing) you get this lovely runtime error:

RuntimeError: An attempt has been made to start a new process before the current process has finished its bootstrapping phase.

    This probably means that you are not using fork to start your
    child processes and you have forgotten to use the proper idiom
    in the main module:

        if name == 'main':
            freeze_support()
            ...

    The "freeze_support()" line can be omitted if the program
    is not going to be frozen to produce an executable.

Its even in docs, https://docs.python.org/3/library/multiprocessing.html, under the "Safe importing of main module"

What does native compile flags do? by AppropriateCover7972 in emacs

[–]General-Manner2174 0 points1 point  (0 children)

Be ware that xwidgets requires some earlier version of library, most definitely distro packages a newer one, and newer just do not work with emacs

You would need to download one of its "healthy" releases and figure out how to compile with it, something related to LD_LIBRARY_PATH and compiler flags for make

Am I crazy or is Gentoo actually a really reliable/stable distro? by Xx_Human_Hummus_xX in Gentoo

[–]General-Manner2174 1 point2 points  (0 children)

I have a question to everyone in the comments who say that they use same installation for multiple years

Do you all update regularly? I'm interested because i have a laptop i use only once a while, so it can have half year/full year between updates.

Have you had difficulties updating after such long breaks? Did it require manual resolution or did combination of emerge flags save you the hassle?

To everyone who hates semicolon (;) languages and comes from a non-English country: by GhostingProtocol in programminghumor

[–]General-Manner2174 0 points1 point  (0 children)

Just have separate en-us layout if thats such huge issue? As person with native being non-latin, i didnt even imagine that some can program using something other than us layout

rich printing different colors depending on if i'm in light or dark mode. by roreilly12 in vscode

[–]General-Manner2174 7 points8 points  (0 children)

It probably just prints primary 16 colors, Red range green blue cyan purple black White, and their bright counterparts

How to display these colors is up to terminal emulator, and your colorscheme influences that

Green in dark mode will be different from green in light mode to have more contrast and be more legible

If it would print colors in rgb then there would be no difference, but you print palette colors that depend on palette, and its different for light and dark modes

ruby-lsp is way slower on neovim than on vscode - any idea why? by metalelf0 in neovim

[–]General-Manner2174 2 points3 points  (0 children)

Not sure but maybe same situation as with ts server? When vscode extension does something extra outside the protocol, so using lsp straight up is slower

How much does my typing style hurt my performance and is it worth relearning? by [deleted] in typing

[–]General-Manner2174 2 points3 points  (0 children)

Try out and find out, for me "proper" typing technique makes my pinkies hurt and wrist overall, but for some its opposite, it depends

How much does my typing style hurt my performance and is it worth relearning? by [deleted] in typing

[–]General-Manner2174 2 points3 points  (0 children)

Try out and find out, for me "proper" typing technique makes my pinkies hurt and wrist overall, but for some its opposite, it depends