HNHacker News
TopNewBestAskShowJobs

delta_p_delta_x

5,063 karma · joined July 15, 2021

submissionscomments
delta_p_delta_x··on Android Developer Verification: Threat masquerading as protection
> Linux based mobile OS

So, Android?

delta_p_delta_x··on One million passports leaked online
What you didn't have was a computerised database which could spam everyone on that list in milliseconds, or profile everyone's character, purchase history, medical history, and more.

We used to do a lot of worse stuff too, like eat radium hoping for brighter skin.

delta_p_delta_x··on One million passports leaked online
> Leaking PII should be very, very expensive

It should be criminal to leak PII, and company leadership should face imprisonment.

delta_p_delta_x··on Microsoft Needs Windows Lite
> all the stupid hardware config apps

Similar pet peeve, and I think the solution to this is the platform setting, adopting, and enforcing conventions. Something like what has happened with notebook trackpads[1] about a decade ago, and more recently RGB peripherals[2]—no more cancerous giant Electron app to move a few sliders and set an RGB hex code.

[1]: https://learn.microsoft.com/en-gb/windows/win32/input-precis...

[2]: https://learn.microsoft.com/en-gb/xbox/gdk/docs/features/com...

delta_p_delta_x··on Microsoft Needs Windows Lite
> Migrate Windows to the Linux kernel and get Linux compartibility out of the box

If I had a quid for every time I saw this comment on HN or Reddit I would probably be as wealthy as Gates himself. It is always an instant downvote for me, because they make me lose faith that people on HN have actually understood what a kernel is and how it works, and what ABI compatibility is, and what user-mode stability is. It is dogmatic and pointless.

The NT kernel is pretty good. Windows is generally well-architected. The NT kernel is the best thing about Windows, and you lot want to swap it out with something decidedly inferior.

Windows' user-mode applications and libraries are also pretty good. By user-mode apps and libraries I mean Win32 itself, WinRT, D2D/DirectWrite, D3D, Winsock, Windows Sound, and the thousands of entrypoints and enums for cool Windows stuff like the registry, synchronisation primitives, file management, special user files, cloud files, accessibility and internationalisation, and more. I've mentioned some other nice platform APIs in a sibling comment.

It is pretty easy to write a full-fledged GUI application on and for Windows that handles heavy use of networking, sound, graphics acceleration, etc without ever having to use a single third-party library, and make it run on OSs that are nearly 18 years old (not the case on most competition OSs).

I also daresay that IE/Edge moving to Chromium was in some ways a bad idea, as Chromium has become the de facto default Web platform, and any non-Chromium browser (Safari, Firefox) is likewise de facto non-conforming.

delta_p_delta_x··on Microsoft Needs Windows Lite
> It should be installable, just via a package management system

I disagree. .NET is fundamental to the Windows platform. It's like having a Python runtime installed by default in some Linux distros, which makes sense for that distribution's use-case.

delta_p_delta_x··on Microsoft Needs Windows Lite
> no .NET

Not quite sure about this. .NET is a superb platform, easy to write reasonably good code, huge standard library, well-maintained, many languages supporting a wide variety of paradigms (C#, VB, F#, PowerShell, C++). .NET is one of Microsoft's success stories.

delta_p_delta_x··on The US Used to Demand the Best Tech. Now We Ban It
I don't understand the surprise in this article. This particular story is absolutely nothing new—the Germans and Japanese did it first to the US car market, which is inefficient, stuck in a bygone era, and propped up by government protectionism. Nearly all* American cars have been backwards in all metrics since about the 1970s.

In general, if you wanted...

Reliability: Japanese. Value: Korean, French, Japanese. Performance: German, Italian, maybe every now and then British. Luxury: German, Italian, British, and depending on marque, Japanese.

And today, Chinese marques are eating everyone's lunch on every metric in the EV sector because they have seen how everyone else builds cars, lorries, and buses for a while, learnt how to do it themselves, got rid of the ICE, popped a battery in them, and have been massively undercutting the market for a while now.

* I should qualify this properly to pre-emptively stave off the ooh-rah crowd: every now and then there has been a decent A-to-B car out of the US, like the Fiesta. Additionally there are models sold purely in Europe like the Ford Mondeo.

delta_p_delta_x··on U.S. allows Anthropic to release Mythos AI to ‘trusted’ US organizations
Military-technological industrial complex. Has always been a thing. Nascent WW2 computers were used for artillery, rocket, and bomb guiding.
delta_p_delta_x··on Windows 10 quietly gets one more year of support and updates
Indeed. I mention this in light of the high-profile supply-chain attacks recently across diverse platforms (Arch AUR, Shai-Hulud, etc). Any online tool that purports to modify an entire install medium should be heavily and continually scrutinised. I'm not saying the developer can't be trusted, but the infrastructure and people in general can't.
delta_p_delta_x··on Windows 10 quietly gets one more year of support and updates
I did. You said:

> to get a NEW ISO which you then install

This is not good.

delta_p_delta_x··on Windows 10 quietly gets one more year of support and updates
To anyone reading this: please don't use ISOs downloaded from not-official sources.

Use an autounattend.xml, the mass graves, and a WinGet JSON to customise an online image.

[1]: https://schneegans.de/windows/unattend-generator/

[2]: https://learn.microsoft.com/en-gb/windows/package-manager/wi...

delta_p_delta_x··on Anthropic says Alibaba illicitly extracted Claude AI model capabilities
Cue Jeremy Clarkson's 'Oh no! Anyway...' GIF.
delta_p_delta_x··on Show HN: TikZ Editor – WYSIWYG editor for figures in LaTeX
A follow-up comment: when dragging, you could perhaps offer a 'sticky' mode (toggle/enable with Shift/Alt/Ctrl key?) that locks nodes to TikZ's default alignment features, and display a tooltip with the anchor position in question. Contrary to most drawing apps, this could be the default mode, and the toggle key could switch to absolute, freeform positioning.
delta_p_delta_x··on Show HN: TikZ Editor – WYSIWYG editor for figures in LaTeX
> not sure what would be a good UI for switching an element to relative positioning

  1. Right-click on an existing object, offer drop-down context menu.
  2. Menu item `Position relative to...`.
  3. The cursor now selects _other_ objects in the field. 
     a. If there is no other object, then offer to create a new label-less node with (x,y); default to the origin.
     b. Once an object is selected, then offer `right of`, `left of`, `north of`, `south of`, `southeast of`, etc as a drop-down menu, and a field for radial displacement.
        i. As a stretch goal, offer a `Custom position...` button to specify an (x, y) displacement, or a polar angle and radial displacement. These three options (fixed offsets, Cartesian, polar) could also be tabs in the resultant menu from (b) above. 
You could use this same UI/UX for `anchor`, too.
delta_p_delta_x··on Show HN: TikZ Editor – WYSIWYG editor for figures in LaTeX
This is superb. Will you consider adding support for pgfplots[1]? When I was a student I was long considering writing a native application for real-time TikZing.

[1]: https://ctan.org/pkg/pgfplots?lang=en

delta_p_delta_x··on What was nice about the UI of Windows 2000
There is a specific UI guideline for something that can be enabled or not: it's called a tick box. The on-off switch thing is a distinctly iOS invention [1]. The funny thing is that OS X (now macOS) mostly held off using those 'switches' too, until fairly recently.

[1]: https://freeimage.host/i/CxYBW6G

delta_p_delta_x··on What was nice about the UI of Windows 2000
The loss of the theme menu and 'Windows classic' from Windows 8 onwards is dearly missed. But Windows classic hasn't gone away. If you run a 32-bit executable on Windows 10 or 11 under Windows XP compatibility mode, and set 'reduced colour mode', Windows Classic comes back. I have also noticed that when Adobe Acrobat crashes (heh) it momentarily flashes Windows classic on the title bars.

It's all still there. Bring it back, Microsoft. And put HiDPI and all your other modern technologies like D3D12 and borderless full-screen on it. I want to write old-school Win32 applications that fly.

delta_p_delta_x··on Windows 1.0 and the WinAPI, 40 Years Later
Use Windows Implementation Library to clean things up and get some RAII on handle types: https://github.com/microsoft/wil
delta_p_delta_x··on Orthodox C++ (2016)
That is a cop-out. You made the assertion, you define it.

What about these particular workloads (and the environments they're used in) make them 'serious' and why are other workloads 'lesser' and therefore the standard library 'suffices'? Why not use better containers for everything? Google, for instance, universally recommends Abseil.

delta_p_delta_x··on Orthodox C++ (2016)
Clang/LLVM with its more permissive licence sees _much_ wider use and is written purely in C++. PlayStation, automotive, platforms and runtimes like Chromium/V8, Android, etc. are all built with Clang.
delta_p_delta_x··on Orthodox C++ (2016)
> anything serious, i.e. high throughput, low frequency, massively concurrent work

Why is only 'high throughput, low frequency, massively concurrent work' considered 'serious'?

delta_p_delta_x··on Faking keyword arguments to functions in C++
> I pretty much always prefer using an options struct

This is essentially what Vulkan does; there's a CreateInfo struct for every object creation or command function. And even then they managed to sort of mess it up, because they also have functions and objects suffixed with a '2', and the pNext extension mechanism.

delta_p_delta_x··on The beauty and simplicity of the good old C-style void* in C++
> ABI changes do happen

Will never happen on Windows, especially not in user-mode libraries, and especially not something this pervasive.

delta_p_delta_x··on The beauty and simplicity of the good old C-style void* in C++
> A truly zero-cost abstraction

Sadly the MSVC ABI makes std::span and std::string_view a pessimisation:

https://github.com/tringi/win64_abi_call_overhead_benchmark

https://godbolt.org/z/7baaox7re

delta_p_delta_x··on The beauty and simplicity of the good old C-style void* in C++
The blogger and the blog says:

> BTW: As a nice addition, if you use SAL annotations

> Windows C++ Programming

Not everyone will see the irony, but the Windows user-mode application and library suite and the kernel now very heavily rely on the safety mechanisms of C++ that the author calls 'complex', 'uglif[ied]', and has 'los[t] the taste for good readable code'. I'm of course referring to the Windows Implementation Library: https://github.com/microsoft/wil This is explicitly an effort from MS WinDev to make Windows C++ code safer. User-mode applications writing native Windows code can and absolutely should use it, too.

Any time I see `void*` in C++ I ring-fence it as a C-ism and make sure I `reinterpret_cast`. For me, a bag of bytes is `std::span<std::byte>`. void* is a memory location with no provenance, no ownership, no size information, nothing. Do I even know if it is this program's memory, or some shared memory construct, or maybe even a pointer into GPU memory? No for all.

C likes to play fast and loose and its proponents call it 'beautiful and simple', I call it a segfault/use-after-free/double-free waiting to happen.

delta_p_delta_x··on Facebook is paying people overseas promoting Alberta separatism
You know what? I ain't even mad. 300k is life-changing money in Sri Lanka.
delta_p_delta_x··on I design with Claude more than Figma now
There is a way to criticise unfettered nationalism and jingoism without the criticism involving racism, and tired and highly offensive stereotypes about nearly a fifth of the human population. Then the criticism becomes worthless in itself.
delta_p_delta_x··on 4K years ago, Mohenjo-daro grew more equal over time
They didn't disappear into thin air. Their culture syncretised with that of the incoming (or invading, depending on who you ask) Indo-Aryans, they moved southeast into the furthest bits of the Indian peninsula. The strongest hypothesis is that the IVC language, culture, and genetics is Dravidian, and the bulk of Dravidian culture today descends from the IVC.
delta_p_delta_x··on Shantell Sans (2023)
Not the OP, but probably (please correct me if I'm wrong...) Knuth's claim was that a font's metrics could be described as geometric transformations and equations. I believe most of the TeX typefaces were described with Metafont.
← PreviousPage 5 of 34Next →