HackerTrans
TopNewTrendsCommentsPastAskShowJobs

aqrit

no profile record

comments

aqrit
·الشهر الماضي·discuss
>Is it really that difficult?

Fiberglass handles are now standard on splitting mauls (for this reason). Rotten hearts, or driving wedges. It is easy to miss a swing by an inch or two when fatigued.

Edit: I also broke my first axe handle. The sibling comments here are wild.
aqrit
·قبل 5 أشهر·discuss
[flagged]
aqrit
·قبل 5 أشهر·discuss
_Daily_ hit pieces on Elon Musk (or Musk companies), going for something like a decade. These have petered out somewhat since he left DOGE. But they started way back before he should have had that much notoriety.
aqrit
·قبل 7 أشهر·discuss
MS makes "Times New Roman" available (at no cost), but not "Calibri".
aqrit
·قبل 11 شهرًا·discuss
`_mm_alignr_epi8` is a compile-time known shuffle that gets optimized well by LLVM [1].

If you need the exact behavior of `pshufb` you can use asm or the llvm intrinsic [2]. iirc, I once got the compiler to emit a `pshufb` for a runtime shuffle... that always guaranteed indices in the 0..15 range?

Ironically, I also wanted to try zig by doing a StreamVByte implementation, but got derailed by the lack of SSE/AVX intrinsics support.

[1] https://github.com/aqrit/sse2zig/blob/444ed8d129625ab5deec34... [2] https://github.com/aqrit/sse2zig/blob/444ed8d129625ab5deec34...
aqrit
·السنة الماضية·discuss
> health services in the area

Massena Hospital is a 25-bed hospital. Might have to go to Canton or Ogdensburg for a family doctor (45 minutes by car). Most things serious get referred to Syracuse or Burlington (3 hours away by car).

AFAIK, Cost[1] is "theoretically" nothing if annual income is less than the federal poverty line ($15,650 for an individuality). And might as well be free for an income up to $39,125.

[1] https://info.nystateofhealth.ny.gov/EssentialPlan
aqrit
·السنة الماضية·discuss
Alcoa (Aluminum Smelter, *cheap electricity*) was the major industry in the area. Massena plant now produces 85% less aluminum compared to ~15 years ago (AFAICT), leading to something of a ghost town (and cheap housing).
aqrit
·السنة الماضية·discuss
Limited internet connections (speed and/or data-caps). Something like Hughesnet (satellite ISP) couldn't stream more than 240p from youtube during peek times. The data-cap coerced users to do downloads between 2am to 6am.
aqrit
·السنة الماضية·discuss
> “regular” rejection sampling

I was thinking naive: mask off unwanted bits then reject any value above the limit.

It would seem like https://c-faq.com/lib/randrange.html would also move the multiply --or divide by constant-- out of the loop.
aqrit
·السنة الماضية·discuss
A optimized version would use 64-bit accumulators (`psadbw` on SSE2, or some sort of horizontal adds on NEON). The `255` max constraint is pointless.

Many programming languages/frameworks expose this operation as `reduce()`.
aqrit
·السنة الماضية·discuss
Why not use regular rejection sampling when `limit` is known at compile-time. Does fastrange[1] have fewer rejections due to any excess random bits[2]?

[1] https://github.com/lemire/fastrange

[2] https://github.com/swiftlang/swift/pull/39143