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
0
0

It's Friday again, so it's time for another update on Diesel, the Rust query builder and ORM.

I attended RustNation in London this week. It was a great conference, I enjoined giving a workshop on Diesel there and had quite a lot good conversations with different folks. If you are interested in attending a Diesel workshop the next one will in in May in Utrecht as part of the RustWeek.

Nevertheless it was a busy week for Diesel as well. We received 9 PR's and 1 new issue. This might be a new record.

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
4
0
0
0
0
0

You think web page size bloat is bad on some things? oh boy.

Good afternoon to everyone, except bumn.go.id (an Indonesian government website) for having a (at least) 3GB web page because of embedded MP4's with uncompressed audio and video seeming straight from the camera...

This must cost so much for them, like a single page load could cost at least $0.15 in cloud egress fees alone

ql64389Pkg2BXLw4Pn.png
0
0

재명아.. 이거는 노동착취야... 우리가 원하는 건 노동착취없는 사회인데 지금 너는 노동착취를 하고 있는거야.. 열심히 일하는 건 좋겠지만 착취가 되면 안돼 재명아..!

RE: https://bsky.app/profile/did:plc:uabkr6tn7ru4b4e5e6udleuf/post/3mfcbk54jnc2k

0
0
1
0
0
0

Turns out Amazon had two outages in December caused by their IaaS management slop generator:

Amazon’s cloud ‘hit by two outages caused by AI tools last year’
theguardian.com/technology/202

> Reported issues at Amazon Web Services raise questions about firm’s use of artificial intelligence as it cuts staff

Sounds like things are not going well over at AWS.

0
0
10
0

Youth voices on multilingual education emphasizes that language is more than a means of communication: it is central to identity, learning, well-being and participation in society.というUNESCOの記述からみえるように、言語は単なるコミュニケーション手段ではなく、アイデンティティ・学び・心身の安定・社会参加に深く関わるからこそ、変わりゆく自己を強く支えるのだろうとも思います。

「単なるコミュニケーション手段」ではない、とはことばの説明によく用いられる言辞ですが、手段は道具であり、言語道具観に立つ限り「よい道具」「役に立つ道具」という理屈がでてきて、ことばの取り替えを許してしまうのですね。「言語の死」とは、そうやって経済的に有利な言語をみんなが選んだ結果でも、もたらされるものです。

でも、ことばと記憶は役に立つかどうかとは違う次元で捉えることも可能です。ことばは人。誰かのことばを大事にする日、それが国際母語デーなのだと私は思います。一年に一度くらい、そういう日があってもいいと思います。
(4/4)
# 国際母語デー

0
0
0
0
0
0
0
0
0

Any users out there who use the tasks framework? If so, what are you using to process the submitted tasks?

Coming from not-Python, it’s unexpected for me to see a publish-only framework for asynchronous tasks. In Java with simple tasks, I’d have spun up a thread pool to consume the task queue in the same process that handles API requests. But that doesn’t feel very Django-ish. At the same time, the Django task framework docs are very hands off with recommendations beyond “don’t use the built-ins (immediate and dummy) for production.”

0
0
9
0
0
8
0

📜 Scrolls 30 is now out! Check it out for all the usual , & / goodies.

shellsharks.com/scrolls/scroll

30 issues into this I'm a bit curious. If you feel like sharing: What do you think of Scrolls so far? Is it still interesting? Is there something you'd like to see in there that I haven't done? Is there something I've done a little of that you'd like more of? Any other feedback, good or bad, is always welcome!

Have a great weekend! 👋

0
2
0

대법원 ‘상호관세 위법’ 판결 이후?···트럼프 행정부, ‘무역법 301조’ 등 활용 가능성 www.khan.co.kr/article/2026... "스콧 베선트 재무부 장관은 대법원 결정을 앞두고 한 공개 연설에서 “전체 세수 측면에서 대략 같은 수준으로 관세를 계속 징수할 수 있는 우리의 능력은 의심의 여지가 없다”라고 밝혀 관세 유지 방침을 시사했다. IEEPA에 근거한 관세가 차단되더라도 우회 경로를 통해 유사한 수준의 관세 체계를 재구성할 수 있다는 것이 행정부의 기본 구상이다."

대법원 ‘상호관세 위법’ 판결 이후?···트럼프 행정부...

0

[속보]미국 대법원 “트럼프 상호관세 위법” 판결···글로벌 무역 불확실성 확대 www.khan.co.kr/article/2026... "로이터통신 등에 따르면 대법원은 이날 트럼프 대통령이 무역적자가 국가 비상사태에 해당한다며 국제비상경제권한법(IEEPA)을 근거로 관세를 부과한 것이 위법하다고 판단했다. 트럼프 대통령의 권한 남용을 지적하며 상호관세 등을 무효라고 판단한 1·2심 판단을 유지한 것이다."

[속보]미국 대법원 “트럼프 상호관세 위법” 판결···...

0
0
0
0
0
0
0
0
1
1
0
0
0
0
0
0
9
0
0
0
1