What is Hackers' Pub?

Hackers' Pub is a place for software engineers to share their knowledge and experience with each other. It's also an ActivityPub-enabled social network, so you can follow your favorite hackers in the fediverse and get their latest posts in your feed.

1
0

Governments around the world are demanding backdoors into encrypted data. 

🚪What are backdoors?

🔒How do they undermine our right to privacy and security?

🛡️What can you do to protect our right to privacy?

Spend learning the importance of protecting encryption 👇

internetsociety.org/blog/2025/

0
0
0
0
0

Xbox president Sarah Bond appears to confirm that the next-gen Xbox will be a hybrid PC + console. “The next-gen console will be a very premium and high-end curated experience. You're starting to see some of the thinking we have in this handheld…” youtu.be/yDmwJ7tuoD8?...

0
0
0
0

We call it like we see it: the entire push around Bill C-2 and its little sibling C-12 is about pleasing President Trump.

Not about the national interest of Canada. Not what Canadians actually want. Our privacy, our rights, and our values deserve better than this!

dailyhive.com/canada/border-ca

0
0
0
0
0

Can I ask a favour?

If you see someone who is asking for help using this place, and if no one else is helping them, could you tag me into the conversation and/or link to my website fedi.tips?

I'm trying to provide unofficial tech support for people using Mastodon and the wider Fediverse. I'm especially keen to help new people who want easy-to-understand advice, but they won't see me and I won't see them unless someone tags me.

Thanks 🙏

0
0
0
0

Sometimes it's hard to be a privacy advocate. You can explain how the right to privacy is foundational to democracy and still see people's eyes glaze over. It makes it challenging to provide resources when you're not even sure that anyone wants to engage with them.

Idk, I know it's not entirely their fault, but purely from an advocacy standpoint it makes it hard to know what is worth putting energy into.

0
0
0
0
0

Integrated logic analyzer in Spade that perfectly fits in a mastodon alt-text and took about 3 hours to write :)

You just hook the output up to anything that can consume an `Rv<uint<8>>`. For example a UART driver or UDP streamer

(I think it works at least, my one test case does do the right thing but I haven't tried it in hardware on account of it being 10pm)


use ready_valid::Rv;

impl<T, #uint N> Rv<[T; N]> {
  entity into_element_stream(self, clk: clock, rst: bool) -> Rv<T>{
    let Rv(data, ready) = self;
    let ds_ready = port;
    reg(clk) (array, num_left): ([T; N], uint<{uint_bits_to_fit(N)}>) reset(rst: (std::undef::undef(), 0)) =
      match (*data, num_left, *ds_ready#0) {
        (Some(data), 0, _) => (data, N),
        (_, _, false) => (array, num_left),
        (None, 0, _) => (array, num_left),
        (Some(data), 1, _) => (data, N),
        (_, _, _) => (array[1..N].concat([std::undef::undef()]), trunc(num_left-1))
      };

    set ready = &(num_left == 0 || num_left == 1 && *ds_ready#0);

    Rv(
      &match num_left {
        0 => None,
        _ => Some(array[0]),
      },
      ds_ready#1
    )
  }
}

entity quickscope<T, #uint NumBytes, #uint SampleBuffer>(
  clk: clock,
  rst: bool,
  trigger: bool,
  data: T,
) -> Rv<uint<8>> {
  let empty = port;
  let full = port;

  reg(clk) triggered reset (rst: false) = {
    match (triggered, *empty#0, *full#0) {
      (false, true, false) => trigger,
      (true, _, true) => false,
      (_, _, _) => triggered
    }
  };

  let data_in = if triggered { Some(data) } else { None };


  Rv(&data_in, port#1)
    .inst fifo_buffer::<SampleBuffer>(clk, rst)
    .read_empty(empty#1)
    .read_full(full#1)
    .data
    .inst map(fn (sample) {
      unsafe{ std::conv::transmute::<_, [uint<8>; NumBytes]>(sample) }
    })
    .inst into_element_stream(clk, rst)
}
0

Sometimes it's hard to be a privacy advocate. You can explain how the right to privacy is foundational to democracy and still see people's eyes glaze over. It makes it challenging to provide resources when you're not even sure that anyone wants to engage with them.

Idk, I know it's not entirely their fault, but purely from an advocacy standpoint it makes it hard to know what is worth putting energy into.

0
0
0
0
0

Slackさんの中途半端なマークダウンの解釈はかなり悲しくて、特に迂闊にリンク [てきすと](URL) が複数あるとタイプした内容が失なわれるのは泣いちゃうよう (最長一致の正規表現を使ってるんだろうなあ💢

0
0
0
1
0
0
0
0
1

We call it like we see it: the entire push around Bill C-2 and its little sibling C-12 is about pleasing President Trump.

Not about the national interest of Canada. Not what Canadians actually want. Our privacy, our rights, and our values deserve better than this!

dailyhive.com/canada/border-ca

0

Cursed AI filesystem idea

Instead of saving your text files, it compresses them by generative summaries then regenerates them from summaries them when you need to read them.
Instead of saving your pictures, it generates a textual description of the picture then generates the pictures from the textual description when you open them.
Tempted to build it as a commentary on the state of AI startups.

0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
15
0
0
0
0
1