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.

0
0

*rubbing eyes* Anyone use "Rocket"?

The worst/most Ruby-like thing about Rocket is when you return a value from a Route function, you just kinda return… whatever datatype you want, and Rocket figures it out.

Unless it doesn't, and you have *no* idea what to return.

For a string, you return a String.

What do I return for bytes? It's not a string, it's a &[u8; 1335895] and it's not valid UTF-8. Do I return a rocket::response::ByteStream? That seems to be the correct answer but doesn't work


error[E0277]: the trait bound `&[u8; 1335895]: Stream` is not satisfied
  --> server/src/pages.rs:33:1
   |
33 | pub async fn get_wasm_2() -> Result<(ContentType, ByteStream![&'static [u8]]), Status> {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Stream` is not implemented for `&[u8; 1335895]`
   |
0

It’s funny that I spent a bit looking into Apple’s MIDI APIs so I could write a Swift UI app to do something, only to conclude that since I may not be using macOS indefinitely I really should stop writing my personal-use tools using Apple-only technology

0
1
1
0
0
0
0
0
0

안녕하세여.

계속되는 호스팅사의 문제로 인한 서버 접속 불가에 더는 지체할 수 없다고 판단되는 바, 서버 이전을 오늘 새벽 중으로 진행 완료하려고 합니다. 사용에 불편을 끼쳐드려 정말 죄송합니다.

0
0
1

Oh hey, our new website design is live:

colocataires.dev/

It's more reflective of what we actually are (nerds carving out a friendly hosting company in a "scrapped" datacentre, with recycled servers) and it features a new pricing page which is either more or less confusing than the old one. Let us know!

Did you know we run the whole thing off approx 550W of power? Seven physical servers, two switches and all of our VMs, serving thousands of users, for less power than a security light!

0
0
0
0

RE: skyjake.fi/@lagrange/116035029

This has been a long time coming.

I wouldn't say the app is perfect by any means, but by now it's certainly time-tested. I use it daily for browsing Gemini and managing bbs.geminispace.org on both the iPhone and iPad.

The TestFlight continues for beta builds.

0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0

Nie miałbym nic przeciwko, gdyby z Mastodona zniknęły "gwiazdki". Gdyby stał się mniej "socialmediowy" w wymiarze widocznego nabierania zasięgu.

Wiadomo, jak to wpływa na pracę mózgu - polubienia czy udostępnienia to jednak dopaminowe zastrzyki.

A gdyby tak wypruć Mastodona zostawiając wyłącznie opcję komentarzy i udostępnień, ale bez liczników? To mogłoby skłonić nas do częstszego odpisywania na posty, bo dzisiaj regularnie chwytamy się leniwego kliknięcia gwiazdki wyrażając aprobatę.

Tak sobie myślę, że brak tego przycisku jeszcze bardziej podbiłoby interakcje.

@sebastianSebastian Matyszczak

Tzw. demetrykacja istnieje jako opcja w wielu klientach Mastodona "od zawsze". Phanpy domyślnie nie pokazuje liczników (phanpy.social), w Pl-Fe możesz je wyłączyć. Z głowy nie pamiętam, w ilu jeszcze można zrezygnować, ale raczej co najmniej kilka apek to ma.

I fakt, to trochę inne doświadczenie sieci :)

0

Nie miałbym nic przeciwko, gdyby z Mastodona zniknęły "gwiazdki". Gdyby stał się mniej "socialmediowy" w wymiarze widocznego nabierania zasięgu.

Wiadomo, jak to wpływa na pracę mózgu - polubienia czy udostępnienia to jednak dopaminowe zastrzyki.

A gdyby tak wypruć Mastodona zostawiając wyłącznie opcję komentarzy i udostępnień, ale bez liczników? To mogłoby skłonić nas do częstszego odpisywania na posty, bo dzisiaj regularnie chwytamy się leniwego kliknięcia gwiazdki wyrażając aprobatę.

Tak sobie myślę, że brak tego przycisku jeszcze bardziej podbiłoby interakcje.

0
2

RE: techpolicy.social/@joebeone/11

Sad news. Dave Farber was one of a small handful of Internet pioneers who understood early on the inseparable link between technology and policy.

Dave recruited me to U. Penn. He has been an influence on almost everything I’ve worked on in my career.

0
0
0
1
0
0

Is there an article, blog or book that shows how to structure C++ projects in a functional way or rather non-OOP way? Most of the articles I've read just shows off the `<functional>` header isolated from context. That's cool and all, but if I end up with classes that just use the `functional` header, it's not really functional/non-OOP.

The reason why I'm asking is that, when I write C++, the very first instinct I have is to ask "Can this be represented as an object?" and most of the time, the answer is yes.

0
2

I heard a tech exec speak last year, and I’ve been puzzling for months over how to characterize the weirdly dazed, distracted way he was clumsily conveying the world-shaking realizations he’d been having by interacting with AI chatbots.

It’s “huffing AI.”

He was huffing AI.
They're all huffing AI.

0

Billionaires are worried about the Greta Thunberg type of protesting, which, on the ground, is a modest movement. But it's subversive, it tries to cause crisis. it's a type of protest that topples power structures.

Notice how billionaires never seem to worry about branded activism like . It's because those types of protests don't apply pressure to those who wield power.

It's shows up and it leaves quietly.

fortune.com/2026/02/04/peter-t

0
0
0
1
0
0
0
0
0
0
1
0
0