Better HN
topnewbestaskshowjobs
Log inSign up

seritools

766 karma · joined May 25, 2020 (6y ago) · 165 submissions

Submissions

comment 10mo ago · link · parent

If the reason to connect them is to dump them, something like https://bluescsi.com/ in Initiator Mode might work: https://bluescsi.com/docs/Initiator-Mode

comment 11mo ago · link · parent

For a quick fix: `font-variant-ligatures: none;` on body or similar.

comment 1y ago · link · parent

Infocom was bought by Activision, ActivisionBlizzard was bought by Microsoft.

comment 1y ago · link · parent

Author here -- previous discussions/blog posts:

https://news.ycombinator.com/item?id=23313577

https://news.ycombinator.com/item?id=31112273

https://news.ycombinator.com/item?id=37787161

https://news.ycombinator.com/item?id=38810782

comment 1y ago · link · parent

I specifically checked if DirectInput from DirectX 5 already supports/provides USB HID devices, and it does! Granted, even then it was unlikely to encounter 8 USB devices, let alone HID devices in particular.

comment 1y ago · link · parent

Because I felt like it :) Also works for multiple versions/patchlevels.

But yeah, with the info provided it should be patchable. It's a `push esi` though, where esi has to stay 0 for a few further usages, so it's a bit more than a one-byte patch. It also wouldn't fully resolve the OOB write in the rare case where you _do_ have 9+ game controllers connected.

comment 1y ago · link · parent

Usually dgVoodoo handles most of the games (that don't have actual bugs like this game) fairly well.

Otherwise, 86Box is a pretty good full-system emulator for everything up to the early 3D era.

As for DRM, there's various ways around it of course :)

comment 1y ago · link · parent

> am I right in thinking the DirectX library only exports a single function and _everything_ else is through DX interfaces

Yup! That's why I didn't have to create a gazillion passthrough functions.

The original DLL in my modern Windows installation has these 8 exports:

    DirectInputCreateA
    DirectInputCreateEx
    DirectInputCreateW
    DllCanUnloadNow
    DllGetClassObject
    DllRegisterServer
    DllUnregisterServer
The game only calls DirectInputCreateA, and the rest happens via the COM object that that function creates.

comment 1y ago · link · parent

Author here -- given that r9x is also my project it wasn't entirely random :^)

comment 1y ago · link · parent

AFAIK they are all backed up. For the blogpost I used the DX5 SDK docs, DX7 SDK docs, and the MSDN Library from VS2005 (last version to include 9x information).

The VS2008 version purged all API information regarding pre-Windows 2000.

comment 1y ago · link · parent

According to https://en.wikipedia.org/wiki/Microsoft_Visual_C%2B%2B#Histo..., the last version to support Win3.1 is VC++ 1.52 (which was shipped with VC++ up to version 4).

Unless you mean NT3.1 of course :^)

comment 1y ago · link · parent

this comment thread hasn't been talking about win16.

but you're right, win16 can only load some 32-bit PE files through something like Win32s

comment 1y ago · link · parent

sorry, i was referring specifically to the x86 segmented memory model: https://en.wikipedia.org/wiki/X86_memory_segmentation (basically, near and far pointers)

comment 1y ago · link · parent

it would, just without standard library support, as the default stdlib imports system APIs that older versions don't provide. Other than those and a "supported OS version" filed in the PE header there isn't really much else in your way (hence my Rust9x project)

comment 1y ago · link · parent

likely no_std, and running via Win32s. Rust doesn't have support for segmented memory, so native 16-bit would be much harder

comment 1y ago · link · parent

it's the "thin" browsers that are half-embedded in other apps, such as Google News. In the menu you can see "Running in Chrome" and "Open in <yourdefaultbowser>"

comment 1y ago · link · parent

"can do things" in this case doesn't mean "is allowed to do things".

"Unsafe code allows to express the following, which is UB:"

comment 1y ago · link · parent

https://mercury.sexy/hg_sdf/

comment 1y ago · link · parent

> Notepad had been a native app until very recently, and it still opened pretty much instantaneously. With its rewrite as a UWP app, things went downhill. The before and after are apparent, and yet… the app continues to be as unfeatureful as it had always been. This is extra slowness for no user benefit.

We now have HUGE (/s) advancements in Notepad, like tabs and uh... Copilot

comment 1y ago · link · parent

> If the size of the new type is larger than the size of the last-written type, the contents of the excess bytes are unspecified (and may be a trap representation). Before C99 TC3 (DR 283) this behavior was undefined, but commonly implemented this way.

https://en.cppreference.com/w/c/language/union

> When initializing a union, the initializer list must have only one member, which initializes the first member of the union unless a designated initializer is used(since C99).

https://en.cppreference.com/w/c/language/struct_initializati...

→ = {0} initializes the first union variant, and bytes outside of that first variant are unspecified. Seems like GCC 15.1 follows the 26 year old standard correctly. (not sure how much has changed from C89 here)

comment 1y ago · link · parent

> I didn't do performance testing or anything, it just didn't seem like there was any point in trying to compete with whatever millisecond-scale gainz libpng presumably had over my library when both of them are capable of loading the picture in less time it takes me to recognize the picture on the screen in front of me.

The gains become relevant in bulk processing.

comment 1y ago · link · parent

It's instructions for the Windows RDP server to enable RemoteFX support so that the Rust client can make use of it.

Maybe I'm missing something, but for the server side it's only crates that help you build your own server, no direct integration with any system, be it Windows or otherwise.

comment 1y ago · link · parent

it's a semantics problem, not a maths problem - modulus and remainder are not the same operation. This easily trips up people since `%` is often called "modulo", yet is implemented as remainder operation in many languages

https://stackoverflow.com/questions/13683563/whats-the-diffe...

comment 1y ago · link · parent

> I hate that it doesn’t have types. It’s totally YOLO:

SQLite _does_ support strict column types since 3.37: https://www.sqlite.org/stricttables.html

comment 1y ago · link · parent

https://catala-lang.org/

comment 1y ago · link · parent

for Logitech G there is the Onboard Memory Manager, a portable tool to just set up the onboard profiles. Since they released it I've not had to use their normal software anymore: https://support.logi.com/hc/en-ca/articles/360059641133-Onbo...

comment 1y ago · link · parent

related: https://news.ycombinator.com/item?id=42368784

comment 2y ago · link · parent

1440p is colloquially referred to as 2.5K, not 2K.

comment 2y ago · link · parent

> You can actually monitor the temperature of the sdram and it reports if refresh at half or quarter the rate can be done. That allows the overhead due to refresh to be reduced by a half or a quarter which does improve benchmark results.

I wonder why this is not available on PCs. tREFI tuning has a big impact on performance, and having an automated guided optimization based on temperature would be nice.

123456