[-] uthredii@programming.dev 9 points 1 month ago

You should check out zig, its compiler can even be used for c/c++. If you have time to listen to an interview, this developer voices interview on zig explains some of the advantages of this: https://www.youtube.com/watch?v=5_oqWE9otaE&t=3970s

94

TL;DR: uv is an extremely fast Python package manager, written in Rust.

-8
submitted 3 months ago by uthredii@programming.dev to c/gaming@lemmy.ml

cross-posted from: https://programming.dev/post/17763625

Datamining youtuber found some stuff.

6

Datamining youtuber found some stuff.

[-] uthredii@programming.dev 9 points 3 months ago* (last edited 3 months ago)

One thing I haven't seen mentioned is that not moving between mouse and keyboard so much reduces the risk of getting an RSI. So even if it didn't make you faster it would still probably be worth it to find a keyboard based workflow.

I use Helix and would suggest you try it (at least to start off with) as it is easier to learn than vim and does not require plugins or a complex config. To answer your question I will go from the less to more advanced/complex:

  1. Move a line to a new position in the file/another file (takes a couple of seconds)
    1. x then d to select a line (pressing N times will select N lines) and delete it (delete will also copy to the clipboard)
    2. navigate the cursor to the new location
    3. p to paste in a new
  2. Navigating around a file:
    1. jumping to a function/class definition by pressing g then d when on a function/class usage.
    2. getting a list and navigating to class/function calls when the cursor is on a class/function definition by pressing g then r.
  3. Multi cursor editing - I use this to make edits to multiple places at once. I most recently used this to extract the names of 30 tables that are used in a SQL file. This probably took ~5 seconds and I barely thought about it. To do this I used:
    1. % to select the entire files contents
    2. s to search
    3. typed "FROM "
    4. pressed enter to create cursor at all locations matching the search
    5. v then g then l to select the rest of the line
    6. space+y to copy to the system clipboard.
    7. paste into a document where I needed to list the tables
  4. Using a terminal workspace manager (zellij) with helix and a git tui app (gitui) so that I can easily make code changes, commit, push, ,run tests, move to a new repo and more without leaving the keyboard.

There is actually a helix community on programming.dev: helix@programming.dev

33
[-] uthredii@programming.dev 10 points 8 months ago* (last edited 8 months ago)

Its really hard to day without more information. You should talk to a doctor. Some other things that could be causing this that noone else has mentioned yet(I can't tell if this applies for you or not based on your post):

  • not enough exercise
  • vitamin d/c deficiencies (you can take supplements of vitamin d in winter time)
  • bad gut microbiome. Try to eat a variety of vegtables as well as prebiotics (fibre, oats) and probiotics (yogurt, kefir,, sourdough ect).
  • try to get regular sleep. I know this is your problem but there may be some things you can do like have a set bedtime, no screens for a while before bed.

Remember that many people have had similar problems and overcome them. You will just need to work out what works for you. Good luck.

62
44
[-] uthredii@programming.dev 11 points 8 months ago* (last edited 8 months ago)

This actually sounds really promising!

  • They are teaming up with an existing python package manger written in rust.
  • These are the people who make/made ruff, probably the most useful and fast python linter.
  • you basically get pip from a single binary.
  • they plan to have cargo/poetry like functionality in the future.

Edit: here is a blog post from the creator of rye talking about rye and UV: https://lucumr.pocoo.org/2024/2/15/rye-grows-with-uv/

19
-29
[-] uthredii@programming.dev 46 points 9 months ago

In this regard, AI-generated code resembles an itinerant contributor, prone to violate the DRY-ness [don't repeat yourself] of the repos visited.

So I guess previously people might first look inside their repo's for examples of code they want to make, if they find and example they might import it instead of copy and pasting.

When using LLM generated code they (and the LLM) won't be checking their repo for existing code so it ends up being a copy pasta soup.

[-] uthredii@programming.dev 40 points 10 months ago* (last edited 10 months ago)

Doc martens are not so great quality now. The general consensus is that Solovair are the spiritual successor (in terms of quality) to what Dr Martens were. This video has more info: https://youtu.be/vkhCcvfVHRs?si=21bH9fSvkNgmjwm1

For laptops O would recommend framework laptops. The idea is that they have upgradable and repairable.modules. You can follow them on mastodon too: @frameworkcomputer@fosstodon.org And we have a Lemmy community too: !framework@lemmy.ml

15
1109
14
-3
[-] uthredii@programming.dev 18 points 10 months ago

Discourse and Lemmy are both based around topics/communities so hopefully there will be better federation here. E.g. being able to follow a discourse topic from lemmy would be really cool.

Hopefully they have done this in a way where Lemmy can federate with then easily.

[-] uthredii@programming.dev 8 points 1 year ago

Have you set android autofill framework to use bitwarden?

[-] uthredii@programming.dev 8 points 1 year ago

Would be interesting to see how fast polars (a dataframe library written in rust) would be as it can be used in python.

[-] uthredii@programming.dev 30 points 1 year ago* (last edited 1 year ago)

I think it depends on the website. There are some websites where chrome will work better either because chrome works better with certain libraries/technologies or because the developers put more time into optimizing for chrome.

On the other hand Firefox might have less bloat around telemetry that gives it an advantage too.

[-] uthredii@programming.dev 42 points 1 year ago

Previous products took much longer for batches to sell out. Even the AMD framework 13 laptops didn't sell this fast and they were the #1 thing the community had been asking for for about a year.

We (sadly) can't tell how many units are in a batch. But we can tell that demand is far exceeding their expectations.

[-] uthredii@programming.dev 19 points 1 year ago

I have a framework laptop and really like it.

The main benefit is that it is fairly future proof, so you could get one the of the cheaper ones now and then upgrade if you need better ram/CPU/apu

view more: next ›

uthredii

joined 1 year ago