[-] [email protected] 85 points 2 weeks ago

Fun fact: in rust and python, they use "selfself" instead of "meme"

[-] [email protected] 40 points 2 weeks ago* (last edited 2 weeks ago)

There are only two hard problems in computer science:

  • naming things,
  • cache invalidation,
  • off-by-one errors.

I'm afraid you've fell victim to the problem 2.

[-] [email protected] 38 points 2 weeks ago

Well, no. They are not certainly using int, they might be using a more efficient data type.

This might be for legacy reasons or it might be intentional because it might actually matter a lot. If I make up an example, chat_participant_id is definitely stored with each message and probably also in some index, so you can search the messages. Multiply this over all chats on WhatsApp, even the ones with only two people in, and the difference between u8 and u16 might matter a lot.

But I understand how a TypeScript or Java dev could think that the difference between 1 and 4 bytes is negligible.

[-] [email protected] 59 points 3 weeks ago

Maybe checkout Pixelfed, which is (from what I gather) similar to what instagram was 10 years ago

9
submitted 1 month ago by [email protected] to c/[email protected]

I've played driller with all possible weapons and when going on a haz 5 dreadnought mission, I figured cryo was the best main weapon.

And it sucked. Real low damage output. I've tried to freeze it and then throw the axe, but it was not dealing much damage.

Is it just me, or should we be picking 2 engies and 2 gunners for dreadnoughts?

44
Flutter is kinda good (programming.dev)
submitted 1 month ago by [email protected] to c/[email protected]

I don't have much to say, only that I expected flutter to be a bloated fragile abstraction on top of different native GUI APIs, but no.

It's quite fast, relatively easy to develop and it just works.

I'm working on a desktop app that needs a high-perf rust impl, and (for now) flutter looks like a much better choice than tauri.

[-] [email protected] 75 points 1 month ago

Have you erased the continuation of the message that is saying something about "similar names, but are actually two distinct types"?

It is a common error if you have two dependecies that export the same third dependency and your code makes an assumption that the versions of the third dep match.

All other languages either straight-up don't support multiple versions of the same dep, or throw random errors at runtime. So this message is a consequence of rust supporting things that other langs only dream of.

[-] [email protected] 37 points 5 months ago

OpenWRT on a new router. The wifi works better, ethernet works up to 980Mbit/s and I don't have all my traffic routed trough a Huawei device.

And it allows you to configure everything.

212
submitted 5 months ago by [email protected] to c/[email protected]

If it compiles it works, right?

I'm not gonna act like I read it all.

111
submitted 5 months ago* (last edited 5 months ago) by [email protected] to c/[email protected]

When I was in high school I found Sublime Text and learned "multiple cursors". Since then, I've transitioned to vscode, mainly because I need LSP (without too much configuration work) for my work.

I keep hearing about how modal editing is faster and I would like to switch to a more performant editor. I've been looking at helix, as the 4th generation of the vi line of editors. Is anyone using it? Is it any good for the main code editor?

The problem that I have is that learning new editing keybindings would probably take me a month of time, before I get to the same amount of productivity (if I ever get here at all). So I'm looking for advice of people who have already done that before.

My code editing does involve a lot of "ctrl-arrow" to move around words, "ctrl-shift-arrow" to select words, "home/end" to move to beginning/end of the line, "ctrl-d" for "new cursor at next occurrence", "shift-alt-down" for "new cursor in the line below", "ctrl-shift-f" for "format file" and a few more to move around using LSP-provided "declaration"/"usages".

I would have to unlearn all of that.

Also, I do use "ctrl-arrow" to edit this post. Have you changed keybindings in firefox too?

31
submitted 6 months ago by [email protected] to c/[email protected]

Anyone using soucehut (sr.ht)? Can you please explain to me how you navigate the site?

I really like the minimalist approach and extremely fast website UI, but I just cannot navigate the site.

If I'm looking at source of a repo on https://git.sr.ht/ and want to see open tickets, how do I navigate to https://todo.sr.ht/ ? If I click on "todo" at the top, it takes me to my todo lists, not todo of the project I was just looking at.

9
The Origins of Wokeness (paulgraham.com)
submitted 6 months ago by [email protected] to c/[email protected]

An interesting take. Not sure if it goes here.

67
submitted 7 months ago by [email protected] to c/[email protected]
4
Trains go brrrr (programming.dev)
submitted 7 months ago by [email protected] to c/[email protected]
1
submitted 9 months ago by [email protected] to c/[email protected]

I'd expect the state to have a list of all its citizens and their basic personal info (age) which could be used to determine their eligibility for voting. In my country, we get a "invitation" to the vote, with your voter station and info on how to change it.

Instead, I'm seeing posts about USA's "voter rolls", which are sometimes purged, which prevents people from voting. Isn't this an attack on the voting system and democracy itself?

So why doesn't USA have a list of voters? Are they stupid?

502
submitted 9 months ago by [email protected] to c/[email protected]
[-] [email protected] 70 points 10 months ago

This logic is not sound. Why couldn't be the case that only one religion is right?

Three people looking at a triangle might have different opinions about what shape it is. It is inconceivable that they are all right, but that does not imply that they are all wrong.

[-] [email protected] 58 points 11 months ago

This is all hard to do because it is hard to determine people's race on lemmy. Some usernames give it away but most don't. And I don't go snooping trough their post history to find that out.

75
submitted 1 year ago by [email protected] to c/[email protected]

I know that the answer is yes, I should, but outlets near the setup are not grounded (even though they look like they are) and I don't want to have wires running though my living room.

The real question is what are potential problems ? Occasional system reboots? Permanent damage to PSU? Permanent damage to other components?

[-] [email protected] 158 points 1 year ago

What i don't understand is how fuel efficiency does not seem to be a concern of an average buyer? It is a large factor for me, and I'm proud to have highly efficient car for its class. Are those large trucks somehow more efficient than older, smaller models? Or are average buyers just not concerned with efficiency?

Well not everyone has seen the light of factorio, so i might be over-fixating on efficiency.

209
submitted 1 year ago by [email protected] to c/[email protected]
[-] [email protected] 87 points 1 year ago

Oh it would not be Polexit. There are way better names available than that. Polout, for example.

[-] [email protected] 80 points 2 years ago

Please, dont joke with things like this. Someone might take you seriously...

[-] [email protected] 56 points 2 years ago

This is the way.

Almost completely pure way of storing ideas. With this I mean that you don't store unnecessary data such as "background should be white" or "left page margin is 1.3cm". It's just text. What's important is what it says + minimal markup.

Presentation is left to the reader's client. Do you want dark mode? Get a markdown editor/reader that supports it. Do you want serif font? Again, that's client's choice and not part of the document.

I wish browsers would support markdown out of the box, so you could open https://example.com/some-post.md

view more: next ›

verstra

0 post score
0 comment score
joined 2 years ago