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.

I'm writing a series of blog posts, in which I write a and a for arithmetic in . We explore the following topics in the series:

- Parsing arithmetic expressions to ASTs.
- Compiling ASTs to bytecode.
- Interpreting ASTs.
- Efficiently executing bytecode in a VM.
- Disassembling bytecode and decompiling opcodes for debugging and testing.
- Unit testing and property-based testing for our compiler and VM.
- Benchmarking our code to see how the different passes perform.
- All the while keeping an eye on performance.

The second post of the series that focuses on writing the is now out: abhinavsarkar.net/posts/arithm

0
0
0

I'm starting a series of blog posts, in which I write a and a for arithmetic in . We explore the following topics in the series:

- Parsing arithmetic expressions to ASTs.
- Compiling ASTs to bytecode.
- Interpreting ASTs.
- Efficiently executing bytecode in a VM.
- Disassembling bytecode and decompiling opcodes for debugging and testing.
- Unit testing and property-based testing for our compiler and VM.
- Benchmarking our code to see how the different passes perform.
- All the while keeping an eye on performance.

The first post of the series that focuses on writing the is now out: abhinavsarkar.net/posts/arithm

0
0
0
0
0
0

UPDATE 3: check this thread I will try to keep it updated

UPDATE2: nights are becoming dangerous and protest organizers are urging the public to stay home. You can continue to use the below if you want to support the delivery drivers and their surroundings (tell them the food is for them/family/friends and to tip)

Hey Southeast Asians, your Grab app works ACROSS the region. If you'd like to order medical supplies or food for the folks in Jakarta and Bandung, you can.

(Twt links to follow underneath)

(Apologies if this has been posted elsewhere on fedi)

0
0

UPDATE 3: check this thread I will try to keep it updated

UPDATE2: nights are becoming dangerous and protest organizers are urging the public to stay home. You can continue to use the below if you want to support the delivery drivers and their surroundings (tell them the food is for them/family/friends and to tip)

Hey Southeast Asians, your Grab app works ACROSS the region. If you'd like to order medical supplies or food for the folks in Jakarta and Bandung, you can.

(Twt links to follow underneath)

(Apologies if this has been posted elsewhere on fedi)

0
0
1

上證綜合指數迭創十年新高,吾奉勸欲投資者,當三思而行,切莫盲從。中國股市非市場之晴雨表,實乃政策之風向,故不可循自由市場之規律以釋之。而今股市興盛之表象,與實體經濟之頹勢相悖,其泡沫成分,已然昭著。
The Shanghai Composite Index has reached new highs for ten years. I advise prospective investors to think twice and not follow the crowd. China's stock market is not a barometer of the economy; it is a reflection of government policy. Therefore, it cannot be explained by the rules of a free market. The current boom in the stock market is at odds with the weakness of the real economy, and the presence of a bubble is now clearly evident.

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

前回の皆既月食は2022年11月8日、天王星食も見られたすばらしい天体ショーでした。天王星がちゃんと青く見えて感激したことを思い出しました。
toriyamaehagaki.jpn.org/fnb_ht
画像はその時の月食の一連の流れ。小さい点で写った天王星はリンク先で。

皆既月食
0
0
0
0

그냥 이어폰이나 헤드폰 하나만 사고 끝내고 싶은데 그럴 수가 없네
요즘 스마트폰 제조사들 3.5mm 단자 안 넣어주니 포터블 DAC는 필수고, 귀 건강 때문에 주기적으로 이어팁도 사야 하고
그래서 원래는 헤드폰만 하나 새로 사려고 했는데 갑자기 이어팁도 사야 하고 DAC도 새로 사야 함

0

@Roybrown what people do is just tell the drivers the food or whatever you bought, is for them because right now due to the work from home recommendation, on top of the high alert situation, they’re not getting much of an order, severely cutting their income.

Don’t worry about not using Indonesian, there’s auto translate in the app.

0
0
0

Indonesia is on edge, as the people are protesting all across the country against excessive parliamentary pay amidst weakening economy, lost jobs, and rising cost of living.

In the middle of all this, super app Grab has become an unexpected lifeline for many of its drivers and couriers after Malaysians discovered that they could flip their app location to Indonesia, order and pay for the food, and just tell the driver to keep them. It’s a feature meant for convenience when people travel, but in this moment it became something else, a way to get money directly into the hands of drivers in the middle of unrest.

And it matters. Grab lost two of its own drivers during these riots, one in Makassar and one in Jakarta. The platform may have intended this as a convenience tool, but right now it’s a lifeline, turning into an unexpected facilitator of aid when people need it most.

What makes it even more powerful is where it’s happening. Malaysians doing this over their Independence Day weekend, quietly sending support across the border. These are two nations that bicker endlessly about heritage, culture, football, you name it, but when crisis hits, their instinct to help kicks in.

Because at the end of the day, this isn’t about food delivery or app features. It’s about how, when everything else is breaking down, people will still find ways to take care of each other even if it means turning a ride-hailing app into a relief channel.

0
0
0
0
0
0
0
0
0
0
0
0
0

how do you backup your media collection?

so far i used restic and backed it up like the rest of the system (keep 7 daily snapshots, 12 weekly and so on).

now that i have had quite some changes in my media collection with retagging, reripping and other shenanigans, i'm realizing i don't really need to be able to have access to "old" snapshots like the rest of the system.

since the media collection is almost append-only, it would probably make more sense to just keep the last 10 (or other arbitrary number) of snapshots. if i accidentally delete something i can bring it back easily, but i don't need to keep around the various versions of the files.

due to restic's deduplication, i expect that the multiple versions (e.g. with different metadata but generally same content) don't cost too much backup storage, but i still feel like i should handle this differently.

what do you think? boosts welcome :)

0
0

"성공은 끝이 아니라 여정이다.

실패한 순간을 두려워하지 마라.
그 순간이 오히려 더 큰 배움의 기회다.

중요한 건 포기하지 않고 계속 나아가는 것.
비록 천천히라도 멈추지만 않는다면."

0
0
0
0
0
0
0