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.

lmao this code works in "Expand macro recursively" (rust-analyzer) but not in rustc ๐Ÿ˜„

they implement the proc macro server differently, and thus their to_string implementation differs. hyrum's law strikes again!

I have an if else chain based on the string representation of a token stream.When expanded through Rust Analyzer, it is correctly picking up the lack of send and sync bounds in the trait definition.when expanded through cargo with cargo expand here it is not and it is actually doing send plus sync
0

๋‚ด๊ฐ€ ์ดํ•ดํ•˜๋Š” ์šฐ๋ฆฌ๋‚˜๋ผ ์‚ฌ๋ฒ•์‹œ์Šคํ…œ์—์„œ ๊ธฐ์†Œํ›„ ์œ ๋ฌด์ฃ„๋Š” ๊ทธ๋‹ค์ง€ ์ค‘์š”ํ•˜์ง€ ์•Š๋‹ค. ์žฌํŒ๊ณผ์ •์—์„œ ๋“œ๋Š” ๊ธˆ์ „์  ์‹œ๊ฐ„์ ์ธ ์†ํ•ด๋ฉด ์ด๋ฏธ ์ถฉ๋ถ„ํ•œ ํ˜•๋ฒŒ์ด ๋œ๋‹ค. ์ด ํ˜•๋ฒŒ์˜ ๊ธฐ๊ฐ„๋„ ํ•ญ์†Œ์—ฌ๋ถ€๋กœ ๊ฒ€์ฐฐ์ด ์ž์˜์ ์œผ๋กœ ์ •ํ•  ์ˆ˜ ์žˆ๋‹ค. ์‹ค์งˆ์ ์œผ๋กœ ๊ฒ€์ฐฐ์€ ์ˆ˜์‚ฌ, ๊ธฐ์†Œ, ์ฒ˜๋ฒŒ์˜ ๊ถŒ๋ ฅ์„ ๊ฐ€์ง€๊ณ  ์žˆ๋Š” ์…ˆ์ด๋‹ค. ๋ฌด์˜ํ•œ ๊ธฐ์†Œ์™€ ํŒจ์†Œ์— ๋Œ€ํ•œ ์ฑ…์ž„์„ ๊ธฐ์†Œ๊ฒ€์‚ฌ๊ฐ€ ์ง€๊ฒŒํ•˜๋Š” ์žˆ๋Š” ์ œ๋„๋ฅผ ๋งŒ๋“ค์–ด์•ผ ํ•œ๋‹ค.

0
0
1
1
0

ๅพžๅฐˆๆœ‰่ปŸ้ซ”ๅญธ็ฟ’๏ผŒๅ†ๅฐ‡ๆŠ€ๅทงๆ‡‰็”จๅœจ่‡ช็”ฑ่ปŸ้ซ”๏ผŒๅฐฑๅƒๅพžMicrosoft Office่ฝ‰ๆ›ๅˆฐLibreOffice
ivonblog.com/posts/learn-from-

ๅพžๅฐˆๆœ‰่ปŸ้ซ”ๅญธ็ฟ’๏ผŒๅ†ๅฐ‡ๆŠ€ๅทงๆ‡‰็”จๅœจ่‡ช็”ฑ่ปŸ้ซ”๏ผŒๅฐฑๅƒๅพžMicrosoft Office่ฝ‰ๆ›ๅˆฐLibreOffice

็‚บไป€้บผๅœจๅญธๆ กๅญธ็š„้›ป่…ฆๆ–‡ๆ›ธ่ˆ‡ๅฝฑๅƒ่™•็†่ปŸ้ซ”ๆ“ไฝœ๏ผŒ็ธฝๆ˜ฏๆŽจๅปฃๅฐˆๆœ‰(้–‰ๆบ)่ปŸ้ซ”ๅ‘ข๏ผŸ ็‚บไป€้บผๆ‰“ๅ ฑๅ‘Š้žๅพ—็”จMicrosoft Office๏ผŒไฟฎๅœ–ๅฟ…Photoshop๏ผŒๅ‰ชๅฝฑ็‰‡ๅพ—ไธŠPremireใ€ๅปบๆจก่ฆMayaใ€็ตฑ่จˆ่ท‘SPSSโ€ฆโ€ฆ๏ผŸ้€ฃ็œ‹PDF้ƒฝไธ€ๅฎšๅพ—ไธ‹่ผ‰Acrobat๏ผŒ่งฃ้ž.rarๆ ผๅผ็š„ๆช”ๆกˆไนŸ่ฆ็”จWinRARใ€‚ๆญคๅคš็จฎ็จฎ๏ผŒๆธ…ไธ€่‰ฒ้ƒฝๆ˜ฏๅฐˆๆœ‰่ปŸ้ซ”๏ผŸ้€šๅธธๅฐˆๆœ‰่ปŸ้ซ”ๅฐฑๆ˜ฏๅ•†ๆฅญ่ปŸ้ซ”ใ€‚้›–็„ถๆœ‰ไบ›ๆ˜ฏๅ…่ฒปไฝฟ็”จ็š„่ปŸ้ซ”๏ผŒไธ้Žไธฆไธ่‡ช็”ฑไนŸไธ้–‹ๆบ๏ผŒๆŽˆๆฌŠๆขๆฌพๅพ€ๅพ€ๆœƒ้™ๅˆถไฝฟ็”จ็ฏ„ๅœใ€‚

ivonblog.com ยท Ivon็š„้ƒจ่ฝๆ ผ

0

์ €...์ด๊ฑฐ ํŒ”์•„์š” ....4/15์ผ์— ๋ฐ›์•˜์–ด์š”....
ํŒŒ๋Š”์ด์œ , ....5๋…„์ „์— ์“ฐ๋˜ ํ”„๋กœ๋ชจ๋ธ, ....์žฅ๋กฑ์—์„œ ์ฐพ์•˜์–ด์š”........
์ฒ˜์Œ์— ์„œ๋น„์Šคํ•˜๋Š” ์ด์šฉ๊ถŒ ์‚ฌ์šฉํ•ด์„œ ... ํ™• ๊นŽ์„๊ฒŒ์š”....
์šดํฌ 11๋งŒ์— ํŒ”์•„์š”.........์ธ์ฆ์€ ์‚ฌ์‹ค๋ถ„์—๊ฒŒ....์ง์ ‘๋“œ๋ฆฝ๋‹ˆ๋‹ค.... ๋ฏผํŠธ์ƒ‰์ด์˜ˆ์š” .....

0
0
0
0

RFK Jrโ€™s push to create a registry of all people with autism should be setting off alarm bells.

Weโ€™ve been here before.

I talk a lot about the Naziโ€™s Aktion T4 program, because many people forget that they tested the gas chambers on disabled people. We were targeted first because we were seen as expendable. โ€œUseless eatersโ€. People no one would miss.

Did you know they also created a registry of children born who might have mental or physical disabilities? Midwives were paid to report them to the government, and lists were made.

Creating a registry of autistics wonโ€™t โ€œsolve autismโ€. But it could set the stage for something far more sinister.

We must remain vigilant and fight back.

Disabled people are not expendable. Autistic people are not dangerous. Health supremacy is.

0
0
0
3
0
0

ใ‚ชใƒผใƒˆใƒžใƒˆใƒณใŒใ€ioใจใ‹ใ‚“ใชใ™ใใƒผใ‹ใ‚‰ใฏ16ๆ™‚้–“ๅ‰ใฎๆŠ•็จฟใพใงใ—ใ‹่ฆ‹ใˆใšใ€ใ“ใ“ใ‹ใ‚‰ใฏๆŠ•็จฟใฏ่ฆ‹ใˆใฆใ„ใ‚‹ใ‘ใฉ็”ปๅƒใŒ้ž่กจ็คบ๐Ÿค”ใ€€

0
0
1
1

People are mad at Trump about and rightly so. But we Europeans should blame ourselves first and foremost. For decades we have lived in the comfort of US protection and today we are unable to stand up independently to the thug from the East whose economy is tiny compared to ours and we have to worry about what the chaotic egomaniac in the White House will come up with next.

0

Did we lose the kind of creativity, that was born from design constraints?

Using early 1990s videos games, Ian Batterbee reminds us how design constraints, from tiny screen sizes to tight budgets, often push us to build smarter, more meaningful things.

I also think it's debatable to say that AI instant remix bring eye-catching possibilities: I personally think the whole AI generated action figures are uncanny and cringe.
uxdesign.cc/when-constraints-s

0
0

ใƒ‹ใƒผใƒซ ใ‚ฒใ‚คใƒžใƒณใฎใ€Žใ‚ตใƒณใƒ‰ใƒžใƒณใ€ๆ–ฐๅˆŠ๏ผˆใ‚ฟใƒญใƒƒใƒˆใ‚ซใƒผใƒ‰ไป˜ใ๏ผ‰ๅฑŠใ„ใŸใ€‚
ใ‚ตใƒŸใƒฅใ‚จใƒซ ใƒ‡ใ‚ฃใƒฌใ‚คใƒ‹ใƒผใŒใฏใ—ใŒใใ‚’ๆ›ธใ„ใฆใ‚‹๏ผ

0

ioใง่‡ชๆฒป่กŒ็‚บใฏใƒ€ใƒกใ‚ˆใฃใฆ่จ€ใฃใฆใ‚‹ๆ„ๅ‘ณใŒๅˆ†ใ‹ใฃใŸใ‚ใ€‚
็ฎก็†่€…ๅดใจใ—ใฆใฏ่‡ช็”ฑใซใ—ใฆใปใ—ใ„ใ“ใจใ‚’ๅ‹ๆ‰‹ใซใ€Œ่ฟทๆƒ‘ใ€ใจๅฎš็พฉใ•ใ‚Œใ‚‹ใฎใฏ็ฎก็†ๅดใซใ‚ฏใ‚‹ใ‚‚ใฎใŒใ‚ใ‚‹ใ€‚

0

ใชใ‚“ใ ใฃใ‘ใชใ‚“ใ ใฃใ‘ใชใ‚“ใ ใฃใ‘ใชใ‚“ใ ใฃใ‘ใชใ‚“ใ ใฃใ‘ใชใ‚“ใ ใฃใ‘ใชใ‚“ใ ใฃใ‘ใชใ‚“ใ ใฃใ‘ใชใ‚“ใ ใฃใ‘ใชใ‚“ใ ใฃใ‘ใชใ‚“ใ ใฃใ‘ใชใ‚“ใ ใฃใ‘ใชใ‚“ใ ใฃใ‘ใชใ‚“ใ ใฃใ‘ใชใ‚“ใ ใฃใ‘ใชใ‚“ใ ใฃใ‘ใชใ‚“ใ ใฃใ‘ใชใ‚“ใ ใฃใ‘ใชใ‚“ใ ใฃใ‘ใชใ‚“ใ ใฃใ‘ใชใ‚“ใ ใฃใ‘ใชใ‚“ใ ใฃใ‘ใชใ‚“ใ ใฃใ‘

1
0

ๆ”ฟๆฒปใƒžใ‚ฟใƒผใงใƒ‘ใƒณใƒ€่ฟ”้‚„ใจใ‹ใชใ‚‰ใ€ใ‚ซใƒณใ‚นใƒˆๅฏธๅ‰ใฎไบบ้กžๆ„šใ‹ใ‚ฒใƒผใ‚ธใŒใพใŸไธŠใŒใ‚Šใพใ™ใŒใใ‚Œใฏโ€ฆ

0
1
0

ioใง่‡ชๆฒป่กŒ็‚บใฏใƒ€ใƒกใ‚ˆใฃใฆ่จ€ใฃใฆใ‚‹ๆ„ๅ‘ณใŒๅˆ†ใ‹ใฃใŸใ‚ใ€‚
็ฎก็†่€…ๅดใจใ—ใฆใฏ่‡ช็”ฑใซใ—ใฆใปใ—ใ„ใ“ใจใ‚’ๅ‹ๆ‰‹ใซใ€Œ่ฟทๆƒ‘ใ€ใจๅฎš็พฉใ•ใ‚Œใ‚‹ใฎใฏ็ฎก็†ๅดใซใ‚ฏใ‚‹ใ‚‚ใฎใŒใ‚ใ‚‹ใ€‚

0
0
0

์ด์   ์œ ๋ช…ํ•œ ์‹ ์„ค๋™์—ญ์˜ โ€œ์œ ๋ น ์Šน๊ฐ•์žฅโ€์€ 2ํ˜ธ์„ ์˜ ๋ฒ„๋ ค์ง„ ์Šน๊ฐ•์žฅ์œผ๋กœ ํ”ํžˆ ์•Œ๋ ค์ ธ ์žˆ์ง€๋งŒ
์‚ฌ์‹ค์€ ๊ตฌ5ํ˜ธ์„  ๊ณ„ํš์ด ๋ฐ•์ •ํฌ ๋Œ€ํ†ต๋ น ์•”์‚ด ๋ฏธ์ˆ˜๋ผ๋Š” ๊ฑฐ๋Œ€ํ•œ ์‚ฌ๊ฑด์œผ๋กœ ์ธํ•ด ์„œ์šธ์‹œ์žฅ ์‚ฌํ‡ด - ๊ณ„ํš ๋ณ€๊ฒฝ์ด๋ผ๋Š” ๋ง‰์žฅ์œผ๋กœ ์ด์–ด์ง€๋ฉฐ ๋ฒ„๋ ค์ง„ ์Šน๊ฐ•์žฅ์ž…๋‹ˆ๋‹ค

1
3

๋‚œ๋…, ์กฐํ˜„๋ณ‘, ๊ฒฝ๊ณ„์„  ์ง€๋Šฅ, ~์žฅ์•  ์ด๋Ÿฐ ๋‹จ์–ด ์ข€ ๋ณธ๋ž˜์˜ ์˜๋ฏธ์— ๋งž๊ฒŒ ์‚ฌ์šฉํ•ฉ์‹œ๋‹ค. ์š•์„ค๋งˆ๋ƒฅ ์“ฐ์ง€ ๋ง๊ณ . ๊ฐ€์Šค๋ผ์ดํŒ…, ์‚ฌ์ด์ฝ”ํŒจ์Šค, ์†Œ์‹œ์˜คํŒจ์Šค ์ด๋Ÿฐ ๋ง๋“ค๋„. ์ข€.

0

์–ด์ฐจํ”ผ ์ธ๊ฐ„๋“ค์€ ์ธ๊ฐ„์„ ์ƒ๋Œ€๋กœ ๋งํ•˜๋ ค๋˜ "ใ„ฑใ……์š”" ๋ฅผ "ํ•˜ํ•ด์™€ ๊ฐ™์€ ์€๋•์— ์‚ผ๊ฐ€ ์ง„์‹ฌ์œผ๋กœ ๊นŠ์ด ๊ฐ์‚ฌ๋“œ๋ฆฝ๋‹ˆ๋‹ค" ๋กœ ๊ณ ์ณ์“ฐ๋Š” ๋ฐ LLM์„ ๋„‰๋„‰ํžˆ ์จ๋Œ€๊ณ  ์žˆ๋‹ค...

0
0
0

์–ด์ฐจํ”ผ ์ธ๊ฐ„๋“ค์€ ์ธ๊ฐ„์„ ์ƒ๋Œ€๋กœ ๋งํ•˜๋ ค๋˜ "ใ„ฑใ……" ๋ฅผ "ํ•˜ํ•ด์™€ ๊ฐ™์€ ์€๋•์— ์‚ผ๊ฐ€ ์ง„์‹ฌ์œผ๋กœ ๊นŠ์ด ๊ฐ์‚ฌ๋“œ๋ฆฝ๋‹ˆ๋‹ค" ๋กœ ๊ณ ์ณ์“ฐ๋Š” ๋ฐ LLM์„ ๋„‰๋„‰ํžˆ ์Ž„๋Œ€๊ณ  ์žˆ๋‹ค...

0
1
0
0
0

ํ˜น์‹œ ์—ฐํ•ฉ์šฐ์ฃผ์˜ ์ผ๋ณธ์–ด ์ž˜์•Œ ๊ณ„์‹ ๊ฐ€์š” ์งˆ๋ฌธ์ด ์žˆ์Šต๋‹ˆ๋‹ค
์•ผ๋ฆฌํƒ€์ด, ์™€ ์‹œํƒ€์ด, <-์˜ ๋‰˜์•™์Šค์  ์ฐจ์ด๋Š” ๋ญ”๊ฐ€์š”
๋ฒˆ์—ญ์€ ๋‘˜ ๋‹ค ํ•˜๊ณ ์‹ถ๋‹ค, ์ •๋„๋กœ ๊ฐˆ์Œ๋˜๋˜๋ฐ ๋ณดํ†ต ์“ฐ์ด๋Š” ๋‰˜์•™์Šค๊ฐ€ ๊ถ๊ธˆํ•จ
(์ด ํˆฟ์€ ํ˜ธ๊ธฐ์‹ฌ์ด ํ•ด๊ฒฐ๋˜๋ฉด ์ง€์›Œ์ง‘๋‹ˆ๋‹ค)

0
0
0
0
0
0

์™„์ „ํ•œ ๊ฒ€์ • ๋ฐฐ๊ฒฝ์— ํ•˜์–€ ๊ธ€์ž๋Š” ๋Œ€๋น„๊ฐ€ ๋†’์•„, ๋ˆˆ์— ์ž”์ƒ์ด ๋‚จ์Šต๋‹ˆ๋‹ค. ๋ˆˆ์˜ ํ”ผ๋กœ๋ฅผ ๋œ๊ธฐ ์œ„ํ•ด ๋‹คํฌ ๋ชจ๋“œ๋ฅผ ์ฃผ ํ†ค์œผ๋กœ ์„ ํƒํ–ˆ๋‹ค๋ฉด, ๋Œ€๋น„๋ฅผ ์ ๋‹น ์ˆ˜์ค€์œผ๋กœ ๋‚ฎ์ถฐ์•ผ ํ•ฉ๋‹ˆ๋‹ค. ๋‚˜์ด๊ฐ€ ์˜ฌ๋ผ๊ฐˆ ์ˆ˜๋ก ์˜ํ–ฅ์„ ๋ฐ›์Šต๋‹ˆ๋‹ค. ๋ชจ๋ฅด์‹œ๋Š” ๋ถ„๋“ค์ด ๋งŽ์€ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค.

1

ๅทๅดŽ้‹ๆฒณใฎๅ‹•็”ปไฝœใ‚‹ใฎใง
ไบฌๆตœๅทฅๆฅญๅœฐๅธฏใ‚’ไฝœใฃใŸๅ‰ไบบใ€ๆต…้‡Ž็ทไธ€้ƒŽ็ฟๅƒใซๆŒจๆ‹ถใ‚’ใ—ใฆใใพใ—ใŸใ€‚

1
0
0

์‚ฌ๋žŒ์„ ์ƒ๋Œ€๋กœ๋„ ๊ฐ์‚ฌ๋Š” ๋”ฑํžˆ ๊ฐ์‚ฌ๋ฅผ ๋ฐ›์•„์ค„ ์‚ฌ๋žŒ์—๊ฒŒ์„œ ๋Œ์•„์˜ฌ ๋ญ”๊ฐ€๋ฅผ ์ƒ๊ฐํ•˜๋ฉด์„œ ํ•ด์•ผ ํ•˜๋Š” ๊ฒŒ ์•„๋‹ ํ…๋ฐ. ๋‚˜ ์ž์‹ ์ด ๋ฒ”์‚ฌ์— ๊ฐ์‚ฌํ•  ์ค„ ์•„๋Š” ์‚ฌ๋žŒ์œผ๋กœ์„œ ์‚ด์•„๊ฐ€๊ธฐ ์œ„ํ•œ ๊ฑฐ์ง€. ๋งˆ์น˜ ๊ฐ€๊ฒŒ์—์„œ ๊ณ„์‚ฐ ๋งˆ์น˜๊ณ  "๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค"๋ผ๊ณ  ์ธ์‚ฌํ•˜๋Š” ๊ฒƒ์€ ์‚ฐ์†Œ์˜ ๋‚ญ๋น„๋ผ๋Š” ์ด์•ผ๊ธฐ์ฒ˜๋Ÿผ ๋“ค๋ฆฐ๋‹ค.

0