Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
aqrit
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
aqrit
1mo ago
Not the author but: `GetKeyState` and `LoadMenuA` are going to stand out in the disassembly. Backtracking from `GetKeyState` is how I found a devmode in "warhammer: shadow of the horned rat". Though it is activated by a boring com
2.
▲
by
aqrit
3mo ago
>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
3.
▲
by
aqrit
7mo ago
_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.
4.
▲
by
aqrit
9mo ago
MS makes "Times New Roman" available (at no cost), but not "Calibri".
5.
▲
by
aqrit
1y ago
`_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 shu
6.
▲
by
aqrit
1y ago
> 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). AFAI
7.
▲
by
aqrit
1y ago
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).
8.
▲
by
aqrit
2y ago
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.
9.
▲
by
aqrit
2y ago
> “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
10.
▲
by
aqrit
2y ago
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()`.
11.
▲
by
aqrit
2y ago
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://git
12.
▲
by
aqrit
3y ago
That snippet would not reject bad chars, are non-digits rejected somewhere else? A simple scalar loop that multiplies an accumulator by 10, itoa() style, would be faster.
13.
▲
by
aqrit
3y ago
The methods in those articles could be slightly improved by picking better multipliers. https://stackoverflow.com/a/71594769
14.
▲
by
aqrit
3y ago
There are two digits for months. A check is required per-character to prevent bad chars (e.g 0x3A) from being laundered by the multiply. The '19' comes from fact that the first digit may be only 0 or 1, while the 2nd digit maybe a
15.
▲
by
aqrit
3y ago
This was for a super optimizer.
16.
▲
by
aqrit
4y ago
One of the authors/contributors was looking into it: https://old.reddit.com/r/mainframe/comments/wevyvg/whats_the... I don't think this project was ready for a public announcement, yet.
17.
▲
by
aqrit
4y ago
The AVX2 version is using a 8 KiB table...? Even the range check is inefficient. I'd bet that the AVX2 version could be 50% faster.
18.
▲
by
aqrit
4y ago
related to IEEE 754 double-precision floating-point round-trips?
19.
▲
by
aqrit
5y ago
Any fine shows Walmart as liable. A free win for any $100mm civil lawsuit.
20.
▲
by
aqrit
5y ago
https://media.ccc.de/v/35c3-9788-memsad
21.
▲
by
aqrit
6y ago
www.central-boiler.co.uk ?
22.
▲
by
aqrit
6y ago
Outdoor wood furnaces (boilers) became very popular over the last 15 years. They are cheaper than fuel oil. A traditional wood stove has to be refilled every 2 hours (or so), and is also a major fire hazard. "Wood burners" may
23.
▲
by
aqrit
6y ago
The algorithm used by ClickHouse was "inspired" by https://github.com/cyb70289/utf8/ ... Which is known to be slower than this new method from simdjson.
24.
▲
by
aqrit
7y ago
here you go: https://github.com/expr-fi/fastlwc "Beating wc with C"
25.
▲
by
aqrit
7y ago
how does this differ from here: https://github.com/lemire/simdjson/pull/365
26.
▲
by
aqrit
7y ago
> Bone can't be eaten Squirrels eat bones. Skeletons disappear rapidly in the wild.
27.
▲
by
aqrit
8y ago
Try some of these :p https://gist.github.com/aqrit/6e73ca6ff52f72a2b121d584745f89...
28.
▲
by
aqrit
10y ago
Valdez has a population of 4_000
29.
▲
by
aqrit
10y ago
use slz ( http://1wt.eu/projects/libslz/ ) for web traffic and non-beefy servers.