HNHacker News
TopNewBestAskShowJobs

seritools

704 karma · joined May 25, 2020

submissionscomments
seritools··on Thunk: Build Rust program to support Windows XP, Vista and more
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

seritools··on Thunk: Build Rust program to support Windows XP, Vista and more
sorry, i was referring specifically to the x86 segmented memory model: https://en.wikipedia.org/wiki/X86_memory_segmentation (basically, near and far pointers)
seritools··on Thunk: Build Rust program to support Windows XP, Vista and more
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)
seritools··on Thunk: Build Rust program to support Windows XP, Vista and more
likely no_std, and running via Win32s. Rust doesn't have support for segmented memory, so native 16-bit would be much harder
seritools··on Apple's Browser Engine Ban Persists, Even Under the DMA
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>"
seritools··on Tree Borrows
"can do things" in this case doesn't mean "is allowed to do things".

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

seritools··on Inigo Quilez: computer graphics, mathematics, shaders, fractals, demoscene
https://mercury.sexy/hg_sdf/
seritools··on Fast machines, slow machines (2023)
> 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

seritools··on GCC 15.1
> 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)

seritools··on High-Performance PNG Decoding
> 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.

seritools··on IronRDP: a Rust implementation of Microsoft's RDP protocol
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.

seritools··on Test if a number is even
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...

seritools··on Fun facts about SQLite
> 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

seritools··on MIT study explains why laws are written in an incomprehensible style
https://catala-lang.org/
seritools··on Solaar is a Linux manager for many Logitech keyboards, mice, and other devices
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...
seritools··on How to Reverse Engineer a 12 EUR Intel PCIe FPGA Card IBM 98Y2610
related: https://news.ycombinator.com/item?id=42368784
seritools··on Intel announces Arc B-series "Battlemage" discrete graphics with Linux support
1440p is colloquially referred to as 2.5K, not 2K.
seritools··on Raspberry Pi boosts Pi 5 performance with SDRAM tuning
> 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.

seritools··on The Birthday Paradox Experiment (2018)
> While the math is clear, I'm a bit annoyed by the label "paradox" as the whole setup is too simplistic and reductionistic.

https://en.wikipedia.org/wiki/Paradox#Veridical_paradox

(also https://www.youtube.com/watch?v=ppX7Qjbe6BM for a 40min video discussing the weird usages of the word "paradox")

seritools··on Show HN: Scooter – Interactive find and replace in the terminal
(And `ignore` uses `walkdir` internally)
seritools··on 3600 MHz Raspberry Pi 5 with Liquid Nitrogen
Yup, on many boards you could either jumper the direction (turbo switch closed= slow or closed = fast), or set it in the BIOS.
seritools··on The inventor of the automatic rice cooker
> There's a lot of examples of that, like it still being called Unleaded Gas despite it having been so by default for how many decades?

Depending on where you live, about 0.35 decades?

> On 30 August 2021 the United Nations Environment Programme announced that leaded gasoline had been eliminated. The final stocks of the product were used up in Algeria, which had continued to produce leaded gasoline until July 2021.

- https://en.wikipedia.org/wiki/Tetraethyllead#Modern_findings

seritools··on Flare-On 2024 Binary Reversing challenge starts today
Some more information about the kind of challenges to expect: https://cloud.google.com/blog/topics/threat-intelligence/ann...
seritools··on Inside a Ferroelectric RAM Chip
I guess it depends on whether the game cartridges only use it for storing savegames, or as actual additional RAM.
seritools··on Can a Rust binary use incompatible versions of the same library?
> In Rust, Cargo makes this super easy: “x.y.z” means “>= x.y.z, < (x+1).0.0”.

With the added special case of `0.x.y` meaning `>= 0.x.y, < 0.(x+1).0`, going beyond what semver specifies.

seritools··on X ordered to pay €550k to Irish employee fired after yes-or-resign ultimatum
In Germany the minimum time of notice for being fired scales up with your seniority (number of years employed in the company). However, many work contracts add a stipulation that the minimum time of notice from the law be applied to both parties equally, so quitting will also need an advance notice of the same length.
seritools··on Is OpenSUSE at Crossroads?
rename it to openSUS and replace the chameleon with an amogus, problem solved
seritools··on Microsoft Updated Phi-3
Blackjack, hookers, and reified generics!
seritools··on Optical PCIe 7.0 connection hits 128 GT/s
Huh, I was pretty sure that you need an extra chip in-between. Otherwise, the 4 CPU lanes will just drop to 4.0 level.
seritools··on Underscores are stupid? Get a Japanese keyboard (2012)
This is the main reason why I just use the US ANSI layout in germany, together with KbdKaz on Windows for umlauts and a lot of other extra characters and accennts: https://www.omega-com.pl/kbdkaz.htm
← PreviousPage 2 of 5Next →