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.

Klarnamenpflicht und Altersgrenzen sind das Gegenteil von evidenzbasierter Politik. Wofür genau soll das gelten? Fünf Big-Tech-Apps? Alle sozialen Medien? Smartphones? Internet-Zugang? Völlig unklar. Es geht nicht um Fakten, nur um Gefühle. "Die Politik muss was tun, für die Kinder/Demokratie."

0
3
0

오래 기다리셨습니다!!!

BlueBase: Python으로 밑바닥부터 직접 만들어보는 DBMS

https://theeluwin.github.io/BlueBase/

결국 완성은 못했지만, 일단 공개할 수 있는 부분이라도 공개합니다.

RedBase DBMS을 구성하는 PF, RM, IX, SM, QL 중 PF와 RM을 여러분들이 직접 구현 할 수 있게, 과제의 형태로 제공합니다.

PF는 paged file의 약자로, file을 page 단위로 관리하는 컴포넌트입니다. 대충 4096 바이트 단위로 관리하는데요, file에 바로바로 read하거나 write하지 않고, 자주 사용되는 page는 가능한 memory에 있도록 중간에 buffer manager를 둡니다. 그렇다면 buffer에 공간이 모자라면? buffer에 있는 page 중 누군가를 evict 할 수밖에 없습니다. 그럼 뭘 기준으로 하면 좋을까요? 이 부분을 잘 생각해서 구현해보고, 성능을 비교해보기 바랍니다. 제가 cache hit/miss 시뮬레이션 구현해둔게 있으니, 제 custom 보다 높은 성능을 달성해주세요!

이후 RM은 record management의 약자인데, PF를 사용해서 record들을 가져오거나, 새로 넣거나 등을 하게 해줍니다. 그렇다면 전체 record를 순회하는 scan 연산이 중요하겠죠. 이 부분을 구현하는 것이 핵심입니다. record는 page 앞 부분에 bitmap을 둬서 slot이 비어있는지 아닌지를 확인하는데, 만약 record 삭제 명령이 마지막 slot을 비우게 된다면 해당 page는 더이상 필요 없겠죠. 그렇지만 이를 바로 free로 만드는건 조금 비싼 연산이 필요합니다. free page list를 다시 계산해야하거든요. 그래서 보통 DBMS에서는 이러한 작업들을 vacuum 연산으로 해결합니다. 추가로, 지금은 고정 길이 record만 다룰 수 있습니다만, 가변 길이를 허용하려면 어떻게 해야할까요? 이 부분들은 자유롭게 구현해보시면 좋겠습니다.

문서와 테스트는 모두 공개되어있습니다. 기여해주시면 감사하겠습니다! 다만, 정답 코드와 핵심 로직은 마지막까지 저 혼자 해보고 싶습니다 (도전).

https://github.com/theeluwin/BlueBase

밑바닥부터 직접 만들어보는 DBMS에서 page cache policy에 따른 성능 비교.
5
0
0
0
0
0

I've started my exploration of using @timbray's Quamina project for saving some compute time in the filters module of

Currently the GoAP storage backends iterate over resources (usually stored as raw JSON bytes), unmarshal them into GoActivityPub object structs, and *only* then apply the custom filtering logic on those objects. Since the majority of the objects generally fail the filtering logic, all that JSON decoding is wasted compute time and makes things slower.

Ideally quamina will allow me to check the raw JSON payloads directly against the filters, streamlining the execution and speeding things up. :goose_hacker:

0
0
1
0
0
0
0
0
0
17
0
0

the year of our lord is 3026, humanity lives in a post-scarcity future, everybody lives happily and forever, and a developer AI sighs and commits "Fix missing multipart form attribute"

0
0
0
0
0
0

the year of our lord is 3026, humanity lives in a post-scarcity future, everybody lives happily and forever, and a developer AI sighs and commits "Fix missing multipart form attribute"

0
1
1

This is the most obvious statement of this millennium but apparently it needs to be repeated for the people in the back:

The government does not give a fuck about you. None of them do. We built a system specifically to not trust the government.

The problem with that system is that we keep allowing said government to find loopholes within it that allow it to make whatever tyrannical rules it fucking wants without repercussions or revolt.

When it doesn't work (EARN IT Act), they just keep trying again (ID verification) and each plot will be attempted for years at a time. The feds are playing a war of attrition and are betting on you being forgetful. The communications decency act, the patriot act, TSA, and everything since then. That time they let Microsoft off the hook because their monopoly was too useful.

Nobody could have predicted 300 years ago that we would invent a system to instantaneously transmit vast amounts of information across tens of thousands of miles, and that it would become the backbone of political stability as it dictates everything people perceive to be real. We are more "aware" of our surroundings than ever,and yet simultaneously the least involved in their evolution than we've ever been.

The ID verification laws. We all knew, but now it's been confirmed: the US and Canadian governments are tying your device fingerprints to your financial and social security records to build a unified profile of your identity online on every major website that has that matching information. They are scanning you against a list of politically relevant people for undisclosed purposes.

This is not something Americans do. This is not what we stand for. Self host your online infrastructure. Encrypt and obfuscate fucking everything. This is the last chance you might ever get.

In the highly unlikely event I strike one too many nerves and alert the nearest glowie: I am mentally sane. I have no desire to kill myself and infact I have a very important purpose in life. I am not planning any surprise vacations. I do not take or distribute drugs, keep illicit material on my computer, or fail to pay my bills. I am a healthy, law abiding citizen, and in the event of my disappearance or death you should be very worried because they will probably come after you too.

I'm not anonymous. Real world violence and detainment is how they take your free speech away. Don't forget it.
0
0
0
0
0
0
0

Well I need to check out the competition for my livelihood.

I thought I'd see what $2-3 buys me on Codex. I got all of:

* a compiler for a numerical bc-like language with an LLVM back end

* a small test suite (not good enough to catch everything it should have)

* a terminal based IDE for it with separate editor, syntax coloring and output panel - like Compiler Explorer. It'll show the LLVM IR too. Surprised to see it handles things like window resizes without me asking.

* example code including a simple 1D Poisson solver and an MLP trained by backpropagation.

It compiles fast enough, and generates fast enough code, that it has the interactivity of a spreadsheet so I can do things like explore tweaks to that MLP learning rate in "real time".

I tried to add multidimensional arrays. I burnt $3 having it fail - probably because it was writing array indexing code directly for LLVM whereas I would have written that in C and incorporated whatever IR clang generated. It was able to give excuses though.

For a few dollars more I added minor features at which point the total cost of writing N lines of code was probably growing quadratically in N and I called it quits at $9.

A lot more useful than the subject of this story
theregister.com/2026/02/09/cla

Worth noting that billing lags usage a bit so you need to set spending limits!

0
1

Oberstes US-Gericht erklärt Zölle von Trump für unrechtmäßig

tagesschau.de/eilmeldung/eilme

> Der Oberste Gerichtshof der USA hat die von Präsident Trump verhängten Zölle gegen mehrere Länder für unrechtmäßig erklärt. Trump habe damit seine Kompetenzen überschritten und gegen Bundesrecht verstoßen. Für den US-Präsidenten ist das ein Rüchschlag, die Zölle sind ein zentrales Element seiner Wirtschaftspolitik.

Haha. Tja...

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

Haben die Grenzkontrollen denn irgendwas gebracht? Welches Problem haben sie gelöst das wir vorher hatten? Der Minister kündigt an weiterhin geltendes Recht brechen zu wollen und macht sich nicht mal die Mühe notdürftig zu begründen wofür das überhaupt gut sein soll. tagesschau.de/inland/dobrindt-

0
0
0
1
0
1
0