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
4

여기서 하얀선이 200일선이고 3-4월쯤엔 200일선을 뚫고올라가려는 공성전이 있었고 이겼고 그래서 가격이 올라갔고 11월쯤에 다시 200일선을 지키려는 공성전이 있었지만 실패해서 뚫려서 무너진것 (..) 주식시장도 조만간 따라가지 않을까 예상합니다;

0
0
4

System.IO.readFile 쓰지 마세요.

System.IO.readFile 쓰지 마세요.

System.IO.readFile 쓰지 마세요.

첫째, System.IO.readFileString 을 반환합니다. 이건 심각한 문제입니다. String 을 쓰지 마세요. 외부 세계와 I/O 를 할 때에는 ByteString 을 써야 합니다. 유니코드 문자열을 다룰 때에는 Text 를 쓸 수 있습니다. String 은 시간적으로도 공간적으로 비효율적입니다. 이건 어쩔 수 없습니다. 하스켈은 리눅스 커널보다 오래됐습니다. 그리고 하스켈이 String 을 만들 때에는 아직 하스켈에 모나드도 없던 시절이며, 타입 클래스가 과연 유용하겠는가를 두고 의견이 분분하던 시절이며, 파일 하나가 100 메가바이트가 넘어간다는 것이 과대망상으로 여겨지던 시절입니다. 특히 유니코드보다 더 먼저 나온 언어에 적절한 유니코드 문자열 타입이 있을 수는 없었습니다. 아무튼 String 은 레거시입니다. System.IO.readFile 로 그림 파일을 읽는 프로그래머는 사후세계에서 JPEG XL 파일을 십육진법 표기로 1 바이트씩 읽은 뒤 종이에 그려 내는 형벌에 처해집니다. String 을 쓰지 마세요.

둘째, System.IO.readFileFilePath 를 요구합니다. FilePath 도 사실 String 입니다. 그냥 별명(type synonym)이에요. 이것은 String 이기 때문에 비효율적이며, String 은 문자열이지 바이트열이 아니기 때문에 (인코딩을 전혀 통제할 수 없기 때문에) 파일 경로를 표현하는 타입으로 부적절합니다.

해결책: 먼저 System.OsPath 의 설명을 읽어 보세요. 그리고, file-io 패키지의 System.File.OsPath 모듈을 읽어 보세요. 여기 있는 함수들의 설명을 openBinaryFile 부터 하나씩 읽어보고 쓰세요. 이것들은 파일 경로에 OsPath 를 쓰기 때문에 String 의 비효율이 없고 인코딩도 올바르게 처리할 수 있습니다. 입출력 데이터에는 ByteString 을 씁니다. 바이트열을 유니코드 문자열로 변환할 때에는 예를 들어 Data.Text.Encoding.decodeUtf8Lenient 를 쓸 수 있습니다. 그럼 이제

  • 간단히 System.File.OsPath.readFile' 에게 OsPath 를 넘기고 ByteString 을 효율적으로 받아 와서 국밥처럼 든든하게 메모리에 올려 두고 작업을 하든지
  • 전국구 마법사라면 복대는 기본이라고 외치며 withBinaryFile앙갓썸Iteratee I/O 로 절묘하게 엮어서 뭔가 개멋있게 하든지
  • 하스켈 갓고수이기 때문에 흑마법사답게 보일러실 문을 따고 지하로 들어가 포… 포… 으악! P 로 시작하는 그것을 획득하여 누구도 예상할 수 없는 타이밍에 hGetBuf 의 암기를 슉. 슈슉. 슈슈슉. 슉. 날리든지

아무튼 이제는 String 을 놓아주어야 합니다.

6
1
0
1
0

(비트)코인은 안보고 있었는데 오늘 차트를 보니 이미 10월 말쯤에 캔들이 200일 이평선을 한번 건드렸네요 그뒤로 계속 건들다가 11월 3일쯤에 완전히 무너짐; 이게 대충 이런식임다 경찰들이 문짝 부수려고 들어가는것과 비슷한데 한번 치고 두번 치고 세번 치고 이러다가 확 무너지는것;; 지금 확 무너진 상태죠 ㅎㅎ 다시 올라가려면 위 과정을 거꾸로 반복해야합니다 200일선을 한번 치고 두번 치고 세번 네번 치다가 확 올라가는...

a group of police officers are...

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

성공을 향한 열정의 비밀

1. 매일 작은 목표를 세우고 달성한다
2. 실패를 두려워하지 않고 배움의 기회로 삼는다
3. 긍정적인 마인드로 어려움을 극복한다
4. 지속적인 학습과 성장에 집중한다
5. 자신을 믿고 꾸준히 노력한다

0
0
2
1
0

"記事では、同社が大手テック企業や資金力のあるスタートアップと競合する形で「AIブラウザ市場」に参入しようとしていることに疑問を呈している。多くのブラウザユーザーがAI機能の統合に懐疑的である一方、他の企業ではAI機能の導入に積極的な支持層も存在する。"

【海外記事紹介】FirefoxにAI搭載は誰も望んでいない、と評する記事が海外で話題に - TechFeed techfeed.io/entries/691a4245bb

0
1
0
0
0
0
1

FOSDEM has selected the booths for 2026 (Jan 31-Feb 1, Brussels). And our joint booth of OpenPrinting and OpenPrinter is accepted!

I will, together with Akarshan Kapoor, Léonard Hartmann, Laurent Berthuel, Nicolas Schurando show everything about printing with FOSS, and we will have ...

... a repairable, sustainable printer!

And we welcome everybody who wants to join the OpenPrinting community

fosdem.org/2026/news/2025-11-1

0
0
0
0
0

Today, my VPS served over 51.5 million requests. Well over 99% of that was AI crawlers and other obnoxious shits.

This is not normal. This is complete and utter bullshit. This is also happening all over the place.

It can be caught, it's not even hard. But we shouldn't need to. This is about three orders of magnitude more requests I'd normally receive, and it's almost entirely useless garbage.

Every single one of you who use GenAI tools, you personally, are complicit in this. You are responsible for these bots hammering the entire internet, you are enabling it.

If you think this price is acceptable, that every single person who hosts anything outside of BigTech walled gardens deserves this relentless assault of thieving robots, then you are a garbage human being.

But it is not too late to change course. You too can look back at the carnage you enabled, and feel remorse. It's okay. We'll forgive you.

You don't need to look at the environment damage LLMs cause - we can have an educated guess (it's very bad). You don't need to look at the unsustainability of it all. All of those are things that we don't directly feel right now.

But look at the damage these things cause to everyone outside of the BigTech walled gardens. That is measurable. These attacks are fact. You can't debate it. You can't justify it.

You, dear enabler of GenAI bullshit, you are responsible for enabling this carnage. Think about that. Feel bad about it, and stop. Today is a great day to do that.

0
0
0
0
0
0
0