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

Dan Poulin (he/him) shared the below article:

Browser-Native Translation and Language Detection APIs Coming Soon

洪 民憙 (Hong Minhee) @hongminhee@hackers.pub

Just reviewed the W3C draft for the Translator and Language Detector APIs. This is genuinely exciting development for web developers.

The proposal would add native browser support for:

  • Text translation between languages
  • Language detection of arbitrary text
  • Both with streaming capabilities

No more relying on third-party translation services or embedding external APIs for basic language operations. All processing happens locally in the browser.

The API design is clean and straightforward:

// Translation example
const translator = await Translator.create({
  sourceLanguage: "en",
  targetLanguage: "fr"
});

const translatedText = await translator.translate("Hello world");

// Language detection example
const detector = await LanguageDetector.create();
const results = await detector.detect("Hello world");
// Returns array of detected languages with confidence scores

This will be a game-changer for multilingual sites and applications. The browser handles downloading appropriate language models and manages usage quotas.

The spec is still in draft form but shows promising progress toward standardizing these capabilities across browsers. Looking forward to seeing this implemented.

Read more →
0
0

I have been playing with a new term: "slop huckster"

A slop huckster is more than someone who likes to play with generative AI, or has some arguments for why they've been able to use it productively

Slop hucksters argue that generative AI means you should stop doing creative and productive things, kind of likes to rub it in your face that they can make creative persuits useless

The attitudes of slop hucksters resemble incels, a kind destructive bitterness stemming from jealousy

0
24
0
0
0
0
0
0
0
0
0

goodmenproject.com/featured-co

Respirators are so effective that United Kingdom research has indicated their use by the public would have dropped the rate of COVID transmission by an estimated factor of 9, compared with 0.6 for surgical masks. A factor of 9 is enough to put SARS-COV-2 into exponential decay, meaning the virus would have been highly suppressed for as long as respirator use continued. The exponential math of viral spread also means that perfect masking compliance would not have been required to achieve suppression.

@maskup :xplore1900:

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

유럽연합은 전쟁 상황 등에 대비해 3일간 생존할 수 있는 비상물자를 각 가정 내에 비축할 것을 촉구하는 새 지침을 발표했습니다. 이 지침은 회원국들에게 러시아의 우크라이나 침공처럼 유럽의 지정학적 긴장도가 높아졌고, 리스크와 불확실성이라는 새로운 현실을 마주했음을 경고했습니다.

“전쟁 위험시 72시간 견딜 생필품 비축하라” 유럽연합...

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