HNHacker News
TopNewBestAskShowJobs

ForkMeOnTinder

1,029 karma · joined January 14, 2023

o.o
submissionscomments
ForkMeOnTinder··on 2023 was earth's warmest September In 174 year record
Yeah, GP's comment is on the same level as the senator who tried to disprove global warming by showing everyone a snowball.

https://www.youtube.com/watch?v=3E0a_60PMR8

ForkMeOnTinder··on YouTube is cracking down on consumers' favorite loophole
I watch youtube a lot and I've never seen one of these adblocking popups. I use uBlock Origin. Does this actually affect uBlock Origin for some users, or is it just hitting the people who download one the thousands of other weird "Super BlockAd Xtreme" type extensions?
ForkMeOnTinder··on Vulkan Documentation
Can anyone recommend a good self-contained "hello triangle" example with SDL2 + Vulkan? Just yesterday I was trying to start a project, and I tried building the top 4 example repos on github but couldn't get any of them to compile without errors.
ForkMeOnTinder··on Powering AI could use as much electricity as a small country
Christmas lights also use as much electricity as entire countries.[1] If the energy usage is what these people actually care about... where's all the moral outrage about Christmas lights?

Obviously something used by millions of people will use a proportionate amount of energy. Not sure why that's so surprising to people.

[1]: https://phys.org/news/2015-12-christmas-energy-entire-countr...

ForkMeOnTinder··on Lit 3.0
This comment might have made sense 10 years ago. Nowadays JS frameworks are a tiny minority of release announcements on HN. https://hn.algolia.com/?dateRange=pastMonth&page=0&prefix=tr...
ForkMeOnTinder··on Wayfire 0.8
I personally like the flexibility of i3's keybinding config.[1] For each binding it lets you choose either:

- a keysym (the letter Z, wherever it happens to be in your current layout)

- or a keycode/scancode (the physical button under your pinky, no matter the current layout)

I use both methods for different bindings. For example I've bound the vim keys (hjkl) by scancode, and the layout keys ("S"tack, "F"ullscreen, "R"esize, etc) by symbol.

[1]: https://i3wm.org/docs/userguide.html#keybindings

ForkMeOnTinder··on Bare-metal Rust in Android
> At least with a language like Go, it somewhat makes sense, and has been attempted: https://gioui.org/

Gio UI is an immediate-mode UI, and immediate-mode UIs map very nicely to Rust. egui is quite expressive and easy to use. https://www.egui.rs/

If you had pointed at something like GTK, then yes, there is a big impedance mismatch there.

ForkMeOnTinder··on My personal C coding style as of late 2023
> To beginners it might seem like “wasting memory” by using a 32-bit boolean

Maybe I'm a beginner then. He lists a few cases where it's not worse than sticking to 8-bit bools, but no cases where it's actually an improvement. It still wastes memory sometimes, e.g. if you have adjacent booleans in a struct, or boolean variables in a function that spill out of registers onto the stack. Sure it's only a few bytes here and there, but why pessimize? What do you gain from using a larger size?

ForkMeOnTinder··on Microsoft introduces AI meddling to your files with Copilot in OneDrive
It does exist, there are at least dozens of such tools. Here's a random one I found with a quick search. https://photostructure.com/getting-started/automatic-library...

But if it's not powered by AI it won't make the news in 2023

ForkMeOnTinder··on How the Baltic states became the hub of crypto money laundering and fraud
Another estimate from a known crypto skeptic puts an upper bound at 3% illegal activity.[1]

> For example, illegal transactions, scams and gambling together make up less than 3% of volume.

Either way this 0.12%-3% range doesn't begin to approach the ~6%-12% estimated illegal volume for USD.[2]

[1]: https://papers.ssrn.com/sol3/papers.cfm?abstract_id=3942181

[2]: https://www.investopedia.com/articles/markets/032916/how-big...

ForkMeOnTinder··on Pixel 8 Pro
Interestingly the non-Pro pixels have been trending in the right direction for size.

The Pixel 6 is 6.4"

The Pixel 7 is 6.3"

The Pixel 8 is 6.2"

If the trend continues we only have to wait 3 more years for a < 6" phone

ForkMeOnTinder··on Pixel 8 Pro
That strip is part of the deal if you're buying a pixel.

https://www.gsmarena.com/google_pixel_6-pictures-11037.php

https://www.gsmarena.com/google_pixel_7-pictures-11903.php

https://www.gsmarena.com/google_pixel_8-pictures-12546.php

ForkMeOnTinder··on Google removes Reviews widget when you add the word 'sucks' to a company search
Nothingburger. It also removes the widget if you add "is awesome" to the end.

If you've already decided what you think of a company and you're telling google as much, the reviews won't change your mind so they aren't a relevant result.

Tested with:

https://google.com/search?q=iphone+15

https://google.com/search?q=iphone+15+sucks

https://google.com/search?q=iphone+15+is+awesome

ForkMeOnTinder··on Ollama for Linux – Run LLMs on Linux with GPU Acceleration
Huge fan of ollama. Although this is the first official linux release, I've been using it on linux already for a few months now with no issues (through the arch package which builds from source).

Getting started was literally as easy as:

  pacman -S ollama
  ollama serve
  ollama run llama2:13b 'insert prompt'
You guys are doing the lord's work here
ForkMeOnTinder··on Memory-efficient enum arrays in Zig
There's another strategy that has good storage efficiency and keeps the ability to iterate over elements. vec #1 is a list of tags, vec #2 keeps the byte offset of each element, and vec #3 (not really a vec) is the packed variant data pointed to by vec #2. This:

- is half the number of vecs of the author's final solution (6 vs 3)

- wastes no bytes for padding (unless needed for alignment)

- lets you iterate in a cache-friendly way since the data is laid out in order in memory regardless of type

- even lets you access items by index in O(1)

Generally it has the same performance characteristics as a Vec<T>, but for heterogeneous data.

ForkMeOnTinder··on Perl first commit: a “replacement” for Awk and sed
I used to kind of unfairly disparage perl, but now I regret never learning it. I've written a lot of scripts for munging text/files that outgrow bash, and when I rewrite in Python they get twice as long. Seems like perl would be a happy medium and let me keep using a lot of the nice bash shortcuts like `baskticks` for shell execution, etc
ForkMeOnTinder··on ZFS 2.2.0 (RC): Block Cloning merged
Copying a file isn't great protection against bad blocks. Modern SSDs, when they fail, tend to fail catastrophically (the whole device dies all at once), rather than dying one block at a time. If you care about the data, back it up on a separate piece of hardware.
ForkMeOnTinder··on Problems of C, and how Zig addresses them
Here's how you return a hashmap from a function:

  fn buildMap(allocator: std.mem.Allocator) !std.AutoHashMap(u64, u64) {
      var result = std.AutoHashMap(u64, u64).init(allocator);
      errdefer result.deinit();
      try result.put(10, 100);
      try result.put(20, 200);
      return result;
  }
Your #1 option should be possible once Zig has comptime allocators -- it's on the roadmap, but not possible yet iirc.
ForkMeOnTinder··on Problems of C, and how Zig addresses them
> If I were to use indices out of range, presumably that would that give me a compile time error?

Yes, if all operands are comptime-known (or comptime-length-known), bounds checks happen eagerly at compile time.

> Could I use variables as the indices and, if so, could I get a seg fault at runtime or are there some sort of guards on there?

Yes you can use variables. If they're out of range, behavior depends on the build mode:

- In Debug and ReleaseSafe, you get a guaranteed panic (which aborts the app with a stack trace)

- In ReleaseSmall and ReleaseFast, you get undefined behavior

On their discord I suggested a version of slicing that bounds checks in all modes (something like `slice?[1..5]`, syntax doesn't matter) and returns an optional slice, which is null if the bounds are out of range. But they didn't seem too keen on it. So I've been using a little wrapper function instead.

← PreviousPage 6 of 6